Re: FW: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Pid
On 17/11/2010 20:56, Brian wrote:
 I will have to swallow my pride with this question. I bet this is a very
 easy issue, but for some reason I haven't found an answer.
 I moved my JARs from the .../tomcat/shared/lib directory to the
 web-inf/lib directory in the app itself, but it seems that the JARs there
 are not being discovered by Tomcat. This is what the log says:

WEB-INF/lib or web-inf/lib?

 Nov 17, 2010 3:46:56 PM org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 730 ms
 Nov 17, 2010 3:46:56 PM org.apache.catalina.core.StandardService start
 INFO: Starting service Catalina
 Nov 17, 2010 3:46:56 PM org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
 Nov 17, 2010 3:46:56 PM org.apache.catalina.startup.HostConfig deployWAR
 INFO: Deploying web application archive ROOT.war
 Nov 17, 2010 3:46:56 PM org.apache.catalina.core.ApplicationContext log
 INFO: Marking servlet action as unavailable
 Nov 17, 2010 3:46:56 PM org.apache.catalina.core.ApplicationContext log
 SEVERE: Error loading WebappClassLoader
   context: 
   delegate: false
   repositories:
 /WEB-INF/classes/

A war is a zip.  You can open it using a zip util, or the jar command,
to check that the files are actually where you think they are.

E.g. jar -tf ROOT.war


p
 -- Parent Classloader:
 org.apache.catalina.loader.standardclassloa...@2eb0a3f5
  org.apache.struts.action.ActionServlet
 java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet
   at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
 a:1645)
   at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
 a:1491)
   at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:10
 95)
   at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
   at
 org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
 4350)
   at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4659)
   at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
 91)
   at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
   at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
   at
 org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
   at
 org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
   at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
   at
 org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
   at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
   at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
 t.java:119)
   at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
   at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
   at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
   at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
   at
 org.apache.catalina.core.StandardService.start(StandardService.java:519)
   at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
   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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
 Nov 17, 2010 3:46:56 PM org.apache.catalina.core.StandardContext
 loadOnStartup
 SEVERE: Servlet  threw load() exception
 java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet
   at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
 a:1645)
   at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
 a:1491)
   at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:10
 95)
   at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
   at
 org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
 4350)
   at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4659)
   at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
 91)
   at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
   at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
   at
 org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
   at
 

RE: FW: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Brian
 -Original Message-
 From: Pid [mailto:p...@pidster.com]
 Sent: Wednesday, November 17, 2010 04:02 PM
 To: Tomcat Users List
 Subject: Re: FW: After manager says that there was a leak, how to use a
 profiler?
 
 On 17/11/2010 20:56, Brian wrote:
  I will have to swallow my pride with this question. I bet this is a
  very easy issue, but for some reason I haven't found an answer.
  I moved my JARs from the .../tomcat/shared/lib directory to the
  web-inf/lib directory in the app itself, but it seems that the JARs
  there are not being discovered by Tomcat. This is what the log says:
 
 WEB-INF/lib or web-inf/lib?

The first one, I made a mistake when typing the email.

 
  Nov 17, 2010 3:46:56 PM org.apache.catalina.startup.Catalina load
  INFO: Initialization processed in 730 ms Nov 17, 2010 3:46:56 PM
  org.apache.catalina.core.StandardService start
  INFO: Starting service Catalina
  Nov 17, 2010 3:46:56 PM org.apache.catalina.core.StandardEngine start
  INFO: Starting Servlet Engine: Apache Tomcat/6.0.29 Nov 17, 2010
  3:46:56 PM org.apache.catalina.startup.HostConfig deployWAR
  INFO: Deploying web application archive ROOT.war Nov 17, 2010 3:46:56
  PM org.apache.catalina.core.ApplicationContext log
  INFO: Marking servlet action as unavailable Nov 17, 2010 3:46:56 PM
  org.apache.catalina.core.ApplicationContext log
  SEVERE: Error loading WebappClassLoader
context:
delegate: false
repositories:
  /WEB-INF/classes/
 
 A war is a zip.  You can open it using a zip util, or the jar command, to
check
 that the files are actually where you think they are.
 
 E.g. jar -tf ROOT.war

I did. All the files are where they should be, even the JAR files that are
in WEB-INF/lib. The file expands correctly and all the files are being
placed where they should be.
It seems that the JARs inside ...WEB-INF/lib are not being discovered or
used.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: FW: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Caldarale, Charles R
 From: Brian [mailto:bbprefix-m...@yahoo.com] 
 Subject: RE: FW: After manager says that there was a leak, how to use a 
 profiler?

 It seems that the JARs inside ...WEB-INF/lib are not 
 being discovered or used.

Hence the request to see your catalina.properties - which looks fine.  What's 
in the Context elements for your webapps?  If you're using anything other 
than the default (and implicit) Loader, that might affect how class searching 
is done.  Also, if you have anything in the system classpath at Tomcat startup, 
that might also impact proceedings.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: FW: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Brian


 -Original Message-
 From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
 Sent: Wednesday, November 17, 2010 06:46 PM
 To: Tomcat Users List
 Subject: RE: FW: After manager says that there was a leak, how to use a
 profiler?
 
  From: Brian [mailto:bbprefix-m...@yahoo.com]
  Subject: RE: FW: After manager says that there was a leak, how to use a
 profiler?
 
  It seems that the JARs inside ...WEB-INF/lib are not being
  discovered or used.
 
 Hence the request to see your catalina.properties - which looks fine.
What's
 in the Context elements for your webapps?  If you're using anything
other
 than the default (and implicit) Loader, that might affect how class
searching
 is done.  Also, if you have anything in the system classpath at Tomcat
startup,
 that might also impact proceedings.
 

Inside the Context there is nothing non-standard. Nothing about the loader
indeed. 
It doesn't work either in the Tomcat installation at my production server,
or the Tomcat local installation that my Eclipse uses when running the app.

One interesting thing is happening though. Now it is showing the error
messages in the log when I run it on Eclipse, but then IT WORKS!

This is the context that Eclipse generated for the app, that shows all the
error messages in the log:

  ?xml version=1.0 encoding=UTF-8 ? 
  Context docBase=C:\Tomcat\webapps\VistaControlador reloadable=true
source=org.eclipse.jst.jee.server:VistaControlador /



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: FW: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Brian
I have notices several weird things:

- Sometimes it runs, sometimes it doesn't
- When I'm in Eclipse, if I already started the Tomcat server and it is
running, if I ask to run it again, it does without any error messages in the
log

It looks like if it was a syncronization issue. Something like these: If
nothing is running, it will wait when I ask it to start. But of something is
already running, maybe it will run. And if it did run before at least once,
maybe it will run next time I ask it. Makes sense?




 -Original Message-
 From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
 Sent: Wednesday, November 17, 2010 06:46 PM
 To: Tomcat Users List
 Subject: RE: FW: After manager says that there was a leak, how to use a
 profiler?
 
  From: Brian [mailto:bbprefix-m...@yahoo.com]
  Subject: RE: FW: After manager says that there was a leak, how to use a
 profiler?
 
  It seems that the JARs inside ...WEB-INF/lib are not being
  discovered or used.
 
 Hence the request to see your catalina.properties - which looks fine.
What's
 in the Context elements for your webapps?  If you're using anything
other
 than the default (and implicit) Loader, that might affect how class
searching
 is done.  Also, if you have anything in the system classpath at Tomcat
startup,
 that might also impact proceedings.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
 PROPRIETARY MATERIAL and is thus for use only by the intended recipient.
If
 you received this in error, please contact the sender and delete the
e-mail and
 its attachments from all computers.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: FW: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Brian
Solved: I had several contexts in my server, in each one was already a WAR
created days ago. I forgot about all these old WARs. Since I took off my
JARs from the shared/lib directory, all these old WARs could not work
because they didn't include the JARs inside. So basically I was trying to
run the new WAR and it worked, but I was still watching in the log the
output of the old WARs trying to deploy and work, but failing.

 -Original Message-
 From: Brian [mailto:bbprefix-m...@yahoo.com]
 Sent: Wednesday, November 17, 2010 11:35 PM
 To: 'Tomcat Users List'
 Subject: RE: FW: After manager says that there was a leak, how to use a
 profiler?
 
 I have notices several weird things:
 
 - Sometimes it runs, sometimes it doesn't
 - When I'm in Eclipse, if I already started the Tomcat server and it is
running, if
 I ask to run it again, it does without any error messages in the log
 
 It looks like if it was a syncronization issue. Something like these: If
nothing is
 running, it will wait when I ask it to start. But of something is already
running,
 maybe it will run. And if it did run before at least once, maybe it will
run next
 time I ask it. Makes sense?
 
 
 
 
  -Original Message-
  From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
  Sent: Wednesday, November 17, 2010 06:46 PM
  To: Tomcat Users List
  Subject: RE: FW: After manager says that there was a leak, how to use
  a profiler?
 
   From: Brian [mailto:bbprefix-m...@yahoo.com]
   Subject: RE: FW: After manager says that there was a leak, how to
   use a
  profiler?
 
   It seems that the JARs inside ...WEB-INF/lib are not being
   discovered or used.
 
  Hence the request to see your catalina.properties - which looks fine.
 What's
  in the Context elements for your webapps?  If you're using anything
 other
  than the default (and implicit) Loader, that might affect how class
 searching
  is done.  Also, if you have anything in the system classpath at Tomcat
 startup,
  that might also impact proceedings.
 
   - Chuck
 
 
  THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
  PROPRIETARY MATERIAL and is thus for use only by the intended recipient.
 If
  you received this in error, please contact the sender and delete the
 e-mail and
  its attachments from all computers.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org