tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Campbell" <mike.campb...@s1.com>
Subject Tomcat seems to work, but can't get struts going
Date Mon, 30 Oct 2000 22:17:56 GMT
I run tomcat 3.1, and I've got it to the point where I've written a jsp, and it does what I
expect, so I think it's working.

However, I've installed struts (0.5) according to the docs, put in all the entries in my apache/tomcat
config files, and when I go
to localhost/struts-example, I get:

ERROR: User database not loaded -- check servlet container logs for error messages.
--------------------------------------------------------------------------------

MailReader Demonstration Application Options
Register with the MailReader Demonstration Application
Log on to the MailReader Demonstration Application



I check servlet.log, and it has:

Context log path="/struts-documentation" :tomcat.errorPage: init
Context log path="/struts-documentation" :jsp: init
Context log path="/struts-documentation" :default: init
Context log path="/examples" :tomcat.errorPage: init
Context log path="/examples" :jsp: init
Context log path="/examples" :default: init
Context log path="/test" :tomcat.errorPage: init
Context log path="/test" :jsp: init
Context log path="/test" :default: init
Context log path="/mc" :tomcat.errorPage: init
Context log path="/mc" :jsp: init
Context log path="/mc" :default: init
Context log path="/struts-example" :tomcat.errorPage: init
Context log path="/struts-example" :jsp: init
Context log path="/struts-example" :default: init
Context log path="/struts-example" :database: init
Context log path="/struts-example" :database: Initializing database servlet
Context log path="/struts-example" :database: Loading database from 'D:\jakarta-tomcat\webapps\struts-example\/WEB-INF/database.xml'
Context log path="/struts-example" :database: Database load exception
Context log path="/struts-example" :action: init
Context log path="/struts-example" :action: Loading application resources from resource
org.apache.struts.example.ApplicationResources
Context log path="/struts-example" :action: Initializing configuration from resource path
/WEB-INF/action.xml
Context log path="/admin" :tomcat.errorPage: init
Context log path="/admin" :jsp: init
Context log path="/admin" :default: init
Context log path="" :tomcat.errorPage: init
Context log path="" :jsp: init
Context log path="" :default: init



Am I looking in the right spot?

I notice when I run tomcat, I get the followin error.  Is this normal?

Context log: path="/admin" Adding context path="/admin"  docBase="D:\jakarta-tomcat\webapps\admin"
Context log: path="/mc" Automatic context load docBase="D:\jakarta-tomcat\webapps\mc"
Context log: path="/mc" Adding context path="/mc"  docBase="D:\jakarta-tomcat\webapps\mc"
Context log: path="/struts-documentation" Automatic context load docBase="D:\jakarta-tomcat\webapps\struts-documentation"
Context log: path="/struts-documentation" Adding context path="/struts-documentation"  docBase="D:\jakarta-tomcat\webapps\struts-doc
umentation"
Context log: path="/struts-example" Automatic context load docBase="D:\jakarta-tomcat\webapps\struts-example"
Context log: path="/struts-example" Adding context path="/struts-example"  docBase="D:\jakarta-tomcat\webapps\struts-example"
Digester.getParser:
java.lang.SecurityException: sealing violation
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:120)
        at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:92)
        at org.apache.struts.digester.Digester.getParser(Digester.java:284)
        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 org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java:315)
        at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:276)
        at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartupInterceptor.java:132)
        at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:227)
        at org.apache.tomcat.core.ContextManager.init(ContextManager.java:201)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:156)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
Digester.getParser:
java.lang.SecurityException: sealing violation
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:120)
        at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:92)
        at org.apache.struts.digester.Digester.getParser(Digester.java:284)
        at org.apache.struts.digester.Digester.parse(Digester.java:748)
        at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:619)
        at org.apache.struts.action.ActionServlet.init(ActionServlet.java:291)
        at javax.servlet.GenericServlet.init(GenericServlet.java:258)
        at org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java:315)
        at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:276)
        at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartupInterceptor.java:132)
        at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:227)
        at org.apache.tomcat.core.ContextManager.init(ContextManager.java:201)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:156)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)


Mime
View raw message