If you are curious to see how Workshop supports EJBGen, take a look at
this article on dev2dev.
Also, I just noticed that the EJBGen mailing-list has passed the 600 subscribers. It looks like there are still a few people using EJB’s after all…
If you are curious to see how Workshop supports EJBGen, take a look at
this article on dev2dev.
Also, I just noticed that the EJBGen mailing-list has passed the 600 subscribers. It looks like there are still a few people using EJB’s after all…
This entry was posted on October 22, 2003, 9:20 am and is filed under Java. You can follow any responses to this entry through RSS 2.0. Both comments and pings are currently closed.
Arclite theme by digitalnature | powered by WordPress
#1 by Eric on March 23, 2004 - 12:27 am
Hi,
Is EJBGen using Sun’s default source of 1.3 instead of 1.4?
I am trying to compile the message driven bean in Workshop:
package com;
import javax.ejb.*;
import javax.jms.*;
import weblogic.ejb.*;
/**
* @ejbgen:message-driven
* ejb-name = mybean
* destination-jndi-name = destJNDIName
* destination-type = javax.jms.Queue
*
*/
public class mymdb
extends GenericMessageDrivenBean
implements MessageDrivenBean, MessageListener
{
public void onMessage(Message msg) {
assert true : “You should never see this”;
assert false : “This will pop up if the assertions are on in jre”;
}
}
But I get these errors:
Application Build Starting
Application Build Status: ericejb
BUILD STARTED
check-env:
clean:
Deleting 1 files from C:\DOCUME~1\pollardt\LOCALS~1\Temp\wlw_ericejb_build
Deleted 2 directories from C:\DOCUME~1\pollardt\LOCALS~1\Temp\wlw_ericejb_build
removed module ‘ericejb.jar’
build:
WARNING: Building to temporary directory C:\DOCUME~1\pollardt\LOCALS~1\Temp\/wlw_ericejb_build…
WARNING: Running EJBGen…
Loading source file C:\DOCUME~1\pollardt\LOCALS~1\Temp\/wlw_ericejb_build/com\mymdb.java…
C:\DOCUME~1\pollardt\LOCALS~1\Temp\wlw_ericejb_build\com\
WARNING: mymdb.java:19: as of release 1.4, assert is a keyword, and may not be used as an identifier
assert true : “You should never see this”;
^
WARNING: mymdb.java:20: as of release 1.4, assert is a keyword, and may not be used as an identifier
assert false : “This will pop up if the assertions are on in jre (-ea or -ea:com.nokia… flag)”;
^
4 errors
2 warnings
post-ejbgen:
WARNING: EJBGen ok. Compiling…
Compiling 1 source file to C:\DOCUME~1\pollardt\LOCALS~1\Temp\wlw_ericejb_build
C:\DOCUME~1\pollardt\LOCALS~1\Temp\wlw_ericejb_build\com\mymdb.java:19: warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
assert true : “You should never see this”;
^
C:\DOCUME~1\pollardt\LOCALS~1\Temp\wlw_ericejb_build\com\mymdb.java:19: not a statement
assert true : “You should never see this”;
^
C:\DOCUME~1\pollardt\LOCALS~1\Temp\wlw_ericejb_build\com\mymdb.java:19: ‘;’ expected
assert true : “You should never see this”;
^
C:\DOCUME~1\pollardt\LOCALS~1\Temp\wlw_ericejb_build\com\mymdb.java:20: warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
assert false : “This will pop up if the assertions are on in jre (-ea or -ea:com.nokia… flag)”;
^
C:\DOCUME~1\pollardt\LOCALS~1\Temp\wlw_ericejb_build\com\mymdb.java:20: not a statement
assert false : “This will pop up if the assertions are on in jre (-ea or -ea:com.nokia… flag)”;
^
C:\DOCUME~1\pollardt\LOCALS~1\Temp\wlw_ericejb_build\com\mymdb.java:20: ‘;’ expected
assert false : “This will pop up if the assertions are on in jre (-ea or -ea:com.nokia… flag)”;
^
4 errors
2 warnings
BUILD FAILED
ERROR: Compile failed; see the compiler error output for details.
Application Build had errors.
#2 by popup on August 31, 2004 - 5:13 pm
Will my personal information be public if I post here?
#3 by Namita on May 4, 2005 - 12:25 am
hi,
we are facing the same problem we have used jdk1.4 and resin server 3and resin 2.1.16 both
same assert error is coming how u solved that problem please help
#4 by Carlos de Luna on December 29, 2005 - 3:40 pm
I am facing the same problem with maven 1.0.2
Greetings