[JBoss jBPM] - process stare couldnt send mail.
by btl_ayd
Hi I use jbpm3.2.1 and I want o send mail.When I run my application on jboss server I have got this error:
|
| ERROR [org.jbpm.graph.def.GraphElement] action threw exception: couldn't send email
| org.jbpm.JbpmException: couldn't send email
| at org.jbpm.mail.Mail.send(Mail.java:149)
| at org.jbpm.mail.Mail.send(Mail.java:113)
| at org.jbpm.mail.Mail.execute(Mail.java:63)
| at org.jbpm.graph.def.Action.execute(Action.java:122)
| at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:255)
| at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:220)
| at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:190)
| at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:174)
| at org.jbpm.graph.def.GraphElement$$FastClassByCGLIB$$7a7d6aa6.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:163)
| at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$725d02e.fireEvent(<generated>)
| at org.jbpm.graph.exe.Token.signal(Token.java:191)
| at org.jbpm.graph.exe.Token.signal(Token.java:157)
| at org.jbpm.jsf.core.action.SignalActionListener.handleAction(SignalActionListener.java:56)
| at org.jbpm.jsf.core.impl.JbpmActionListenerWrapper.processAction(JbpmActionListenerWrapper.java:82)
| at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
| at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:758)
| at javax.faces.component.UICommand.broadcast(UICommand.java:368)
| at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:448)
| at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
| at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:810)
| Caused by:
| javax.mail.SendFailedException: Sending failed;
| nested exception is:
| class javax.mail.MessagingException: Exception reading response;
| nested exception is:
| java.net.SocketException: Connection reset
| at javax.mail.Transport.send0(Transport.java:218)
| at javax.mail.Transport.send(Transport.java:80)
| at org.jbpm.mail.Mail.send(Mail.java:147)
| ... 43 more
| 2008-07-02 11:56:14,109 ERROR [org.jbpm.graph.def.GraphElement] action threw exception: couldn't send email
| org.jbpm.JbpmException: couldn't send email
| at org.jbpm.mail.Mail.send(Mail.java:149)
| at org.jbpm.mail.Mail.send(Mail.java:113)
| at org.jbpm.mail.Mail.execute(Mail.java:63)
| at org.jbpm.graph.def.Action.execute(Action.java:122)
| at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:255)
| at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:220)
| at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:190)
| at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:174)
| at org.jbpm.graph.def.GraphElement$$FastClassByCGLIB$$7a7d6aa6.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:163)
| at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$725d02e.fireEvent(<generated>)
| at org.jbpm.graph.exe.Token.signal(Token.java:191)
| at org.jbpm.graph.exe.Token.signal(Token.java:157)
| at org.jbpm.jsf.core.action.SignalActionListener.handleAction(SignalActionListener.java:56)
| at org.jbpm.jsf.core.impl.JbpmActionListenerWrapper.processAction(JbpmActionListenerWrapper.java:82)
| at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
| at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:758)
| at javax.faces.component.UICommand.broadcast(UICommand.java:368)
| at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:448)
| at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
| at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:810)
| Caused by:
| javax.mail.SendFailedException: Sending failed;
| nested exception is:
| class javax.mail.MessagingException: Exception reading response;
| nested exception is:
| java.net.SocketException: Connection reset
| at javax.mail.Transport.send0(Transport.java:218)
| at javax.mail.Transport.send(Transport.java:80)
| at org.jbpm.mail.Mail.send(Mail.java:147)
| ... 43 more
|
|
|
here is my process deifinition xml tag:
|
| <process-definition
| xmlns="urn:jbpm.org:jpdl-3.2"
| name="simple">
| <start-state name="start">
| <transition name="to_state" to="first">
| <action name="action" class="com.sample.action.MessageActionHandler">
| <message>Going to the first state!</message>
| </action>
| </transition>
| </start-state>
| <state name="first" >
| <event type="before-signal">
| <mail name="mail" to="baydin(a)kipas.com.tr" subject="dnetjeÅr" text="http://localhost:8080/jbpm-console/sa/task.jsf?id=1">
|
| </mail>
| <action name="action1" class="com.sample.action.MessageActionHandler">
| <message>BETUL AYDIN BU BİR DENEME</message>
| </action>
| </event>
| <transition name="to_end" to="end">
| <action name="action" class="com.sample.action.MessageActionHandler">
| <message>About to finish!</message>
| </action>
| </transition>
| </state>
| <end-state name="end"></end-state>
| </process-definition>
|
here is my jbpm.cfg.xml:
|
| <jbpm-configuration>
|
| <jbpm-context>
| <service name="persistence" factory="org.jbpm.persistence.db.DbPersistenceServiceFactory" />
| <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
| <service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory" />
| <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
| <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
| <service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
| </jbpm-context>
|
| <!-- configuration property used by persistence service impl org.jbpm.persistence.db.DbPersistenceServiceFactory -->
| <string name="resource.hibernate.cfg.xml" value="hibernate.cfg.xml" />
|
| <!-- configuration resource files pointing to default configuration files in jbpm-{version}.jar -->
| <string name="resource.business.calendar" value="org/jbpm/calendar/jbpm.business.calendar.properties" />
| <string name="resource.default.modules" value="org/jbpm/graph/def/jbpm.default.modules.properties" />
| <string name="resource.converter" value="org/jbpm/db/hibernate/jbpm.converter.properties" />
| <string name="resource.action.types" value="org/jbpm/graph/action/action.types.xml" />
| <string name="resource.node.types" value="org/jbpm/graph/node/node.types.xml" />
| <string name="resource.parsers" value="org/jbpm/jpdl/par/jbpm.parsers.xml" />
| <string name="resource.varmapping" value="org/jbpm/context/exe/jbpm.varmapping.xml" />
| <string name="resource.mail.templates" value="jbpm.mail.templates.xml" />
|
| <int name="jbpm.byte.block.size" value="1024" singleton="true" />
| <string name="jbpm.mail.smtp.host" value="10.3.0.8" />
| <bean name="jbpm.task.instance.factory" class="org.jbpm.taskmgmt.impl.DefaultTaskInstanceFactoryImpl" singleton="true" />
| <bean name="jbpm.variable.resolver" class="org.jbpm.jpdl.el.impl.JbpmVariableResolver" singleton="true" />
| <bean name="jbpm.mail.address.resolver" class="org.jbpm.identity.mail.IdentityAddressResolver" singleton="true" />
|
| <bean name="jbpm.job.executor" class="org.jbpm.job.executor.JobExecutor">
| <field name="jbpmConfiguration"><ref bean="jbpmConfiguration" /></field>
| <field name="name"><string value="JbpmJobExector" /></field>
| <field name="nbrOfThreads"><int value="1" /></field>
| <field name="idleInterval"><int value="5000" /></field>
| <field name="maxIdleInterval"><int value="3600000" /></field> <!-- 1 hour -->
| <field name="historyMaxSize"><int value="20" /></field>
| <field name="maxLockTime"><int value="600000" /></field> <!-- 10 minutes -->
| <field name="lockMonitorInterval"><int value="60000" /></field> <!-- 1 minute -->
| <field name="lockBufferTime"><int value="5000" /></field> <!-- 5 seconds -->
| </bean>
| </jbpm-configuration>
|
|
can anybody tell me what is problem?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161978#4161978
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161978
17 years, 4 months
[JBoss Portal] - Re: JBoss Portlet Container 2.0.0 - Getting a Portal Page wo
by terroene
"thomas.heute(a)jboss.com" wrote : Was it something missing from the doc ? (for others)
Ohh, hard answer:
First the docs (User_Guide) suggest everything is very easy to do:
just implement a portal and write a simple-portal-page like this (quote from the User_Guide):
| <%@ page contentType="text/html;charset=UTF-8" language="java" %>
| <%@ taglib uri="/WEB-INF/portal.tld" prefix="portal" %>
| <?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE html
| PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
| <head>
| <title>Simple portal page</title>
| </head>
| <body>
| <portal:page>
| <portal:portlet name="JSPPortlet"
| applicationName="samples-jsp-portlet">
| <portal:portletmarkup/>
| </portal:portlet>
| </portal:page>
| </body>
| </html>
|
This doesn't work so easy, there are additional steps to mention:
1) To build a war that works with the container you have to include the following libraries at build time (currently I'm using Netbeans):
ccpp-1.0.jar common-common-1.2.0.jar
common-portal-1.2.0.jar portlet-api-2.0.jar
portlet-portlet-2.0.0.jar web-web-1.2.0.jar
-> found in JBOSS_HOME/server/default/deploy/simple-portal/lib
2) In the war-file you have to include the following libraries into the directory WEB-INF/lib:
common-mc-1.2.0.jar jboss-common-core-2.2.3.GA.jar
jboss-dependency-2.0.0.Beta13.jar jboss-kernel-2.0.0.Beta13.jar
jboss-mdr-2.0.0.Beta14.jar jboss-reflect-2.0.0.Beta12.jar
jbossxb-2.0.0.CR8.jar portlet-controller-2.0.0.jar
portlet-mc-2.0.0.jar
-> found in JBOSS_HOME/server/default/deploy/simple-portal/simple-portal.war/WEB-INF/lib
3) To get the extended Taglib I simply copied
JBOSS_HOME/server/default/deploy/simple-portal/simple-portal.war/WEB-INF/tags
to my WEB-INF directory
4) I really don't know, what the controller-filter is doing but I recognized two filters in the web.xml of simple-portal.war:
I think the listener is only needed for beans,
but my Web-Application won't work without the filters,
so I included them into my web.xml:
| <filter>
| <filter-name>ErrorHandlingFilter</filter-name>
| <filter-class>org.jboss.portal.portlet.portal.ErrorHandlingFilter</filter-class>
| </filter>
| <filter>
| <filter-name>ControllerFilter</filter-name>
| <filter-class>org.jboss.portal.portlet.portal.jsp.ControllerFilter</filter-class>
| </filter>
| <filter-mapping>
| <filter-name>ErrorHandlingFilter</filter-name>
| <url-pattern>*.jsp</url-pattern>
| </filter-mapping>
| <filter-mapping>
| <filter-name>ControllerFilter</filter-name>
| <url-pattern>*.jsp</url-pattern>
| </filter-mapping>
|
| <listener>
| <listener-class>
| org.jboss.portal.common.mc.bootstrap.WebBootstrap</listener-class>
| </listener>
|
| <servlet>
| <servlet-name>ContainerServlet</servlet-name>
| <servlet-class>
| org.jboss.portal.web.impl.tomcat.TC6ContainerServlet
| </servlet-class>
| <load-on-startup>0</load-on-startup>
| </servlet>
|
I also included the following files into the WEB-INF-directory:
context.xml jboss-beans.xml
jboss-web.xml portal.tld
-> found in JBOSS_HOME/server/default/deploy/simple-portal/simple-portal.war/WEB-INF
Perhaps I'm an idiot and everything is much easier, but now my portal-page works.
I still have some strange problems:
1) Still I can't get the "<portal:portlet>"-tag to work, i.e. using this tag doesn't cause an exception but the portlet won't appear. The taglib is included!
So I'm using the extended taglib.
2) The resizing problem (view the other post)
Please excuse my crappy english,
best regards,
rene
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161977#4161977
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161977
17 years, 4 months
[JBoss Portal] - Re: Error:
by Subemontes
What is WSRP ?
The complete Stack trace is quite long :) But i Put it now.
I'm using the default ports.
The server will be running, inside the Jboss, the following aplications (atm):
Jboss Portal
Polymita
And one designed by our development guys.
Be ready to Max LOG! :)
C:\Documents and Settings\services\Desktop>C:\jboss-4.2.2.GA\bin\run.bat -b 0.0.0.0
| ===============================================================================
|
| JBoss Bootstrap Environment
|
| JBOSS_HOME: C:\jboss-4.2.2.GA
|
| JAVA: C:\Program Files\Java\jdk1.5.0_15\bin\java
|
| JAVA_OPTS: -Dprogram.name=run.bat -server -XX:PermSize=75m -XX:MaxPermSize=128m -Xms512m -Xmx768m -XX:NewSize=128m -Dsun.
| rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -XX:+PrintGCTimeStamps -verbose:gc -Xloggc:gc.log
| -Dcom.sun.management.jmxremote
|
| CLASSPATH: C:\Program Files\Java\jdk1.5.0_15\lib\tools.jar;C:\jboss-4.2.2.GA\bin\run.jar
|
| ===============================================================================
|
| 10:50:15,660 INFO [Server] Starting JBoss (MX MicroKernel)...
| 10:50:15,660 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)
| 10:50:15,675 INFO [Server] Home Dir: C:\jboss-4.2.2.GA
| 10:50:15,675 INFO [Server] Home URL: file:/C:/jboss-4.2.2.GA/
| 10:50:15,691 INFO [Server] Patch URL: null
| 10:50:15,691 INFO [Server] Server Name: default
| 10:50:15,691 INFO [Server] Server Home Dir: C:\jboss-4.2.2.GA\server\default
| 10:50:15,707 INFO [Server] Server Home URL: file:/C:/jboss-4.2.2.GA/server/default/
| 10:50:15,707 INFO [Server] Server Log Dir: C:\jboss-4.2.2.GA\server\default\log
| 10:50:15,707 INFO [Server] Server Temp Dir: C:\jboss-4.2.2.GA\server\default\tmp
| 10:50:15,722 INFO [Server] Root Deployment Filename: jboss-service.xml
| 10:50:16,222 INFO [ServerInfo] Java version: 1.5.0_15,Sun Microsystems Inc.
| 10:50:16,222 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_15-b04,Sun Microsystems Inc.
| 10:50:16,222 INFO [ServerInfo] OS-System: Windows 2003 5.2,x86
| 10:50:17,253 INFO [Server] Core system initialized
| 10:50:23,206 INFO [WebService] Using RMI server codebase: http://VALJBS01:8083/
| 10:50:23,206 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
| 10:50:24,409 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
| 10:50:24,409 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
| 10:50:24,816 INFO [TransactionManagerService] Starting recovery manager
| 10:50:25,019 INFO [TransactionManagerService] Recovery manager started
| 10:50:25,034 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
| 10:50:31,862 INFO [EJB3Deployer] Starting java:comp multiplexer
| 10:50:32,581 INFO [STDOUT] no object for null
| 10:50:32,612 INFO [STDOUT] no object for null
| 10:50:32,675 INFO [STDOUT] no object for null
| 10:50:32,753 INFO [STDOUT] no object for {urn:jboss:bean-deployer}supplyType
| 10:50:32,768 INFO [STDOUT] no object for {urn:jboss:bean-deployer}dependsType
| 10:50:37,081 INFO [NativeServerConfig] JBoss Web Services - Native
| 10:50:37,096 INFO [NativeServerConfig] jbossws-native-2.0.1.SP2 (build=200710210837)
| 10:50:39,190 INFO [Embedded] Catalina naming disabled
| 10:50:39,549 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production en
| vironments was not found on the java.library.path: C:\Program Files\Java\jdk1.5.0_15\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:
| \Program Files\HP\NCU;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\jdk1.5.0_15\bin;C:\jboss
| -4.2.2.GA\server\default\conf;C:\jvmstat\bat;C:\Program Files\Java\jdk1.5.0_15\jre\bin;C:\apache-ant-1.7.0\bin
| 10:50:39,706 INFO [Http11Protocol] Inicializando Coyote HTTP/1.1 en puerto http-0.0.0.0-8080
| 10:50:39,721 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-0.0.0.0-8009
| 10:50:39,737 INFO [Catalina] Initialization processed in 544 ms
| 10:50:39,737 INFO [StandardService] Arrancando servicio jboss.web
| 10:50:39,768 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
| 10:50:39,924 INFO [Catalina] Server startup in 158 ms
| 10:50:40,565 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
| 10:50:42,674 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
| 10:50:43,206 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/
| 10:50:43,581 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil
| .war/
| 10:50:45,784 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.w
| ar/
| 10:50:47,065 INFO [MailService] Mail Service bound to java:/Mail
| 10:50:47,330 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
| 10:50:47,471 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
| 10:50:47,659 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
| 10:50:47,768 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
| 10:50:47,909 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
| 10:50:48,034 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
| 10:50:48,159 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
| 10:50:48,205 INFO [QuartzResourceAdapter] start quartz!!!
| 10:50:48,393 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
| 10:50:48,502 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
| 10:50:48,534 INFO [RAMJobStore] RAMJobStore initialized.
| 10:50:48,596 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in
| Quartz package: 'quartz.properties'
| 10:50:48,674 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
| 10:50:48,721 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
| 10:50:49,034 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=Tasac
| iones_SGPDatasource' to JNDI name 'java:Tasaciones_SGPDatasource'
| 10:50:49,393 INFO [STDOUT] [Server@1e881b6]: [Thread[hypersonic-default,5,jboss]]: checkRunning(false) entered
| 10:50:49,440 INFO [STDOUT] [Server@1e881b6]: [Thread[hypersonic-default,5,jboss]]: checkRunning(false) exited
| 10:50:49,471 INFO [STDOUT] [Server@1e881b6]: Startup sequence initiated from main() method
| 10:50:49,518 INFO [STDOUT] [Server@1e881b6]: Loaded properties from [C:\Documents and Settings\services\Desktop\server.prop
| erties]
| 10:50:49,580 INFO [STDOUT] [Server@1e881b6]: Initiating startup sequence...
| 10:50:49,643 INFO [STDOUT] [Server@1e881b6]: Server socket opened successfully in 31 ms.
| 10:50:50,096 INFO [STDOUT] [Server@1e881b6]: Database [index=0, id=1, db=file:C:\jboss-4.2.2.GA\server\default\data\hyperso
| nic\default, alias=] opened sucessfully in 437 ms.
| 10:50:50,174 INFO [STDOUT] [Server@1e881b6]: Startup sequence completed in 562 ms.
| 10:50:50,205 INFO [STDOUT] [Server@1e881b6]: 2008-07-02 10:50:50.205 HSQLDB server 1.8.0 is online
| 10:50:50,252 INFO [STDOUT] [Server@1e881b6]: To close normally, connect and execute SHUTDOWN SQL
| 10:50:50,284 INFO [STDOUT] [Server@1e881b6]: From command line, use [Ctrl]+[C] to abort abruptly
| 10:50:50,393 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=Defau
| ltDS' to JNDI name 'java:DefaultDS'
| 10:50:51,377 INFO [A] Bound to JNDI name: queue/A
| 10:50:51,455 INFO [B] Bound to JNDI name: queue/B
| 10:50:51,502 INFO [C] Bound to JNDI name: queue/C
| 10:50:51,533 INFO [D] Bound to JNDI name: queue/D
| 10:50:51,612 INFO [ex] Bound to JNDI name: queue/ex
| 10:50:51,674 INFO [testTopic] Bound to JNDI name: topic/testTopic
| 10:50:51,705 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
| 10:50:51,752 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
| 10:50:51,799 INFO [testQueue] Bound to JNDI name: queue/testQueue
| 10:50:51,908 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
| 10:50:52,002 INFO [DLQ] Bound to JNDI name: queue/DLQ
| 10:50:52,252 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,nam
| e=JmsXA' to JNDI name 'java:JmsXA'
| 10:50:52,440 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
After that, the server deploy the aplications and end with that line:
10:53:21,310 INFO [Http11Protocol] Arrancando Coyote HTTP/1.1 en puerto http-0.0.0.0-8080
| 10:53:21,372 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-0.0.0.0-8009
| 10:53:21,513 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 3m
| :5s:775ms
AND, if i now put the portal , we have the Errors I put on the first post
thanks for the help and sorry for the title of post, he changed.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161976#4161976
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161976
17 years, 4 months
[JBoss Messaging] - best practice for JTA based consuming and delegating
by mclu
Hi all!
I am a little confused.
I have to receive messages from a local queue and have to delegate this to some business logic (Session Beans) (which persists data in a DB);
I have to ensure that the message order is preserved, also in case of rollbacks or exceptions. I also have to ensure that the consuming and the business logic is handles in one transaction.
My first idea was to receive messages via a MDB but in case of setRollbackOnly() the MDB container does not retry the same message so order is scrambled.
Then I thought to create a Service which starts a plain receiver which uses jmsXA Connectionfactory to create a transacted receive. Message by Message.
My question. Does this also starts a JTA transaction where my called Sessionbeans later enlist to? Or must I start a transaction by hand?
I am searching for the best practice to receive messages and process them by my ejb3 session and entitybeans in one transaction.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161973#4161973
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161973
17 years, 4 months
[JBoss jBPM] - Lost update problem?
by rbradwell
Hi,
This is more of a design level question than a specific problem I am having. Therefore I haven't published any specific code. I hope you can provide some views on it.
Imagine I have a jbpm process that uses my own custom fork node i.e. from the start node a number of child tokens are created and transitioned.
For the entire live of the process instance these tokens exist i.e. I'm not doing a join at any point.
The thing that concerns me is that I'm setting variables in the context instance and this context instance is shared between the tokens (threads). Furthermore each token is updating the same variable in the context instance. Now I am aware that the context instance can implement various levels of scope based on the token. However I want everything in the top level scope because I want to share data between the seperate tokens (threads). i.e. anything in the context instance gets copied to task node variables upon entering the node for every token.
Will the updating of the same variable in the same context instance cause a lost update problem. For example i'm worried about the following scenario.
1 Token 1 (thread one) gets the context instance and reads variable a
2 Token 2 (thread two) gets the context instance and reads variable a
3 Token 1 makes an update to variable a and persists it
4 Token 2 makes an update to variable a and persists it
At step 4 the update in step 3 is lost.
Will this be sorted out by hibernate if I get the right locking settings or do I need some sort of locking mechanism on my variable a? Apologies I'm not really that familiar with Hibernate by it seems having a process with multiple tokens (being signalled in multiple threads) and writing to the same variables in the top level scope (because I only want one shared copy), there might be classical concurrency issues?
Help is much appreciated
regards
Richard.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161969#4161969
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161969
17 years, 4 months
[Installation, Configuration & DEPLOYMENT] - JBoss5 CR1 and org.jboss.xb.binding.JBossXBException
by jimmycallaghan
I've been using JBoss5.0.0.Beta4 and have managed to get a new set of applications deploying and working very nicely. However, now that CR1 has been released I would very much like to use that instead. Problem is that when I try and deploy any of these same applications I get the following errors for each EAR that is being deployed:
07:37:53,841 ERROR [AbstractKernelController] Error installing to Parse: name=vfszip:/home/jim/messaging-platform/jboss-5.0.0.CR1/server/custom1/deploy/webs/10.mpee.local.20080701.1742.ear state=Not Installed mode=Manual requiredState=Parse
| org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/home/jim/messaging-platform/jboss-5.0.0.CR1/server/custom1/deploy/webs/10.mpee.local.20080701.1742.ear
| at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:343)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:303)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:275)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:236)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:174)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:970)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:911)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1392)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:912)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:834)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:672)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:455)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:594)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:257)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:135)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:409)
| at org.jboss.Main.boot(Main.java:209)
| at org.jboss.Main$1.run(Main.java:544)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Failed to resolve schema nsURI= location=persistence
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
| at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
| at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:198)
| at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:170)
| at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:132)
| at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:118)
| at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:128)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:329)
| ... 21 more
I've checked the forums and only found a little posing about adding the following to metadata-deployer-beans.xml:
<entry>
| <key>persistence_1_0.xsd</key>
| <value>org.jboss.metadata.jpa.spec.PersistenceMetaData</value>
| </entry>
|
Any suggestions anyone?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161962#4161962
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161962
17 years, 4 months