-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: javax.ejb problem
PostPosted: Sat Feb 21, 2009 12:34 pm 
Newbie

Joined: Mon Feb 02, 2009 3:36 pm
Posts: 3
Location: Ireland
Hi,

I'm having problems with my database management program, I'm using stateless sessions EJB beans, Hibernate with a Mysql DB and getting the below errors...Can you someone help?

Hibernate version: 3.4.0

Mapping documents: N/A

Code between sessionFactory.openSession() and session.close(): What?

Full stack trace of any exception that occurs: [mkdir] Created dir: C:\crs570\DBMSSware\bin
compile:
[javac] Compiling 12 source files to C:\crs570\DBMSSware\bin
[javac] C:\crs570\DBMSSware\src\sware\dbms\businesstier\DbmsBean.java:13: package javax.ejb does not exist
[javac] import javax.ejb.Stateless;
[javac] ^
[javac] C:\crs570\DBMSSware\src\sware\dbms\businesstier\DbmsDAO.java:4: package javax.ejb does not exist
[javac] import javax.ejb.Remote;
[javac] ^
[javac] C:\crs570\DBMSSware\src\sware\dbms\businesstier\DbmsDAO.java:15: cannot find symbol
[javac] symbol: class Remote
[javac] @Remote
[javac] ^
[javac] C:\crs570\DBMSSware\src\sware\dbms\businesstier\DbmsBean.java:28: cannot find symbol
[javac] symbol: class Stateless
[javac] @Stateless
[javac] ^
[javac] Note: C:\crs570\DBMSSware\src\sware\dbms\clienttier\Driver.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: C:\crs570\DBMSSware\src\sware\dbms\businesstier\DbmsBean.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 4 errors

BUILD FAILED
C:\crs570\DBMSSware\build.xml:28: Compile failed; see the compiler error output for details.

Total time: 2 seconds



Name and version of the database you are using: Mysql 5.0


The generated SQL (show_sql=true): N/A

Debug level Hibernate log excerpt: N/A

Regards

Col


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 23, 2009 1:05 pm 
Senior
Senior

Joined: Tue Aug 01, 2006 9:24 pm
Posts: 120
It looks like your missing a jar either ejb.jar or
jboss-ejb3x.jar.

Make sure these are in your project.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.