[Shib-Users] ipd.war failed to intialize in Tomcat

145 views
Skip to first unread message

Muhammad Asif

unread,
Mar 6, 2009, 2:20:08 AM3/6/09
to shibbole...@internet2.edu

 

I am installing shibboleth 2.1.2 on Windows 2003 machine. I deployed idp.war file in Tomcat 5 with JRE1.5. The war file is not deployed with following error in BOLD text. Could you please guide me why this is caused?

Thanks

 

 

 

Mar 6, 2009 7:07:49 AM org.apache.catalina.startup.HostConfig deployWAR

INFO: Deploying web application archive idp.war

07:07:49.421 [Thread-1] ERROR o.a.c.c.C.[.[localhost].[/idp] - Exception sending

 context initialized event to listener instance of class org.springframework.web

.context.ContextLoaderListener java.lang.AbstractMethodError: ch.qos.logback.classic.Logger.trace(Ljava/lang/St

ring;)V

        at org.apache.commons.logging.impl.SLF4JLog.trace(SLF4JLog.java:96)

        at org.springframework.core.CollectionFactory.createConcurrentMapIfPossi

ble(CollectionFactory.java:195)

        at org.springframework.web.context.ContextLoader.<clinit>(ContextLoader.

java:153)

        at org.springframework.web.context.ContextLoaderListener.createContextLo

ader(ContextLoaderListener.java:53)

        at org.springframework.web.context.ContextLoaderListener.contextInitiali

zed(ContextLoaderListener.java:44)

        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex

t.java:3669)

        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4

104)

        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase

.java:759)

        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73

9)

        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

 

        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:788)

 

        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:677

)

        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:473

)

        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102)

        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java

:311)

        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl

eSupport.java:119)

        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)

 

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)

        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)

 

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442

)

        at org.apache.catalina.core.StandardService.start(StandardService.java:4

50)

        at org.apache.catalina.core.StandardServer.start(StandardServer.java:683

)

        at org.apache.catalina.startup.Catalina.start(Catalina.java:537)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

        at java.lang.reflect.Method.invoke(Unknown Source)

        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)

        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)

Mar 6, 2009 7:07:49 AM org.apache.catalina.core.StandardContext start

SEVERE: Error listenerStart

Mar 6, 2009 7:07:49 AM org.apache.catalina.core.StandardContext start

SEVERE: Context [/idp] startup failed due to previous errors

Chad La Joie

unread,
Mar 6, 2009, 2:23:15 AM3/6/09
to shibbole...@internet2.edu
What does the IdP log say?

--
SWITCH
Serving Swiss Universities
--------------------------
Chad La Joie, Software Engineer, Net Services
Werdstrasse 2, P.O. Box, 8021 Zürich, Switzerland
phone +41 44 268 15 75, fax +41 44 268 15 68
chad....@switch.ch, http://www.switch.ch

Muhammad Asif

unread,
Mar 6, 2009, 2:31:39 AM3/6/09
to shibbole...@internet2.edu
Hello Joie,
Thanks for your quick reply. This is my first attempt with shibboleth and I couldn't locate any log file under idp.war installation directory.
The message is copied was from tomcat console.

Where can I locate log for idp?
thanks

Chad La Joie

unread,
Mar 6, 2009, 2:34:31 AM3/6/09
to Shibboleth Users
Okay, sounds like you need to start with the documentation:
https://spaces.internet2.edu/display/SHIB2/Home

Be sure you've followed the installation directions exactly:
https://spaces.internet2.edu/display/SHIB2/IdPInstall

This also gives you information about where different files are located
(such as the log files)

Muhammad Asif

unread,
Mar 6, 2009, 4:54:43 AM3/6/09
to shibbole...@internet2.edu
Ok Joie,
I have followed instructions for Tomcat at https://spaces.internet2.edu/display/SHIB2/IdPApacheTomcatPrepare

I changed logging level to DEBUG in logging.xml but there is no log file created at IDP_HOME/logs folder. (IDP_HOME is path to folder where IDP was installed).

I created idp-process.log manually but it is not updated at all.

I turned to tomcat log and error message is changed now as given below. Idp war is still not initialized.

SEVERE: Error initializing endpoint
java.io.IOException: DelegateToApplication TrustManagerFactory not available
at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:125)
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:88)
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:292)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:142)
at org.apache.catalina.connector.Connector.initialize(Connector.java:928)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:764)
at org.apache.catalina.startup.Catalina.load(Catalina.java:490)
at org.apache.catalina.startup.Catalina.load(Catalina.java:509)


at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)

at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:243)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408)
Mar 6, 2009 9:53:01 AM org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException: Protocol handler initialization failed: java.io.IOException: DelegateToApplication TrustManagerFactory not available
at org.apache.catalina.connector.Connector.initialize(Connector.java:930)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:764)
at org.apache.catalina.startup.Catalina.load(Catalina.java:490)
at org.apache.catalina.startup.Catalina.load(Catalina.java:509)


at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)

at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:243)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408)
Mar 6, 2009 9:53:01 AM org.apache.catalina.startup.Catalina load

Chad La Joie

unread,
Mar 6, 2009, 4:58:28 AM3/6/09
to Shibboleth Users
You won't get anything from the IdP until it can actually start up. At
the moment Tomcat is failing to even get that far.

The error message you have now is because the Shibboleth security
provide is not installed correctly. So, you haven't prepared Tomcat
appropriately. Make sure that the JVM's security file that you updated
is the one you're actually using with Tomcat.

Muhammad Asif

unread,
Mar 6, 2009, 5:21:33 AM3/6/09
to shibbole...@internet2.edu
Thanks Joie,
I got it working. The issue was java.security was not updated properly.
So I will check how to install Sp and then test Idp and Sp .
Thanks once again.
Reply all
Reply to author
Forward
0 new messages