cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From PLingw...@ddsi.ie
Subject Re: Cocoon 2 - problem loading in Tomcat 3.2.1
Date Mon, 12 Nov 2001 11:34:10 GMT

it's trying to create a ServletOutputLogTarget class, so in there somewhere its
trying to create a log file.
Its taking the Servlet context as a constructor parameter. Therefore it may be
trying to create the file
somewhere within the servlet engine scope(sevlet root /s , servlet specified
classpath etc ).
Do you have write permissions in these areas?



                                                                                         
                                                      
                    "Larkin                                                              
                                                      
                    Cunningham"              To:     <cocoon-users@xml.apache.org> 
                                                            
                    <lcunningham@dbal        cc:                                      
                                                         
                    liance.ie>               Subject:     Cocoon 2 - problem loading in
Tomcat 3.2.1                                            
                                                                                         
                                                      
                    11/12/01 11:11 AM                                                    
                                                      
                    Please respond to                                                    
                                                      
                    cocoon-users                                                         
                                                      
                                                                                         
                                                      
                                                                                         
                                                      




Hi,

My problem is with loading the Cocoon 2 servlet when starting up tomcat
3.2.1. I used the war file from the latest distribution, so I expected it to
just plug-in to Tomcat without a hitch. It looks like a security problem,
but I have allowed all permissions for all contexts by adding the line
"permission java.security.AllPermission" in tomcat.policy.custom.
I am at a bit of a loss, because searching on the Internet does not find
this specific error.
Any help is much appreciated. The error is as follows:

2001-11-12 10:10:09 - ContextManager: Adding context Ctx( /cocoon )
Exception in thread "main" java.lang.ExceptionInInitializerError:
java.security.
AccessControlException: access denied (java.util.PropertyPermission
line.separator read)
        at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:272)
        at
java.security.AccessController.checkPermission(AccessController.java:399)
        at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
        at
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1278)
        at java.lang.System.getProperty(System.java:599)
        at
org.apache.log.format.PatternFormatter.<clinit>(PatternFormatter.java:108)
        at
org.apache.log.output.DefaultOutputLogTarget.<init>(DefaultOutputLogTarget.j
ava:75)
        at
org.apache.log.output.DefaultOutputLogTarget.<init>(DefaultOutputLogTarget.j
ava:55)
        at
org.apache.log.output.ServletOutputLogTarget.<init>(ServletOutputLogT
arget.java:24)
        at
org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:374)
        at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:128)
        at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
        at org.apache.tomcat.core.Handler.init(Handler.java:215)
        at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
        at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup
Interceptor.java :130)
        at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
        at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)

Regards,
Larkin Cunningham

-----Original Message-----
From: PLingwood@ddsi.ie [mailto:PLingwood@ddsi.ie]
Sent: 12 November 2001 10:57
To: cocoon-users@xml.apache.org
Subject: Error on loading Cocoon 2


Hi all,
     When trying to start cocoon2 under weblogic6, I get the following error
:
java.lang.NullPointerException
        at java.util.Hashtable.put(Hashtable.java:380)
        at
org.apache.avalon.framework.context.DefaultContext.put(DefaultContext.java:1
07)
        at
org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:388)
        at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:128)
        at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
:638)
        at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
va:581)
        at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:526)
        at
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletC
ontext.java:1078)
        at
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServlet
Context.java:1022)
        at
weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:499)
        at
weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:421)
        at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
        at weblogic.j2ee.Application.deploy(Application.java:175)
        at weblogic.j2ee.J2EEService.deployApplication(J2EEService.java:173)
        at
weblogic.management.mbeans.custom.Application.setLocalDeployed(Application.j
ava:217)
        at
weblogic.management.mbeans.custom.Application.setDeployed(Application.java:1
87)
        at java.lang.reflect.Method.invoke(Native Method)
        at
weblogic.management.internal.DynamicMBeanImpl.invokeSetter(DynamicMBeanImpl.
java:1136)
        at
weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
java:773)
        at
weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
java:750)
        at
weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Configurati
onMBeanImpl.java:256)
        at
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:135
6)
        at
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:133
1)
        at
weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(Confi
gurationMBeanImpl.java:318)
        at
weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Configurati
onMBeanImpl.java:259)
        at
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:135
6)
        at
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:133
1)
        at
weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:291)
        at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:173)
        at $Proxy6.setDeployed(Unknown Source)
        at
weblogic.management.console.pages._panels._mbean._webappcomponent.
_jspService(_webappcomponent.java:398)
        at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:213)
        at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:1265)
        at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:1622)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.j2ee.DeploymentException: Could not load cocoon - with nested
exception:
[java.lang.NullPointerException]
        at
weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:424)
        at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
        at weblogic.j2ee.Application.deploy(Application.java:175)
        at weblogic.j2ee.J2EEService.deployApplication(J2EEService.java:173)
        at
weblogic.management.mbeans.custom.Application.setLocalDeployed(Application.j
ava:217)
        at
weblogic.management.mbeans.custom.Application.setDeployed(Application.java:1
87)
        at java.lang.reflect.Method.invoke(Native Method)
        at
weblogic.management.internal.DynamicMBeanImpl.invokeSetter(DynamicMBeanImpl.
java:1136)
        at
weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
java:773)
        at
weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
java:750)
        at
weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Configurati
onMBeanImpl.java:256)
        at
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:135
6)
        at
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:133
1)
        at
weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(Confi
gurationMBeanImpl.java:318)
        at
weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Configurati
onMBeanImpl.java:259)
        at
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:135
6)
        at
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:133
1)
        at
weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:291)
        at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:173)
        at $Proxy6.setDeployed(Unknown Source)
        at
weblogic.management.console.pages._panels._mbean._webappcomponent.
_jspService(_webappcomponent.java:398)
        at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:213)
        at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:1265)
        at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:1622)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>

anyone come across this before ?

Thanking you
Paul Lingwood


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>






---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message