You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by James Stewart <ja...@bigfoot.com> on 2001/11/26 10:21:39 UTC

jboss 2.2.2 and cocoon 2 problem

Hi,

I am getting this error and I have seen this problem mentioned a few 
times in the mailing list archives but haven't seen a solution.

This is my configuration:
    Mandrake 8.1
    The combined download of JBoss 2.2.2 and Tomcat 3.2.2
    Cocoon 2.0rc2
    and Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)

When I access http://localhost:8080/cocoon I get the error:

java.lang.NullPointerException
	at org.jboss.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:113)
	at org.apache.tomcat.core.ContextManager.doAuthenticate(ContextManager.java:837)
	at org.apache.tomcat.core.RequestImpl.getRemoteUser(RequestImpl.java:341)
	at org.apache.tomcat.facade.HttpServletRequestFacade.getRemoteUser(HttpServletRequestFacade.java:251)
	at org.apache.cocoon.environment.http.HttpRequest.getRemoteUser(HttpRequest.java:128)
	at org.apache.cocoon.Cocoon.debug(Cocoon.java:431)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:512)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:592)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)

If I look at the logs from jboss I see:
[J2EE Deployer Default] Starting module cocoon.war
[Auto deploy] deploy, ctxPath=/cocoon, 
warUrl=file:/home/jamess/tools/jboss/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/cocoon.war/web1003/
2001-11-26 08:23:42 - ContextManager: Adding context Ctx( /cocoon )
[Auto deploy] AbstractWebContainer.parseWebAppDescriptors, Begin
[Auto deploy] addEnvEntries
[Auto deploy] linkResourceRefs
[Auto deploy] linkEjbRefs
[Auto deploy] linkSecurityDomain
[Auto deploy] Binding security/securityMgr to NullSecurityManager
[Auto deploy] AbstractWebContainer.parseWebAppDescriptors, End
[Auto deploy] Loading catalog: /path/to/local/catalog
[Auto deploy] Loading catalog: 
/home/jamess/tools/jboss/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/cocoon.war/web1003/resources/entities/catalog
[Auto deploy] Initialized: {WebApplication: 
/home/jamess/tools/jboss/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/cocoon.war/web1003/, 
URL: 
file:/home/jamess/tools/jboss/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/cocoon.war/web1003/, 
classLoader: AdaptiveClassLoader(  ):910434}
[J2EE Deployer Default] J2EE application: 
file:/home/jamess/tools/jboss/JBoss-2.2.2_Tomcat-3.2.2/jboss/deploy/cocoon.war 
is deployed.
[Auto deploy] Server 1.6 is running
[Auto deploy] Press [Ctrl]+[C] to abort
[EmbeddedTomcatSX] User: null is authenticated

Has anyone managed to solve this?

Thanks,
James.



---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>