This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem while running J2EE example EJB from sun

 
jinn, boy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
lucy hu
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should edit build.xml. Find the create-web-db section, replace the wrong CLASSPATH. Then should be ok.
 
Martin Schneider
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get the same problem. I wish some body can post a solution to this "open" question. Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic