[JBoss AS] Problems using Struts2 on JBoss 5.0.1GA
by Michael Obster
Hi,
anybody here who have already a working struts2 application on JBoss
5.0.1 GA? I currently try to deploy one on the JBoss but got an error,
which I attach as text file.
I also saw a bug report in the JBoss tracker, but this doesn't help me
to solve my problem, which is actually a show stopper. I need a solution.
So any help is appreciated.
Kind regards,
Michael Obster
13:30:49,863 INFO [StrutsSpringObjectFactory] ... initialized Struts-Spring integration successfully
13:30:50,393 INFO [ResolverUtil] Scanning for classes in [/D:/server/jboss-5.0.1.GA/server/default/deploy/csi.war/WEB-INF/classes/vwg/audi/
csi/ui/action/] matching criteria: org.apache.struts2.config.ClasspathConfigurationProvider$1@e8cc00
13:30:50,393 ERROR [ResolverUtil] Could not search jar file 'D:\server\jboss-5.0.1.GA\server\default\deploy\csi.war\WEB-INF\classes\vwg\audi
\csi\ui\action' for classes matching criteria: org.apache.struts2.config.ClasspathConfigurationProvider$1@e8cc00 due to an IOException
java.io.FileNotFoundException: D:\server\jboss-5.0.1.GA\server\default\deploy\csi.war\WEB-INF\classes\vwg\audi\csi\ui\action (Das System kan
n den angegebenen Pfad nicht finden)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at com.opensymphony.xwork2.util.ResolverUtil.loadImplementationsInJar(ResolverUtil.java:341)
at com.opensymphony.xwork2.util.ResolverUtil.findInPackage(ResolverUtil.java:288)
at com.opensymphony.xwork2.util.ResolverUtil.find(ResolverUtil.java:240)
at org.apache.struts2.config.ClasspathConfigurationProvider.loadPackages(ClasspathConfigurationProvider.java:234)
at org.apache.struts2.config.ClasspathConfigurationProvider.loadPackages(ClasspathConfigurationProvider.java:402)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:234)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:332)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:90)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3783)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4413)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:312)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:144)
at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
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 org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
at $Proxy36.start(Unknown Source)
17 years
[EJB 3.0] - Transaction is not active during large DB activity process
by DeanoUK
Hi all,
We've had this problem for a little while, but usually worked around it.
It's time we understood it a bit more instead of continously fudging our code to work around the problem.
Say we have 1 transaction. Within this transaction we're uploading a file with several thousand records.
Each record causes several DB look ups *each*, using standard EJB3 Entity beans each within their own EAO Session bean.
After all of this each row is then persisted as it represents an entity.
During the process, sometimes, but not always, we get:
ERROR org.hibernate.util.JDBCExceptionReporter - Transaction is not active: tx=TransactionImple < ac, BasicAction: 7f000002:95b7:49dcd694:8ff status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: 7f000002:95b7:49dcd694:8ff status: ActionStatus.ABORT_ONLY >)
This error will repeat indefinitely until JBoss is shut-down.
We're at a loss as to what's causing this. Transaction time-out is set to 20 mins at the moment, and this can happen 5 mins after submission.
Also, no transaction roll back exception appears (no exception is shown in the logs) to be thrown during the process.
Any help, advice, or pointers, would be appreciated.
Regards,
Dean.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224690#4224690
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224690
17 years
[JBoss jBPM] - Re: Timer on node clarification
by o_lion
Ops, my right xml process is:
<?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2"
| name="getIpAddressToMsisdn">
| <swimlane name="parameters"></swimlane>
|
| <start-state name="init">
| <task swimlane="parameters">
| <controller>
| <variable access="read,write,required" name="inputsBean"></variable>
| </controller>
| </task>
| <transition to="node1"></transition>
| </start-state>
|
| <node name="node1">
| <action name="callMsisdn" class="com.nsn.npc.jbpm.util.BeanActionHandler">
| <mBeanServiceName>
| com.nsn.npc.adapter:service=AlAdapter
| </mBeanServiceName>
| <methodName>
| getMsisdn
| </methodName>
| </action>
| <timer duedate="10 seconds" name="timeout" transition="to finish">
| <action></action>
| </timer>
| <transition to="finish" name="to finish"></transition>
| </node>
| <end-state name="finish"></end-state>
|
| </process-definition>
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224689#4224689
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224689
17 years
[JBoss jBPM] - Timer on node clarification
by o_lion
Hi all,
I'm beginner. I have a problem.
I put a timer and an action on a node, but the timer never start.
To start the timer do I have to modify anything? What can i do, have you got any idea?
I have Jboss 4.2.3 GA and JBPM jbpm-3.2.6.SP1.
My deployed process is:
<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.2"
name="processname">
<start-state name="init">
</start-state>
test
getValue
<end-state name="finish"></end-state>
</process-definition>
I execute the process in my web application so:
JbpmContext context= JbpmConfiguration.getInstance().createJbpmContext();
try {
Map <String , Object> variables= new HashMap<String, Object>();
JbpmInputsParameter inputs= new JbpmInputsParameter();
variables.put("inputsBean", inputs);
System.out.println("Start process: "+Calendar.getInstance().getTime());
ProcessInstance instance = context.newProcessInstance("process name");
instance.addInitialContextVariables(variables);
while (!instance.hasEnded()) {
System.out.println("I'm in state "+instance.getRootToken().getNode().getName());
instance.signal();
}
System.out.println("End process: "+Calendar.getInstance().getTime());
System.out.println("The result is: "+instance.getContextInstance().getVariable("result"));
} catch (Exception e) {
e.printStackTrace();
}finally{
context.close();
}
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224684#4224684
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224684
17 years