"Andersson, Jan" wrote:
> I've been trying for some days to get my first EJBs running on jBoss.
> Numerous problems have turned up. Maybe you can help me? Pleeeeease! I feel
> I'm running out of steam on this. It shouldn't be that hard to get this
> thing going, would it?
Nope, it shouldn't.
> The current situation:
>
> jBoss restarted in a command prompt where CLASSPATH is empty. Created a .jar
> and autodeployed it in jboss-2.0-FINAL\deploy. Then a series of error
> messages appear, all complaining that the fully-qualified name of different
> parts of the bean is not there. As far as I can see, they are. See below for
> error message, the contents of the .jar, and the contents of the
> ejb-jar.xml.
>
> What is going on here?
Send me your JAR and I'll see what I can do.
regards,
Rickard
>
> Regards,
> Jan Andersson
>
> ---------------------------------------
>
> [Verifier]
> Bean : NumberGenerator
> Section: 16.2
> Warning: The Bean Provider must specify the fully-qualified name of the Java
> cla
> ss that implements the enterprise bean's business methods.
>
> [Verifier]
> Bean : NumberGenerator
> Section: 16.2
> Warning: The Bean Provider must specify the fully-qualified name of the
> enterpri
> se bean's home interface in the home element.
>
> [Verifier]
> Bean : NumberGenerator
> Section: 16.2
> Warning: The Bean Provider must specify the fully-qualified name of the
> enterpri
> se bean's remote interface in the remote element.
>
> [Verifier]
> Bean : NumberGenerator
> Section: 16.2
> Warning: The Bean Provider must specify the fully-qualified name of the
> enterpri
> se bean's primary key class in the prim-key-class element.
>
> ---------------------------------------
>
> Listing the .jar produces this:
>
> C:\Temp>jar tf numgen.jar
> META-INF/
> META-INF/MANIFEST.MF
> NumberGeneratorHome.class
> NumberGeneratorBean.class
> NumberGeneratorBeanPK.class
> NumberGenerator.class
> META-INF/ejb-jar.xml
>
> ---------------------------------------
>
> Unpacking the .jar and listing the contents of ejb-jar.xml produces this:
>
> C:\Temp>more META-INF\ejb-jar.xml
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise
> JavaBeans 1.
> 1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">
>
> <ejb-jar>
> <enterprise-beans>
> <entity>
> <ejb-name>NumberGenerator</ejb-name>
> <home>se.jadata.jox.NumberGeneratorHome</home>
> <remote>se.jadata.jox.NumberGenerator</remote>
> <ejb-class>se.jadata.jox.NumberGeneratorBean</ejb-class>
> <persistence-type>Container</persistence-type>
> <prim-key-class>se.jadata.jox.NumberGeneratorBeanPK</prim-key-class>
> <reentrant>False</reentrant>
> </entity>
> </enterprise-beans>
> </ejb-jar>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
--
Rickard Öberg
Email: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]