The following issue has been updated:
Updater: Ivan S Kirkpatrick (mailto:[EMAIL PROTECTED])
Date: Tue, 31 Dec 2002 10:40 AM
Changes:
[Attachment] [AppSrvBean.java] was added
---------------------------------------------------------------------
For a full history of the issue, see:
http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XDT-218&page=history
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XDT-218
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XDT-218
Summary: EJB's implementing EntityAdapter class
Type: Improvement
Status: Resolved
Priority: Minor
Resolution: INCOMPLETE
Time Spent: Unknown
Estimate: 0 minutes
Project: XDoclet
Component: EJB Module
Versions:
2.0
Assignee: xdoclet-devel (Use for new issues)
Reporter: Ivan S Kirkpatrick
Created: Mon, 30 Dec 2002 4:08 PM
Updated: Tue, 31 Dec 2002 10:40 AM
Environment: Win2K
Description:
I was following the O'Reilly text building Java Enterprise Applications where Brett
recommends the use of hte entity/session Adapter class as a superclass for all ejb's.
This cleans up the code a little bit and it would seem that this could be part of the
XDoclet routines. However I get an error in compilation:
compile-ejb:
[javac] Compiling 6 source files to C:\Viewstore\snapshots\ccmware\Applicati
on_Server\mware\xdoc\build\classes
[javac]
[javac] Found 1 semantic error compiling "C:/Viewstore/snapshots/ccmware/App
lication_Server/mware/xdoc/src/com/boeing/mware/xdoc/ejb/appsrv/AppSrv.java":
[javac]
[javac] 19. extends com.boeing.mware.xdoc.ejb.EntityAdapter
[javac] <------------------------------------->
[javac] *** Error: Class com/boeing/mware/xdoc/ejb/EntityAdapter cannot be u
sed where an interface is expected.
[javac]
[javac] Found 2 semantic errors compiling "C:/Viewstore/snapshots/ccmware/Ap
plication_Server/mware/xdoc/src/com/boeing/mware/xdoc/ejb/appsrv/AppSrvBean.java
":
[javac]
[javac] 159. Integer id = sequence.getNextValue(appSrvKey);
[javac] <------------------------------>
[javac] *** Error: No method named "getNextValue" was found in type "com/boe
ing/mware/xdoc/ejb/sequence/SequenceLocal".
[javac]
[javac]
[javac] 176. }catch (SequenceException e){
[javac] <----------------->
[javac] *** Error: This catch block is unreachable because there is no excep
tion whose type is assignable to "com/boeing/mware/xdoc/exception/SequenceExcept
ion" that can be thrown during execution of the body of the try block.
[javac]
[javac] Found 1 semantic error compiling "C:/Viewstore/snapshots/ccmware/App
lication_Server/mware/xdoc/src/com/boeing/mware/xdoc/ejb/appsrv/AppSrvCMP.java":
[javac]
[javac] 93. public void ejbRemove() throws javax.ejb.RemoveException
[javac] <--------->
[javac] *** Error: The checked exception "RemoveException" is not the same a
s or a subclass of any exception in the throws clause of the overridden method "
void ejbRemove();" declared in type "com/boeing/mware/xdoc/ejb/EntityAdapter".
[javac]
[javac] Found 1 semantic error compiling "C:/Viewstore/snapshots/ccmware/App
lication_Server/mware/xdoc/src/com/boeing/mware/xdoc/ejb/appsrv/AppSrvData.java"
:
[javac]
[javac] 19. extends com.boeing.mware.xdoc.ejb.EntityAdapterData
[javac] <--------------->
[javac] *** Error: Type com/boeing/mware/xdoc/ejb/EntityAdapterData was not
found.
[javac]
[javac] Found 1 semantic error compiling "C:/Viewstore/snapshots/ccmware/App
lication_Server/mware/xdoc/src/com/boeing/mware/xdoc/ejb/appsrv/AppSrvHome.java"
:
[javac]
[javac] 19. extends com.boeing.mware.xdoc.ejb.EntityAdapterHome
[javac] <--------------->
[javac] *** Error: Type com/boeing/mware/xdoc/ejb/EntityAdapterHome was not
found.
[javac]
[javac] Found 1 semantic error compiling "C:/Viewstore/snapshots/ccmware/App
lication_Server/mware/xdoc/src/com/boeing/mware/xdoc/ejb/appsrv/AppSrvPK.java":
[javac]
[javac] 19. extends com.boeing.mware.xdoc.ejb.EntityAdapterPK
[javac] <------------->
[javac] *** Error: Type com/boeing/mware/xdoc/ejb/EntityAdapterPK was not fo
und.
BUILD FAILED
C:\Viewstore\snapshots\ccmware\Application_Server\mware\xdoc\build.xml:349: Comp
ile failed, messages should have been provided.
Total time: 13 seconds
C:\Viewstore\snapshots\ccmware\Application_Server\mware\xdoc>
---------------------------------------------------------------------
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:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel