Hi, Ryan
The error you got is from the underlying XML parser that the
glassfish code is calling into. The parser does not like the ejb-jar.xml
which is generated from the annotations in the ejb class (where
@Stateless annotation is translated to an ejb element and the "name"
attribute is translated to the "ejb-name" element).
The parser is complaining about the value of the "ejb-name" element
"ejb/ConnectionTester" being invalid. According to the schema, the value
of the "ejb-name" needs to be a NMTOKEN type, and '/' is not an allowed
character in the NMTOKEN.
You can get rid of the parser error by not using the '/' in the name
attribute of Stateless annotation.
Thanks,
- Hong
Ryan J wrote:
>Hi,
>
>I'm running an application using the application client container and
>I'm getting messages like the following in my logs on the client side:
>
>
>
>>SEVERE: "DPL8015: Invalid Deployment Descriptors in Deployment descriptor file META-INF/ejb-jar.xml in archive [sma-ejb.jar].
>>Line 18 Column 48 -- cvc-datatype-valid.1.2.1: 'ejb/ConnectionTester' is not a valid value for 'NMTOKEN'."
>>Apr 23, 2007 5:37:55 PM com.sun.enterprise.deployment.node.SaxParserHandler error
>>SEVERE: "DPL8015: Invalid Deployment Descriptors in Deployment descriptor file META-INF/ejb-jar.xml in archive [sma-ejb.jar].
>>Line 18 Column 48 -- cvc-complex-type.2.2: Element 'ejb-name' must have no element [children], and the value must be valid."
>>
>>
>
>Everything seems to work ok, but I'd like to figure out what's going on.
> I'm using Glassfish v2 build 41a. I am NOT including an ejb-jar.xml
>with my EJB modules, so the one that ends up in my client-stubs is
>server generated.
>
>I have a ConnectionTesterBean that is annotated with:
>
>@Stateless(name = "ejb/ConnectionTester")
>
>and has a single method getTrue() that returns true. I also have a
>matching remote interface.
>
>Can anyone give me an idea of where to start looking?
>
>Ryan
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>