[JBoss jBPM] - Re: deploy a procesee to jboss server using java code
by Grid.Qian
Thanks. I know I should used /jbpm-console/upload, but if use /jbpm-console/upload, I got another error:
Exception in thread "main" couldn't deploy process archives : null
at org.jbpm.ant.DeployProcessToServerTask.execute(DeployProcessToServerTask.java:179)
at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage.deployProcessToServer(SendTestMessage.java:65)
at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage.sendMessage(SendTestMessage.java:41)
at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage.main(SendTestMessage.java:72)
Caused by: java.lang.NullPointerException
at org.jbpm.ant.DeployProcessToServerTask.tryFormBasedAuthentication(DeployProcessToServerTask.java:276)
at org.jbpm.ant.DeployProcessToServerTask.deployProcess(DeployProcessToServerTask.java:196)
at org.jbpm.ant.DeployProcessToServerTask.deployProcessWithServlet(DeployProcessToServerTask.java:188)
at org.jbpm.ant.DeployProcessToServerTask.execute(DeployProcessToServerTask.java:142)
... 3 more
--- Nested Exception ---
java.lang.NullPointerException
at org.jbpm.ant.DeployProcessToServerTask.tryFormBasedAuthentication(DeployProcessToServerTask.java:276)
at org.jbpm.ant.DeployProcessToServerTask.deployProcess(DeployProcessToServerTask.java:196)
at org.jbpm.ant.DeployProcessToServerTask.deployProcessWithServlet(DeployProcessToServerTask.java:188)
at org.jbpm.ant.DeployProcessToServerTask.execute(DeployProcessToServerTask.java:142)
at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage.deployProcessToServer(SendTestMessage.java:65)
at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage.sendMessage(SendTestMessage.java:41)
at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage.main(SendTestMessage.java:72)
"salaboy21" wrote : My first impresion is that your code have a wrong path to the upload server.. I do not know the SOA platform but i think the correct path is
|
|
|
| | /jbpm-console/upload
| |
|
| so try to change this line in your code:
|
|
| | deployTask.setServerDeployer("/jbpm-console/app/upload");
| |
| to
|
| | deployTask.setServerDeployer("/jbpm-console/upload");
| |
|
| if this is not the problem please let me know and we try to solve it together.
| Greetings!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186925#4186925
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186925
17 years, 5 months
[JBoss jBPM] - Re: Problem with JBPM running on Oracle
by janvandeklok
Since the jboss seam console (jbpm-enterprise.ear) does not contain a hibernate.cfg.xml file, it is my assumption that seam/hibernate takes the dialect from the <type-mapping> in the jbpm-ds.xml which contains in my case :
<type-mapping>Oracle9i</type-mapping>
I can see in the log file that the oracle 10G dialect is used for datasource java:/JbpmDS :
2008-11-05 08:18:58,128 INFO [org.hibernate.util.NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
2008-11-05 08:18:58,128 INFO [org.hibernate.connection.DatasourceConnectionProvider] Using datasource: java:/JbpmDS
2008-11-05 08:18:58,331 INFO [org.hibernate.cfg.SettingsFactory] RDBMS: Oracle, version: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
2008-11-05 08:18:58,331 INFO [org.hibernate.cfg.SettingsFactory] JDBC driver: Oracle JDBC driver, version: 10.2.0.4.0
2008-11-05 08:18:58,347 INFO [org.hibernate.dialect.Dialect] Using dialect: org.hibernate.dialect.Oracle10gDialect
2008-11-05 08:18:58,347 INFO [org.hibernate.transaction.TransactionFactoryFactory] Transaction strategy: org.hibernate.transaction.JTATransactionFactory
)
BUT ... then further in the log I see this:
2008-11-05 08:20:16,184 DEBUG [org.jbpm.persistence.db.DbPersistenceServiceFactory] building hibernate session factory
2008-11-05 08:20:16,184 DEBUG [org.jbpm.db.hibernate.HibernateHelper] creating hibernate configuration resource 'hibernate.cfg.xml'
2008-11-05 08:20:16,184 INFO [org.hibernate.cfg.Configuration] configuring from resource: hibernate.cfg.xml
2008-11-05 08:20:16,184 INFO [org.hibernate.cfg.Configuration] Configuration resource: hibernate.cfg.xml
2008-11-05 08:20:16,184 DEBUG [org.hibernate.util.DTDEntityResolver] trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd]
2008-11-05 08:20:16,184 DEBUG [org.hibernate.util.DTDEntityResolver] recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
2008-11-05 08:20:16,184 DEBUG [org.hibernate.util.DTDEntityResolver] located [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd] in classpath
2008-11-05 08:20:16,184 DEBUG [org.hibernate.cfg.Configuration] hibernate.dialect=org.hibernate.dialect.HSQLDialect2008-11-05 08:20:16,184 DEBUG [org.hibernate.cfg.Configuration] hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider
2008-11-05 08:20:16,184 DEBUG [org.hibernate.cfg.Configuration] hibernate.connection.datasource=java:comp/env/jdbc/JbpmDataSource
Which raises my question:
Is defining the jbpm datasource xml not enough for the jbpm-console to specify the database to use??? What more do we need to change / add???
(We do have deployed an application build with seam in the same app.server that does contain a hibernate.cfg.xml but that one is pointing to a DB2 database (with a DB2Dialect))
Any help would be appriciated!
Jan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186920#4186920
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186920
17 years, 5 months
[Installation, Configuration & DEPLOYMENT] - Issue with accessing application (jboss clustering+apache)
by jbossrook
I am using a Linux box, trying to do clustering using jboss and tomcat
I have two nodes on the same server. have edited the server.xml of both the nodes with the appropriate AJP port.
I have edited the httpd.conf, workers.properties and uriworkers.properties of the webserver.
webserver starts just fine. App server starts and is accessible when i try to access my application using the web server port.
however jus before the log says the app server is started, it throws some errors (pasted below)
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss:service=invoker,type=jrmp
State: FAILED
Reason: java.rmi.server.ExportException: Port already in use: 4444; nested exception is:
java.net.BindException: Address already in use
I Depend On:
jboss:service=TransactionManager
Depends On Me:
jboss:service=proxyFactory,target=ClientUserTransactionFactory
jboss:service=proxyFactory,target=ClientUserTransaction
jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory
ObjectName: jboss:service=WebService
State: FAILED
Reason: java.lang.Exception: Port 8083 already in use.
I Depend On:
jboss.system:service=ThreadPool
Depends On Me:
jboss.ejb:service=EJBDeployer
ObjectName: jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3
State: FAILED
Reason: java.net.BindException: Address already in use
I Depend On:
jboss.aop:service=AspectDeployer
ObjectName: jboss.remoting:service=Connector,transport=socket
State: FAILED
Reason: java.net.BindException: Address already in use
I Depend On:
jboss.remoting:service=NetworkRegistry
Depends On Me:
jboss:service=invoker,type=unified
ObjectName: jboss:service=Naming
State: FAILED
Reason: java.rmi.server.ExportException: Port already in use: 1098; nested exception is:
java.net.BindException: Address already in use
I Depend On:
jboss.system:service=ThreadPool
jboss:service=NamingBeanImpl
Depends On Me:
jboss.mq:service=DestinationManager
jboss.mq:service=Invoker
jboss.mq:service=InvocationLayer,type=UIL
jboss.mq:service=InvocationLayer,type=UILXA
jboss.mq:service=InvocationLayer,type=UIL2,alias=UIL2ConnectionFactory
jboss.mq:service=InvocationLayer,type=UIL2XA,alias=UIL2XAConnectionFactory
jboss.jms:alias=QueueConnectionFactory
jboss.jms:alias=TopicConnectionFactory
jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory
jboss.jmx:alias=jmx/rmi/RMIAdaptor
jboss:service=Mail
ObjectName: jboss:service=invoker,type=pooled
State: FAILED
Reason: java.lang.Exception: Port 4445 is already in use
I Depend On:
jboss:service=TransactionManager
at org.jboss.deployment.MainDeployer.checkIncompleteDeployments(MainDeployer.java:1385)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:785)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:619)
23:02:16,768 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-qax2020%2F10.10.212.212-8080
23:02:16,829 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-qax2020%2F10.10.212.212-18209
23:02:16,857 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 32s:662ms
23:04:48,635 ERROR [AjpMessage] Invalid message recieved with signature 18245
23:05:01,247 ERROR [AjpMessage] Invalid message recieved with signature 18245
Now when i try to access the app, for ex: http://localhost:18109/petstore
The application page should be coming up, instead i see the AjpMessage
"ERROR [AjpMessage] Invalid message recieved with signature 18245"
I have been trying to resolve this, for a long time now.
Can anybody advice what can be done or what has to be done.
Any help will be much appreciated.
Many Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186907#4186907
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186907
17 years, 5 months