java.lang.ClassFormatError: com/zoo/Tiger (Illegal field modifiers: 0x2)the Tiger Class is as below...
* Generated by XDoclet - Do not edit!
* Remote interface for Tiger.
* @wtp generated
public interface Tiger
* <!-- begin-xdoclet-definition -->
* @generated //TODO: Must provide implementation for bean method stub */
public java.lang.String roar( )
Hi Arjen,Any luck? I encountered the same problem as you did.After deploying the EJB Project to the server, the test.jsp encounters an error where com.zoo cannot be found.
I noticed that ZooBeansClient package won't be created unless you include ur EJB Project into and EAR. So I proceeded to include the EJB project and web project into my EAR. I hit a diff. error this time...when I tried to deploy the EAR to the server, geronimo reported the following error...java.lang.ClassFormatError: com/zoo/Tiger (Illegal field modifiers: 0x2)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:123)
What is wrong with the class Tiger is beyond me. I've tried everything i can for 2 days with no luck.
Its just a JSP that invokes a EJB method that prints "Roar!" and all EJB classes were generated by xDoclet-EJB and I can't get it to work. I can't help but feel that I am an idiot for not being able to get something so simple working. Did I miss out something trivial?
Can anyone help? I can send you the .ear file with all source code included.Thanks!cheers,GeorgeOn 3/23/06, Arjen van der Weijden <Arjen.van.der.Weijden@rivm.nl > wrote:It won't even miaow :)
Trying to get ahead with eclipse and apache I followed the ( eclipse.org)
tutorial for building a simple EJB application (for JBOSS server).
Since we're using WTP it doesn't matter which J2EE-server is targetted.
Despite minor differences between the WTP version described and the one I
use, there are some offsets I've stumbled upon:
1) I don't see the ZooBeansClient package being created. All classes are
within my ZooBeansProject (so it seems)
The deployment of the EJB goes well, and is visible in the console:
ZooBeansproject/ZooBeansproject running Stop Uninstall
So I've added
to the .component file .
2) Running the ZooWeb test.jsp gave me an error that it could not find the
com.zoo.Tiger cannot be resolved or is not a type
What am I missing? Are there some good tutorials and articles out there
that can help me out?