build and run Sun's PetStore1.3.1_02 application with BEA WebLogic Server 8.1. - weblogic.developer.interest.examples(Archived)

build and run Sun's PetStore
1.3.1_02 application with BEA WebLogic Server 8.1.
5) In the same Command Prompt, compile PetStore using the commands:
cd c:\bea\user_projects\domains\petstore
setPetStoreEnv.cmd
cd c:\petstore1.3.1_02\src
ant
buildfile:build.xml does not exist!
build failed
could you tell me how ?
thank you

"yxxthu" <yxxthu#yahoo.com.cn> wrote:
>
build and run Sun's PetStore
1.3.1_02 application with BEA WebLogic Server 8.1.
5) In the same Command Prompt, compile PetStore using the commands:
cd c:\bea\user_projects\domains\petstore
setPetStoreEnv.cmd
cd c:\petstore1.3.1_02\src
ant
buildfile:build.xml does not exist!
build failed
could you tell me how ?
thank youEven I have the same problem, would appreciate if you would also let me know the
fix.
Thanks
Vijay

Make sure you have build.xml in c:\petstore1.3.1_02\src. Otherwise, I
suggest you unzip petstore-1_3_1_02.zip again. This file is shipped with
the Pet Store source code that Sun provides.
"yxxthu" <yxxthu#yahoo.com.cn> wrote in message
news:3f87c079$1#newsgroups.bea.com...
>
build and run Sun's PetStore
1.3.1_02 application with BEA WebLogic Server 8.1.
5) In the same Command Prompt, compile PetStore using the commands:
cd c:\bea\user_projects\domains\petstore
setPetStoreEnv.cmd
cd c:\petstore1.3.1_02\src
ant
buildfile:build.xml does not exist!
build failed
could you tell me how ?
thank you

Make sure you have build.xml in c:\petstore1.3.1_02\src. Otherwise, I
suggest you unzip petstore-1_3_1_02.zip again. This file is shipped with
the Pet Store source code that Sun provides.
"yxxthu" <yxxthu#yahoo.com.cn> wrote in message
news:3f87c079$1#newsgroups.bea.com...
>
build and run Sun's PetStore
1.3.1_02 application with BEA WebLogic Server 8.1.
5) In the same Command Prompt, compile PetStore using the commands:
cd c:\bea\user_projects\domains\petstore
setPetStoreEnv.cmd
cd c:\petstore1.3.1_02\src
ant
buildfile:build.xml does not exist!
build failed
could you tell me how ?
thank you

Hi Nick,
I tried building the petstore1.3.1_02 application following the instructions in the readme. But I got an error as the buil.xml file is missing in the directory.....\petstore1.3.1_02\src.
I tried unzipping the downloaded again and for a petstore.domain.jar along with the readme. This jar does not contain the build.xml file.
Then I tried compiling one by one the component folder and found that the ../xmldocuments/src folder has only a build.xml file but no source file...
Kinldy suggest what to do? Can you send me the zip via email?
P.S: I have checked the zip and the files are missing.

What we, BEA, provides is a patch to allow you to compile Pet Store for
WebLogic Server. It does not contain the source code.
Sun's Pet Store source code can be found at
http://developer.java.sun.com/developer/releases/petstore/petstore1_3_1_02.h
tml. See the requirements section of README.TXT
You need both in order to make it work.
"Ankur" <ankur.bahl#blr.hpsglobal.com> wrote in message
news:3fa9f2d9$1#newsgroups.bea.com...
Hi Nick,
I tried building the petstore1.3.1_02 application following theinstructions in the readme. But I got an error as the buil.xml file is
missing in the directory.....\petstore1.3.1_02\src.
>
I tried unzipping the downloaded again and for a petstore.domain.jar alongwith the readme. This jar does not contain the build.xml file.
>
Then I tried compiling one by one the component folder and found that the../xmldocuments/src folder has only a build.xml file but no source file...
>
Kinldy suggest what to do? Can you send me the zip via email?
P.S: I have checked the zip and the files are missing.

tjkcghjgj 

The Link: "Download PetStore 1.3.1_02 Demo Now"
in here: https://petstore.projects.dev2dev.bea.com/ is not working, it is either broken or requires FTP user-password,
can someone help?....
Thanks alot,
Yaron

Related

MedRec tutorial Compiling problems

Hi
I am trying to run the MedRec tutorial and ran into problems, When I run the ant build(after executed setEvn.com), the first problem is that ant can not find wlcompile, I managed to get around this one by add taskdef entry in mybulid.xml. The next one is that there is an package or class(javax.xml.rpc.soap.SOAPFaultException) referred in physicianEjb could not be found, I did a search in all the directories under my current java installation, as well as the ones under Weblogic, just could not find it. I have to comment them out. Then, the third one, the compiler is complaining about could not find a class call MedRecWebServices_Impl. I did the search, on my whole C drive, no luck, just could no find it. Mind to share with me your solutions on how to solve these problems, Any one's help is really appreciated.
Simon 
Hey Simon.
wlcompile exists within weblogic.jar and is defined in default.properties inside the WLS install Ant jar. If you run our Ant with weblogic.jar in the classpath (done so by setting your env using our setEnv scripts), then you should be fine. Also, javax.xml.rpc.soap.SOAPFaultException exists within WL_HOME/lib/webservices.jar. Check to see if weblogic.jar references this jar. If not, explicitly add this to your classpath. Lastly, MedRecWebServices_Impl is located inside webServicesEjb_client.jar which is generated from building the MedRec webservice (see the "build.ws" build target in medrecEar).
-Chris 
Also, please post your classpath and WebLogic version (execute java weblogic.version).

PetStore 1.3.1_02 in WL 8.1 Missing Directory

Hi all,
I tried to install the PetStore 1.3.1_02 application in the WL 8.1 Petstore doamin following the instructions from this doc.
http://dev2dev.bea.com/codelibrary/code/petstore.jsp
I was able to create the domain successfully. After creating the domain tried to build the Petstore application with the instructions from the readme.txt present in the
downloaded Petstore.zip from dev2dev.
But build is not successful.
From the ant script I came to know that some directory named "components\xmlcomponents\rsrc" is missing in the src directory of the petstore domain.
But the same is present in the Sun's PetStore 1.3.1_02.
BEA's support should take care of this.
Karthi.
[att1.html]
I just ran through the steps again without a hitch. The step you would want
to double-check is:
"Step 2: Building and Deploying PetStore
---------------------------------------
1) Before compiling the PetStore application, you must copy over
source files and directories installed in the PetStore domain *on
top of* the same files in Sun's PetStore 1.3.1_02 distribution.
The source files are located in the
c:\bea\user_projects\domains\petstore\src directory,
and should be copied over existing files in
c:\petstore1.3.1_02\src.
Use Windows' Explorer application (or a command-line cp -r
equivalent) to copy the entire contents of
c:\bea\user_projects\domains\petstore\src on
top of c:\petstore1.3.1_02\src. Make sure you overwrite existing
files when necessary."
"Karthi" <bkarthi#etnoteam.it> wrote in message
news:3fd0a158$1#newsgroups.bea.com...
Hi all,
I tried to install the PetStore 1.3.1_02 application in the WL 8.1 Petstore
doamin following the instructions from this doc.
http://dev2dev.bea.com/codelibrary/code/petstore.jsp
I was able to create the domain successfully. After creating the domain
tried to build the Petstore application with the instructions from the
readme.txt present in the
downloaded Petstore.zip from dev2dev.
But build is not successful.
From the ant script I came to know that some directory named
"components\xmlcomponents\rsrc" is missing in the src directory of the
petstore domain.
But the same is present in the Sun's PetStore 1.3.1_02.
BEA's support should take care of this.
Karthi.

PetStore 1.3.1_02 in WL 8.1 Missing Directory

Hi all,
I tried to install the PetStore 1.3.1_02 application in the WL 8.1 Petstore doamin following the instructions from this doc.
http://dev2dev.bea.com/codelibrary/code/petstore.jsp
I was able to create the domain successfully. After creating the domain tried to build the Petstore application with the instructions from the readme.txt present in the
downloaded Petstore.zip from dev2dev.
But build is not successful.
From the ant script I came to know that some directory named "components\xmlcomponents\rsrc" is missing in the src directory of the petstore domain.
But the same is present in the Sun's PetStore 1.3.1_02.
BEA's support should take care of this.
Karthi.
[att1.html]
I just ran through the steps again without a hitch. The step you would want
to double-check is:
"Step 2: Building and Deploying PetStore
---------------------------------------
1) Before compiling the PetStore application, you must copy over
source files and directories installed in the PetStore domain *on
top of* the same files in Sun's PetStore 1.3.1_02 distribution.
The source files are located in the
c:\bea\user_projects\domains\petstore\src directory,
and should be copied over existing files in
c:\petstore1.3.1_02\src.
Use Windows' Explorer application (or a command-line cp -r
equivalent) to copy the entire contents of
c:\bea\user_projects\domains\petstore\src on
top of c:\petstore1.3.1_02\src. Make sure you overwrite existing
files when necessary."
"Karthi" <bkarthi#etnoteam.it> wrote in message
news:3fd0a158$1#newsgroups.bea.com...
Hi all,
I tried to install the PetStore 1.3.1_02 application in the WL 8.1 Petstore
doamin following the instructions from this doc.
http://dev2dev.bea.com/codelibrary/code/petstore.jsp
I was able to create the domain successfully. After creating the domain
tried to build the Petstore application with the instructions from the
readme.txt present in the
downloaded Petstore.zip from dev2dev.
But build is not successful.
From the ant script I came to know that some directory named
"components\xmlcomponents\rsrc" is missing in the src directory of the
petstore domain.
But the same is present in the Sun's PetStore 1.3.1_02.
BEA's support should take care of this.
Karthi.

Error deploying ear in WLS6.1

I've developed and export my *.ear file from IBM Websphere Application Developer
4. I'm pretty sure I didn't use any WebSphere specific calls.
However, when I tried to deploy the ear into WLS6.1, I get the following error
(see attached).
I think it's because I didn't have the weblogic-ejb-jar.xml file. I've consulted
the manual and been advised that I need to generate the descriptor manually by
using the following command: -
java weblogic.ant.taskdefs.war.DDInit C:\MyApp
But i got the following error: -
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/ant/taskdefs/war/DDInit
Any help is appreciated.
BTW:All my apps runs under Win2K
hi michael,
I had the same problem once. There are 2 possibilities:
1. You didn't use setEnv.cmd to set the classpath.
2. Your weblogics.jar file in /lib doesnt contain the necessary classes.
I found out that 6.01 sp1 didnt have the ant tool in the weblogic.jar file
so I upgraded to 6.1 sp3.
"Michael" <springfresh79#hotmail.com> schrieb im Newsbeitrag
news:3d3cc870#newsgroups.bea.com...
>
I've developed and export my *.ear file from IBM Websphere ApplicationDeveloper
4. I'm pretty sure I didn't use any WebSphere specific calls.
However, when I tried to deploy the ear into WLS6.1, I get the followingerror
(see attached).
I think it's because I didn't have the weblogic-ejb-jar.xml file. I'veconsulted
the manual and been advised that I need to generate the descriptormanually by
using the following command: -
java weblogic.ant.taskdefs.war.DDInit C:\MyApp
But i got the following error: -
Exception in thread "main" java.lang.NoClassDefFoundError:weblogic/ant/taskdefs/war/DDInit
>
Any help is appreciated.
BTW:All my apps runs under Win2K
Michael,
Verify that you have specified weblogic.jar file in you classpath. If yes, them
check for DDInit class in weblogic.jar file.
Rakesh
"Michael" <springfresh79#hotmail.com> wrote:
>
I've developed and export my *.ear file from IBM Websphere Application
Developer
4. I'm pretty sure I didn't use any WebSphere specific calls.
However, when I tried to deploy the ear into WLS6.1, I get the following
error
(see attached).
I think it's because I didn't have the weblogic-ejb-jar.xml file. I've
consulted
the manual and been advised that I need to generate the descriptor manually
by
using the following command: -
java weblogic.ant.taskdefs.war.DDInit C:\MyApp
But i got the following error: -
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/ant/taskdefs/war/DDInit
Any help is appreciated.
BTW:All my apps runs under Win2K

Where are ejbc20.jar and ejbc20 compiler?

HI guys,
I am trying to evaluate EJB2.0 and have successfully installed WL 5.1, SP3,
and the EJB2.0 according to the step by step procedure of the following with
correct EJB2.0 container configuration in the setup screen.
http://www.weblogic.com/docs51/classdocs/API_ejb20/installing.html (Pls take
a look)
When I get to step 5 of the above regarding ejbc20.jar, I just do not think
I have downloaded it at all. The ejb2.0 zip file only contains ejb20.jar,
EJB20.jar(don't know what it is), ejb-cmp20.jar. I searched through the
whole computer can it does not exist. Besides the jar file, I cannot locate
the ejbc20 file either.
Thank you very much for your kind attention and help on this.
Kin
Using weblogic.ejbc20
The ejbc20.jar file also contains supporting classes for the weblogic.ejbc20
compiler, which is required for generating WebLogic Server EJB 2.0 container
classes. To use weblogic.ejbc20, you must place the ejbc20.jar file at the
beginning of the Java classpath for your development environment. For
example:
$ set CLASSPATH=path/ejbc20.jar;%CLASSPATH%
$ java weblogic.ejbc20 -help
Note: Place ejbc20.jar only in the Java classpath for your development
environment. Do not place ejbc20.jar in the Java classpath that you use to
start WebLogic Server.

Categories

Resources