You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by pratima gogineni <go...@yahoo.com> on 2001/02/13 01:27:05 UTC
struts:example
Hi,
I just moved from 0.5 to 1.0 (last nights build). I had the example application working properly with 0.5.
When I moved to 1.0, after the login page - I get the following error (Note: I DONT have struts.jar in my JRUN classpath, only under web-info)
Also I am not using the war file as is - but extracted the war file into a directory
Does anyone know why this happens?
Pratima
java.lang.ClassNotFoundException: org.apache.struts.example.User
at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code)
at java.lang.Exception.<init>(Exception.java, Compiled Code)
at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java, Compiled Code)
at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java, Compiled Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java, Compiled Code)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:124)
at org.apache.struts.digester.ObjectCreateRule.begin(ObjectCreateRule.java:152)
at org.apache.struts.digester.Digester.startElement(Digester.java, Compiled Code)
at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391)
at com.sun.xml.parser.Parser.content(Parser.java:1499)
at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
at com.sun.xml.parser.Parser.parse(Parser.java:284)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:77)
at org.apache.struts.digester.Digester.parse(Digester.java:748)
at org.apache.struts.example.DatabaseServlet.load(DatabaseServlet.java:282)
at org.apache.struts.example.DatabaseServlet.init(DatabaseServlet.java:175)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java, Compiled Code)
at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java:190)
at allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:177)
at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1261)
at allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java, Compiled Code)
at allaire.jrun.servlet.JRunSE.init(JRunSE.java, Compiled Code)
at allaire.jrun.ServletService.init(ServletService.java, Compiled Code)
at allaire.jrun.ServletService.init(ServletService.java, Compiled Code)
at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java, Compiled Code)
at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java, Compiled Code)
at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96)
at allaire.jrun.servlet.JRunSE.init(JRunSE.java, Compiled Code)
at allaire.jrun.servlet.JvmContext.init(JvmContext.java:35)
at allaire.jrun.ServletService.init(ServletService.java, Compiled Code)
at allaire.jrun.ServletService.init(ServletService.java, Compiled Code)
at JRun.main(JRun.java, Compiled Code)
---------------------------------
Do You Yahoo!?
- Get personalized email addresses from Yahoo! Mail Personal Address - only $35 a year!
Re: [OT] Web-initiated restarts for Tomcat 3.2.1?
Posted by Maya Muchnik <mm...@pumatech.com>.
I know, that sometime you can have a problem because after Tomcat (3.1)
was stopped, you need to remove compiled versions of JSP files under
tomcat/dist/tomcat/work directory. This is needed if you change JSP.
Very good idea with admin/reload.do to catch config changes. Can you share
some details? Maybe this is good idea for Tomcat project itself.
Nathan Eric Probst wrote:
> Hello,
>
> I'm attempting to setup a shared development server to use with a
> distributed developement team. (All two of us!)
>
> I want to allow my partner, who is doing the page design, graphics, and
> JSP to "bounce" Tomcat remotely WITHOUT giving him an account on my
> machine.
>
> I've already written a simple buildServlet that updates the local copy
> of our CVS project and builds it to the context directory
> (webapps/our_project/). I've added the admin/reload.do Action to catch
> config changes. I've set the reloadable='true' in server.xml for the
> Context. Now I need to provide the ability to "bounce" Tomcat, just in
> case it reloads funny.
>
> Does anyone know of a reliable way to do this?
>
> I've written a simple bounceServlet that uses Runtime.exec() to call a
> bounce.sh script (I'm running Linux) that does a 'tomcat -stop' and
> 'tomcat -start'. The problem is that it work *sometimes*. There is a
> race between the call to 'tomcat -stop' and 'tomcat -start'. At least,
> that's my explaination.
>
> So, does anyone have a better solution?
>
> Nathan
Re: [OT] Web-initiated restarts for Tomcat 3.2.1?
Posted by Jens Rehpöhler <je...@rehpoehler.de>.
Hello Nathan,
> I want to allow my partner, who is doing the page design, graphics, and
> JSP to "bounce" Tomcat remotely WITHOUT giving him an account on my
> machine.
>
> I've already written a simple buildServlet that updates the local copy
> of our CVS project and builds it to the context directory
> (webapps/our_project/). I've added the admin/reload.do Action to catch
> config changes. I've set the reloadable='true' in server.xml for the
> Context. Now I need to provide the ability to "bounce" Tomcat, just in
> case it reloads funny.
>
> Does anyone know of a reliable way to do this?
Here's a possible solution that worked with Tomcat 3.1:
If you made major changes in your web app you sometimes have to "restart" the
servlet context. In the Tomcat web administration ( /admin/contextAdmin ) it is
possible to remove a servlet context and to add new servlet contexts. If your
application is the only one that runs on the Tomcat server the easiest way would
be to give your designer a login and he can remove and add your servlet context
again (this has no effect on your server.xml). If there are other applications
on your server, I would suggest to write your on servlet-context-restart-servlet
(should be very easy by looking at the sources from the admin web app of
Tomcat).
Jens
[OT] Web-initiated restarts for Tomcat 3.2.1?
Posted by Nathan Eric Probst <pr...@pond.net>.
Hello,
I'm attempting to setup a shared development server to use with a
distributed developement team. (All two of us!)
I want to allow my partner, who is doing the page design, graphics, and
JSP to "bounce" Tomcat remotely WITHOUT giving him an account on my
machine.
I've already written a simple buildServlet that updates the local copy
of our CVS project and builds it to the context directory
(webapps/our_project/). I've added the admin/reload.do Action to catch
config changes. I've set the reloadable='true' in server.xml for the
Context. Now I need to provide the ability to "bounce" Tomcat, just in
case it reloads funny.
Does anyone know of a reliable way to do this?
I've written a simple bounceServlet that uses Runtime.exec() to call a
bounce.sh script (I'm running Linux) that does a 'tomcat -stop' and
'tomcat -start'. The problem is that it work *sometimes*. There is a
race between the call to 'tomcat -stop' and 'tomcat -start'. At least,
that's my explaination.
So, does anyone have a better solution?
Nathan
RE: struts:example
Posted by Sundar Shanmugasundaram <ss...@selectica.com>.
Hi,
I also have the same problem.
sundar.
-----Original Message-----
From: pratima gogineni [mailto:goginenip@yahoo.com]
Sent: Tuesday, February 13, 2001 5:57 AM
To: struts-user@jakarta.apache.org
Subject: struts:example
Hi,
I just moved from 0.5 to 1.0 (last nights build). I had the example
application working properly with 0.5.
When I moved to 1.0, after the login page - I get the following error
(Note: I DONT have struts.jar in my JRUN classpath, only under web-info)
Also I am not using the war file as is - but extracted the war file into a
directory
Does anyone know why this happens?
Pratima
java.lang.ClassNotFoundException: org.apache.struts.example.User
at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code)
at java.lang.Exception.<init>(Exception.java, Compiled Code)
at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java,
Compiled Code)
at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java, Compiled
Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java, Compiled
Code)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:124)
! ;at
org.apache.struts.digester.ObjectCreateRule.begin(ObjectCreateRule.java:152)
at org.apache.struts.digester.Digester.startElement(Digester.java,
Compiled Code)
at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391)
at com.sun.xml.parser.Parser.content(Parser.java:1499)
at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
at com.sun.xml.parser.Parser.parse(Parser.java:284)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:77)
at org.apache.struts.digester.Digester.parse(Digester.java:748)
at
org.apache.struts.example.DatabaseServlet.load(DatabaseServlet.java:282)
at
org.apache.struts.example.DatabaseServlet.init(DatabaseServlet.java:175)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at allaire.jrun.servlet.JRunServl!
etLoader.loadServletInstance(JRunServletLoader.java, Compiled Code)
at
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader
.java:190)
at
allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:17
7)
at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1261)
at allaire.jrun.servlet.JRunSE.preloadServlets(JRunSE.java, Compiled
Code)
at allaire.jrun.servlet.JRunSE.init(JRunSE.java, Compiled Code)
at allaire.jrun.ServletService.init(ServletService.java, Compiled Code)
at allaire.jrun.ServletService.init(ServletService.java, Compiled Code)
at
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader
.java, Compiled Code)
at allaire.jrun.servlet.JRunSE.initServices(JRunSE.java, Compiled Code)
at allaire.jrun.servlet.JvmContext.initServices(JvmContext.java:96)
at allaire.jrun.servlet.JRunSE.init(JRunSE.java, Compiled C! ode)
at allaire.jrun.servlet.JvmContext.init(JvmContext.java:35)
at allaire.jrun.ServletService.init(ServletService.java, Compiled Code)
at allaire.jrun.ServletService.init(ServletService.java, Compiled Code)
at JRun.main(JRun.java, Compiled Code)
----------------------------------------------------------------------------
--
Do You Yahoo!?
- Get personalized email addresses from Yahoo! Mail Personal Address -
only $35 a year!