Announcement

Collapse
No announcement yet.

error 404 /ajax/login

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • error 404 /ajax/login

    Hello, I have a problem when I log myself out there always this error:

    error 404 /ajax/login
    Does someone already had this error?

    Thank you for your help


  • #2
    Hi,

    it seems your apache is not configured correctly. Servlet entries for proxy_ajp are missing. Please check with the installation guide again.

    Greetings

    Comment


    • #3
      The config is active

      Hi, the config is active vis-à-vis the howto presented here:



      is through this too :

      a2enmod proxy proxy_ajp expires deflate headers
      vim /etc/apache2/conf.d/proxy_ajp.conf

      <Proxy *>
      Order deny,allow
      allow from all
      </Proxy>

      ProxyPass /axis2 ajp://127.0.0.1:8009/axis2 smax=0 ttl=60 retry=5
      ProxyPass /ajax ajp://127.0.0.1:8009/ajax smax=0 ttl=60 retry=5
      ProxyPass /servlet ajp://127.0.0.1:8009/servlet smax=0 ttl=60 retry=5
      ProxyPass /infostore ajp://127.0.0.1:8009/infostore smax=0 ttl=60 retry=5
      ProxyPass /publications ajp://127.0.0.1:8009/publications smax=0 ttl=60 retry=5
      $ vim /etc/apache2/sites-enabled/000-default

      <VirtualHost *:80>
      ServerAdmin webmaster@localhost

      DocumentRoot /var/www/

      <Directory /var/www/>
      AllowOverride None
      Order allow,deny
      allow from all
      RedirectMatch ^/$ /ox6/
      </Directory>

      ExpiresActive On
      ExpiresByType image/gif "access plus 23 hours"
      ExpiresByType image/png "access plus 23 hours"
      ExpiresByType image/jpg "access plus 23 hours"
      ExpiresByType image/jpeg "access plus 23 hours"
      ExpiresByType text/javascript "access plus 23 hours"
      ExpiresByType text/css "access plus 23 hours"
      ExpiresByType text/html "access plus 23 hours"
      ExpiresByType application/x-javascript "access plus 23 hours"
      <Files ~ "\.(js|css|gif|jpe?g|png)$">
      Header append Cache-Control "public"
      </Files>

      DeflateFilterNote ratio
      AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/x-js application/x-javascript application/javascript
      BrowserMatch ^Mozilla/4 gzip-only-text/html
      BrowserMatch ^Mozilla/4\.0[678] no-gzip
      BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
      Header append Vary User-Agent env=!dont-vary
      </VirtualHost>
      There is nothing else to add, except this config?

      Thank you for your help

      MM

      PS :

      a2enmod proxy proxy_ajp expires deflate headers
      Module proxy already enabled
      Considering dependency proxy for proxy_ajp:
      Module proxy already enabled
      Module proxy_ajp already enabled
      Module expires already enabled
      Module deflate already enabled
      Module headers already enabled
      Last edited by Guest; 07-07-2010, 10:40 AM.

      Comment


      • #4
        Mhh, please post the apache error/access log when trying to login. I guess the webserver has already been restarted after applying the config?

        Greetings

        Comment


        • #5
          Error Access log

          Hello, sorry for the delayed response, here is what I see in the logs, you answer this:

          xx.xxxxx.xx||||392||||XX.XXX.XXX.X - - [19/Jul/2010:12:09:26 +0200] "POST /ajax/login?action=login&client=com.openexchange.ox6.gui .dhtml&version=6.16.1%20Rev3&authId=447a6405-6e51-469c-a1b2-d76afccb6bdb HTTP/1.1" 404 392 "http://xx.xxxxx.xx/ox.html" "Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6"
          ox.axiome.be||||396||||81.245.120.6 - - [19/Jul/2010:12:09:26 +0200] "POST /newInfoItemHidden.html HTTP/1.1" 200 396 "http://xx.xxxxx.xx/ox.html" "Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6"
          Thank you for help ...

          MM

          Comment


          • #6
            Well, the path /ajax does not seem to exist, can you manually check to access that? It should return something like:

            Code:
            http://192.168.32.154/ajax/
            
            No servlet bound to path/alias: /ajax/
            If it returns something like:
            Code:
            Not Found
            The requested URL /ajax/ was not found on this server.
            your apache configuration is incorrect or not applied correctly. Try to add the stuff from proxy_ajp.conf to the sites-enabled where you've configured all the other things. Perhaps your apache2 does not include configuration from conf.d?

            Greetings
            Last edited by Martin Heiland; 07-19-2010, 12:08 PM.

            Comment


            • #7
              So I have the same error

              When I do the same steps as you, I have a 404, when I add the IP address of the directory server is ajax.

              HTTP Status 404 - /ajax

              type Status report

              message /ajax

              description The requested resource (/ajax) is not available.
              Apache Tomcat/6.0.16
              If you talk proxy_ajp.conf file, it is this well in:

              etc/apache2/conf.d/proxy_ajp.conf
              For this, do you, I did what, because I do not understand your line:

              Try to add the stuff from proxy_ajp.conf to the sites-enabled WHERE you've configured all the Other Things
              Add the domain instead of 127.0.0.1 or something?

              Thank you for help ...

              MM

              Comment


              • #8
                It seems you're running Tomcat on the same machine. Is there any good use for this? OX and Tomcat use the same TCP Ports so you either have to shutdown one of them or configure different ports. OX6 does not require Tomcat to work.

                Greetings

                Comment


                • #9
                  It is possible that this is what the port?

                  Hello again Martin, is that Funambol, the mesa will all this mess?

                  When I make this:

                  ps aux | grep tomcat
                  I have this as an answer

                  ps aux | grep tomcat
                  root 9110 0.0 0.0 3672 692 pts/0 R+ 13:27 0:00 grep tomcat
                  root 25994 0.1 1.7 765720 52984 ? Sl Jul01 39:29 /opt/Funambol/tools/jre-1.5.0/jre/bin/java -Xmx512M -Dfunambol.debug=false -Dfunambol.home=/opt/Funambol -Dfile.encoding=UTF-8 -Djava.library.path=/opt/Funambol/ds-server/lib/linux -Djavax.net.ssl.trustStore=/opt/Funambol/ds-server/lib/security/cacerts -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8101 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Djava.util.logging.manager=org.apache.juli.ClassLo aderLogManager -Djava.util.logging.config.file=/opt/Funambol/tools/tomcat/conf/logging.properties -Djava.endorsed.dirs=/opt/Funambol/tools/tomcat/endorsed -classpath :/opt/Funambol/tools/tomcat/bin/bootstrap.jar -Dcatalina.base=/opt/Funambol/tools/tomcat -Dcatalina.home=/opt/Funambol/tools/tomcat -Djava.io.tmpdir=/opt/Funambol/tools/tomcat/temp org.apache.catalina.startup.Bootstrap start
                  Is this possible?

                  Thank you Martin, I would be in error

                  It is possible that this is what the port?

                  MM

                  MM

                  Comment


                  • #10
                    Well, if you need to run funambol, you can change the port of the OX servlet container.
                    Code:
                    /opt/open-xchange/etc/groupware/ajp.properties
                    [...]
                    AJP_PORT=8010
                    
                    /etc/apache2/conf.d/proxy_ajp.conf
                    [...]
                    ProxyPass /axis2 ajp://127.0.0.1:8010/axis2 smax=0 ttl=60 retry=5
                    ProxyPass /ajax ajp://127.0.0.1:8010/ajax smax=0 ttl=60 retry=5
                    ProxyPass /servlet ajp://127.0.0.1:8010/servlet smax=0 ttl=60 retry=5
                    ProxyPass /infostore ajp://127.0.0.1:8010/infostore smax=0 ttl=60 retry=5
                    ProxyPass /publications ajp://127.0.0.1:8010/publications smax=0 ttl=60 retry=5
                    Restart OX and Apache after that. OX will then run on Port 8010 and Apache should correctly redirect requests to OX servlets to that port.

                    Greetings

                    Comment


                    • #11
                      or I see the port 8009 in the Funambol configuration

                      Another question Martin, or I see the port 8009 in the Funambol configuration in that file, just to know?

                      Thank you Thanks for your help Martin ....

                      MM

                      Comment


                      • #12
                        You don't need to change the Funambol/Tomcat configuration for that. 8009 is the default port for Tomcat so i assume Funambol also uses that port.

                        Comment


                        • #13
                          Port 8010 not start this?

                          When I perform this command, the port change, this does not start, Martin is this normal?

                          nmap localhost

                          Starting Nmap 4.62 ( http://nmap.org ) at 2010-07-19 14:40 CEST
                          Interesting ports on localhost.localdomain (127.0.0.1):
                          Not shown: 1699 closed ports
                          PORT STATE SERVICE
                          21/tcp open ftp
                          22/tcp open ssh
                          25/tcp open smtp
                          26/tcp open unknown
                          53/tcp open domain
                          80/tcp open http
                          81/tcp open hosts2-ns
                          110/tcp open pop3
                          143/tcp open imap
                          443/tcp open https
                          587/tcp open submission
                          953/tcp open rndc
                          993/tcp open imaps
                          995/tcp open pop3s
                          3306/tcp open mysql
                          9999/tcp open abyss
                          Thank you

                          MM

                          Comment


                          • #14
                            When I stop Funambol I have this message if:

                            When I stop Funambol I have this message if:

                            /opt/Funambol/bin/funambol stop
                            Jul 19, 2010 1:46:54 PM org.apache.catalina.startup.Catalina stopServer
                            SEVERE: Catalina.stop:
                            java.net.ConnectException: Connection refused
                            at java.net.PlainSocketImpl.socketConnect(Native Method)
                            at java.net.PlainSocketImpl.doConnect(Unknown Source)
                            at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
                            at java.net.PlainSocketImpl.connect(Unknown Source)
                            at java.net.SocksSocketImpl.connect(Unknown Source)
                            at java.net.Socket.connect(Unknown Source)
                            at java.net.Socket.connect(Unknown Source)
                            at java.net.Socket.<init>(Unknown Source)
                            at java.net.Socket.<init>(Unknown Source)
                            at org.apache.catalina.startup.Catalina.stopServer(Ca talina.java:421)
                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
                            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
                            at java.lang.reflect.Method.invoke(Unknown Source)
                            at org.apache.catalina.startup.Bootstrap.stopServer(B ootstrap.java:337)
                            at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:415)
                            java.sql.SQLException: socket creation error
                            MM

                            Comment


                            • #15
                              Dunno why you want to stop Funambol, however - we cannot give you any advice with Funambol here.

                              Probably nmap does not scan all ports but only selected ones when calling it with default parameters.
                              You can scan a specific port range like this:
                              Code:
                               nmap -p 8000-8500 <host>
                              Just check the OX log file if the groupware has been restarted correctly and if you can login now.
                              Last edited by Martin Heiland; 07-19-2010, 04:31 PM.

                              Comment

                              Working...
                              X