[JBoss jBPM] - building jpdl designer plugin from source - again
by garuh
i search for help trough forum but i cant find clear answer, so i decided to make another topic, sorry for that, i am desperate!
i just want to build plugin jar file from source, it's all i want, thing is simple, i have to make some language localization in plugin, which i want to expand in my project, so to do that i have to compile entire plugin cause there are labels hidden in java code, and that where problems become...
i suppose there is no easy way to do this, because running build.xml with ant in org.jbpm.gp.jdpl.build or just in root build folder dont work, if it is necessary i will paste debug log, but first of all i would like to ask some experts about step by step or just really easy way to made it - to build jbpl plugin jar to deploying it in eclipse workspace and have fun, please
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067339#4067339
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067339
18Â years, 9Â months
[JBoss jBPM] - Re: create task at runtime
by massimiliano_cuccia
"syngolis" wrote : "massimiliano_cuccia" wrote : (this means that ti.getTask() is null)
|
| No, this means getTaskController() is null,
|
I'm sorry, but you are wrong
to prove this I added these few lines
System.out.println( "ti: " + ti );
| System.out.println( "ti.getTask(): " + ti.getTask() );
| System.out.println( "ti.getTask().getTaskController(): " + ti.getTask().getTaskController() );
|
and obtained this output
ti: TaskInstance[creato a runtime]
| ti.getTask(): null
| java.lang.NullPointerException
| at it.acme.action.AttivitaEsecuzione.execute(AttivitaEsecuzione.java:71)
|
"syngolis" wrote :
| Try it without the controller
|
do you know a way to do this without the controller?
"syngolis" wrote :
| or create one.
|
ok, i'm trying this
"syngolis" wrote :
| In order to get variables (without variableaccess):
| taskInstance.getVariable("Name")
|
but I doesn't know the variable name
I'm writing an action to execute a generic task and the variable name is decided at design time!!
I'm searching for the testcases
thanks
any other can help?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067336#4067336
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067336
18Â years, 9Â months
[EJB/JBoss] - org.hibernate.LazyInitializationException
by veeseekay
guys, am facing an issue while trying to lazy load certain entities withing a multithreaded enviornment.
here s my scenario :
Class Outer {
//Am using jboss rules session
private rulesSession;
private class Inner implements Runnable {
run() {
}
private lazyLoadEntites() {
// this is where I get the damn exception
}
private assertToSession() {
rulesSession.assert(something);
}
}
method() {
// this creates multiple threads to do some job in parallel
// am using executors, and am executing run() of inner class
}
}
and here s my exception
13:50:48,462 ERROR [LazyInitializationException] failed to lazily initialize a collection of role:no session or session was closed
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: no session or session was closed
at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:358)
at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:3
at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:343)
F1 please!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067334#4067334
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067334
18Â years, 9Â months
[JBoss Seam] - Ajax4JSF , Seam 2.0B and JBoss 4.2GA -> Resource filter not
by atzbert
Hi there,
does anybody have a clue what my problem here is. I am just trying to migrate everything to Seam 2 and the last hump I am fighting with the ajax4jsf filter. I set it on top of my filter list in components.xml. I can't access any page which uses ajax4jsf...:
javax.faces.FacesException: Resources framework is not initialised, check web.xml for Filter configuration
I don't have any further filters declared in web.xml.
The last JBoss log output after starting says:
10:43:43,210 INFO [Contexts] starting up: org.jboss.seam.ui.resource.styleResource
| 10:43:43,210 INFO [Contexts] starting up: org.jboss.seam.ui.graphicImage.graphicImageResource
| 10:43:43,210 INFO [Contexts] starting up: org.jboss.seam.ui.resource.webResource
| 10:43:43,210 INFO [Contexts] starting up: org.jboss.seam.web.authenticationFilter
| 10:43:43,210 INFO [Contexts] starting up: org.jboss.seam.web.redirectFilter
| 10:43:43,226 INFO [Contexts] starting up: org.jboss.seam.web.multipartFilter
| 10:43:43,226 INFO [Contexts] starting up: org.jboss.seam.web.exceptionFilter
| 10:43:43,226 INFO [Contexts] starting up: org.jboss.seam.debug.hotDeployFilter
| 10:43:43,226 INFO [Contexts] starting up: org.jboss.seam.web.contextFilter
| 10:43:43,226 INFO [Contexts] starting up: org.jboss.seam.web.ajax4jsfFilter
And my filters in the components.xml are:
| <web:ajax4jsf-filter force-parser="false"
| enable-cache="true"
| url-pattern="*.html"/>
|
| <web:multipart-filter create-temp-files="true"
| max-request-size="1000000"
| url-pattern="*.html"/>
|
| <web:authentication-filter url-pattern="*.html"/>
|
| <web:context-filter url-pattern="*.jar"/>
|
| <web:exception-filter url-pattern="*.html"/>
|
| <web:redirect-filter url-pattern="*.html"/>
|
|
Any help much appriciated, thanks,
Tino
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067332#4067332
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067332
18Â years, 9Â months
[JBoss Messaging] - Issue with default clientId on ConnectionFactory
by mskonda
I have setup a connectionfactory with a default client id as shown below:
| <?xml version="1.0" encoding="UTF-8"?>
| <server>
| <loader-repository>jboss.messaging:loader=ScopedLoaderRepository
| <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
| </loader-repository>
|
| <mbean code="org.jboss.jms.server.connectionfactory.ConnectionFactory"
| name="jboss.messaging.connectionfactory:service=MyConnectionFactory"
| xmbean-dd="xmdesc/ConnectionFactory-xmbean.xml">
| <constructor>
| <arg type="java.lang.String" value="my-client-id"/>
| </constructor>
| <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends optional-attribute-name="Connector">jboss.messaging:service=Connector,transport=bisocket</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
|
| <attribute name="JNDIBindings">
| <bindings>
| <binding>/MyConnectionFactory</binding>
| </bindings>
| </attribute>
| </mbean>
| </server>
|
The connection factory is bound to 'MyConnectionFactory' as expected.
In my test client, I am doing the normal JMS setup of fetching the CF and getting a connection.
The issue is when I try to create a durable subscription with no client id (as I am assuming the connection obtained from CF will use the default client id set during CF creation) on the connection.
Seems, that's not the case: I get
java.lang.IllegalArgumentException: clientID name is null
|
Here's my test case:
| public void testSimplestDurableSubscription()
| {
| try
| {
| logger.info("test started");
| Connection conn = cf.createConnection();
|
|
| // conn.setClientID("my-client-id");
|
| Session s = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
| logger.info("Created session");
|
| /*
| * The client id and the subscriber id is same
| */
|
| s.createDurableSubscriber((Topic) TEST_DUR_TOPIC_DEST_1,"my-sub-id");
|
| logger.info("Created durable subscriber");
|
| ObjectName destObjectName = new ObjectName(
| "jboss.messaging.destination:service=Topic,name=" + getObjectName());
|
| List subs = listSubscriptions(destObjectName);
| logger.info("Number of subscriptions " + subs.size());
|
| assertNotNull(subs);
|
| // undeployDestination(TEST_DUR_TOPIC_1);
|
| closeConnection(conn);
| }
| catch (Exception ex)
| {
| logger.error(ex);
| }
| finally
| {
| try
| {
| undeployDestination(TEST_DUR_TOPIC_1);
| }
| catch (Exception e)
| {
| logger.error(e);
| }
| }
| }
Any pointers where I'm going wrong?
Thanks
Madhu
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067329#4067329
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067329
18Â years, 9Â months