[Installation, Configuration & Deployment] - "WARN [verifier] EJB spec violation" occurred when i redepl
by danialdy
I deployed a ebs.war and app.ear to the JBoss 4.0.4RC1(JDK1.5.0_07).
The app.ear contains two jar: systemadmin.jar and scheduletask.jar.
The ebs.war will call the EJBs in the app.ear.
when I start the JBoss at first time, everything is correct.
when I change the systemadmin.jar redeploy the app.ear, it failed with the following error:
11:02:17,702 WARN [verifier] EJB spec violation:
| Bean : StTaskSessionFacade
| Method : public abstract void startScheduledTasks(RoutonTaskObject;) throws RoutonException, RemoteException
| Section: 7.11.5
| Warning: All the exceptions defined in the throws clause of the matching method of the session bean class must be defined in the throws clause of the method of the remote interface.
The stateless session bean StTaskSessionFacade is in the scheduletask.jar, and is never been changed!!!
The StTaskSessionFacadeBean class:
...
| public void startScheduledTask(RoutonTaskObject routonTaskObject) throws RoutonException {
| logger.debug("startScheduledTask(routonTaskObject) called.");
| try {
| this.taskScheduler.startScheduledTask(routonTaskObject);
| } catch (Exception e) {
| logger.error("startScheduledTask(routonTaskObject) error: " +
| e.getMessage());
| throw new RoutonException(e.getMessage());
| }
| }
| ...
Then remote interface StTaskSessionFacade class
public void startScheduledTask(RoutonTaskObject routonTaskObject) throws RoutonException, RemoteException;
When I restart the JBoss, everything is good again.
Help me pls.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965941#3965941
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965941
19 years, 8 months
[Tomcat, HTTPD, Servlets & JSP] - Isoloated ClassLoading in JBoss 4.0.4GA
by skidvd
Hello,
I'm attemtping to achieve isolated classloading for individual war based applications (without much success) in a JBoss 4.0.4GA environment. I understand that these issues have changed since at least the 3.x days as well as perhaps again since the 4.0.2 daysfrom what I have found in the wiki at http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration.
Anyway, I am hoping to have entirely self sufficient war applications that do not use anything such as the MyFaces and log4j libs from the parent classloaders. From the wiki, I have tried the following. Here is what I have in my:
jbossweb-tomcat55.sar/META-INF/jboss-service.xml:
false
false
<attribute "FilteredPackages">org.apache.commons.logging
In each war I have added a WEB-INF/jboss-web.xml with the following content:
<jboss-web>
<class-loading java2ClassLoadingCompliance="false">
<loader-repository>
dot.com:loader=unique-archive-name
<loader-repository-config>java2ParentDelegation=false</loader-repository-config>
</loader-repository>
</class-loading>
</jboss-web>
However, this is not providing isolation for me (as adding MyFaces and/or log4j jars of different versions to my WEB-INF/lib causes conflicts symptomatic of non-isolated class loading).
Am I missing something unique in 4.0.4 or otherwise missing something? How can this desired behavior be achieved?
TIA!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965939#3965939
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965939
19 years, 8 months