[JBoss jBPM] - Re: Problem with changing backend database to mysql
by mputz
True, the docs are not completely matching the 3.2 version, as the paths mentioned in this chapter still refer to the 3.1.x starters kit. But in general, the process of switching the DB backend is still roughly the same.
Now, back to your initial issue. I'm wondering if your config changes are really getting picked up. In the server.log you should see similar messages:
5785:2008-03-11 13:09:36,054 INFO [org.hibernate.cfg.Configuration] configuring from resource: hibernate.cfg.xml
| 5786:2008-03-11 13:09:36,054 INFO [org.hibernate.cfg.Configuration] Configuration resource: hibernate.cfg.xml
| 5790:2008-03-11 13:09:36,165 DEBUG [org.hibernate.cfg.Configuration] hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
| 5791:2008-03-11 13:09:36,165 DEBUG [org.hibernate.cfg.Configuration] hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider
| 5792:2008-03-11 13:09:36,165 DEBUG [org.hibernate.cfg.Configuration] hibernate.connection.datasource=java:/JbpmDS
|
of course in your case for mysql.
Also, check if you have multiple hibernate.cfg.xml files somewhere in your deployment, also check inside archives as well.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135586#4135586
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135586
18 years, 1 month
[JBossWS] - Jboss Juddi configuration
by anil_dongre
Hi
I do not know whether this is the right place for my question.
I am new to jboss and Juddi. I tried configuring juddi on JBoss 4.2 GA. My database is MySQL.
I have similarly configured Juddi on tomcat.
I tried a small application to create an organisation using JAXR. This sample works fine with my tomcat installation but when i try it with JBoss it throws a table not found exception for the table Publisher. I guess something is wrong with my configuration of Juddi on JBoss.
Can any help me with this. Can someone tell me exactly how do i configure my datasource. Can someone also tell me how do i test my Juddi configuration like i can in tomcat with happyjuddi.
Thanks in advance
Regards
Anil
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135585#4135585
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135585
18 years, 1 month
[JBoss jBPM] - Re: modelling worklows with parallel nodes
by ffernandez
Hi Ronald,
I have tested this workflow with task-nodes but without parallel execution (task node "one" and "two" are executed in sequence):
| import junit.framework.*;
| import org.jbpm.*;
| import org.jbpm.graph.def.*;
| import org.jbpm.graph.exe.*;
|
| public class JbpmForkTest extends TestCase {
|
| JbpmConfiguration configuration = JbpmConfiguration.getInstance( "my.jbpm.cfg.xml" );
|
| protected void setUp() {
| JbpmContext jbpmContext = configuration.createJbpmContext();
|
| ProcessDefinition pd = ProcessDefinition.parseXmlString(
| "<process-definition name='test'>" +
| " <start-state name='start'>" +
| " <transition to='fork' />" +
| " </start-state>" +
| " <fork name='fork'>" +
| " <transition name='first' to='one' />" +
| " <transition name='second' to='two' />" +
| " </fork>" +
| " <task-node name='one' >" +
| " <event type='node-enter'>" +
| " <action class='JbpmSleepActionHandler'/>" +
| " </event> " +
| " <transition to='join'>" +
| " </transition>" +
| " </task-node >" +
| " <task-node name='two' >" +
| " <event type='node-enter'>" +
| " <action class='JbpmSleepActionHandler'/>" +
| " </event> " +
| " <transition to='join'>" +
| " </transition>" +
| " </task-node >" +
| " <join name='join'>" +
| " <transition to='end' />" +
| " </join>" +
| " <end-state name='end' />" +
| "</process-definition>"
| );
| jbpmContext.deployProcessDefinition( pd );
| jbpmContext.close();
| }
|
| public void testFork() throws Exception{
|
| JbpmContext jbpmContext = configuration.createJbpmContext();
| ProcessInstance pi = jbpmContext.newProcessInstance( "test" );
| pi.signal();
| jbpmContext.save( pi );
| jbpmContext.close();
| }
|
| }
|
|
| import org.jbpm.graph.def.ActionHandler;
| import org.jbpm.graph.exe.ExecutionContext;
|
| public class JbpmSleepActionHandler implements ActionHandler {
|
| public void execute(ExecutionContext executionContext) throws Exception {
| System.err.println ( "sleep " + executionContext );
| Thread.sleep( 10000 );
| System.err.println ( "wakeup " + executionContext );
| }
| }
|
|
Thanks Ronald
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135581#4135581
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135581
18 years, 1 month
[JBoss Messaging] - MDB Security Vs JBM Security
by mskonda
Hello Team
I have a situation - I got an MDB that needs by passing the secured JMS Server.
That is, I have a secured JBM using DatabaseLoginModule.
The login-config.xml's messaging domain reflects use of this module.
The messaging-service.xml is updated to add the DefaultSecurityConfig.
Now, I want the external clients to get authenticated and authorised while my MDB should by pass.
So, I've added unauthenticatedIdentity as 'guest' to the 'messaging' applicaiton policy in login-config.xml
I've added the relevant security-identity and security-role to the ejb-jar.xml.
I've also added security-domain to the jboss.xml - I've pointed to java:jaas/messaging (tried with 'other' too). Iv'e added the security-domain to the container configuraiton too.
Inspite of doign this, when I deploy my MDB it complains saying the user null is not authenticated.
I'll appreciate if someone thorws a bit of light on this issue.
(My understanding is that MDB uses the DefaultJMSProvider which inturns uses the default (XA)ConnectionFactory which I think uses the 'messaging' applicaiton policy - right or wrong?)
Regards
/Madhu
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135578#4135578
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135578
18 years, 1 month
[Beginners Corner] - Re: application clients in JBOSS 4.2.2
by sajhak
hi jaikiran ,
i placed the jndi.properties file in client jar , but now it gives the following exception ...
C:\Documents and Settings\saji>java dev.saji.ejb.client.SearchNamesClient
javax.naming.NoInitialContextException:
Cannot instantiate class: org.jnp.interfaces.NamingContextFactory
[Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.(Unknown Source)
at dev.saji.ejb.client.SearchNamesClient.doTest(SearchNamesClient.java:32)
at dev.saji.ejb.client.SearchNamesClient.main(SearchNamesClient.java:24)
Caused by: java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.sun.naming.internal.VersionHelper12.loadClass(Unknown Source)
... 6 more
C:\Documents and Settings\saji>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135573#4135573
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135573
18 years, 1 month