[EJB/JBoss] - Issue deploying ejb
by Naov
Hi, Im working with Eclipse and JBOSS 4.2.2GA.
I have a Quartz job class that is a MessageDrivenBean, I once deployed a VERY similar class with no problems, but now, when I try to deploy this one, i get the following errors:
WARN [verifier] EJB spec violation:
| Bean : MyJob
| Section: 15.7.2
| Warning: A message driven bean must implement, directly or indirectly, the javax.ejb.MessageDrivenBean interface.
|
| 11:12:19,834 WARN [verifier] EJB spec violation:
| Bean : MyJob
| Section: 15.7.3
| Warning: The message driven bean must declare one ejbCreate() method.
|
| 11:12:19,834 WARN [verifier] EJB spec violation:
| Bean : MyJob
| Section: 15.7.5
| Warning: The message driven bean must declare one ejbRemove() method.
The class is like this:
| public class MyJob implements Job, MessageDrivenBean, MessageListener {
|
| // Business Methods
|
|
| public void ejbRemove() throws EJBException {
| }
|
|
|
| public void setMessageDrivenContext(MessageDrivenContext context) throws EJBException {
| }
|
|
| public void onMessage(Message message) {
| }
|
|
| public void ejbCreate() {
| System.out.println("Quartz Job created");
| }
|
| }
|
The issue is, first I forgot to add the methods so the violations appeared, but then I added the methods and still there was the violation message. I tried erasing the Temp and Work folders, the output classes so they recompile again, and also cleaned the project but the error still happens.
I'm sure it is not a jboss config problem, or that it has not to do with the ejb-jar.xml or jboss.xml because I still have this other jar in which the class is almost the same (just a previous version) and it continues to deploy correctly. [the jars only contain the class, both xmls and manifest file]
I think it has something to do with cache or something like that but I don't know elsewhere to look.
any ideas? :(
thanks in advance
best regards
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4212684#4212684
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212684
17 years, 2 months
[JBoss Tools (users)] - Re: WIP: XForms editor based on VPE
by max.andersen@jboss.com
Great to hear you did your xforms editor - got any screenshots ? :)
The features of openon, validation and completion is done by completely different parts of Eclipse/JBoss Tools than the visual editor but they are at least pretty easy to get into.
Ctrl-click or F3 or OpenOn as we tend to call it Mareshkau got a pointer too. Basically you just implement a HyperlinkRecognizer to figure out what is under the cursor. Figuring out where to navigate is the hard part but here you should be able to reach in and get the DOM model of the editor - but that requires some WTP structured editor knowledge/google search.
Validation, look for WTP validators.
Completion, look for ContentAssistProcessor
About opensourcing it then we can probably find a place for you at jboss tools, initially in the sandbox ?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4212683#4212683
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212683
17 years, 2 months