Announcement

Collapse
No announcement yet.

help [Kubuntu 6.06 + Tomcat5 + Axis 1.4 Final]

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    help [Kubuntu 6.06 + Tomcat5 + Axis 1.4 Final]

    Hi folks,

    I am a gentoo fan forced to use Kubuntu on a dual xeon server.
    So far, I could figure everything out (Eventually) - but installing Axis just won't work.

    This is what I did so far:

    remove all java clones
    Install sun java via apt-get
    Code:
    sudo apt-get install sun-java5-*
    Selecting the default Java version
    Code:
    sudo update-alternatives --config java
    sudo update-alternatives --config jar
    add '/usr/lib/j2sdk1.5-sun' to /etc/jvm, and remove all alternatives

    edit /etc/profile and re-login
    Code:
    JRE_HOME=/usr/lib/jvm/java-1.5.0-sun/jre
    JAVA_BINDIR=/usr/lib/jvm/java-1.5.0-sun/bin
    JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
    SDK_HOME=/usr/lib/jvm/java-1.5.0-sun
    JDK_HOME=/usr/lib/jvm/java-1.5.0-sun
    JAVA_ROOT=/usr/lib/jvm/java-1.5.0-sun
    
    export JRE_HOME JAVA_BINDIR JAVA_HOME SDK_HOME JDK_HOME JAVA_ROOT
    export PATH=$PATH:/usr/lib/jvm/java-1.5.0-sun-1.5.0.06/bin
    verify java version
    Code:
    java -version
    javac -version
    Install Tomcat via
    Code:
    sudo aptitude install tomcat5 tomcat5-admin tomcat5-webapps
    set Tomcat paths in /etc/profile and re-login
    Code:
    CATALINA_BASE=/usr/share/tomcat5/
    CATALINA_HOME=/usr/share/tomcat5/
    CATALINA_TMPDIR=/usr/share/tomcat5/temp
    
    export CATALINA_HOME CATALINA_BASE CATALINA_TMPDIR
    export CLASSPATH=/usr/share/tomcat5/common/lib/jsp-api.jar:/usr/share/tomcat5/common/lib/servlet-api.jar
    Code:
    sudo /etc/init.d/tomcat5 restart
    works

    see Tomcat welcome page
    Code:
    firefox [url]http://127.0.0.1:8180[/url]
    become Tomcat admin
    Code:
     sudo vi /usr/share/tomcat5/conf/tomcat-users.xml
    & add
    Code:
     <role rolename="manager"/>
     <role rolename="admin"/>
    <user username="xxx" password="xxx" roles="admin,manager"/>
    download Axis from http://www.apache.org/dyn/closer.cgi/ws/axis/1_4 & extract to /usr/share/axis, copy webapps/axis to /var/lib/tomcat5/webapps/

    verify that Xerces is already installed, just in case copy xml-apis.jar and xercesImpl.jar to
    /var/lib/tomcat5/webapps/axis/WEB-INF/lib

    add to /etc/profile and re-login
    Code:
    AXIS_HOME=/usr/share/axis
    AXIS_LIB=$AXIS_HOME/lib
    AXISCLASSPATH=$AXIS_LIB/axis.jar:$AXIS_LIB/commons-discovery-0.2.jar:$AXIS_LIB/commons-logging-1.0.4.jar:$AXIS_LIB/jaxrpc.jar:$AXIS_LIB/saaj.jar:$AXIS_LIB/log4j-1.2.8.jar:$CATALINA_HOME/common/endorsed/xml-apis.jar:$CATALINA_HOME/common/endorsed/xercesImpl.jar
    export AXIS_HOME AXIS_LIB AXISCLASSPATH
    I checked all variables via
    Code:
    export | grep {JAVA, HOME, CATALINA, AXIS}
    and verified the existence via ls, all there.

    But now, when I log into http://127.0.0.1:8180/manager/html , Axis did not load, and Status is ok ... and when I click 'Start' manually, it gives me
    Code:
    FAIL - Application at context path /axis could not be started
    Of cause, logging into http://127.0.0.1:8180/axis/ results in a 404 ...

    My output from /var/log/tomcat5/catalina_$DATE.log looks like this
    Code:
    Using CATALINA_BASE:  /var/lib/tomcat5
    Using CATALINA_HOME:  /usr/share/tomcat5
    Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
    Using JAVA_HOME:    /usr/lib/jvm/java-1.5.0-sun
    Using Security Manager
    - Initializing Coyote HTTP/1.1 on http-8180
    - Initialization processed in 1270 ms
    - Starting service Tomcat-Standalone
    - Starting Servlet Engine: Apache Tomcat/5.0
    - XML validation disabled
    - Create Host deployer for direct deployment ( non-jmx )
    - Processing Context configuration file URL file:/var/lib/tomcat5/conf/Catalina/localhost/balancer.xml
    - Cannot use JVM pre-1.4 access bug workaround due to restrictive security manager.
    - Processing Context configuration file URL file:/var/lib/tomcat5/conf/Catalina/localhost/admin.xml
    - Processing Context configuration file URL file:/var/lib/tomcat5/conf/Catalina/localhost/manager.xml
    - Processing Context configuration file URL file:/var/lib/tomcat5/conf/Catalina/localhost/tomcat-docs.xml
    - Installing web application at context path from URL file:/var/lib/tomcat5/webapps/ROOT
    - Installing web application at context path /jsp-examples from URL file:/var/lib/tomcat5/webapps/jsp-examples
    - Installing web application at context path /axis from URL file:/var/lib/tomcat5/webapps/axis
    - Skipped installing application listeners due to previous error(s)
    - Error listenerStart
    - Context startup failed due to previous errors
    - Installing web application at context path /servlets-examples from URL file:/var/lib/tomcat5/webapps/servlets-examples
    - Installing web application at context path /webdav from URL file:/var/lib/tomcat5/webapps/webdav
    - Starting Coyote HTTP/1.1 on http-8180
    - JK2: ajp13 listening on /0.0.0.0:8009
    - Jk running ID=0 time=0/42 config=/var/lib/tomcat5/conf/jk2.properties
    - Server startup in 5550 ms
    and from /var/log/tomcat5/localhost_$DATE.log like this
    Code:
    2006-07-05 19:37:40 StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.w
    ebapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http:
    //www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value
    : paramValue / Redirect URL: [url]http://www.yahoo.com][/url], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
     [url]http://jakarta.apache.org]][/url]
    2006-07-05 19:37:44 StandardContext[/jsp-examples]ContextListener: contextInitialized()
    2006-07-05 19:37:44 StandardContext[/jsp-examples]SessionListener: contextInitialized()
    2006-07-05 19:37:44 StandardContext[/axis]Error configuring application listener of class org.apache.axis.transport.http.
    AxisHTTPSessionListener
    java.lang.ExceptionInInitializerError
        at org.apache.commons.discovery.jdk.JDKHooks.<clinit>(JDKHooks.java:75)
        at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:412)
        at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:378)
        at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)
        at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33)
        at org.apache.axis.transport.http.AxisHTTPSessionListener.<clinit>(AxisHTTPSessionListener.java:33)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at java.lang.Class.newInstance0(Class.java:350)
        at java.lang.Class.newInstance(Class.java:303)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3780)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4323)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
        at org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:121)
        at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:143)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:805)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
        at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
        at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
        at org.apache.catalina.core.StandardService.start(StandardService.java:480)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
    
    Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
        at java.security.AccessController.checkPermission(AccessController.java:427)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
        at java.lang.SecurityManager.checkCreateClassLoader(SecurityManager.java:594)
        at java.lang.ClassLoader.<init>(ClassLoader.java:225)
        at org.apache.commons.discovery.jdk.PsuedoSystemClassLoader.<init>(PsuedoSystemClassLoader.java:73)
        at org.apache.commons.discovery.jdk.JDK12Hooks.findSystemClassLoader(JDK12Hooks.java:215)
        at org.apache.commons.discovery.jdk.JDK12Hooks.<clinit>(JDK12Hooks.java:73)
        ... 42 more
    
    2006-07-05 19:37:45 StandardContext[/servlets-examples]ContextListener: contextInitialized()
    2006-07-05 19:37:45 StandardContext[/servlets-examples]SessionListener: contextInitialized()
    I ran completely out of clues - so any help is very welcome. Thanks!

    #2
    Re: help [Kubuntu 6.06 + Tomcat5 + Axis 1.4 Final]

    anyone ?

    Comment


      #3
      Re: help [Kubuntu 6.06 + Tomcat5 + Axis 1.4 Final]

      I've tried numerous iterations of solving the same problem and I'm stumped! Seems to allow you to create the directory and add certain .JSP files to the directory but if you try and add everything from the axis-1_4/webapps/axis directory it blows up. I started with a blank directory, which under TOMCAT Manager it seemed to think it was ok and showed as "TRUE" but couldn't load anything, added base components from /webapps/axis one by one and got to the point where it seemed to think about working and eventually would bomb with an error not finding i18nLib.jsp, when I finally added this to the axis directory I ended up with the 404 status error!

      Much help needed, this was working fine prior to J2EE SDK 5!

      Chris

      Comment

      Working...
      X