Hi KasunG, Not sure whether this would help but, I was able to constantly reproduce this when following the below listed steps with an API-M pack.
1. Extracted a fresh API-M instance 2. Started the server 3. Server failed since I forgot to change the Thrift port (another instance was running with the same thrift port) so stopped the server, changed the port and restarted the server. Noticed this exception. Regards, Evanthika On Tue, May 6, 2014 at 11:17 AM, Kasun Gajasinghe <[email protected]> wrote: > Hi Sameera/All, > > We've been trying to find the cause for this issue without much success. > It seems this issue [1] is a bit strange. The reason is that this is > intermittent. Even though tomcat bundle (which tries to load the said from > o.w.c.tomcat.ext bundle) has the DynamicImport-Package set to '*', it fails > to load that class org.wso2.carbon.tomcat.ext.servlet.DelegationServlet > intermittently. After this error, the server start-up hangs. > > This is some sort of intermittent osgi wiring issue as I understand. The > error occurs during the deployment of the carbon webapp where the > DelegationServlet is a servlet defined in its web.xml. We have recently, > included some tomcat classes in the o.w.c.tomcat.patch which is a > Require-Bundle of the tomcat bundle (via the o.w.c.tomcat.fragment.dummy > fragment bundle). It exposes the following packages. [2] I don't see any > correlation between this change and the error, but this change might have > caused the issue. It's not easy to verify this since the issue is less > frequent. > > We are at a loss identifying any potential issues here. Any suggestions > are welcome. > > [2] > <Export-Package> > org.apache.coyote.*, > org.apache.catalina.startup.*, > org.apache.tomcat.util.http.mapper.*, > org.apache.juli.logging.* > </Export-Package> > > [1] > [2014-04-24 20:25:12,989] ERROR {org.apache.catalina.core.StandardContext} > - Servlet / threw load() exception > java.lang.ClassNotFoundException: > org.wso2.carbon.tomcat.ext.servlet.DelegationServlet > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1718) > at > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569) > at > org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:529) > at > org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:511) > at > org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:139) > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1143) > at > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087) > at > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5210) > at > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5493) > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) > at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > at java.lang.Thread.run(Thread.java:662) > > > > > On Mon, May 5, 2014 at 12:28 PM, Krishantha Samaraweera < > [email protected]> wrote: > >> Hi all, >> >> I see following startup failure while running G-Reg integration test in >> Jenkins build. This seems to be a intermittent start-up failure common to >> all products. >> >> Can someone please have a look. The same issue is reported in [1] >> >> INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] >> - [2014-05-05 06:30:14,698] INFO >> {org.apache.catalina.startup.TaglibUriRule} - TLD skipped. URI: >> http://tiles.apache.org/tags-tiles is already defined >> INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] >> - [2014-05-05 06:30:14,744] INFO {org.apache.tomcat.websocket.server.WsSci} >> - JSR 356 WebSocket (Java WebSocket 1.0) support is not available when >> running on Java 6. To suppress this message, run Tomcat on Java 7, remove >> the WebSocket JARs from $CATALINA_HOME/lib or add the WebSocketJARs to the >> tomcat.util.scan.DefaultJarScanner.jarsToSkip property in >> $CATALINA_BASE/conf/catalina.properties. Note that the deprecated Tomcat 7 >> WebSocket API will be available. >> INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] >> - [2014-05-05 06:30:14,751] ERROR {org.apache.catalina.core.StandardContext} >> - Servlet / threw load() exception >> INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] >> - java.lang.ClassNotFoundException: >> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet >> INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] >> - at >> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1718) >> INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] >> - at >> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569) >> INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] >> - at >> org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:529) >> INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] >> - at >> org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:511) >> INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] >> - at >> org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:139) >> INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] >> - at >> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1143) >> INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] >> - at >> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087) >> INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] >> - at >> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5210) >> INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] >> - at >> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5493) >> INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] >> - at >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) >> INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] >> - at >> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) >> INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] >> - at >> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) >> INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] >> - at >> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) >> INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] >> - at java.util.concurrent.FutureTask.run(FutureTask.java:138) >> INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] >> - at >> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) >> INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] >> - at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) >> INFO [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] >> - at java.lang.Thread.run(Thread.java:662) >> ERROR >> [org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerExtension] >> - Fail to start carbon server >> java.lang.RuntimeException: Port 9763 is not open >> at >> org.wso2.carbon.integration.common.utils.ClientConnectionUtil.waitForPort(ClientConnectionUtil.java:101) >> at >> org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerManager.startServerUsingCarbonHome(CarbonServerManager.java:134) >> at >> org.wso2.carbon.integration.common.extensions.carbonserver.TestServerManager.startServer(TestServerManager.java:102) >> at >> org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerExtension.onExecutionStart(CarbonServerExtension.java:49) >> 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:597) >> at >> org.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.executeExtensible(TestNGExtensionExecutor.java:73) >> at >> org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:47) >> at org.testng.TestNG.runExecutionListeners(TestNG.java:1032) >> at org.testng.TestNG.run(TestNG.java:983) >> at >> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178) >> at >> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92) >> at >> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96) >> 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:597) >> at >> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) >> at >> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) >> at >> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) >> at >> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) >> at >> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) >> org.apache.maven.surefire.util.SurefireReflectionException: >> java.lang.reflect.InvocationTargetException; nested exception is >> java.lang.reflect.InvocationTargetException: null >> java.lang.reflect.InvocationTargetException >> 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:597) >> at >> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) >> at >> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) >> at >> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) >> at >> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) >> at >> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) >> Caused by: java.lang.RuntimeException: Error on initializing test environment >> at >> org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.handleException(TestExecutionListener.java:70) >> at >> org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:52) >> at org.testng.TestNG.runExecutionListeners(TestNG.java:1032) >> at org.testng.TestNG.run(TestNG.java:983) >> at >> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178) >> at >> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92) >> at >> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96) >> ... 9 more >> Caused by: java.lang.reflect.InvocationTargetException >> 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:597) >> at >> org.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.executeExtensible(TestNGExtensionExecutor.java:73) >> at >> org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:47) >> ... 14 more >> Caused by: java.lang.RuntimeException: Fail to start carbon server >> at >> org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerExtension.handleException(CarbonServerExtension.java:69) >> at >> org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerExtension.onExecutionStart(CarbonServerExtension.java:53) >> ... 20 more >> Caused by: java.lang.RuntimeException: Port 9763 is not open >> at >> org.wso2.carbon.integration.common.utils.ClientConnectionUtil.waitForPort(ClientConnectionUtil.java:101) >> at >> org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerManager.startServerUsingCarbonHome(CarbonServerManager.java:134) >> at >> org.wso2.carbon.integration.common.extensions.carbonserver.TestServerManager.startServer(TestServerManager.java:102) >> at >> org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerExtension.onExecutionStart(CarbonServerExtension.java:49) >> ... 20 more >> >> >> >> [1]https://wso2.org/jira/browse/WSAS-1709 >> >> Thanks, >> Krishantha. >> >> -- >> Krishantha Samaraweera >> Senior Technical Lead - Test Automation >> Mobile: +94 77 7759918 >> WSO2, Inc.; http://wso2.com/ >> lean . enterprise . middlewear. >> > > > > -- > > *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. > email: kasung AT spamfree wso2.com > linked-in: http://lk.linkedin.com/in/gajasinghe > blog: http://kasunbg.org > > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
