[Tomcat, HTTPD, Servlets & JSP] - servlet.jar not loadet
by guleraï¼ gmx.de
Hallo,
I use struts in my web-application which I would like to deploy in jboss.
The Problem that I have is that Tomcat in Jboss cannot see the servlet.jar in WEB-INF/lib. Can someone help me with that Exection?
Thank you!
|
| 18:47:08,781 INFO [Server] Starting JBoss (MX MicroKernel)...
| 18:47:08,781 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
| 18:47:08,796 INFO [Server] Home Dir: C:\Programme\jboss-4.0.5.GA
| 18:47:08,796 INFO [Server] Home URL: file:/C:/Programme/jboss-4.0.5.GA/
| 18:47:08,796 INFO [Server] Patch URL: null
| 18:47:08,796 INFO [Server] Server Name: default
| 18:47:08,796 INFO [Server] Server Home Dir: C:\Programme\jboss-4.0.5.GA\server\default
| 18:47:08,796 INFO [Server] Server Home URL: file:/C:/Programme/jboss-4.0.5.GA/server/default/
| 18:47:08,796 INFO [Server] Server Log Dir: C:\Programme\jboss-4.0.5.GA\server\default\log
| 18:47:08,796 INFO [Server] Server Temp Dir: C:\Programme\jboss-4.0.5.GA\server\default\tmp
| 18:47:08,796 INFO [Server] Root Deployment Filename: jboss-service.xml
| 18:47:09,031 INFO [ServerInfo] Java version: 1.5.0_09,Sun Microsystems Inc.
| 18:47:09,031 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_09-b03,Sun Microsystems Inc.
| 18:47:09,031 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
| 18:47:09,750 INFO [Server] Core system initialized
| 18:47:11,234 INFO [WebService] Using RMI server codebase: http://Jeanette:8083/
| 18:47:11,250 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
| 18:47:14,218 INFO [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date=200609291417)
| 18:47:15,015 INFO [Embedded] Catalina naming disabled
| 18:47:15,062 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
| 18:47:15,062 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
| 18:47:15,281 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
| 18:47:15,281 INFO [Catalina] Initialization processed in 219 ms
| 18:47:15,281 INFO [StandardService] Starting service jboss.web
| 18:47:15,296 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.20
| 18:47:15,312 INFO [StandardHost] XML validation disabled
| 18:47:15,343 INFO [Catalina] Server startup in 62 ms
| 18:47:15,609 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
| 18:47:15,828 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
| 18:47:16,156 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
| 18:47:17,062 INFO [TomcatDeployer] deploy, ctxPath=/pvWEB, warUrl=.../tmp/deploy/tmp19220pvWEB-exp.war/
| 18:47:17,468 INFO [TilesPlugin] Tiles definition factory loaded for module ''.
| 18:47:17,515 INFO [JBossCacheManager] init(): replicationGranularity_ is 0 and invaldateSessionPolicy is 2
| 18:47:17,515 WARN [TomcatDeployer] Failed to setup clustering, clustering disabled. NoClassDefFoundError: org/jboss/cache/CacheException
| 18:47:17,671 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp19227jbossws-context-exp.war/
| 18:47:17,765 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
| 18:47:18,484 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
| 18:47:18,984 INFO [MailService] Mail Service bound to java:/Mail
| 18:47:19,109 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
| 18:47:19,140 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
| 18:47:19,156 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
| 18:47:19,171 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
| 18:47:19,203 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
| 18:47:19,234 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
| 18:47:20,046 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
| 18:47:20,265 INFO [A] Bound to JNDI name: queue/A
| 18:47:20,265 INFO [B] Bound to JNDI name: queue/B
| 18:47:20,265 INFO [C] Bound to JNDI name: queue/C
| 18:47:20,265 INFO [D] Bound to JNDI name: queue/D
| 18:47:20,265 INFO [ex] Bound to JNDI name: queue/ex
| 18:47:20,281 INFO [testTopic] Bound to JNDI name: topic/testTopic
| 18:47:20,281 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
| 18:47:20,281 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
| 18:47:20,281 INFO [testQueue] Bound to JNDI name: queue/testQueue
| 18:47:20,328 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
| 18:47:20,359 INFO [DLQ] Bound to JNDI name: queue/DLQ
| 18:47:20,484 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
| 18:47:20,515 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
| 18:47:20,640 INFO [EARDeployer] Init J2EE application: file:/C:/Programme/jboss-4.0.5.GA/server/default/deploy/pvEAR.ear
| 18:47:20,953 INFO [TomcatDeployer] deploy, ctxPath=/pvWeb, warUrl=.../tmp/deploy/tmp19259pvEAR.ear-contents/pvWeb-exp.war/
| 18:47:20,984 INFO [WebappClassLoader] validateJarFile(C:\Programme\jboss-4.0.5.GA\server\default\.\tmp\deploy\tmp19259pvEAR.ear-contents\pvWeb-exp.war\WEB-INF\lib\javax.servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
| 18:47:20,984 INFO [WebappClassLoader] validateJarFile(C:\Programme\jboss-4.0.5.GA\server\default\.\tmp\deploy\tmp19259pvEAR.ear-contents\pvWeb-exp.war\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
| 18:47:21,359 INFO [TilesPlugin] Tiles definition factory loaded for module ''.
| 18:47:21,375 INFO [JBossCacheManager] init(): replicationGranularity_ is 0 and invaldateSessionPolicy is 2
| 18:47:21,375 WARN [TomcatDeployer] Failed to setup clustering, clustering disabled. NoClassDefFoundError: org/jboss/cache/CacheException
| 18:47:21,406 INFO [EARDeployer] Started J2EE application: file:/C:/Programme/jboss-4.0.5.GA/server/default/deploy/pvEAR.ear
| 18:47:21,500 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
| 18:47:21,562 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
| 18:47:21,578 INFO [JkMain] Jk running ID=0 time=0/32 config=null
| 18:47:21,578 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 12s:782ms
|
|
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987156#3987156
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987156
19Â years, 7Â months
[JBoss jBPM] - Integrating JBPM in web application
by Froschfinger
Hi,
i want to integrate JBPM in my web application. I wrote a servlet which starts a process with an action handler. But if i deploy this in my Jboss it occurs a ClassNotFoundException. My Actionhandler is in the same directory and i dont understand it. Could somebody give me some hints?
My Servlet:
|
| import java.io.IOException;
|
| import javax.servlet.ServletException;
| import javax.servlet.http.HttpServletRequest;
| import javax.servlet.http.HttpServletResponse;
|
| import org.jbpm.JbpmConfiguration;
| import org.jbpm.JbpmContext;
| import org.jbpm.graph.def.ProcessDefinition;
| import org.jbpm.graph.exe.ProcessInstance;
|
| /**
| * Servlet implementation class for Servlet: TestServlet
| *
| */
| public class TestServlet extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
| /* (non-Java-doc)
| * @see javax.servlet.http.HttpServlet#HttpServlet()
| */
| public TestServlet() {
| super();
| }
|
| /* (non-Java-doc)
| * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
| */
| protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
|
| JbpmConfiguration jbpmConfig=JbpmConfiguration.parseXmlString(
| "<jbpm-configuration>"+
|
|
|
| "</jbpm-configuration>");
|
|
|
|
| JbpmContext context=jbpmConfig.createJbpmContext();
|
| try {
| ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(
| "<process-definition>" +
| " <start-state>" +
| " <transition to='s'>" +
| " <action name='action' class='MyActionHandler'>"+
| " <message>Going to the first state!</message>"+
| " </action>"+
| " </transition>"+
| " </start-state>" +
| " <state name='s'>" +
| " <transition to='end' />" +
| " </state>" +
| " <end-state name='end' />" +
| "</process-definition>"
| );
|
| ProcessInstance processInstance =
| new ProcessInstance(processDefinition);
|
| // After construction, the process execution has one main path
| // of execution (=the root token).
| processInstance.signal();
|
| // Also after construction, the main path of execution is positioned
| // in the start-state of the process definition.
|
| // Let's start the process execution, leaving the start-state
| // over its default transition.
|
| // The signal method will block until the process execution
| // enters a wait state.
| processInstance.end();
|
| }finally{
| context.close();
| }
| }
| protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
|
| }
| }
My ActionHandler:
| import org.jbpm.graph.def.ActionHandler;
| import org.jbpm.graph.exe.ExecutionContext;
|
|
| public class MyActionHandler implements ActionHandler{
|
| /**
| *
| */
| private static final long serialVersionUID = 1L;
|
| public void execute(ExecutionContext arg0) throws Exception {
|
| System.out.println("######################");
| System.out.println("Mail senden");
| System.out.println("######################");
| }
|
| }
Is there a special File hierarchy which i have to use?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987153#3987153
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987153
19Â years, 7Â months