dev@grizzly.java.net

Re: axis deployment

From: Survivant 00 <survivant00_at_gmail.com>
Date: Thu, 4 Jun 2009 20:19:09 -0400

I been able to reproduce the problem with this testcase

GrizzlyWebServerDeployer deployer = new GrizzlyWebServerDeployer();

        String args[] = new String[]{
                "-a",

"C:/sources/grizzly/code/modules/http-servlet-deployer/demo",

"--libraryPath=C:/sources/grizzly/code/modules/http-servlet-deployer/lib_autodeploy",
                "-p",
                ""+PORT,
                };

        deployer.init(args);
        deployer.launch();



I unzip the file axis.war to demo. the war file containts :
/axis/axis/WEB-INF...

I move it to /axis/WEB-INF ...

When I launch it.. I got this classpath

[jar:file:/C:/sources/grizzly/code/modules/http-servlet-deployer/demo/axis/WEB-INF/lib/axis-ant.jar!/,
jar:file:/C:/sources/grizzly/code/modules/http-servlet-deployer/demo/axis/WEB-INF/lib/axis.jar!/,
jar:file:/C:/sources/grizzly/code/modules/http-servlet-deployer/demo/axis/WEB-INF/lib/commons-discovery-0.2.jar!/,
jar:file:/C:/sources/grizzly/code/modules/http-servlet-deployer/demo/axis/WEB-INF/lib/commons-logging-1.0.4.jar!/,
jar:file:/C:/sources/grizzly/code/modules/http-servlet-deployer/demo/axis/WEB-INF/lib/jaxrpc.jar!/,
jar:file:/C:/sources/grizzly/code/modules/http-servlet-deployer/demo/axis/WEB-INF/lib/log4j-1.2.8.jar!/,
jar:file:/C:/sources/grizzly/code/modules/http-servlet-deployer/demo/axis/WEB-INF/lib/saaj.jar!/,
jar:file:/C:/sources/grizzly/code/modules/http-servlet-deployer/demo/axis/WEB-INF/lib/wsdl4j-1.5.1.jar!/,
jar:file:/C:/sources/grizzly/code/modules/http-servlet-deployer/lib_autodeploy/ant-1.6.5.jar!/,
jar:file:/C:/sources/grizzly/code/modules/http-servlet-deployer/lib_autodeploy/core-3.1.1.jar!/,
jar:file:/C:/sources/grizzly/code/modules/http-servlet-deployer/lib_autodeploy/javamail-141.jar!/,
jar:file:/C:/sources/grizzly/code/modules/http-servlet-deployer/lib_autodeploy/jetty-6.0.1.jar!/,
jar:file:/C:/sources/grizzly/code/modules/http-servlet-deployer/lib_autodeploy/jetty-util-6.0.1.jar!/,
jar:file:/C:/sources/grizzly/code/modules/http-servlet-deployer/lib_autodeploy/jsp-2.1.jar!/,
jar:file:/C:/sources/grizzly/code/modules/http-servlet-deployer/lib_autodeploy/jsp-api-2.1.jar!/,
jar:file:/C:/sources/grizzly/code/modules/http-servlet-deployer/lib_autodeploy/myservlet.jar!/,
jar:file:/C:/sources/grizzly/code/modules/http-servlet-deployer/lib_autodeploy/quercus.jar!/,
jar:file:/C:/sources/grizzly/code/modules/http-servlet-deployer/lib_autodeploy/resin-util.jar!/,
jar:file:/C:/sources/grizzly/code/modules/http-servlet-deployer/lib_autodeploy/servlet-api-2.5-6.0.1.jar!/,
file:/C:/sources/grizzly/code/modules/http-servlet-deployer/demo/axis/,
file:/C:/sources/grizzly/code/modules/http-servlet-deployer/demo/axis/WEB-INF/classes/]

ClassLoader urlClassloader = new URLClassLoader(classpathList.toArray(urls),
Thread.currentThread().getContextClassLoader());
        Thread.currentThread().setContextClassLoader(urlClassloader);


I'll investigate what is wrong




I got these nice errors

2009-06-04 20:13:28
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer deploy
INFO: Will deploy application
path=C:\sources\grizzly\code\modules\http-servlet-deployer\demo\axis\WEB-INF\web.xml
2009-06-04 20:13:30 com.sun.grizzly.util.ClassLoaderUtil load
GRAVE: Unable to load class
        org.apache.axis.transport.http.AxisServlet

java.lang.ClassNotFoundException:
        org.apache.axis.transport.http.AxisServlet

    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at com.sun.grizzly.util.ClassLoaderUtil.load(ClassLoaderUtil.java:166)
    at com.sun.grizzly.util.ClassLoaderUtil.load(ClassLoaderUtil.java:154)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.setServlet(GrizzlyWebServerDeployer.java:762)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.getServletAdapterList(GrizzlyWebServerDeployer.java:459)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.deploy(GrizzlyWebServerDeployer.java:484)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.deployExpandedWar(GrizzlyWebServerDeployer.java:139)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.deployApplication(GrizzlyWebServerDeployer.java:298)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.deployApplications(GrizzlyWebServerDeployer.java:236)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.launch(GrizzlyWebServerDeployer.java:973)
    at com.sun.grizzly.http.AxisTest.axisTest(AxisTest.java:23)
    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:597)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
    at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
2009-06-04 20:13:30 com.sun.grizzly.util.ClassLoaderUtil load
GRAVE: Unable to load class
        org.apache.axis.transport.http.AxisServlet

java.lang.ClassNotFoundException:
        org.apache.axis.transport.http.AxisServlet

    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at com.sun.grizzly.util.ClassLoaderUtil.load(ClassLoaderUtil.java:166)
    at com.sun.grizzly.util.ClassLoaderUtil.load(ClassLoaderUtil.java:154)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.setServlet(GrizzlyWebServerDeployer.java:762)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.getServletAdapterList(GrizzlyWebServerDeployer.java:459)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.deploy(GrizzlyWebServerDeployer.java:484)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.deployExpandedWar(GrizzlyWebServerDeployer.java:139)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.deployApplication(GrizzlyWebServerDeployer.java:298)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.deployApplications(GrizzlyWebServerDeployer.java:236)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.launch(GrizzlyWebServerDeployer.java:973)
    at com.sun.grizzly.http.AxisTest.axisTest(AxisTest.java:23)
    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:597)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
    at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
2009-06-04 20:13:30 com.sun.grizzly.util.ClassLoaderUtil load
GRAVE: Unable to load class
        org.apache.axis.transport.http.AxisServlet

java.lang.ClassNotFoundException:
        org.apache.axis.transport.http.AxisServlet

    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at com.sun.grizzly.util.ClassLoaderUtil.load(ClassLoaderUtil.java:166)
    at com.sun.grizzly.util.ClassLoaderUtil.load(ClassLoaderUtil.java:154)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.setServlet(GrizzlyWebServerDeployer.java:762)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.getServletAdapterList(GrizzlyWebServerDeployer.java:459)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.deploy(GrizzlyWebServerDeployer.java:484)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.deployExpandedWar(GrizzlyWebServerDeployer.java:139)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.deployApplication(GrizzlyWebServerDeployer.java:298)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.deployApplications(GrizzlyWebServerDeployer.java:236)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.launch(GrizzlyWebServerDeployer.java:973)
    at com.sun.grizzly.http.AxisTest.axisTest(AxisTest.java:23)
    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:597)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
    at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
2009-06-04 20:13:30 com.sun.grizzly.util.ClassLoaderUtil load
GRAVE: Unable to load class
        org.apache.axis.monitor.SOAPMonitorService

java.lang.ClassNotFoundException:
        org.apache.axis.monitor.SOAPMonitorService

    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at com.sun.grizzly.util.ClassLoaderUtil.load(ClassLoaderUtil.java:166)
    at com.sun.grizzly.util.ClassLoaderUtil.load(ClassLoaderUtil.java:154)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.setServlet(GrizzlyWebServerDeployer.java:762)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.getServletAdapterList(GrizzlyWebServerDeployer.java:459)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.deploy(GrizzlyWebServerDeployer.java:484)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.deployExpandedWar(GrizzlyWebServerDeployer.java:139)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.deployApplication(GrizzlyWebServerDeployer.java:298)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.deployApplications(GrizzlyWebServerDeployer.java:236)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.launch(GrizzlyWebServerDeployer.java:973)
    at com.sun.grizzly.http.AxisTest.axisTest(AxisTest.java:23)
    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:597)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
    at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
java.lang.IllegalArgumentException: Unable to load listener class:
org.apache.axis.transport.http.AxisHTTPSessionListener - class must
implement javax.servlet.ServletContextListener or
javax.servlet.ServletContextAttributeListener
    at
com.sun.grizzly.http.servlet.ServletAdapter.addServletListener(ServletAdapter.java:619)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.setListeners(GrizzlyWebServerDeployer.java:785)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.deploy(GrizzlyWebServerDeployer.java:492)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.deployExpandedWar(GrizzlyWebServerDeployer.java:139)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.deployApplication(GrizzlyWebServerDeployer.java:298)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.deployApplications(GrizzlyWebServerDeployer.java:236)
    at
com.sun.grizzly.http.servlet.deployer.GrizzlyWebServerDeployer.launch(GrizzlyWebServerDeployer.java:973)
    at com.sun.grizzly.http.AxisTest.axisTest(AxisTest.java:23)
    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:597)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
    at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)



2009/6/4 Survivant 00 <survivant00_at_gmail.com>

> I,ll check a look, but first the webapp contains JSP. the current release
> of Deployer doesn't handle JSP. (Will be released in 1.9.17)
>
> let me check if I can release a quick release for you tonight.
>
>
> 2009/6/4 Konstantinos Koutsopoulos <kkoutso_at_telecom.ntua.gr>
>
>>
>> Hello,
>>
>> this is the war archive I am trying to deploy, it is just the webapps
>> directory that is normally copied into Tomcat according to axis1.4
>> installation instructions.
>> I have used grizzly-servlet-deployer-1.9.15a.jar.
>>
>> Best Regards,
>>
>> Kostas
>>
>> In reply to:
>>
>> thanks Kostas for the feedback. Can you send your war file to the
>> mailing-list : dev_at_grizzly.dev.java.net ? We will be able to debug it.
>> can you try with the latest snapshot ? (we fix issues releated to http
>> module) Or contact me at Twitter : @survivant
>>
>> Posted by: survivant on June 04, 2009 at 06:16 AM
>>
>> -
>> I have tried to deploy the axis web.xml, the same that is used for
>> Tomcat. However, although I tried using either Maven or from command line
>> using the snapshot jar and supplying classpath, I always get
>> java.lang.ClassNotFoundException: org.apache.axis.transport.http.AxisServlet
>> and some more but I think this is the main. Any ideas? Regards, Kostas
>>
>> Posted by: kkoutso on June 04, 2009 at 06:05 AM
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
>> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net
>>
>
>