You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Paulchwd <pa...@sympatico.ca> on 2009/04/01 02:01:23 UTC

Illegal access: this web application instance has been stopped already

I am using NetBeans 6.5 with its embeded Tomcat server to write a JavaServer
Faces application. I am getting this error:

INFO: Illegal access: this web application instance has been stopped
already.  Could not load java.lang.Object.  The eventual following stack
trace is caused by an error thrown for debugging purposes as well as to
attempt to terminate the thread which caused the illegal access, and has no
functional impact.
java.lang.IllegalStateException


>From my research I read setting reloadable to False would solve it (in
context.xml) - didn't work

Stack Trace:
=========

java.lang.IllegalStateException
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1273)
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
        at
com.sun.faces.application.ConverterPropertyEditorFactory$DisposableClassLoader.loadClass(ConverterPropertyEditorFactory.java:447)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
        at java.lang.Class.getConstructor0(Class.java:2699)
        at java.lang.Class.newInstance0(Class.java:326)
        at java.lang.Class.newInstance(Class.java:308)
        at
java.beans.PropertyEditorManager.findEditor(PropertyEditorManager.java:79)
        at
com.sun.faces.application.ApplicationImpl.addPropertyEditorIfNecessary(ApplicationImpl.java:690)
        at
com.sun.faces.application.ApplicationImpl.addConverter(ApplicationImpl.java:660)
        at
com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:727)
        at
com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:489)
        at
com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:381)
        at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
        at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:511)
        at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1231)
        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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
        at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
        at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
        at
org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1471)
        at
org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:824)
        at
org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:350)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:196)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:619)
Mar 31, 2009 7:54:48 PM org.apache.catalina.core.StandardContext start
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/invoicer]
has already been started


-- 
View this message in context: http://www.nabble.com/Illegal-access%3A-this-web-application-instance-has-been-stopped-already-tp22817324p22817324.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


RE: Illegal access: this web application instance has beenstoppedalready

Posted by Paulchwd <pa...@sympatico.ca>.
Thnx for the help it is now working. The cause was either fixed by correcting
improper JSF syntax or rebooting. Cheers


Caldarale, Charles R wrote:
> 
>> From: Paulchwd [mailto:paulchwd@sympatico.ca]
>> Subject: RE: Illegal access: this web application instance has
>> beenstoppedalready
>> 
>> Any additional information / ideas / shots in the dark are
>> greatly appreciated
> 
> There's these interesting little comments in the doc concerning
> auto-deployment:
> 
> " When using automatic deployment, the docBase defined by an XML Context
> file should be outside of the appBase directory. If this is not the case
> difficulties may be experienced deploying the web application or the
> application may be deployed twice.
> 
> "Finally, note that if you are defining contexts explicitly, you should
> probably turn off automatic application deployment. Otherwise, your
> context will be deployed twice each, and that may cause problems for your
> app."
> 
> http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Automatic%20Application%20Deployment
> 
> You could experiment with turning off the autoDeploy attribute in your
> <Host> element (assuming you can find it in NetBeans).
> 
>  - 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-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Illegal-access%3A-this-web-application-instance-has-been-stopped-already-tp22817324p22846544.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


RE: Illegal access: this web application instance has beenstoppedalready

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Paulchwd [mailto:paulchwd@sympatico.ca]
> Subject: RE: Illegal access: this web application instance has
> beenstoppedalready
> 
> Any additional information / ideas / shots in the dark are
> greatly appreciated

There's these interesting little comments in the doc concerning auto-deployment:

" When using automatic deployment, the docBase defined by an XML Context file should be outside of the appBase directory. If this is not the case difficulties may be experienced deploying the web application or the application may be deployed twice.

"Finally, note that if you are defining contexts explicitly, you should probably turn off automatic application deployment. Otherwise, your context will be deployed twice each, and that may cause problems for your app."

http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Automatic%20Application%20Deployment

You could experiment with turning off the autoDeploy attribute in your <Host> element (assuming you can find it in NetBeans).

 - 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Illegal access: this web application instance has been stoppedalready

Posted by Paulchwd <pa...@sympatico.ca>.
Thnx for the reply, here is the information:

context.xml file changed was in META-INF directory
NetBeans version 6.5
Platform: Windows Vista Business 32 Bit
Apache Tomcat: 6.0.18
JDK 6

I will try to run it in a standalone version of Tomcat - after I figure out
how to build a war file from NetBeans

Any additional information / ideas / shots in the dark are greatly
appreciated

=========================================

Caldarale, Charles R wrote:
> 
>> From: Paulchwd [mailto:paulchwd@sympatico.capaulchwd@sympatico.ca]
>> Subject: Illegal access: this web application instance has been
>> stoppedalready
>> 
>> INFO: Illegal access: this web application instance has been stopped
>> already.  Could not load java.lang.Object.
> 
> Whatever you're doing is attempting multiple stops of your webapp.  This
> might be a configuration problem in NetBeans, but since I've never tried
> to run Tomcat from within an IDE, I can't help you there.
> 
> Can you try running a standalone Tomcat and see if the problem is
> reproducible with that?
> 
>> From my research I read setting reloadable to False would solve 
>> it (in context.xml) - didn't work
> 
> You don't say which context.xml you changed; while you're telling us that,
> also tell us the Tomcat version you're using, the JRE/JDK you're running
> with, and the platform you're on.
> 
>> Mar 31, 2009 7:54:48 PM org.apache.catalina.core.StandardContext start
>> INFO: Container
>> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/invoicer]
>> has already been started
> 
> This is another indication that you're doing something twice within
> NetBeans; again, try running a standalone Tomcat and see if the problem
> disappears.  If it does, it's a NetBeans, not Tomcat, issue.
> 
>  - 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-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Illegal-access%3A-this-web-application-instance-has-been-stopped-already-tp22817324p22834783.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: Illegal access: this web application instance has been stoppedalready

Posted by Mikolaj Rydzewski <mi...@ceti.pl>.
Christopher Schultz wrote:
> On 4/2/2009 4:49 PM, Mikolaj Rydzewski wrote:
>   
>> I observe almost identical exceptions when I redeploy webapplication
>> that uses quartz scheduler. It looks like after webapp's instance has
>> been undeployed, background quartz thread wants to do something and then
>> exception occurs.
>>     
>
> If that's the trouble, then Quartz is being improperly shut down when
> the application is being taken out of service. I would recommend
> explicitly terminating Quartz at application shutdown... otherwise it'll
> hang around doing weird things like this.
>   
Hi Chris,

Actually I didn't pay much attention to that problem ;-)

After some googling I've found few interesting pages: 
http://forum.springsource.org/showthread.php?t=17833 and 
http://evolutionarygoo.com/blog/?p=37
It looks like Spring cannot shutdown quartz properly.

Anyway, I know what to fix now. Thanks for bringing my attention to the 
subject.


-- 
Mikolaj Rydzewski <mi...@ceti.pl>


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


Re: Illegal access: this web application instance has been stoppedalready

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mikolaj,

On 4/2/2009 4:49 PM, Mikolaj Rydzewski wrote:
> Caldarale, Charles R wrote:
>> Whatever you're doing is attempting multiple stops of your webapp.
> I observe almost identical exceptions when I redeploy webapplication
> that uses quartz scheduler. It looks like after webapp's instance has
> been undeployed, background quartz thread wants to do something and then
> exception occurs.

If that's the trouble, then Quartz is being improperly shut down when
the application is being taken out of service. I would recommend
explicitly terminating Quartz at application shutdown... otherwise it'll
hang around doing weird things like this.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAknWglQACgkQ9CaO5/Lv0PBJkgCaA0ibqZHe85MoZpUxfBBkc405
WGgAnjhp74dVikAtq9d/wp5xukschxo4
=iEqY
-----END PGP SIGNATURE-----

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


Re: Illegal access: this web application instance has been stoppedalready

Posted by Mikolaj Rydzewski <mi...@ceti.pl>.
Caldarale, Charles R wrote:
> Whatever you're doing is attempting multiple stops of your webapp.
I observe almost identical exceptions when I redeploy webapplication 
that uses quartz scheduler. It looks like after webapp's instance has 
been undeployed, background quartz thread wants to do something and then 
exception occurs.

-- 
Mikolaj Rydzewski <mi...@ceti.pl>


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


RE: Illegal access: this web application instance has been stoppedalready

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Paulchwd [mailto:paulchwd@sympatico.ca]
> Subject: Illegal access: this web application instance has been
> stoppedalready
> 
> INFO: Illegal access: this web application instance has been stopped
> already.  Could not load java.lang.Object.

Whatever you're doing is attempting multiple stops of your webapp.  This might be a configuration problem in NetBeans, but since I've never tried to run Tomcat from within an IDE, I can't help you there.

Can you try running a standalone Tomcat and see if the problem is reproducible with that?

> From my research I read setting reloadable to False would solve 
> it (in context.xml) - didn't work

You don't say which context.xml you changed; while you're telling us that, also tell us the Tomcat version you're using, the JRE/JDK you're running with, and the platform you're on.

> Mar 31, 2009 7:54:48 PM org.apache.catalina.core.StandardContext start
> INFO: Container
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/invoicer]
> has already been started

This is another indication that you're doing something twice within NetBeans; again, try running a standalone Tomcat and see if the problem disappears.  If it does, it's a NetBeans, not Tomcat, issue.

 - 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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org