[Installation, Configuration & DEPLOYMENT] - System properties not replaced in ds.xml when propertiesserv
by gjeudy
Hi,
I'm using JBoss 4.2.2, I'm trying to leverage the system properties service. My deployment model is as follows
EAR
|
|
-------- jboss-service.xml (declares properties service mbean)
|
|
--------- *-ds.xml (declares datasource with properties ${connection.url}
|
|
--------- other archives
the jboss-service.xml and *-ds.xml are declared in the jboss-app.xml, I use <module-order>strict</module-order> with the jboss-service.xml declared before everything else.
Nevertheless I get runtime errors, apparently the property interpolation failed even though the system properties service was deployed before everything else inside the EAR.
| <jboss-app>
| <loader-repository>com.archinsurance:loader=rdm</loader-repository>
| <module-order>strict</module-order>
| <module>
| <service>jboss-service.xml</service>
| </module>
| <module>
| <service>rdm-wsmq-ds.xml</service>
| </module>
| <module>
| <service>rdm-ds-1.5.6.0-SNAPSHOT.sar</service>
| </module>
| </jboss-app>
Caused by: org.jboss.resource.JBossResourceException: Apparently wrong driver class specified for URL: class: oracle.jdbc.driver.OracleDriver, url: ${rdm.ds.connection.url}
| at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getDriver(LocalManagedConnectionFactory.java:290)
| at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:170)
| ... 158 more
if the properties service is loaded directly in properties-service.xml file in deploy dir things behave normally and the datasources load fine from the EAR.
Can somebody enlighten me? I deploy several apps in the same jboss instance and I want each app to deploy its own properties service, that is why I make it part of the EAR but this approach doesn't work. Ideally I would like the property replacement to be scoped per EAR but I haven't found anything to support this. The workaround I use is a separate property namespace per application so that there is no property clash in the common system properties in the VM.
Please advise,
-Guillaume
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250689#4250689
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250689
16 years, 10 months
[EJB 3.0] - Re: Could not obtain connection to any of these urls: Remote
by a0001428
"a0001428" wrote : "jaikiran" wrote : How did you start the remote server? Use -b option as explained here http://www.jboss.org/community/wiki/JBoss42FAQ
|
| Hi jaikiran, thanks for you replay.
|
| I have a installservice.bat( it create a windows service) :
|
| Rem Start Here
| set javadll=%JAVA_HOME%\jre\bin\client\jvm.dll
| set javatool=%JAVA_HOME%\lib\tools.jar
| set javarun=%JBOSS_HOME%\bin\run.jar
| set outlog=%JBOSS_HOME%\bin\stdout.log
| set errlog=%JBOSS_HOME%\bin\stderr.log
|
| JBossService.exe -install JBossTomcat "%javadll%" -Djava.class.path="%javatool%";"%javarun%" -start org.jboss.Main
| -stop org.jboss.Main -method systemExit -out "%outlog%" -err "%errlog%" -current "%JBOSS_HOME%\bin" -manual
|
| net start JBossTomcat
|
| I go to try with -b option. You notice how I was.
|
|
Hi,
here is the new configuratuion app server Jboss a moment the restart.
Before:
14:28:32,446 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
14:28:41,384 INFO [Http11Protocol] Inicializando Coyote HTTP/1.1 en puerto http-127.0.0.1-8080
14:28:41,399 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
Now:
14:25:13,137 INFO [WebService] Using RMI server codebase: http://Name-PC remote:8083/
14:25:22,528 INFO [Http11Protocol] Inicializando Coyote HTTP/1.1 en puerto http-0.0.0.0-8080
14:25:22,528 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-0.0.0.0-8009
I'm traying...You notice how I was.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250664#4250664
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250664
16 years, 10 months
[JBoss jBPM] - Re: jBPM4 - Task Escalation with Timer
by djcye
i studied the docs and the only way to assign tasks is through the TaskService or the assignmentHandler. i tried to put the assignmenthandler inside a "timeout event" section but that isnt valide.
well i also tried to use the eventhandler approach (to use the TaskService) without success. All TaskQuerys result in 0. Testet the same TaskQuery from a EJB Web-Service and it showed more than 0, so its not the querys fault ^^". perhaps this kind of operations is not supported from inside the handlers.
so the only option i see is to put the
| InitialContext ctx = new InitialContext();
| ProcessEngine processEngine =(ProcessEngine)ctx.lookup("java:/ProcessEngine");
| TaskService taskService = processEngine.getTaskService();
| TaskQuery b = taskService.createTaskQuery();
| b.assignee("peter");
| List<Task> c = b.list();
| System.out.println(c.size());
|
one additional question: if i use a transition timer inside a task node and the timer fires. will the task be completed / deleted ?
i tried to figure it out on the server. after the timer fires the task still remains in the assigned groups but cant be claimed anymore. exceptions when trying to claim:
16:17:22,953 INFO [DefaultCommandService] exception while executing command org.jbpm.pvm.internal.cmd.AssignTaskCm
| d@7aba71
| org.jbpm.api.JbpmException: task 55 does not exist
actualy task 55 realy doesnt exist. the taskid i try to claim is 59 O_o
and
16:27:02,218 ERROR [[Resteasy]] Servlet.service() for servlet Resteasy threw exception
| org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Unexpected invocation exception: null
and
Caused by: org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [org.jbpm.pvm.internal.m
| odel.ExecutionImpl#75]
well i think the task gets deleted. but i am not sure.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250662#4250662
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250662
16 years, 10 months