[Installation, Configuration & DEPLOYMENT] - Shared lib failure: org.apache.jasper.JasperException
by rodfreire
Hello,
When using the displaytag feature from an in-house built .war, the server yields exception:
16:24:46,181 ERROR [HibernateSessionFilter] Hibernate Session Filter runtime error. The absolute uri: http://displaytag.sf.net cannot be rolved in either web.xml or the jar files deployed with this application
| org.apache.jasper.JasperException: The absolute uri: http://displaytag.sf.net cannot be resolved in either web.xml or the jar files deployed with this application
The clues:
* It worked with tomcat 5.5; the displaytag libs were installed at shared/lib (we migrated from Tomcat -> JBoss) ;
|
| * It does work with our official JBoss [EAP] 4.3.0.GA_CP02 if the lib is packaged inside the application WAR at WEB-INF/lib;
| Our development team highly resists this solution; they allege it worked on Tomcat; they have lots of .war and the maintainability of all of them on new releases of the lib would make their life miserable
|
| * Throws exception on JBoss if the lib is located at JBOSS_HOME/server/instance/lib, or even $CLASSPATH, JBOSS_HOME/lib or JBOSS_HOME/lib/endorsed (desperate attempt);
|
| * When the lib is at JBOSS_HOME/server/instance/lib, it *is* recognized, see sysout from boot.log:
|
| 11:50:01,338 DEBUG [RepositoryClassLoader] Added url: file:/usr/local/j2ee/jboss-eap-4.3/jboss-as/server/01/lib/displaytag-1.1.jar, to ucl: org.jboss.mx.loading.UnifiedClassLoader3@3295cfbe{ url=null ,addedOrder=2}
| |
| | 11:50:00,574 DEBUG [SARDeployer] deployed classes for file:/usr/local/j2ee/jboss-eap-4.3/jboss-as/server/01/lib/displaytag-1.1.jar
|
| Any hints regarding this issue?
|
| OS:
| anonymous wrote : # cat /etc/issue
| | Red Hat Enterprise Linux Server release 5.2 (Tikanga)
| |
| | # uname -a
| | Linux hostname.blahblah 2.6.18-92.1.13.el5 #1 SMP Thu Sep 4 03:51:21 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
|
| Java + JBoss:
| anonymous wrote : 16:24:21,639 INFO [Server] Release ID: JBoss [EAP] 4.3.0.GA_CP02 (build: SVNTag=JBPAPP_4_3_0_GA_CP02 date=200808051050)
| | 16:24:21,825 INFO [ServerInfo] Java version: 1.5.0_15,Sun Microsystems Inc.
| | 16:24:21,825 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 1.5.0_15-b04,Sun Microsystems Inc.
| | 16:24:21,825 INFO [ServerInfo] OS-System: Linux 2.6.18-92.1.13.el5,amd64
|
| Thanks,
|
| Rodrigo A B Freire
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192250#4192250
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4192250
17 years, 5 months
[JBoss jBPM] - ProcessState getSubProcessDefinition is null
by don_t
Hi, I'm trying to access the sub-process child node of a process-state. My test program is listed below. I call getSubProcessDefinition and always get null. Any ideas what I'm doing wrong?
| import java.util.HashMap;
| import java.util.Map;
|
| import junit.framework.TestCase;
|
| import org.dom4j.Element;
| import org.jbpm.graph.def.ProcessDefinition;
| import org.jbpm.graph.node.ProcessState;
| import org.jbpm.graph.node.SubProcessResolver;
|
| public class TestSubprocess extends TestCase {
|
| private static class MapBasedProcessRepository implements SubProcessResolver {
| private Map<String,ProcessDefinition> processes =
| new HashMap<String,ProcessDefinition>();
|
| public void add(ProcessDefinition processDefinition) {
| processes.put(processDefinition.getName(), processDefinition);
| }
|
| @Override
| public ProcessDefinition findSubProcess(Element element) {
| // TODO Auto-generated method stub
| return processes.get(element.attributeValue("name"));
| }
|
| }
|
| public void testProcessInstance() {
| MapBasedProcessRepository subProcessResolver = new MapBasedProcessRepository();
| ProcessDefinition subProcessDefinition = ProcessDefinition.parseXmlString(
| "<process-definition name='sub-p'>" +
| " <start-state>" +
| " <transition to='s' />" +
| " </start-state>" +
| " <state name='s'>" +
| " <transition to='t'/>" +
| " </state>" +
| " <state name='t'>" +
| " <transition to='end'/>" +
| " </state>" +
| " <end-state name='end' />" +
| "</process-definition>"
| );
| subProcessResolver.add( subProcessDefinition );
|
| subProcessDefinition = ProcessDefinition.parseXmlString(
| "<process-definition name='sub-q'>" +
| " <start-state>" +
| " <transition to='s' />" +
| " </start-state>" +
| " <state name='s'>" +
| " <transition to='t'/>" +
| " </state>" +
| " <state name='t'>" +
| " <transition to='end'/>" +
| " </state>" +
| " <end-state name='end' />" +
| "</process-definition>"
| );
| subProcessResolver.add( subProcessDefinition );
|
| ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(
| "<process-definition name='super'>" +
| " <start-state name='start'>" +
| " <transition to='p' />" +
| " </start-state>" +
| " <process-state name='p'>" +
| " <sub-process name='sub-p' binding='late'/>" +
| " <transition to='q' />" +
| " </process-state>" +
| " <process-state name='q'>" +
| " <sub-process name='sub_q' binding='late' />" +
| " <transition to='end' />" +
| " </process-state>" +
| " <end-state name='end' />" +
| "</process-definition>"
| );
| subProcessResolver.add( processDefinition );
|
| ProcessState.setDefaultSubProcessResolver(subProcessResolver);
| ProcessState processState = (ProcessState) processDefinition.getNode("p");
| System.out.println(processState);
| System.out.println(processState.getSubProcessDefinition());
|
| processState = (ProcessState) processDefinition.getNode("q");
| System.out.println(processState);
| System.out.println(processState.getSubProcessDefinition());
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192246#4192246
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4192246
17 years, 5 months
[Beginners Corner] - Re: Problem with minimal server
by swedeNewbie
Hi again!
My bean looks like:
| package tmp;
| import javax.ejb.Stateless;
| @Stateless
| public class CalculatorBean implements CalulatorRemote {
| public int add(int a, int b) {
| return a + b;
| }
| }
|
And the client looks like:
| All needed stuff
| Properties props = new Properties();
| props.setProperty(Context.INITIAL_CONTEXT_FACTORY,
| "org.jboss.naming.NamingContextFactory"=;
| props.setProperty(Context.PROVIDER_URL, "192.168.0.100:1099");
|
| Context ic = new InitialContext(props);
| Object o = ic.lookup("CalculatorBean/remote");
| CalculatorRemote cr = (CalculatorRemote) o;
|
| System.out.println("sum: " + cr.add(2, 4));
|
As you can see, I don't use any special services in the sever.
The exception is:
| javax.naming.NameNotFoundException: CalculatorBean not bound...
|
I start jboss from commandline: run.bat -c minimal -b 0.0.0.0
>From server.log I get:
anonymous wrote :
| 2008-11-25 19:24:33,890 DEBUG [org.jboss.deployers.plugins.main.MainDeployerImpl] (main) Add deployment: vfszip:/C:/jboss/jboss-5.0.0.CR1/server/minimal/deploy/RemoveMe-ejb.jar
| 2008-11-25 19:24:33,890 DEBUG [org.jboss.deployers.plugins.main.MainDeployerImpl] (main) Scheduling deployment: vfszip:/C:/jboss/jboss-5.0.0.CR1/server/minimal/deploy/RemoveMe-ejb.jar parent=null
| 2008-11-25 19:24:33,890 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Deploying vfszip:/C:/jboss/jboss-5.0.0.CR1/server/minimal/deploy/RemoveMe-ejb.jar
| 2008-11-25 19:24:33,921 DEBUG [org.jboss.deployers.vfs.plugins.classloader.InMemoryClassesDeployer] (main) Dynamic class root for vfszip:/C:/jboss/jboss-5.0.0.CR1/server/minimal/deploy/RemoveMe-ejb.jar is vfsmemory://5c4o02s-z3ugym-fnyvn2da-1-fnyvnla9-7
| 2008-11-25 19:24:33,921 DEBUG [org.jboss.classloader.spi.base.BaseClassLoader] (main) Created BaseClassLoader@e59e40{vfszip:/C:/jboss/jboss-5.0.0.CR1/server/minimal/deploy/RemoveMe-ejb.jar} with policy VFSClassLoaderPolicy@f8ae79{name=vfszip:/C:/jboss/jboss-5.0.0.CR1/server/minimal/deploy/RemoveMe-ejb.jar domain=null roots=[MemoryContextHandler@8827766[path=classes context=vfsmemory://5c4o02s-z3ugym-fnyvn2da-1-fnyvnla9-7 real=vfsmemory://5c4o02s-z3ugym-fnyvn2da-1-fnyvnla9-7/classes], DelegatingHandler(a)24134853[path=RemoveMe-ejb.jar context=file:/C:/jboss/jboss-5.0.0.CR1/server/minimal/deploy/ real=vfszip:/C:/jboss/jboss-5.0.0.CR1/server/minimal/deploy/RemoveMe-ejb.jar]] delegates=null exported=[tmp, META-INF] <IMPORT-ALL>NON_EMPTY}
| 2008-11-25 19:24:33,921 DEBUG [org.jboss.classloader.spi.base.BaseClassLoaderDomain] (main) ClassLoaderDomain@970c0e{} registerClassLoader BaseClassLoader@e59e40{vfszip:/C:/jboss/jboss-5.0.0.CR1/server/minimal/deploy/RemoveMe-ejb.jar}
| 2008-11-25 19:24:33,921 DEBUG [org.jboss.deployers.plugins.deployers.DeployersImpl] (main) Fully Deployed vfszip:/C:/jboss/jboss-5.0.0.CR1/server/minimal/deploy/RemoveMe-ejb.jar
| 2008-11-25 19:24:33,921 DEBUG [org.jboss.bootstrap.microcontainer.ServerImpl] (main) Installing life thread Thread[JBossLifeThread,5,jboss]
| 2008-11-25 19:24:33,937 INFO [org.jboss.bootstrap.microcontainer.ServerImpl] (main) JBoss (Microcontainer) [5.0.0.CR1 (build: SVNTag=JBoss_5_0_0_CR1 date=200806301254)] Started in 25s:172ms
|
Is there an obvious reason why this does not work? What do I miss?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192244#4192244
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4192244
17 years, 5 months