https://issues.apache.org/bugzilla/show_bug.cgi?id=54921

            Bug ID: 54921
           Summary: Redeploy problem with Preferences=  Illegal access:
                    this web application instance has been stopped
                    already.  Could not load
                    com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMMa
                    nager.
           Product: Tomcat 7
           Version: 7.0.39
          Hardware: HP
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: george.for...@gmail.com
    Classification: Unclassified

My Servlet uses the Java Preferences API to persist a sequence number
periodically.

If I *restart* my servlet without taking the entire Tomcat7 JVM down, then the
next time my servlet tries to persist the updated number via
Preferences.sync(), Catalina throws this error:

May 02, 2013 8:38:14 PM org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already. 
Could not load com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.  

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
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1599)
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1558)
        at
com.sun.org.apache.xalan.internal.utils.ObjectFactory.findProviderClass(ObjectFactory.java:548)
        at
com.sun.org.apache.xalan.internal.utils.ObjectFactory.lookUpFactoryClass(ObjectFactory.java:223)
        at
com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTMManagerClass(XSLTCDTMManager.java:112)
        at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.<init>(TransformerFactoryImpl.java:239)
        at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.<init>(TransformerFactoryImpl.java:231)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
        at java.lang.Class.newInstance0(Class.java:374)
        at java.lang.Class.newInstance(Class.java:327)
        at
javax.xml.transform.FactoryFinder.newInstance(FactoryFinder.java:188)
        at javax.xml.transform.FactoryFinder.find(FactoryFinder.java:296)
        at
javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:101)
        at java.util.prefs.XmlSupport.writeDoc(XmlSupport.java:263)
        at java.util.prefs.XmlSupport.exportMap(XmlSupport.java:355)
        at
java.util.prefs.FileSystemPreferences$7.run(FileSystemPreferences.java:622)
        at
java.util.prefs.FileSystemPreferences$7.run(FileSystemPreferences.java:615)
        at java.security.AccessController.doPrivileged(Native Method)
        at
java.util.prefs.FileSystemPreferences.writeBackCache(FileSystemPreferences.java:614)
        at
java.util.prefs.FileSystemPreferences.syncSpiPrivileged(FileSystemPreferences.java:801)
        at
java.util.prefs.FileSystemPreferences.access$2300(FileSystemPreferences.java:50)
        at
java.util.prefs.FileSystemPreferences$12.run(FileSystemPreferences.java:771)
        at
java.util.prefs.FileSystemPreferences$12.run(FileSystemPreferences.java:769)
        at java.security.AccessController.doPrivileged(Native Method)
        at
java.util.prefs.FileSystemPreferences.syncSpi(FileSystemPreferences.java:768)
        at
java.util.prefs.AbstractPreferences.sync2(AbstractPreferences.java:1332)
        at
java.util.prefs.AbstractPreferences.sync(AbstractPreferences.java:1323)
        at
java.util.prefs.FileSystemPreferences.sync(FileSystemPreferences.java:747)
        at com.hpl.suggester.Suggest.saveSerialNumber(Suggest.java:97)


Searched Google and couldn't find anyone else complaining about this.  Probably
not that common to be using the new Java Preferences API under Tomcat?? 
Anyway, it should just work.  I guess I'll use the older Java Properties API on
a file somewhere.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

Reply via email to