#1 compile / run from unix os and tomcat and netbeans

open
nobody
5
2012-04-11
2012-04-11
Anonymous
No

Hi guys ,

I have ever been good at setting up an environment within an ide. I also need this application to run on the Unix system. I have pulled the latest release from subversion into netbeans and managed to compile ok.

From then on I have to manually deploy the compiled version in to the webapps directory , when i access the servlet i get the calltracer.jsp page up and from then i get exemptions.

11-Apr-2012 13:05:59 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet action threw exception
java.lang.NoClassDefFoundError: Could not initialize class com.calltracer.jni.CallTracerJNI
at com.calltracer.action.CallTracerAction.execute(CallTracerAction.java:53)
at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)

When I attempt to deploy the application from within netbeans i get the following error.

OK - Undeployed application at context path /Calltracer
In-place deployment at /home/stephen/NetBeansProjects/Calltracer/build/web
deploy?config=file%3A%2Ftmp%2Fcontext4437025990462764519.xml&path=/Calltracer
deploy?config=file%3A%2Ftmp%2Fcontext4437025990462764519.xml&path=/Calltracer
FAIL - Deployed application at context path /Calltracer but context failed to start
/home/stephen/NetBeansProjects/Calltracer/nbproject/build-impl.xml:767:
The module has not been deployed.
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:210)
at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
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.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
BUILD FAILED (total time: 1 second)

What i would like to do is run the application within its own context being able to manipulate information from the calltracer.jsp file , I would also like for the application to snoop into other deployments to produce state diagrams. I am quite sure that this hasn't evolved to this point yet and would supply engineering effort to make this happen and to submit code back to the project.

I note there are dll's supplied with the code , is this an application that so far has been developed in windows, or am i missing something that runs it in linux.

I'm sure if i can receive assistance in getting this off the ground from the netbeans ide to the sevlet , i would become an active contributor to this project with a view to going forward with the progress of the development.

Thanks you ion advance

Stephen

Discussion


Log in to post a comment.