Lastly , I tried the following way -
created axis2/ directory.
Unzipped axis2-1.3.war under axis2/ It created -
a) axis2.war
b) axis2-web
c) META-INF
d) WEB-INF
Under WEB-INF/ i placed geronimo-web.xml with following content -
1 <?xml version="1.0" encoding="UTF-8"?>
2 <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.2">
3 <environment>
4 <moduleId>
5 <groupId>webservices</groupId>
6 <artifactId>axis2</artifactId>
7 <version>2.0</version>
8 <type>war</type>
9 </moduleId>
10 </environment>
11 <context-root>/axis2</context-root>
12 </web-app
Then issued the following deployment command from <geronimo-install>/bin -
sh ./deploy.sh --user system --password manager deploy
../../axis2/axis2.war ../../axis2/WEB-INF/geronimo-web.xml
It shows the following on console -
Using GERONIMO_BASE: /users/local/geronimo-tomcat
Using GERONIMO_HOME: /users/local/geronimo-tomcat
Using GERONIMO_TMPDIR: var/temp
Using JRE_HOME: /usr/java/default//jre
Deployed webservices/axis2/2.0/war @ /axis2
Deployed org.apache.geronimo.configs/axis/2.0.2/car
Deployed org.apache.geronimo.configs/axis2/2.0.2/car
But on geronimo.log it says -
19:12:51,154 ERROR [WarBasedAxisConfigurator]
org/apache/commons/fileupload/FileUploadException
45 org.apache.axis2.deployment.DeploymentException:
org/apache/commons/fileupload/FileUploadException
46 at
org.apache.axis2.deployment.AxisConfigBuilder.processMessageBuilders(AxisConfigBuilder.java:623)
47 at
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:186)
48 at
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:615)
49 at
org.apache.axis2.deployment.WarBasedAxisConfigurator.<init>(WarBasedAxisConfigurator.java:146)
50 at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:500)
51 at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:420)
52 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1053)
53 at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:955)
54 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4035)
55 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4338)
56 at
org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(GeronimoStandardContext.java:60)
57 at
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:345)
58 at
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
59 at
org.apache.geronimo.tomcat.GeronimoStandardContext.start(GeronimoStandardContext.java:198)
60 at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
61 at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
62 at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
63 at
org.apache.geronimo.tomcat.TomcatContainer.addContext(TomcatContainer.java:355)
64 at
org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.invoke(<generated>)
65 at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
66 at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
67 at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
68 at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
69 at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
70 at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
71 at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
72 at
org.apache.geronimo.tomcat.TomcatContainer$$EnhancerByCGLIB$$c1901b06.addContext(<generated>)
73 at
org.apache.geronimo.tomcat.TomcatWebAppContext.doStart(TomcatWebAppContext.java:533)
74 at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:996)
75 at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:268)
76 at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
77 at
org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:539)
78 at
org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:111)
79 at
org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:146)
80 at
org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:120)
33,5 10%
at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
82 at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
83 at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
84 at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:294)
85 at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
86 at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
87 at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:553)
88 at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
89 at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:448)
90 at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
91 at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:530)
92 at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:511)
93 at
org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)
94 at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
95 at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
96 at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
97 at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:865)
98 at
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
99 at
org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:342)
100 at
org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$1cccefc9.invoke(<generated>)
101 at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
102 at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
103 at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
104 at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:865)
105 at
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
106 at
org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java:168)
107 at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
108 at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
109 at
javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1426)
110 at
javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
111 at
javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1264)
112 at java.security.AccessController.doPrivileged(Native Method)
113 at
javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1366)
114 at
javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
115 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
116 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
117 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
118 at java.lang.reflect.Method.invoke(Method.java:597)
119 at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
120 at sun.rmi.transport.Transport$1.run(Transport.java:159)
121 at java.security.AccessController.doPrivileged(Native Method)
122 at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
123 at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
124 at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
125 at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
126 at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
127 at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
128 at java.lang.Thread.run(Thread.java:619)
129 Caused by: java.lang.NoClassDefFoundError:
org/apache/commons/fileupload/FileUploadException
130 at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
132 at java.lang.Class.getConstructor0(Class.java:2699)
133 at java.lang.Class.newInstance0(Class.java:326)
134 at java.lang.Class.newInstance(Class.java:308)
135 at
org.apache.axis2.deployment.DescriptionBuilder.processMessageBuilders(DescriptionBuilder.java:229)
136 at
org.apache.axis2.deployment.AxisConfigBuilder.processMessageBuilders(AxisConfigBuilder.java:620)
137 ... 82 more
138 19:12:51,159 ERROR [[/axis2]] Servlet /axis2 threw load() exception
139 java.lang.NoClassDefFoundError:
org/apache/commons/fileupload/FileUploadException
140 at java.lang.Class.getDeclaredConstructors0(Native Method)
141 at
java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
142 at java.lang.Class.getConstructor0(Class.java:2699)
143 at java.lang.Class.newInstance0(Class.java:326)
144 at java.lang.Class.newInstance(Class.java:308)
145 at
org.apache.axis2.deployment.DescriptionBuilder.processMessageBuilders(DescriptionBuilder.java:229)
146 at
org.apache.axis2.deployment.AxisConfigBuilder.processMessageBuilders(AxisConfigBuilder.java:620)
147 at
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:186)
148 at
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:615)
149 at
org.apache.axis2.deployment.WarBasedAxisConfigurator.<init>(WarBasedAxisConfigurator.java:146)
150 at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:500)
151 at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:420)
152 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1053)
153 at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:955)
154 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4035)
155 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4338)
156 at
org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(GeronimoStandardContext.java:60)
157 at
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:345)
158 at
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
159 at
org.apache.geronimo.tomcat.GeronimoStandardContext.start(GeronimoStandardContext.java:198)
160 at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
161 at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
162 at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
163 at
org.apache.geronimo.tomcat.TomcatContainer.addContext(TomcatContainer.java:355)
164 at
org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.invoke(<generated>)
165 at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
166 at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
167 at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
168 at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
169 at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
170 at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
171 at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
172 at
org.apache.geronimo.tomcat.TomcatContainer$$EnhancerByCGLIB$$c1901b06.addContext(<generated>)
173 at
org.apache.geronimo.tomcat.TomcatWebAppContext.doStart(TomcatWebAppContext.java:533)
174 at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:996)
175 at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:268)
176 at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
177 at
org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:539)
178 at
org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:111)
179 at
org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:146)
180 at
org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:120)
Can somebody please respond ? Though, this throws CLASS NOT FOUND error , I
am not sure why it does, because WEB-INF/lib has all the jars in it.
--
View this message in context:
http://www.nabble.com/Deployment-error-on-Axis2-war-tf4828793s134.html#a13815727
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.