jboss-4.2.x

JBoss 4.2 startup throws NoClassDefFoundError

本小妞迷上赌 提交于 2019-12-08 06:45:59
问题 I am having trouble starting a JBoss 4.2.2 server - it is producing the following error message (from org.jboss.kernel.plugins.dependency.AbstractKernelController ) : Error installing to Described: name=WSDeployerHook_JAXWS_EJB3 state=Not Installed mode=Manual requiredState=Create java.lang.NoClassDefFoundError: org/jboss/ejb3/interceptors/direct/IndirectContainer Looking through the JBoss source code, I have turned on TRACE level logging for certain classes, though all it is telling me is

JBoss migration from JBoss AS 4.2 GA to JBoss EAP 6.2

冷暖自知 提交于 2019-12-06 15:02:13
Any one done migration from JBoss AS 4.2 GA to JBoss EAP 6.2? Does JBoss EAP 6.2 has web and app server..? In JBoss AS 4.2 GA has the folder structure /server/app and /server/web where as in JBoss EAP 6.2 no server folder at all. How to deploy the services in web and app in JBoss EAP 6.2? Gone through the system migration guide, have to change the packaging structure of EAR or WAR due to change of modular class loading. Where/how to find the system dependencies, user dependencies, local resources and inter-deployment dependencies in JBoss AS 4.2. Thanks in advance. Basically, JBoss 7 / EAP 6

How do I tell JBoss 4.2.3.GA to load jars in my war file lib directory first?

我的未来我决定 提交于 2019-12-06 14:18:09
问题 I deploy a web archive and that war references a jar file that conflicts with those in $JBOSS_HOME/server/default/lib. I can go and remove the offending jars manually, but I'd prefer a solution that allows me to specify my jars over JBoss's. I would even like to just tell JBoss to exclude specific jars, if that's even possible. The closest I've come was to add something in jboss-web.xml in my war's META-INF directory, but I'm clearly not doing something right there. This is what I have so far

Jboss 4.2 Class Loading

落爺英雄遲暮 提交于 2019-12-04 14:53:54
I have a jar in server/default/lib which contains Foo.class , Bar.class and the same class is there in my application/WEB-INF/classes which is deployed in server/default/deploy . and Example.class is using the Foo.class instance and Bar.class instance Now the situation is that Example.class shoud use the Foo.class in my application and Bar.class in default/lib jar file. i.e. my application should use the classes in the application clases folder if not found in classes folder then it should use the class in default/lib jar files. To do i have defined jboss-web.xml file <jboss-web> <class

How to limit the number of MDB instances listening to a Jboss JMS queue

不打扰是莪最后的温柔 提交于 2019-12-02 20:48:23
I'm having a problem with the following setup: A Java application send email msg to a JMS queue, then an MDB listening to the queue get the email msg with the onMessage method, it open a connection on the Gmail SMTP, send the email to the SMTP and close the connection. Doing this on all message in the JMS queue. It is working great when I have up to 5 messages in the queue at the same time. All messages are picked-up in the same time by 5 different instances of the MDB, so I have 5 concurrent connection to the Gmail SMTP server. But when there is more messages in the JMS queue, I get a

How to configure a war in order to depends on the exported libraries in the war instead of the libraries from the server?

非 Y 不嫁゛ 提交于 2019-12-02 01:46:00
问题 I want to deploy a war in a JBoss 4.2 but I don't have control over its dir, so I can't replace the jsf-impl.jar and jsf-api.jar . My question is: How to configure the war in order to depends on the jsf-impl.jar and jsf-api.jar exported in the war instead of this libraries from the server? 回答1: That depends on the server used. For JBoss 4.2 and newer, you can do that by adding the following context parameter to the webapp's web.xml . <context-param> <param-name>org.jboss.jbossfaces.WAR

How to configure a war in order to depends on the exported libraries in the war instead of the libraries from the server?

浪子不回头ぞ 提交于 2019-12-01 22:51:13
I want to deploy a war in a JBoss 4.2 but I don't have control over its dir, so I can't replace the jsf-impl.jar and jsf-api.jar . My question is: How to configure the war in order to depends on the jsf-impl.jar and jsf-api.jar exported in the war instead of this libraries from the server? That depends on the server used. For JBoss 4.2 and newer, you can do that by adding the following context parameter to the webapp's web.xml . <context-param> <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name> <param-value>true</param-value> </context-param> 来源: https://stackoverflow.com

How to forward from a JAX-RS service to JSP?

蹲街弑〆低调 提交于 2019-11-29 10:33:59
JBoss Version: 4.2.3GA. This works in apache tomcat 6.0. In JBoss, I had to add the following setting: -Dorg.apache.catalina.STRICT_SERVLET_COMPLIANCE=false to get the forward to work, but now when I load the page I get the error below. It feels like I am doing this in a way JBoss doesn't like, but I haven't seen any other examples. Does anyone know a way to get this to work? import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; ... @GET @Path("/forward") public String forward( @Context final HttpServletRequest request, @Context final HttpServletResponse response)

JBoss: WAR file in EAR can't find JAR library on classpath

早过忘川 提交于 2019-11-29 03:07:15
问题 I am having a problem deploying an ear with bundled wars, jars, and configuration files (.properties files) on JBoss 4.3-eap. Here is my ear structure: +app.ear +lib *.jar libraries that the war's use +classes *.properties and other configuration files +META-INF application.xml jbos-app.xml app.war app2.war appn.war I have the following in my jboss-app.xml : <jboss-app> <jmx-name>app.startup.JbossStartUpServer:service=JbossStartUpService</jmx-name> </jboss-app> My application.xml looks like

How to forward from a JAX-RS service to JSP?

有些话、适合烂在心里 提交于 2019-11-28 03:25:49
问题 JBoss Version: 4.2.3GA. This works in apache tomcat 6.0. In JBoss, I had to add the following setting: -Dorg.apache.catalina.STRICT_SERVLET_COMPLIANCE=false to get the forward to work, but now when I load the page I get the error below. It feels like I am doing this in a way JBoss doesn't like, but I haven't seen any other examples. Does anyone know a way to get this to work? import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; ... @GET @Path("/forward") public String