users@glassfish.java.net

Re: Security Problem Debuging glassfish

From: <glassfish_at_javadesktop.org>
Date: Sat, 31 Mar 2007 10:58:26 PST

hi,

I still got one little trouble. But this time it is with the ApplicationLiifecycle services.
More more to pass and everything should be fine. In fact the trouble come from sun.apache.catalina there is some security check. That is the error "PWC3985: Protocol handler initialization failed: java.io.IOException: Keystore was tampered with, or password was incorrect at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1599)"

and the following is the server.log information.

appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|******* ApplicationServer onStartup() ******** service number = 9 , class com.sun.enterprise.server.ApplicationLifecycle|#][#|2007-03-31T14:29:43.806+0200|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|EOF|#][#|2007-03-31T14:29:43.806+0200|INFO|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=10;_ThreadName=main;|WEB0302: Starting Sun-Java-System/Application-Server.|#][#|2007-03-31T14:29:43.816+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=10;_ThreadName=main;|ServerHelper getServerByName configContext =com.sun.enterprise.config.ConfigContext: Url=C:/SDK/domains/domain2\config\domain.xml, ReadOnly=true, ResolvePath=true, LastModified Timestamp=1173264855612, isChanged=true, Autocommit=false, isConfigBeanNull=false instanceName =server|#][#|2007-03-31T14:29:43.816+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=10;_ThreadName=main;|ServerHelper getServerByName configContext =com.sun.enterprise.config.ConfigContext: Url=C:/SDK/domains/domain2\config\domain.xml, ReadOnly=true, ResolvePath=true, LastModified Timestamp=1173264855612, isChanged=true, Autocommit=false, isConfigBeanNull=false instanceName =server|#][#|2007-03-31T14:29:47.851+0200|INFO|sun-appserver9.1|com.sun.portal.portletcontainer.driver.impl|_ThreadID=10;_ThreadName=main;|PSPCD_CSPPD0001 : Started initializing CacheManager|#][#|2007-03-31T14:29:47.861+0200|INFO|sun-appserver9.1|com.sun.portal.portletcontainer.driver.impl|_ThreadID=10;_ThreadName=main;|PSPCD_CSPPD0002 : Finished initializing CacheManager|#][#|2007-03-31T14:29:47.861+0200|INFO|sun-appserver9.1|com.sun.portal.portletcontainer.driver.impl|_ThreadID=10;_ThreadName=main;|PSPCD_CSPPD0003 : Started initializing PreferenceManager|#][#|2007-03-31T14:29:47.861+0200|INFO|sun-appserver9.1|com.sun.portal.portletcontainer.driver.impl|_ThreadID=10;_ThreadName=main;|PSPCD_CSPPD0004 : Finished initializing PreferenceManager|#][#|2007-03-31T14:29:47.861+0200|INFO|sun-appserver9.1|com.sun.portal.portletcontainer.driver.impl|_ThreadID=10;_ThreadName=main;|PSPCD_CSPPD0005 : Started initializing PortalDataContext|#][#|2007-03-31T14:29:47.861+0200|INFO|sun-appserver9.1|com.sun.portal.portletcontainer.driver.impl|_ThreadID=10;_ThreadName=main;|PSPCD_CSPPD0006 : Finished initializing PortalDataContext|#][#|2007-03-31T14:29:47.861+0200|INFO|sun-appserver9.1|com.sun.portal.portletcontainer.driver.impl|_ThreadID=10;_ThreadName=main;|PSPCD_CSPPD0007 : Started initializing PortletEventDataContext|#][#|2007-03-31T14:29:47.861+0200|INFO|sun-appserver9.1|com.sun.portal.portletcontainer.driver.impl|_ThreadID=10;_ThreadName=main;|PSPCD_CSPPD0008 : Finished initializing PortletEventDataContext|#][#|2007-03-31T14:29:47.861+0200|INFO|sun-appserver9.1|com.sun.portal.portletcontainer.impl|_ThreadID=10;_ThreadName=main;|PSPL_PCCSPCPCI0003 : Started initializing PortletContainer|#][#|2007-03-31T14:29:47.861+0200|INFO|sun-appserver9.1|com.sun.portal.portletcontainer.impl|_ThreadID=10;_ThreadName=main;|PSPL_PCCSPCPCI0004 : Finished initializing PortletContainer|#][#|2007-03-31T14:29:48.612+0200|INFO|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=10;_ThreadName=main;4710;|WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 4710|#][#|2007-03-31T14:29:48.823+0200|SEVERE|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;com.sun.enterprise.web.PEWebContainerLifecycle_at_1126d91;com.sun.appserv.server.ServerLifecycleException: WEB0105: An error occurred while starting the web container;_RequestID=b3036cf4-27cf-4af5-81e6-0e16a9e932d2;|Service com.sun.enterprise.web.PEWebContainerLifecycle_at_1126d91 cannot be started! : com.sun.appserv.server.ServerLifecycleException: WEB0105: An error occurred while starting the web container|#][#|2007-03-31T14:29:48.823+0200|SEVERE|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=b3036cf4-27cf-4af5-81e6-0e16a9e932d2;|CORE5071: An error occured during initializationcom.sun.appserv.server.ServerLifecycleException: WEB0105: An error occurred while starting the web container at com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:759) at com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:71) at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:334) at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:112) at com.sun.enterprise.server.PEMain.run(PEMain.java:437) at com.sun.enterprise.server.PEMain.main(PEMain.java:363) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.sun.enterprise.server.PELaunch.main(PELaunch.java:326)Caused by: LifecycleException: PWC3985: Protocol handler initialization failed: java.io.IOException: Keystore was tampered with, or password was incorrect at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1599) at com.sun.enterprise.web.connector.coyote.PECoyoteConnector.initialize(PECoyoteConnector.java:758) at org.apache.catalina.startup.Embedded.start(Embedded.java:921) at com.sun.enterprise.web.WebContainer.start(WebContainer.java:853) at com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:750) ... 10 more|#][#|2007-03-31T14:29:48.833+0200|SEVERE|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=b3036cf4-27cf-4af5-81e6-0e16a9e932d2;|Server Startup failed. Exiting...

It look like Catalina is ued inside the appserv_rt.jar. My probleme is that i do not why i still got trouble with certifacte and password.

I am wondering is during the run time of the debug session i am using the appserv-rt.jar from the galssfish.publish.lib directorie or from the SDK.lib.

Thanks a lot if someone can help me to find out from where come this little trouble.

Regards
[Message sent by forum member 'hterrolle' (hterrolle)]

http://forums.java.net/jive/thread.jspa?messageID=210724