[jboss-user] [JBoss Web Services Users] - /webservices context root unavialable in jboss 4.2.3 upon re
I'm running into a problem with jboss webservies and wondering if anyone has a solution for it.. Our environment: Jboss 4.2.3 Java 1.6 Ejb 2.1, Ejb3. We have an ear application that has two ejb modules in it. One contains ejb2.1 stuff and one contains ejb3 stuff. Both have ejbs and webservices in them. They have two different webservice context roots. The ejb2.1 module uses /-ws as the context root while the ejb3 module uses /webservices as the context root. I run into the problem each time I restart my jboss. For some reason, the /webservices context root is not available when I try to go to the jbossws context to access the wsdls. It gives me HTTP 404 error (the requested resource is not available). The ejb2.1 webservice context is always available though. Only when I delete my ear module from the deploy directory and redeploy the ear, I'm able to see the ejb3 webservices context root and all the wsdls inside that root. I'm wondering this is some kind of race condition but not sure. Has anyone seen this kind of behavior before? I appreciate any help. Thanks. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261868#4261868 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261868 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Web Services Users] - Re: /webservices context root unavialable in jboss 4.2.3 upo
Never mind. I found my problem. There's this other ear module that is getting deployed after the ear module I'm having issues with is deployed, and that one has the same /webserives context root for it's webservices. So upon restart, /webservices context is having the last deployed ear module's webservices only. Fixed it by renaming the context to something unique instead. I guess the /webservices context is not global across the jboss deployment. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261891#4261891 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261891 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Timer throwing exception intermittently
Hi, I'm getting the following error at times when my timers are firing. 11:19:51,157 ERROR [ExecuteJobCmd] exception while executing 'timer[46|2009-10-28 11:19:51,040|timeout]' org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [org.jbpm.pvm.internal.model.ExecutionImpl#152] at org.hibernate.impl.SessionFactoryImpl$2.handleEntityNotFound(SessionFactoryImpl.java:409) at org.hibernate.proxy.AbstractLazyInitializer.checkTargetState(AbstractLazyInitializer.java:108) at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:97) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:140) at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:190) at org.jbpm.pvm.internal.model.ExecutionImpl_$$_javassist_4.getActivity(ExecutionImpl_$$_javassist_4.java) at org.jbpm.pvm.internal.job.TimerImpl.execute(TimerImpl.java:94) at org.jbpm.pvm.internal.job.TimerImpl.execute(TimerImpl.java:52) at org.jbpm.pvm.internal.cmd.ExecuteJobCmd.execute(ExecuteJobCmd.java:76) at org.jbpm.pvm.internal.cmd.ExecuteJobCmd.execute(ExecuteJobCmd.java:42) at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42) at org.jbpm.pvm.internal.tx.jta.JtaTransactionInterceptor.executeInNewTx(JtaTransactionInterceptor.java:79) at org.jbpm.pvm.internal.tx.jta.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:61) at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55) at org.jbpm.pvm.internal.tx.jta.JtaRetryInterceptor.executeWithRetry(JtaRetryInterceptor.java:52) at org.jbpm.pvm.internal.tx.jta.JtaRetryInterceptor.execute(JtaRetryInterceptor.java:45) at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:46) at org.jbpm.pvm.internal.jobexecutor.JobParcel.run(JobParcel.java:48) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) Sample timer in my process definition: | | | | | | | | | | | The timers tend to exist though and run just fine on the next timeout. I'm using jbpm 4.1 on jboss 5.1. Thanks in advance. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4262812#4262812 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4262812 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Re: Timer throwing exception intermittently
Sure. Thanks for the response. You could use the below process defnintion and EventListener class to try to reproduce this: | | | http://jbpm.org/4.0/jpdl";> | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It just has a fork, two concurrent activities (events), and a join. My sample event listener class: | @SuppressWarnings("serial") | public class CheckValidityOneEvent implements EventListener { | private final Logger log = Logger.getLogger(this.getClass()); | | @Override | public void notify(EventListenerExecution execution) throws Exception { | try { | // business logic, check for condition | | // if condition met, signal execution by id | executionService.signalExecutionById(execution.getId(), "valid"); | | // otherwise, do nothing | } catch (Exception ex) { | // catch all exceptions and don't rethrow them. | log.error("Exception occured: " + ex.getMessage()); | } | } | } | So on each timeout, the timer will perform a check and transitions to valid only if the check is successful. Otherwise it does nothing. I won't throw any exceptions up the chain. I have my .bar and library jar deployed to jboss 5.1 GA. Let me know if you need anymore information. Thanks. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263552#4263552 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263552 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Re: Timer throwing exception intermittently
Kukeltje, I'm not following when you say two tasks in fork. Could you elaborate a bit more on it? Thanks. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263575#4263575 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263575 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Re: Timer throwing exception intermittently
I found the reason for this behavior. I have repeat timers in my process definition. The timeout event listeners for those timers check for a particular condition and if it is met, transition to a new activity. What's happening in that case is for some reason, though the timer is getting deleted from the database, the timer id is still being used by DispatcherThread class. It passes along this id to the ExecuteJobCmd which throws the exception I posted above as it can't find any timer in the database by that id. It retries upto 3 times and then gives up. That's why I see the exception throws 3 times in the logs. So is there a better way we could turn off the repeat timers when transitioning to a new activity? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263589#4263589 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263589 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Re: Problem with timer
Are you running your jbpm in a clustered jboss environment? This happens to me too. I get such exceptions on timers sometimes. I have a few timers in my jpdl. I think it happens when the activity the timer is on transitions to a different activity. For some reason, the other node in the cluster complains about the row not found for the timer. Although, the timers seem to do their job in my case. I'm also trying to find the root cause of this issue... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268197#4268197 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268197 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Re: Problem with timer
It could be that the jbpm timer clean up code is not synchronized where parts of jbpm are still hanging on to the completed timers. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268198#4268198 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268198 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Re: Problem with timer
Isn't the timer still doing the job for you though? In my case, I see this behavior only when the activity with the timer transitions to a different activity thus implicitly cacelling any timers on that activity. I'd just ignore it if things are still working. You could make changes to the jbpm source and re-compile. Although, I'd just check with the jbpm develpers to see if this is actually a jbpm bug. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268578#4268578 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268578 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - jbpm 4.1 installation problems on jboss 4.2.3
Did anyone successfully install jbpm 4.1 on jboss 4.2.3? If so, could you shed some light on the issues I'm having during the install. I get JbpmDS not bound errors. But I have that datasource defined in jbpm-hsqldb-ds.xml in the jboss/server/default/deploy/jbpm directory. I tried to put the ds xml file one directory above (in the deploy directory) but that didn't help either. Below is the stack trace. Any help would be appreciated. at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:46) at org.jbpm.pvm.internal.jobexecutor.DispatcherThread.acquireJobs(DispatcherThread.java:126) at org.jbpm.pvm.internal.jobexecutor.DispatcherThread.run(DispatcherThread.java:67) Caused by: org.hibernate.HibernateException: Could not find datasource at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:56) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56) at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:414) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292) at org.jbpm.pvm.internal.wire.descriptor.HibernateSessionFactoryDescriptor.construct(HibernateSessionFactoryDescriptor.java:64) at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:473) at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:452) at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:441) at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:421) ... 32 more Caused by: javax.naming.NameNotFoundException: JbpmDS not bound at org.jnp.server.NamingServer.getBinding(NamingServer.java:529) at org.jnp.server.NamingServer.getBinding(NamingServer.java:537) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4257394#4257394 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4257394 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Re: jbpm 4.1 installation problems on jboss 4.2.3
Yes. I'm able to see JbpmDs from the jmx-console. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4257663#4257663 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4257663 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Re: jbpm 4.1 installation problems on jboss 4.2.3
It's java:JbpmDS both in the console and the ds config file. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4257682#4257682 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4257682 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Re: jbpm 4.1 installation problems on jboss 4.2.3
Yes. In the jbpm-*-ds.xml I have it as JbpmDS so jboss prefixes it with java: when it tries to load it. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4257722#4257722 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4257722 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Re: jbpm 4.1 installation problems on jboss 4.2.3
i have it as java:/JbpmDS View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4257727#4257727 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4257727 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user