i am getting error and even my server is not starting in eclipse.But if i remove smtp servlet from eclipse project then server starts otherwise it give exceptions and even dont start.The exceptions are:
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/RobotProject]]
at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)
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(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/RobotProject]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
... 7 more
Caused by: java.lang.NoClassDefFoundError: javax/mail/internet/AddressException
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Unknown Source)
at java.lang.Class.getDeclaredFields(Unknown Source)
at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:87)
You need to export your jars with the war file that you deploy, having them during compilation does not mean that they will be available on the server. Simply copy the required jars to WEB-INF/lib folder and it should work
Related
I'm trying to run Tomcat v9.0 server in Eclipse with 2 jar files:
taglibs-standard-impl-1.2.5.jar
taglibs-standard-spec-1.2.5.jar
But I kept running into this error message: "Server Tomcat v9.0 Server at localhost failed to start." And error log indicates that it caused by Caused by: java.io.FileNotFoundException:C:\Users\abdc\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PM4\WEB-INF\lib\taglibs-standard-impl-1.2.5.jar (The system cannot find the path specified)
I doubled check my jar file paths and they are in the right location with the rest of the project:
C:\Users\abdc\Desktop\WebContent\WEB-INF\lib\taglibs-standard-impl-1.2.5.jar
C:\Users\abdc\Desktop\WebContent\WEB-INF\lib\taglibs-standard-spec-1.2.5.jar
Any insight would be really appreciated. This is my error logs:
Jul 11, 2020 12:39:50 AM org.apache.catalina.core.StandardContext backgroundProcess
WARNING: Exception processing loader [WebappLoader[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/PM4]]] background process
java.lang.IllegalStateException: java.io.FileNotFoundException: C:\Users\abdc\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PM4\WEB-INF\lib\taglibs-standard-impl-1.2.5.jar (The system cannot find the path specified)
at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.getArchiveEntry(AbstractSingleArchiveResourceSet.java:101)
at org.apache.catalina.webresources.AbstractArchiveResourceSet.getResource(AbstractArchiveResourceSet.java:256)
at org.apache.catalina.webresources.StandardRoot.getResourceInternal(StandardRoot.java:281)
at org.apache.catalina.webresources.Cache.getResource(Cache.java:62)
at org.apache.catalina.webresources.StandardRoot.getResource(StandardRoot.java:216)
at org.apache.catalina.webresources.StandardRoot.getClassLoaderResource(StandardRoot.java:225)
at org.apache.catalina.loader.WebappClassLoaderBase.modified(WebappClassLoaderBase.java:740)
at org.apache.catalina.loader.WebappLoader.modified(WebappLoader.java:350)
at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:294)
at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5527)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1353)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1357)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1357)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1335)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: C:\Users\abdc\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PM4\WEB-INF\lib\taglibs-standard-impl-1.2.5.jar (The system cannot find the path specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.java:221)
at org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.java:206)
at org.apache.catalina.webresources.AbstractArchiveResourceSet.openJarFile(AbstractArchiveResourceSet.java:307)
at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.getArchiveEntry(AbstractSingleArchiveResourceSet.java:97)
... 21 more
Jul 11, 2020 12:40:00 AM org.apache.catalina.core.StandardContext backgroundProcess
WARNING: Exception processing loader [WebappLoader[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/PM4]]] background process
java.lang.IllegalStateException: java.io.FileNotFoundException: C:\Users\abdc\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PM4\WEB-INF\lib\taglibs-standard-impl-1.2.5.jar (The system cannot find the path specified)
at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.getArchiveEntry(AbstractSingleArchiveResourceSet.java:101)
at org.apache.catalina.webresources.AbstractArchiveResourceSet.getResource(AbstractArchiveResourceSet.java:256)
at org.apache.catalina.webresources.StandardRoot.getResourceInternal(StandardRoot.java:281)
at org.apache.catalina.webresources.Cache.getResource(Cache.java:62)
at org.apache.catalina.webresources.StandardRoot.getResource(StandardRoot.java:216)
at org.apache.catalina.webresources.StandardRoot.getClassLoaderResource(StandardRoot.java:225)
at org.apache.catalina.loader.WebappClassLoaderBase.modified(WebappClassLoaderBase.java:740)
at org.apache.catalina.loader.WebappLoader.modified(WebappLoader.java:350)
at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:294)
at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5527)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1353)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1357)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1357)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1335)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: C:\Users\abdc\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PM4\WEB-INF\lib\taglibs-standard-impl-1.2.5.jar (The system cannot find the path specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.java:221)
at org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.java:206)
at org.apache.catalina.webresources.AbstractArchiveResourceSet.openJarFile(AbstractArchiveResourceSet.java:307)
at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.getArchiveEntry(AbstractSingleArchiveResourceSet.java:97)
... 21 more
This is my file directory:
File directory
Wrong path,
U must paste your jar file in this path :
C:\Users\abdc\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PM4\WEB-INF\lib\
i'm facing below issue while parsing TypeScript files in the Eclipse plugin project. Following are log details:
INFO [main] (GeneratorMain.java:178) - Start generate model STST0101_swap_js.xbl
java.lang.NullPointerException
at ts.eclipse.ide.internal.core.Trace.trace(Trace.java:89)
at ts.eclipse.ide.internal.core.Trace.trace(Trace.java:61)
at ts.eclipse.ide.internal.core.nodejs.NodejsInstallManager.loadNodejsInstalls(NodejsInstallManager.java:109)
at ts.eclipse.ide.internal.core.nodejs.NodejsInstallManager.getNodejsInstalls(NodejsInstallManager.java:68)
at com.sample.ts.nodejs.NodeJSProcess.getNodeJsPath(NodeJSProcess.java:125)
at com.sample.ts.nodejs.NodeJSProcess.startServer(NodeJSProcess.java:198)
at com.sample.ts.nodejs.NodeJSProcess.ensureRunning(NodeJSProcess.java:85)
at com.sample.ts.tsparser.ScriptParserClient.executeRequest(ScriptParserClient.java:43)
at com.sample.ts.tsparser.ScriptParserClient.parseString(ScriptParserClient.java:100)
at com.sample.ts.tsparser.ScriptParser.parse(ScriptParser.java:73)
at com.sample.ts.ast.AST.parseString(AST.java:163)
at com.sample.nmc.ts.generator.GeneratorBase.findClass(GeneratorBase.java:302)
at com.sample.nmc.ts.generator.GeneratorBase.ensureClass(GeneratorBase.java:115)
at com.sample.nmc.ts.generator.EventActionGenerator.doGenerate(EventActionGenerator.java:37)
at com.sample.nmc.ts.generator.GeneratorBase.generate(GeneratorBase.java:58)
at com.sample.nmc.ts.GeneratorMain.generateXbl(GeneratorMain.java:198)
at com.sample.nmc.ts.GeneratorMain.generateFunctionUnit(GeneratorMain.java:168)
at com.sample.nmc.ts.GeneratorMain.execute(GeneratorMain.java:66)
at com.sample.nmc.ts.GeneratorMain.main(GeneratorMain.java:43)
java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at com.sample.ts.tsparser.ScriptParserClient.executeRequest(ScriptParserClient.java:52)
at com.sample.ts.tsparser.ScriptParserClient.parseString(ScriptParserClient.java:100)
at com.sample.ts.tsparser.ScriptParser.parse(ScriptParser.java:73)
at com.sample.ts.ast.AST.parseString(AST.java:163)
at com.sample.nmc.ts.generator.GeneratorBase.findClass(GeneratorBase.java:302)
at com.sample.nmc.ts.generator.GeneratorBase.ensureClass(GeneratorBase.java:115)
at com.sample.nmc.ts.generator.EventActionGenerator.doGenerate(EventActionGenerator.java:37)
at com.sample.nmc.ts.generator.GeneratorBase.generate(GeneratorBase.java:58)
at com.sample.nmc.ts.GeneratorMain.generateXbl(GeneratorMain.java:198)
at com.sample.nmc.ts.GeneratorMain.generateFunctionUnit(GeneratorMain.java:168)
at com.sample.nmc.ts.GeneratorMain.execute(GeneratorMain.java:66)
at com.sample.nmc.ts.GeneratorMain.main(GeneratorMain.java:43)
The plugin project runs perfectly fine if executed as Eclipse plugin. I face above error if i try executing it as Runnable JAR file.
Kindly provide necessary help
I have eclipse sample eclipse RCP application. I am trying to export it for WebStart. but it gives following error message while exporting the feature project.
D:\apps\eclipse-jee-kepler-SR2-win32-x86_64\eclipse\workspace\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\assemble.org.eclipse.pde.container.feature.p2.xml:43: The following error occurred while executing this line:
D:\apps\eclipse-jee-kepler-SR2-win32-x86_64\eclipse\workspace\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\assemble.org.eclipse.pde.container.feature.p2.xml:64: The jarsigner could not be found. Make sure to run with the build with a JDK.
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:672)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:498)
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.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
at org.eclipse.pde.internal.core.exports.FeatureExportOperation.runScript(FeatureExportOperation.java:422)
at org.eclipse.pde.internal.core.exports.FeatureExportOperation.doExport(FeatureExportOperation.java:267)
at org.eclipse.pde.internal.core.exports.FeatureExportOperation.doExport(FeatureExportOperation.java:223)
at org.eclipse.pde.internal.core.exports.FeatureExportOperation.run(FeatureExportOperation.java:100)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: D:\apps\eclipse-jee-kepler-SR2-win32-x86_64\eclipse\workspace\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\assemble.org.eclipse.pde.container.feature.p2.xml:64: The jarsigner could not be found. Make sure to run with the build with a JDK.
at org.eclipse.equinox.internal.p2.jarprocessor.ant.AntSignCommand.execute(AntSignCommand.java:54)
at org.eclipse.equinox.internal.p2.jarprocessor.ant.AntSignCommand.postProcess(AntSignCommand.java:36)
at org.eclipse.internal.provisional.equinox.p2.jarprocessor.JarProcessor.postProcess(JarProcessor.java:252)
at org.eclipse.internal.provisional.equinox.p2.jarprocessor.JarProcessor.processJar(JarProcessor.java:345)
at org.eclipse.internal.provisional.equinox.p2.jarprocessor.JarProcessorExecutor.process(JarProcessorExecutor.java:173)
at org.eclipse.internal.provisional.equinox.p2.jarprocessor.JarProcessorExecutor.processDirectory(JarProcessorExecutor.java:195)
at org.eclipse.equinox.internal.p2.jarprocessor.ant.AntBasedProcessorExecutor.processDirectory(AntBasedProcessorExecutor.java:60)
at org.eclipse.internal.provisional.equinox.p2.jarprocessor.JarProcessorExecutor.process(JarProcessorExecutor.java:155)
at org.eclipse.internal.provisional.equinox.p2.jarprocessor.JarProcessorExecutor.runJarProcessor(JarProcessorExecutor.java:82)
at org.eclipse.equinox.internal.p2.jarprocessor.ant.JarProcessorTask.execute(JarProcessorTask.java:109)
at org.eclipse.equinox.p2.internal.repository.tools.tasks.ProcessRepoTask.execute(ProcessRepoTask.java:87)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
... 26 more
Caused by: Execute failed: java.io.IOException: Cannot run program "jarsigner.exe" (in directory "D:\apps\eclipse-jee-kepler-SR2-win32-x86_64\eclipse\workspace\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature"): CreateProcess error=2, The system cannot find the file specified
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:675)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)
at org.apache.tools.ant.taskdefs.SignJar.signOneJar(SignJar.java:490)
at org.apache.tools.ant.taskdefs.SignJar.execute(SignJar.java:405)
at org.eclipse.equinox.internal.p2.jarprocessor.ant.AntSignCommand.execute(AntSignCommand.java:51)
... 49 more
Caused by: java.io.IOException: Cannot run program "jarsigner.exe" (in directory "D:\apps\eclipse-jee-kepler-SR2-win32-x86_64\eclipse\workspace\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature"): CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:862)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:481)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495)
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:631)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)
... 53 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 60 more
change the java build path in eclipse to pick up jarsigner.exe under jdk.
I have been running the same web application from within eclipse for some time, and heavily using org.apache.commons.io.output.ByteArrayOutputStream.
Out of the blue, the project is now throwing ClassNotFoundException although commons-io-2.4.jar is included in the build path and marked as exported.
This very class has been used for some time, hence the puzzle
What can I do better to make sure the class is found?
Edit: I have two servers configured Tomcat 7.0.40 and Tomcat 6.0.33
The problem only shows on Tomcat 7.
Note: The following workarounds have been attempted:
Restarting Eclipse.
Cleanup project
Remove and add back commons-io-2.4.jar
Stack Trace:
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/WebApp]]
at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)
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(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/WebApp]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
... 7 more
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/io/output/ByteArrayOutputStream
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Unknown Source)
at java.lang.Class.getDeclaredFields(Unknown Source)
at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)
at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:261)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:140)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:67)
at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:405)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:881)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:369)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5269)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 7 more
Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.output.ByteArrayOutputStream
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
... 21 more
The problem has been fixed by removing the Tomcat 7.0 instance from Eclipse and and add it back
I can only guess Servers configuration can get corrupted from time to time
I get the below error while trying to shutdown my jboss server
Exception in thread "main" javax.naming.CommunicationException
[Root exception is java.rmi.ConnectIOException: Exception creating connection to: 10.10.100.49;
nested exception is:
java.net.NoRouteToHostException: No route to host]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:649)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)
at javax.naming.InitialContext.lookup(Unknown Source)
at org.jboss.Shutdown.main(Shutdown.java:188)
Caused by: java.rmi.ConnectIOException: Exception creating connection to: 10.10.100.49; nested exception is:
java.net.NoRouteToHostException: No route to host
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:530)
... 3 more
Caused by: java.net.NoRouteToHostException: No route to host
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)
... 9 more
The virtual machine on which the JBoss server is installed was recently copied to a new virtual machine with a different IP address. Not sure where the old IP is still referenced.
Do a search for 10.10.100.49 in your JBoss root folder.
If you're on Unix-like OS, try:
find /path/to/jboss/home -type f -exec grep -l '10.10.100.49' {} \;