[JBoss jBPM] - gravel and j4j tags in datatable
by gnagy
Hi,
I tried borrowing code from the jbpm console for listing tasks and making transitions. I iterate over #{taskInstanceList} in a datatable (tried both h:datatable and rich:datatable), but the gravel and j4j tags don't pick up the iteration variable.
<h:dataTable var="taskInstance" value="#{taskInstanceList}">
<h:column>
<f:facet name="header" >
<h:outputText value="Deal info"/>
</f:facet>
<h:outputText value="#{taskInstance.variables['dealTask']}"/>
</h:column>
<h:column>
<f:facet name="header" >
<h:outputText value="State"/>
</f:facet>
<h:outputText value="#{taskInstance.task.parent.name}"/>
</h:column>
<h:column>
<f:facet name="header" >
<h:outputText value="Actions"/>
</f:facet>
<ga:responseActions>
<gd:sort source="#{taskInstance.availableTransitions}" target="#{transitions}" entryVar="e" argument="#{e.name}"/>
</ga:responseActions>
< ul>
<gd:repeat value="#{transitions}" var="transition">
< li>
<h:commandLink>
<j4j:loadTask id="#{taskInstance.id}" target="#{j4jtask}"/>
<j4j:completeTask task="#{j4jtask}" transition="#{transition.name}"/>
#{transition.name}
<n:nav outcome="success" redirect="true" storeMessages="true"/>
<n:nav outcome="error" redirect="true" storeMessages="true"/>
</h:commandLink>
< /li>
</gd:repeat>
< /ul>
</h:column>
</h:dataTable>
is rendered as:
Deal info State Actions
info1 Accepting Deal
info2 Accepting Deal
info3 Accepting Deal
i.e. the Actions column is empty.
Any ideas why gravel and j4j don't pick up #{transitions}? Note, it semi-works with ui:repeat, but then i have no chance to sort the set of transitions.
Also, is it ok to post further gravel questions in the jbpm forum? Or do they belong elsewhere?
Thanks,
Greg
b2international.com
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160131#4160131
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160131
17 years, 10 months
[Installation, Configuration & DEPLOYMENT] - Can I deploy a Folder other than a .WAR type in Windows mc/
by anandh@andale.com
Hi All!
I have an application which resides outside the JBOSS Server Folder.
Ideally if i need to deploy the application i might have to move it into the server/default/deploy folder but i want it deployed from outside.
I got the way out by specifying
| <attribute name="URLs">
| deploy/,
| file:/c:\user-21682\home\application\src\docroot.war
| </attribute>
In the jboss-service.xml file under the URLDeploymentScanner setting.
But the issue i am facing is that my folder name has to be docroot rather than a 'docroot.war'
This is a restriction i would like to keep :-(
But JBoss requires a .war. How can i get rid of this issue (In Windows)?
In Unix machine i was able to create a link.
In Windows i tried something similar using cygwin but it gave FileNotFound exception on the link (file:/c:\user-21682\home\application\src\docroot.war)
I had linked docroot.war to docroot folder, but under Windows it is Not able to find the file(folder).
Under Unix this trick works.
Please Help!
Thanks!
Anand.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160127#4160127
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160127
17 years, 10 months
[Remoting] - Re: ClassNotFoundException while calling remote ejb3 across
by avogt_sundn
Thank you, Ron.
Yet, one thing remains, perhaps based on my missconception:
I took your ScopedTest and changed according to my use case:
TravelAgentBean now implements another @Remote interface, namely SpecialTravelAgent. This interface is not available in the clients class loader.
When the client now does a lookup, he gets a remoteproxystub, but cannot use it because that other business interface ist not being loaded from the remote class loader.
This is my case: i want to use an ejb that has one remote interface know to the client, but has various other remote interfaces NOT KNOWN to the client.
Is that possible?
Just add some interface SpecialTravelAgent to the deployment, BUT not to the client.jar!
The exception in the Client.java then is
| javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: com.titan.travelagent.SpecialTravelAgent]
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:786)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
| at javax.naming.InitialContext.lookup(InitialContext.java:351)
| at com.titan.client.Client.testScoped1(Client.java:46)
| 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:585)
| at junit.framework.TestCase.runTest(TestCase.java:154)
| at junit.framework.TestCase.runBare(TestCase.java:127)
| at junit.framework.TestResult$1.protect(TestResult.java:106)
| at junit.framework.TestResult.runProtected(TestResult.java:124)
| at junit.framework.TestResult.run(TestResult.java:109)
| at junit.framework.TestCase.run(TestCase.java:118)
| at junit.framework.TestSuite.runTest(TestSuite.java:208)
| at junit.framework.TestSuite.run(TestSuite.java:203)
| at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
| at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
| Caused by: java.lang.ClassNotFoundException: com.titan.travelagent.SpecialTravelAgent
| at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
| at java.security.AccessController.doPrivileged(Native Method)
| at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
| at java.lang.Class.forName0(Native Method)
| at java.lang.Class.forName(Class.java:242)
| at sun.rmi.server.LoaderHandler.loadProxyInterfaces(LoaderHandler.java:707)
| at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:651)
| at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:588)
| at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628)
| at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294)
| at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238)
| at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1500)
| at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1463)
| at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
| at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
| at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
| at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:710)
| ... 21 more
|
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160112#4160112
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160112
17 years, 10 months
[Beginners Corner] - Jboss USer login session timeout
by b1380
Hi All
I am new jboss user. I downloaded 4.2.2 version of jboss and was trying to configure it. So we wrote an application and deployed it in the the Jboss.
The application was deployed successfully and the database connectivity to mysql were also working fine.
The actual problem is with one of the tester. He actually needs to get higher session timeout for the application. He wants to have 10 hours session timeout. I configured Http Seesion timeout to 600 minutes in the applications web.xml.
The session remained the same. But the user was kicked out to the login page and he needs to login again with the username and password. But the http session was working perfectly.
The tester told he dont want to login each time he is idle for more than 30 minutes.
Is there any way to make the User Login session Timeout to 10 Hours?
I know this is a weird request. Please do help me
Thanks & Regards,
Biju
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160107#4160107
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160107
17 years, 10 months