[JBoss Tools] New message: "JBoss EAP 5 throws JasperException if started with JBoss Tools"
by Jochen Riedlinger
User development,
A new message was posted in the thread "JBoss EAP 5 throws JasperException if started with JBoss Tools":
http://community.jboss.org/message/524770#524770
Author : Jochen Riedlinger
Profile : http://community.jboss.org/people/j_ri
Message:
--------------------------------------------------------------
Hi,
I configured a new eclipse using JBoss Tools 3.1 CR. Unfortunately I get a strange behaviour with some web applications, if my JBoss EAP 5.0.0 is started with JBossAS Tools 2.1.0.v200912250601M-H198-CR1 from within eclipse.
I get this exception page in the browser:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /restricted/startseite.jsp at line 15
12: <c:set var="content" value="${sessionScope[Constants.CONTENT_STARTSEITE]}" scope="page" />
13: <div id="seitenkopf">
14: <%@ include file="../common/seitenkopf.jspf"%>
15: <sec:granted permission="#FiolaAccess">
16: <c:if test="${not content.mitarbeiterGesperrt}">
17: <%@ include file="/restricted/common/workflow/menu.jspf"%>
18: </c:if>
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:498)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
de.lbank.framework.web.struts.LActionServlet.service(LActionServlet.java:53)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
java.lang.NullPointerException
java.text.MessageFormat.applyPattern(MessageFormat.java:422)
java.text.MessageFormat.<init>(MessageFormat.java:350)
java.text.MessageFormat.format(MessageFormat.java:811)
This error does not occur if I start my JBoss on the commandline and it does not occur if I start the server using the old version JBossAS Tools 2.1.0.v200909110340M-H277-M3 of the JBoss tools.
( If you wonder about the "#" character in my JSP. this is not the "#" from JSP syntax, but belongs to a bad third-party framwork we use (www.common-controls.com). )
Another strange thing with the newer version of JBossAS Tools is that the log output from JBoss is not always written to the eclipse console.
Do you have any ideas what's wrong?
Thanks
Jochen
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524770#524770
16 years, 5 months
[JBoss Microcontainer Development] New message: "Re: Pluggable dependency resolver"
by Kabir Khan
User development,
A new message was posted in the thread "Pluggable dependency resolver":
http://community.jboss.org/message/524747#524747
Author : Kabir Khan
Profile : http://community.jboss.org/people/kabir.khan@jboss.com
Message:
--------------------------------------------------------------
I did a little benchmark to test out my assumption that the indexing resolver performs better for large amounts of contexts waiting for dependencies. In each case I deploy 1000 beans.
* Scenario 1 - all contexts in the right order
Bean 1 has no depdencies
Bean 2 depends on Bean 1
Bean 3 depends on Bean 2
etc.
Standard resolver: 702 ms
Indexing resolver: 554 ms
* Scenario 2 - all contexts in wrong order
Bean 1 depends on Bean 2
Bean 2 depdends on Bean 1
etc.
Standard resolver: 3476
Indexing resolver: 601
I tried this with higher numbers, but this causes a StackOverflowError with the indexing resolver, the reason being that it works recursively when a waiting context gets its dependencies resolved. AbstractController.install()->IndexingDependencyResolver.resolveContext(ControllerContext) (takes the installed context as param) ->AbstractContoller.incrementState()->IndexingDependencyResolver.stateIncremented()->IndexingDependencyResolver.resolveContext(ControllerContext) (takes any waiting context as param). I'll try to untangle this recursion.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524747#524747
16 years, 5 months
[jBPM] New message: "Re: Does anyone know how to deploy ProcessDefintion in JBPM 4.2"
by Andrius Miasnikovas
User development,
A new message was posted in the thread "Does anyone know how to deploy ProcessDefintion in JBPM 4.2":
http://community.jboss.org/message/524735#524735
Author : Andrius Miasnikovas
Profile : http://community.jboss.org/people/andriusms
Message:
--------------------------------------------------------------
Hi,
I'm not sure that it's possible to do this with only the jbpm4 library. Personally I've seen this kind of process definition construction only in jbpm4 tests. What you could do is start your constructed definition like this:
ClientProcessInstance processInstance = processDefinition.createProcessInstance();
processInstance.start();
someone will correct me if I'm wrong, but I think the repository service with which you could deploy the process from an XML file doesn't seem to support process deployment from the definition object. To deploy the process from a file you can do this
ProcessEngine processEngine = new Configuration().setResource("your.jbpm.cfg.xml").buildProcessEngine();
RepositoryService repositoryService = processEngine.getRepositoryService();
NewDeployment deployment = repositoryService.createDeployment();
deployment.addResourceFromClasspath("process.jdpl.xml");
deployment.deploy();
I'm assuming the usage of JPDL language here. To deploy the process from the process definition builder you would need another step to convert that object into XML file that defines it, but I can't answer how to do that, because I never tried. Usually processes are pretty static so in most cases you should be able to create an XML file of the process and then you could deploy it.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524735#524735
16 years, 5 months
[jBPM] New message: "Using timers when integrating jBPM4.2 with Spring 2.5.6"
by Andrius Miasnikovas
User development,
A new message was posted in the thread "Using timers when integrating jBPM4.2 with Spring 2.5.6":
http://community.jboss.org/message/524727#524727
Author : Andrius Miasnikovas
Profile : http://community.jboss.org/people/andriusms
Message:
--------------------------------------------------------------
Hi,
I'm using JDK 1.6.0.18 and integrated jBPM 4.2 with Spring 2.5.6 in a web application that runs on Liferay portal. JBPM tables are in the same database with the tables for the application domain. The user influences the process by interacting with the application and when my service layer gets called Spring annotated service methods propagate the transaction and jbpm events become part of the transaction and either everything goes well or everything gets rolled back. Also the jbpm event implementations have access to the dao layer to modify the application domain. My problem is that some of the process states have timers with repeat attributes which aren't working well for me.
<state name="do-something">
<on event="timeout">
<timer duedate="5 business seconds" repeat="5 business seconds" />
<event-listener auto-wire="true" class="process.SomeEvent"/>
</on>
<transition name="proceed" to="next-state"/>
<transition name="giveup" to="fallback-state"/>
</state>
The wayI understand it jobexecutor calls the timeout events at a later time in a newly created transaction. When I look at the logs I can see that the event executed and hibernated updated my domain objects in the database, but then some internal jbpm exception is thrown and the whole transaction gets rolled back. I've been at it for a few days now and can't understand what I'm doing wrong. Here's the configuration for the jbpm that I'm using
<?xml version="1.0" encoding="UTF-8"?>
<jbpm-configuration xmlns="http://jbpm.org/4.2/cfg">
<process-engine-context>
<repository-service />
<repository-cache />
<execution-service />
<history-service />
<management-service />
<task-service />
<script-manager default-expression-language="juel" default-script-language="juel" read-contexts="execution, environment, process-engine, spring" write-contexts="">
<script-language name="juel" factory="org.jbpm.pvm.internal.script.JuelScriptEngineFactory" />
</script-manager>
<types resource="jbpm.variable.types.xml" />
<address-resolver />
<command-service name="txRequiredCommandService">
<skip-interceptor />
<retry-interceptor />
<environment-interceptor />
<spring-transaction-interceptor/>
</command-service>
<command-service name="newTxRequiredCommandService">
<retry-interceptor />
<environment-interceptor policy="requiresNew" />
<spring-transaction-interceptor/>
</command-service>
<job-executor command-service="newTxRequiredCommandService" />
<object class="org.jbpm.pvm.internal.id.DatabaseDbidGenerator">
<field name="commandService">
<ref object="newTxRequiredCommandService" />
</field>
</object>
<object class="org.jbpm.pvm.internal.id.DatabaseIdComposer" init="eager" />
<deployer-manager>
<jpdl-deployer />
</deployer-manager>
<business-calendar>
<monday hours="7:00-20:00"/>
<tuesday hours="7:00-20:00"/>
<wednesday hours="7:00-20:00"/>
<thursday hours="7:00-20:00"/>
<friday hours="7:00-20:00"/>
</business-calendar>
</process-engine-context>
<transaction-context>
<repository-session />
<db-session />
<message-session />
<timer-session />
<history-session />
<mail-session>
<mail-server>
<session-properties resource="jbpm.mail.properties" />
</mail-server>
</mail-session>
<hibernate-session current="true" />
</transaction-context>
</jbpm-configuration>
Is there something wrong with it? Maybe I'm just not seeing straight anymore. The timer calls my event which does its work and then moves to another state which does something else and changes the database, I've been debugging what happens next and the jbpm's TimerImpl class checks if repeat attirbute is set (in my case - it is) schedules a new due date, releases the lock on the timer and executes the following code
JobExecutor jobExecutor = environment.get(JobExecutor.class);
if (jobExecutor!=null) {
Transaction transaction = environment.get(Transaction.class);
if (transaction==null) {
throw new JbpmException("no transaction in environment");
}
....
here it fails to retrieve the new transaction and because it is null an exception is thrown and the transaction with all of my changes gets rolled back. It would seem that I'm misconfiguring something because the jobexecutor cannot retrieve the transaction but it did execute the event. Did someone ran into something similar or knows how to fix this?
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524727#524727
16 years, 5 months
[JBoss Web Services] New message: "Exception handling using asynchronous web services"
by bu jo
User development,
A new message was posted in the thread "Exception handling using asynchronous web services":
http://community.jboss.org/message/524722#524722
Author : bu jo
Profile : http://community.jboss.org/people/bujo
Message:
--------------------------------------------------------------
Hi there!
I have implemented an asynchronous web service call using the callback approach via an AsyncHandler. I have noticed an issue where the remote web service is throwing a SOAPFaultException. The issue is the AsynHandler code I wrote, i.e. the handleResponse method, does not seem to catch the exception. In fact it never receives a response in case of an exception. If the call is successful it enters normally and executes the result handling code.
I found a colleague on the net experiencing exactly the same problem in conjunction with CXF. But I'm using WSConsume.
Did somebody experience that before?
Thanks
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524722#524722
16 years, 5 months
[Datasource Configuration] New message: "How to configure Oracle with my application in jboss 5.0"
by Anand Kumar
User development,
A new message was posted in the thread "How to configure Oracle with my application in jboss 5.0":
http://community.jboss.org/message/524720#524720
Author : Anand Kumar
Profile : http://community.jboss.org/people/akstifr
Message:
--------------------------------------------------------------
Hi,
I have a *web application* which is currently working good under *Tomcat 5.5 along with Oracle as database to connect along with connection pooling* but now i want to move this application to *Jboss 5.0*.
So What should i have to configure again the same application in Jboss with oracle as database.
I have gone through the sites and goolge but could not find any relavent information on it.
1. What Should be the contents of *jboss-web.xml* file and where it should be stored in *jboss server directory*
2. What Should be the contents of *web.xml* file and where it should be stored in *jboss server directory*
3.What Should be the contents of *context.xml* file and where it should be stored in *jboss server directory*
4.What Should be the contents of *server.xml* file and where it should be stored in *jboss server directory*
5.how should the datasource be configured i.e *oracelds.xml* with the above files and where it should be stored in *jboss server directory*
Please help me or give some pointers to solve my problem....
Thanks in advance for help
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524720#524720
16 years, 5 months