Forums Register Login

how make petstore work in Jbuilder?

+Pie Number of slices to send: Send
how make petstore work in Jbuilder? anyone has experience?
+Pie Number of slices to send: Send
PetStore is a J2EE Application. It runs in a J2EE complaint Application Server. JBuilder is a Java IDE, not an Application Server.
+Pie Number of slices to send: Send
chris, I know that. I want to import all source code to the Jbuilder. How can I do that.
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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 ]
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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 ]
+Pie Number of slices to send: Send
Robin,
no need to compile the sources! Just deploy the petstore.ear into weblogic directly!
/Enrico
+Pie Number of slices to send: Send
 

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
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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 ]
+Pie Number of slices to send: Send
I used Petstore1.2, only got a error of missing "com.sun.xml.tree.XmlDocument".Where I can find it?
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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 ]
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
Thanks Bill.
+Pie Number of slices to send: Send
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 ]
+Pie Number of slices to send: Send
I want to know too.
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
 

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?
+Pie Number of slices to send: Send
Alex, can you tell us the details about how you set up to make it work? Thanks
+Pie Number of slices to send: Send
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
Look! It's Leonardo da Vinci! And he brought a tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1785 times.
Similar Threads
Weblogic 8.1 and IDEs
How can I use Rose to generate UML for PetStore?
JBuilder Remote Debugging
JBuilder with a QWERTY keyboard ?
JBuilder and Struts
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 09:22:05.