File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes problem while running J2EE example EJB from sun Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "problem while running J2EE example EJB from sun" Watch "problem while running J2EE example EJB from sun" New topic
Author

problem while running J2EE example EJB from sun

jinn, boy
Greenhorn

Joined: May 08, 2001
Posts: 8

hi
i am a beginner to EJB and i was trying to run the example program provided by sun at http://developer.java.sun.com/developer/technicalArticles/J2EE/appclient/index.html?frontpage-jdc
the article presented the deployment procedure in a step by step manner and i could proceed and get it to work till the deploy step. after this step we are supposed to run the cloudscape database script and the sql script, but when i tried to run these scripts through cloudUtil.bat file. upon executing this batch file, i am getting a "COM.cloudscape.tools.ij class not found exception". the batch file is supposedly trying to find the required cloudscape-related tools.jar in a directory under J2EE_HOME which in my case is E:\j2sdkee1.3\lib\cloudscape. but i found that there is no tools.jar in this directory and after having examined the other jar files i found that the required class file is in a jar file thats actaully in another directory called E:\j2sdkee1.3\lib\system.
Did anyone of you face this problem while trying out this example ? please help.
thank you
shahid
Peter Gragert
Ranch Hand

Joined: Jan 16, 2001
Posts: 424
tools.jar is in my j2ee... stuff at d:\j2sdkee1.3\lib\system, so thats more or less the same.
I run the cloudscape example but not that batchfile, if I remember correctly.
After 'creating' the cloudscape database I used the
viewer of cloudescape and could do all the things with a database with it. Maybe you check first if this part works.
Eventually you have first to start cloudscape itself (cloudscape -start in the .../bin directory)?
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
"jinnjee",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
lucy hu
Ranch Hand

Joined: Aug 21, 2000
Posts: 60
I got the same problem, when I run "ant create-web-db" in the j2ee tutorial, got the error:
<code>
D:\j2eetutorial>cd examples
D:\j2eetutorial\examples>ant create-web-db
Buildfile: build.xml
init:
create-web-db:
[java] java.lang.NoClassDefFoundError: COM/cloudscape/tools/ij
[java] Java Result: 1
BUILD SUCCESSFUL
Total time: 2 seconds
</code>
Althought I have
<code>
%J2EE_HOME%\lib\system\cloudutil.jar;%J2EE_HOME%\lib\system\cloudscape.jar;%J2EE_HOME%\lib\cloudscape\RmiJdbc.jar
</code>
in my classpath and the command
<code>
cloudscape -isql
</code>
works.
can anybody help me?
Lucy
Alpha Huang
Greenhorn

Joined: Jul 11, 2002
Posts: 3
"COM.cloudscape.tools.ij" is a class in J2EE_HOME/lib/system/cloudutil.jar
You must include the jar in your classpath
Originally posted by jinnjee:

hi
i am a beginner to EJB and i was trying to run the example program provided by sun at http://developer.java.sun.com/developer/technicalArticles/J2EE/appclient/index.html?frontpage-jdc
the article presented the deployment procedure in a step by step manner and i could proceed and get it to work till the deploy step. after this step we are supposed to run the cloudscape database script and the sql script, but when i tried to run these scripts through cloudUtil.bat file. upon executing this batch file, i am getting a "COM.cloudscape.tools.ij class not found exception". the batch file is supposedly trying to find the required cloudscape-related tools.jar in a directory under J2EE_HOME which in my case is E:\j2sdkee1.3\lib\cloudscape. but i found that there is no tools.jar in this directory and after having examined the other jar files i found that the required class file is in a jar file thats actaully in another directory called E:\j2sdkee1.3\lib\system.
Did anyone of you face this problem while trying out this example ? please help.
thank you
shahid
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
    
    6
"apie",
JavaRanch has a naming policy to make it easier for people to recognise each other and avoid confusion. Please take a quick look at this and edit your profile.
Thanks
Simon
Kalpesh Mehta
Greenhorn

Joined: Mar 22, 2002
Posts: 3
Shahid, Lucy
Were you able to solve this problem? I am facing the same problem. Can someone please let me know the solution?
Thanks,
Kalpesh
sheng xu
Greenhorn

Joined: Aug 18, 2002
Posts: 1
You should edit build.xml. Find the create-web-db section, replace the wrong CLASSPATH. Then should be ok.
Martin Schneider
Ranch Hand

Joined: May 16, 2002
Posts: 42
Im having this same problem. The strange part is that this works fine at work (win nt4) but at home where I have win xp, I can't make this table-creating process working :|
Has anyone solved this problem?
karen Que
Greenhorn

Joined: Mar 15, 2003
Posts: 2
I got the same problem even if I have all the classpath needed. Would you like to help me?
Karen

Originally posted by Martin Schneider:
Im having this same problem. The strange part is that this works fine at work (win nt4) but at home where I have win xp, I can't make this table-creating process working :|
Has anyone solved this problem?

[ June 15, 2003: Message edited by: karen Que ]
Michael Hu
Greenhorn

Joined: Dec 08, 2003
Posts: 1
I get the same problem. I wish some body can post a solution to this "open" question. Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem while running J2EE example EJB from sun