axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gila Cohen <gi...@pob.huji.ac.il>
Subject Re: Cannot install Axis - Pls. help.
Date Wed, 08 Jun 2005 13:49:44 GMT

well, listen to this. I formatted my PC (not because of the axis problem!), 
reinstalled the same versions of Tomcat + Apache, but used a higher version 
of Java (4.1.2 instead of 4.1.0), and then I installed axis just as before, 
and poof, it works. My main web application is not working yet properly - 
It could be that I'll have the same problem as soon it does. I'll find out 
in a day or two, and I'll keep you posted.

Thanks for the info aout the classpath. Yes, I am aware of this kind of 
classpath problems... being once a young Java developer!

Thanks,
GC

At 03:06 PM 6/6/2005, you wrote:
>I didn't precisely say "global problem with the class path" and I sort of 
>guessed that you would be a Java developer. I was simply bringing your 
>attention to the fact that countless developer-years have been lost due to 
>people dealing with class path problems. Your current problem seems to be 
>such a problem.
>
>By moving JAR files from  C:\Apache\Tomcat4\webapps\axis\WEB-INF\lib 
>to  C:\Apache\Tomcat4\common\lib you should be giving them greater 
>exposure so more things should work. In reality you might get versioning 
>problems between different web applications but not under a simple 
>configuration.
>
>Did you overwrite any JAR files when you moved to JAR files to 
>C:\Apache\Tomcat4\webapps\axis\WEB-INF\lib ?
>
>
>Jeff
>
>
>----- Original Message -----
>From: <mailto:gilac@pob.huji.ac.il>Gila Cohen
>To: <mailto:axis-user@ws.apache.org>axis-user@ws.apache.org
>Sent: Monday, June 06, 2005 5:54 AM
>Subject: Re: Cannot install Axis - Pls. help.
>
>
>Jeff,
>
>Thanks for your reply. What do you mean by saying there is a global 
>problem with the class path? I am a java programmer, can you please give 
>me some more information? looks like I have to know this stuff....
>I tried your advice - and it got worse: now I cannot run any other web 
>application! Could that be the logging jars from axis are disturbing the 
>logging jars of my existing applications?
>
>Here is what I get when I try to open an existing web app:
>
>
>
>Bad Gateway
>
>
>
>The proxy server received an invalid response from an upstream server.
>
>----------
>Apache/2.0.48 (Win32) mod_jk2/2.0.4 Server at gulistan.bot.huji.ac.il Port 80
>
>And in the error log of tomcat:
>
>
>Created catalinaLoader in: C:\Apache\Tomcat4\server\lib
>java.lang.reflect.InvocationTargetException
>         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:324)
>         at 
> org.apache.catalina.startup.BootstrapService.init(BootstrapService.java:231)
>         at 
> org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:297)
>Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Layout
>         at 
> org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory.java:153)
>         at 
> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:285)
>         at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409)
>         at org.apache.commons.digester.Digester.<init>(Digester.java:346)
>         at 
> org.apache.catalina.startup.Catalina.createStartDigester(Catalina.java:280)
>         at 
> org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:183)
>         at 
> org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:258)
>         ... 6 more
>
>
>That is - nothing else in the logs....
>
>Thanks again for your help,
>GC
>
>
>
>At 20:28 05/06/2005, you wrote:
>
>>Java is broken! The fact of the matter is that the one and only show-stopper
>>problem with Java can be summed up in one term: 'class path'. It's something
>>that some Java developers pretend doesn't exist and novices think they have
>>licked...until they start to write more code! Unfortunately, the Sun folks
>>think that trivia like for-each is more important than fixing the class path
>>problem. Admittedly, it is a big problem and I suspect that the solution is
>>going to come from someone outside of Sun setting aside a good deal of time
>>to figure it out but until that happens, we will have to put up with this
>>sort of insane solution...
>>
>>Stop Tomcat. Move  log4j-1.2.8.jar  to  <Tomcat>/common/lib  Start Tomcat
>>and test. If you still have a problem, then repeat for commons-discovery.jar
>>and commons-logging.jar, together. If you still have a problem, then repeat
>>for other JARs in  <Tomcat>/webapps/axis/WEB-INF/lib
>>
>>
>>Jeff
>>
>>
>>----- Original Message -----
>>From: "Gila Cohen" <gilac@pob.huji.ac.il>
>>To: <axis-user@ws.apache.org>
>>Sent: Sunday, June 05, 2005 7:02 AM
>>Subject: Re: Cannot install Axis - Pls. help.
>>
>>
>> >
>> >
>> > Hi,
>> >
>> > OK, I am sending the directory structure, and as you can see, it has all
>> > the files. I tried to install axis on another machine just the way I do it
>> > on my machine, and it works there! I am trying to find what is the
>> > difference between the 2 machines. Following some of the emails in the
>> > site, I thought the mcaffe antivirus might be disturbing - so I
>> > un-installed on the failing machine it and tried to validate the axis
>> > installation without it - with no success.
>> > Other reasons I can think of:
>> > 1) different versions of Java:  on the successful machine I have java 1.5
>> > installed, including java web service developer pack 1.5. On the failing
>> > machine I have java 1.4.0
>> > 2) some other sw is disturbing.
>> >
>> > well, these options are more difficult to check... but I'll get to them in
>> > a while.
>> >
>> > BTW, I get an error while I start tomcat - I am also sending the error
>>from
>> > tomcat's log.
>> >
>> > Many thanks,
>> > GC
>> >
>> > Directory of C:\Apache\Tomcat4\webapps\axis\WEB-INF\lib
>> > ============================================
>> >
>> > 06/05/2005  01:49p      <DIR>          .
>> > 06/05/2005  01:49p      <DIR>          ..
>> > 05/07/2005  09:14p              55,147 activation.jar
>> > 06/13/2003  10:28a             385,010 axis-ant.jar
>> > 06/13/2003  10:28a           1,235,721 axis.jar
>> > 06/13/2003  10:28a              71,442 commons-discovery.jar
>> > 06/13/2003  10:28a              31,605 commons-logging.jar
>> > 06/05/2005  01:49p                   0 dir.txt
>> > 06/13/2003  10:28a              35,759 jaxrpc.jar
>> > 06/13/2003  10:28a             352,668 log4j-1.2.8.jar
>> > 06/13/2003  10:28a              18,501 saaj.jar
>> > 06/13/2003  10:28a             113,853 wsdl4j.jar
>> >                10 File(s)      2,299,706 bytes
>> >                 2 Dir(s)  16,764,686,336 bytes free
>> >
>> >
>> > Error from tomcat log:
>> > =================
>> >
>> >
>> > 2005-06-05 08:58:07 WebappLoader[/axis]: Deploying class repositories to
>> > work directory C:\Apache\Tomcat4\work\Standalone\localhost\axis
>> > 2005-06-05 08:58:07 WebappLoader[/axis]: Deploy class files
>> > /WEB-INF/classes to C:\Apache\Tomcat4\webapps\axis\WEB-INF\classes
>> > 2005-06-05 08:58:07 WebappLoader[/axis]: Deploy JAR
>> > /WEB-INF/lib/activation.jar to
>> > C:\Apache\Tomcat4\webapps\axis\WEB-INF\lib\activation.jar
>> > 2005-06-05 08:58:07 WebappLoader[/axis]: Deploy JAR
>> > /WEB-INF/lib/axis-ant.jar to
>> > C:\Apache\Tomcat4\webapps\axis\WEB-INF\lib\axis-ant.jar
>> > 2005-06-05 08:58:08 WebappLoader[/axis]: Deploy JAR /WEB-INF/lib/axis.jar
>> > to C:\Apache\Tomcat4\webapps\axis\WEB-INF\lib\axis.jar
>> > 2005-06-05 08:58:11 WebappLoader[/axis]: Deploy JAR
>> > /WEB-INF/lib/commons-discovery.jar to
>> > C:\Apache\Tomcat4\webapps\axis\WEB-INF\lib\commons-discovery.jar
>> > 2005-06-05 08:58:11 WebappLoader[/axis]: Deploy JAR
>> > /WEB-INF/lib/commons-logging.jar to
>> > C:\Apache\Tomcat4\webapps\axis\WEB-INF\lib\commons-logging.jar
>> > 2005-06-05 08:58:11 WebappLoader[/axis]: Deploy JAR
>>/WEB-INF/lib/jaxrpc.jar
>> > to C:\Apache\Tomcat4\webapps\axis\WEB-INF\lib\jaxrpc.jar
>> > 2005-06-05 08:58:11 WebappLoader[/axis]: Deploy JAR
>> > /WEB-INF/lib/log4j-1.2.8.jar to
>> > C:\Apache\Tomcat4\webapps\axis\WEB-INF\lib\log4j-1.2.8.jar
>> > 2005-06-05 08:58:12 WebappLoader[/axis]: Deploy JAR /WEB-INF/lib/saaj.jar
>> > to C:\Apache\Tomcat4\webapps\axis\WEB-INF\lib\saaj.jar
>> > 2005-06-05 08:58:13 WebappLoader[/axis]: Deploy JAR
>>/WEB-INF/lib/wsdl4j.jar
>> > to C:\Apache\Tomcat4\webapps\axis\WEB-INF\lib\wsdl4j.jar
>> > 2005-06-05 08:58:13 WebappLoader[/axis]: Reloading checks are enabled for
>> > this Context
>> > 2005-06-05 08:58:19 StandardManager[/axis]: Seeding random number
>>generator
>> > class java.security.SecureRandom
>> > 2005-06-05 08:58:19 StandardManager[/axis]: Seeding of random number
>> > generator has been completed
>> > 2005-06-05 08:58:19 StandardWrapper[/axis:default]: Loading container
>> > servlet default
>> > 2005-06-05 08:58:19 StandardWrapper[/axis:invoker]: Loading container
>> > servlet invoker
>> > 2005-06-05 08:58:20 StandardWrapper[/axis:AdminServlet]: Marking servlet
>> > AdminServlet as unavailable
>> > 2005-06-05 08:58:20 StandardContext[/axis]: Servlet /axis threw load()
>> > exception
>> > javax.servlet.ServletException: Error instantiating servlet class
>> > org.apache.axis.transport.http.AdminServlet
>> > at
>> >
>>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
>>2)
>> > at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
>> > at
>> >
>>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
>>3427)
>> > at
>>org.apache.catalina.core.StandardContext.start(StandardContext.java:3628)
>> > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>> > at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
>> > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>> > at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
>> > at
>>org.apache.catalina.core.StandardService.start(StandardService.java:497)
>> > at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
>> > at
>>org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
>> > 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:324)
>> > at
>> >
>>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245
>>)
>> > at
>> >
>>org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
>> > ----- Root Cause -----
>> > java.lang.NoClassDefFoundError: org/apache/log4j/Layout
>> > at
>> >
>>org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory.java:1
>>53)
>> > at
>> >
>>org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
>>va:285)
>> > at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409)
>> > at org.apache.axis.components.logger.LogFactory.getLog(LogFactory.java:76)
>> > at
>>org.apache.axis.transport.http.AxisServlet.<clinit>(AxisServlet.java:103)
>> > at java.lang.Class.forName0(Native Method)
>> > at java.lang.Class.forName(Class.java:130)
>> > at
>> >
>>org.apache.axis.transport.http.AxisServletBase.class$(AxisServletBase.java:9
>>5)
>> > at
>> >
>>org.apache.axis.transport.http.AxisServletBase.<clinit>(AxisServletBase.java
>>:94)
>> > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>> > at
>> >
>>sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
>>sorImpl.java:39)
>> > at
>> >
>>sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
>>torAccessorImpl.java:27)
>> > at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
>> > at java.lang.Class.newInstance0(Class.java:296)
>> > at java.lang.Class.newInstance(Class.java:249)
>> > at
>> >
>>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:90
>>3)
>> > at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
>> > at
>> >
>>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
>>3427)
>> > at
>>org.apache.catalina.core.StandardContext.start(StandardContext.java:3628)
>> > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>> > at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
>> > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>> > at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
>> > at
>>org.apache.catalina.core.StandardService.start(StandardService.java:497)
>> > at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
>> > at
>>org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
>> > 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:324)
>> > at
>> >
>>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245
>>)
>> > at
>> >
>>org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
>> >
>> >
>> >
>> >


Mime
View raw message