File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how make petstore work in Jbuilder?

 
Robin Zhang
Ranch Hand
Posts: 139
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how make petstore work in Jbuilder? anyone has experience?
 
Chris Mathews
Ranch Hand
Posts: 2712
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PetStore is a J2EE Application. It runs in a J2EE complaint Application Server. JBuilder is a Java IDE, not an Application Server.
 
Robin Zhang
Ranch Hand
Posts: 139
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
chris, I know that. I want to import all source code to the Jbuilder. How can I do that.
 
Enrico Mannarino
Ranch Hand
Posts: 133
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
a simple way of doing it with JBuilder 6.
1) download petstore, let's say you put it in c:\petstore
2) open JBuilder, create a new project somewhere (it doesn't matter, but do not choose c:\petstore\src) !
3) click on Project/Project properties
4) change paths/source/default to point to c:\petstore
5) click on project/ add files packages
6) choose packages!
7) choose src
8) you're done and a very happy person
Enrico
 
Robin Zhang
Ranch Hand
Posts: 139
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thx. I tried it.it add src under my poject. But still I got a lots of compile error.any idea?
[ May 10, 2002: Message edited by: Robin Zhang ]
 
Enrico Mannarino
Ranch Hand
Posts: 133
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Robin,
I thought that just wanted to see the code. Why do you want to compile it? You wanna make changes?
In that case you need to specify all needed jars in your project so when compiling Jbuilder will find all jars and files needed.
/Enrico
 
Enrico Mannarino
Ranch Hand
Posts: 133
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just another thing,
sometimes I find JBuilder quite difficult to configure (maybe I'm not patient) , so I normally use it for editing files and syntax controls and then use ant for compilation.
Just a thought.
/Enrico
 
Robin Zhang
Ranch Hand
Posts: 139
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to compile it in Jbuilder and depoly it to Weblogic. I do not know if it is possible. There are a lot of compile errors due to the package name and missing class.
[ May 10, 2002: Message edited by: Robin Zhang ]
 
Enrico Mannarino
Ranch Hand
Posts: 133
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Robin,
no need to compile the sources! Just deploy the petstore.ear into weblogic directly!
/Enrico
 
Vivek Viswanathan
Ranch Hand
Posts: 350
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Enrico Mannarino:
Hi,
a simple way of doing it with JBuilder 6.
1) download petstore, let's say you put it in c:\petstore
2) open JBuilder, create a new project somewhere (it doesn't matter, but do not choose c:\petstore\src) !
3) click on Project/Project properties
4) change paths/source/default to point to c:\petstore
5) click on project/ add files packages
6) choose packages!
7) choose src
8) you're done and a very happy person
Enrico

Before doing all this, copy all the source to a single dir in the case of petstore 1.1.2 and above the src is split across the moduels like costomer, petstore, inventory etc ....copy the source from all of them into a single location and then do it.
That is wat I did and it works fine, but I have not run it from Tomcat within JBuilder, I guess that is going to be difficlt, also I am facing some problem compilling the JSP pages from JBuilder since, petstore JSP pages contains a lot of includes from one jsp to another ... dont think JBuilder can handle that
.
vivek v
 
Robin Zhang
Ranch Hand
Posts: 139
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vivek , I am trying to do it because I also want to study about Jbuilder and Weblogic. Can I use petsore1.3? What version are you using? version 1.2? Please give me more detail information. thanks.
 
Vivek Viswanathan
Ranch Hand
Posts: 350
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using JBuilder 6 , and I have tried compiling Pet Store 1.1.2 and Pet store 1.0.1
I am having some problem compiling, jsp pages
Vivek
 
Robin Zhang
Ranch Hand
Posts: 139
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My approach:
Step1: Project-->Project Properity-->path-->source
--Add-->Select src directory(the one
before "com" directory )-->
--Add-->Select src directory(the one
before "com" directory )-->
..........................................
Step2 : project-->Add Files/Packages-->packages-->
com.sun.j2ee
Step3: make com.sun.j2ee.blueprint, it will compile OK
[ July 17, 2002: Message edited by: Robin Zhang ]
 
Robin Zhang
Ranch Hand
Posts: 139
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used Petstore1.2, only got a error of missing "com.sun.xml.tree.XmlDocument".Where I can find it?
 
bill lubx
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If u click the error, Jbuilder will tell u which line is causing the problem, the look into the import statement, try to find out which import classes could not be found, then config the library for the class, if the library do not existed, search and down load that jar or zip from sun,
Hope this helps
Cheers
/bill
 
bill lubx
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Robin:
I will try petstore 1.3 compile in Jbuilder 6 and running weblogic 6.1, using debug to look into the workflow very soon (after I done my job after the deadline in this week), don�t have to compile JSP, since Jbuilder is very hard to compile JSP <<include>> tag,
But u could run the jsp by weblogic web server, yeah, weblogic web server (it is nice ), or u could config other web server like Jrun�
Put break point in your compiled class and gooooooooooooo,
There are several other things should be causing when u debug in Jbuilder,
1.Jbuilder6 JVM is not stable in debug mode, and the funny things is when JB6 crash, the instance is still alive In the windows thread!,
2.start weblogic server from JB6, watch the deploying process, otherwise, it may messed up,
cheers
/bill
 
Robin Zhang
Ranch Hand
Posts: 139
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks bill. I had PetStore1.1.2 compiled successfully in Jbuilder6. But still do not know how to make it run Tomcat or Weblogic. Need more study.
Another thing I did not compile JSP yet, I didn't know the whole picture of PetSore.
[ May 13, 2002: Message edited by: Robin Zhang ]
[ July 17, 2002: Message edited by: Robin Zhang ]
 
bill lubx
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this might out of the topic of SCJA, but i got the link here that u could config for JB6 and Weblogic 6.1
http://community.borland.com/article/0,1410,28549,00.html
qiao
/bill
 
Robin Zhang
Ranch Hand
Posts: 139
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bill.
 
Mark Kieling
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has anyone gotten Petstore to work (build/deploy/run/debug) under JBuilder 6 or 7? I can buld it but I am unsure how to get it deployed for debugging or if it is even possible.
[ July 17, 2002: Message edited by: Mark Kieling ]
 
Robin Zhang
Ranch Hand
Posts: 139
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to know too.
 
Alex Tang
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I was able to deploy PetStore 1.3 on Sun's reference implementation.I had same problems with deploying/debugging 1_0_1 and 1.2.
Hope it helps, alex
 
Mark Kieling
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Alex Tang:
Hi, I was able to deploy PetStore 1.3 on Sun's reference implementation.I had same problems with deploying/debugging 1_0_1 and 1.2.
Hope it helps, alex

Alex, that is great news! Can you post or send a copy of your project file? Also, what did you do to get the RI to run from within JB7? Were you able to debug from JB7?
 
Robin Zhang
Ranch Hand
Posts: 139
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alex, can you tell us the details about how you set up to make it work? Thanks
 
Alex Tang
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry to mislead everybody. I just deployed PetStore 1.3 on Sun's RI (J2EE 1.3), nothing to do with JBuilder.I wanted to say that if it is not easy to deploy it in other application servers, it could be seen how this application works on Sun's
own reference implementation.
However i made a project in Oracle JDeveloper 9i candidate release with this Petstore and I could see the code more easily.
Best regards, Alex
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic