Message:

   The following issue has been closed.

   Resolver: Michael Newcomb
       Date: Tue, 7 Jan 2003 4:45 AM

Are you doing CMP 2.x or CMP 1.x?  You will probably find that you are doing CMP 2.x 
(@ejb-bean cmp-version="2.x").  'Standard CMP EntityBean' is a configuration for CMP 
1.x entity beans.  I believe you are looking for 'Standard CMP 2.x EntityBean' as a 
configuration name:

@jboss.configuration-name name="Standard CMP 2.x EntityBean"

The reason @jboss.configuration-name="Standard CMP EntityBean" seems to work is that 
XDoclet sees that as an invalid tag and does nothing with it.  Therefore, no 
configuration name is set in the jboss.xml.  You can verify this by looking at the 
generated jboss.xml and you will see that no <configuration-name> element exists.

Michael

---------------------------------------------------------------------
View the issue:

  http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XDT-236


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-236
    Summary: JBOSS InstantiationException
       Type: Bug

     Status: Closed
   Priority: Minor
 Resolution: CANNOT REPRODUCE

 Time Spent: Unknown
   Estimate: 0 minutes

    Project: XDoclet
  Component: JBoss Module
   Versions:
             1.2 Beta 2

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Steve Conley

    Created: Tue, 7 Jan 2003 4:02 AM
    Updated: Tue, 7 Jan 2003 4:45 AM
Environment: Windows 2000 / Java SDK 1.4 / JBOSS 3.0.4 / Tomcat 4.1.12 

Description:
I found an interesting problem with parameters, I am using the 1.2.0 beta 2 binary. 

If the following line is used (which the documentation suggests): 

* @jboss.container-configuration name="Standard CMP EntityBean" 

then I get the following error: 

08:43:13,753 ERROR [LogInterceptor] EJBException, causedBy: 
java.lang.InstantiationException 
at 
sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30)
 
at java.lang.reflect.Constructor.newInstance(Constructor.java:274) 
at java.lang.Class.newInstance0(Class.java:296) 
at ... 

If I change the line to: 

* @jboss.container-configuration="Standard CMP EntityBean" 

it works fine. 

Could keep someone confused for a while ...


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/xdoclet/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to