Pet Store 2 example in netbeans
Hello, ppl im trying to run the pet store 2 example given in this page:
https://blueprints.dev.java.net/petstore/usingnetbeans.html
using netbeans but i dont understand how to make it work, i;ve downloaded the jar file but if in netbeans i open a proyect but i cant open the jar as a project, can anybody help me? and later i would like to open it in Creator, is it possible?
Tnks in advance!
Belthazor
Okay, the solution: don't let the text
"2. Download and install the Java Pet Store Reference application. Click here (https://blueprints.dev.java.net/downloads.html) to download the JAR file. ..."
mislead you like it did to me.
There's no JAR file to download if you want to import Petstore in Netbeans. On page https://blueprints.dev.java.net/downloads.html don't choose "Web 2.0 Java Pet Store Application", click "Java BluePrints in Java EE SDK" instead. You have to download the full "Java BluePrints" example package (ZIP file) bundled with Java EE 5 SDK Update 2 OR just the package itself on the same page (http://java.sun.com/javaee/downloads/index.jsp) under section "Download the Components Independently".
Have a nice day!
Similar Messages
-
Java pet store example on MS ME OS
HI. I JUST WANNA KNOW IF IT'S AT ALL POSSIBLE TO INSTALL THE J2EE PET STORE EXAMPLE ON THE MS MILLENNIUM EDITION OS. I'VE HAVIN' A HELLUVA TIME TRYING TO START CLOUDSCAPE, THE J2EE SERVER, THE SETUP .BAT FILE,...
SHOULD I JUST USE WINDOWS NT ??
ANY HELP WOULD BE GREATLY APPRECIATED. THANKS.It's been a while but it seems to me that I was unable to get any app servers or servlet containers to run under ME. I use Win2K without problems.
-
How to create search index files for Java Pet Store
Hi All,
As you may know, the java pet store application uses for the search function a search index object, which itself uses the following files '_36.cfs', 'deletable', 'segments'.
Now as I want to change the data of the database (delete some pets, and names, etc.), it does not have an effect on the search results. This is because the application uses the search index files and does not use the database for the search query.
So can anybody help me and tell me how I can create this three files from my *.sql file, so I can search in my own data?
Thank you very much for your help.
Regards,
Wolfganggonso777 wrote:
Solved:
I had the same problem. It seems that the installer does not unzip three files where it should.
With NetBeans (Using File Perspective) or just editing build.xml
Netbeans: select build.xml/Run Target/Other Targets/unzipindexes: Tough it should work it fails in resolving $javaee.domaindir$ at least in my system, but it does suscessfully create a new directory named ${jee.domaindir} that includes lib/petstore/searchindex and three files: _36.cfs , deletable, segments.
Copy those three files to your_glasshfish_path/domains/domain1/petstore/searchindex.
Now you are done. I hope that you had a nice time while waiting two years for it to be answered. How is it that it is not answered anywhere else?
Regards,
Ramon Talavera
www.sciencetechworks.comThanks. I didn't wait 2 years for this, but I just replied on a 2 year old post. I only recently tried the petstore app. I thought I needed to study lucene first to figure things out, it turns out there was an 'internal target' on the build file for this. Thanks a bunch! -
Failed restarts of Java Pet Store 2.0
Hi,
I am having a recurring problem with the Java Pet Store 2.0 that I hope someone can help shed light on.
I am trying to use the Pet Store as a reference for a project. I have performed the following sequence on a Dell latitude laptop running Windows XP Pro SP2:
Download and install JDK 1.5.0_11
Download and install Java EE 5 w/ tools
Launch NetBeans
Open the Java Pet Store project that comes embedded in the EE
Start DB server (if not already started)
Start Java System Application Server 9
Check build.properties
Run Target setup.xml
Open pet store project
This works on the initial launch. The problem comes when I shut everything down and turn off the laptop, then try to run the project in NetBeans again the next time I start up. Every time I try, after I start the DB server and App server and even re-target setup.xml, when I try to run the project, I get the same exception (see below). Even my newbie brain realizes that the issue involves the FileArchive class. What it can't figure out is what I should do about it in order to be able to run the darn project more than one time. Can anybody guide me? Thanks in advance for any help.
Here is the log of the failed petstore run (this same exception has occurred on attempted restarts after multiple installs):
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
Copying 1 file to C:\Sun\SDK\blueprints\petstore\build\web\WEB-INF\classes
Duplicated project name in import. Project petstore-impl defined first in C:\Sun\SDK\blueprints\petstore\nbproject\ant-deploy.xml and again in C:\Sun\SDK\blueprints\petstore\nbproject\build-impl.xml
insert-proxy-settings:
Duplicated project name in import. Project petstore-impl defined first in C:\Sun\SDK\blueprints\petstore\nbproject\ant-deploy.xml and again in C:\Sun\SDK\blueprints\petstore\nbproject\build-impl.xml
dojo:
compile:
compile-jsps:
Building jar: C:\Sun\SDK\blueprints\petstore\dist\petstore.war
do-dist:
dist:
Incrementally deploying petstore_localhost:4848_server
Completed incremental distribution of petstore
Incrementally redeploying petstore_localhost:4848_server
Start registering the project's server resources
Finished registering server resources
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.netbeans.modules.j2ee.sun.bridge.DirectoryDeploymentFacility.getFileArchive(DirectoryDeploymentFacility.java:186)
at org.netbeans.modules.j2ee.sun.bridge.DirectoryDeploymentFacility.incrementalDeploy(DirectoryDeploymentFacility.java:77)
at org.netbeans.modules.j2ee.sun.bridge.DirectoryDeployment.incrementalDeploy(DirectoryDeployment.java:154)
at org.netbeans.modules.j2ee.sun.ide.j2ee.incrdeploy.DirectoryDeploymentFacade.incrementalDeploy(DirectoryDeploymentFacade.java:123)
at org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetServer.java:502)
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:106)
at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:82)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:240)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:293)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:131)
Caused by: java.io.FileNotFoundException: C:\Program Files\netbeans-5.5\bin\${com.sun.aas.installRoot}\blueprints\petstore\build\web
at com.sun.enterprise.deployment.deploy.shared.FileArchive.open(FileArchive.java:66)
... 22 more
java.lang.IllegalStateException: cannot find FileArchive class...
at org.netbeans.modules.j2ee.sun.bridge.DirectoryDeploymentFacility.incrementalDeploy(DirectoryDeploymentFacility.java:79)
at org.netbeans.modules.j2ee.sun.bridge.DirectoryDeployment.incrementalDeploy(DirectoryDeployment.java:154)
at org.netbeans.modules.j2ee.sun.ide.j2ee.incrdeploy.DirectoryDeploymentFacade.incrementalDeploy(DirectoryDeploymentFacade.java:123)
at org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetServer.java:502)
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:106)
at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:82)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:240)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:293)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:131)
C:\Sun\SDK\blueprints\petstore\nbproject\build-impl.xml:468: Deployment error:
cannot find FileArchive class...
See the server log for details.
BUILD FAILED (total time: 2 seconds)C:\Sun\SDK\blueprints\petstore\nbproject\build-impl.xml:468: Deployment error: cannot find FileArchive class...
See the server log for details.
BUILD FAILED (total time: 2 seconds)I had the same problem but not with blueprints and I managed to start manually the sun server, clean and build the project and copy the *.war file from the project_folder/dist/ to C:\Sun\SDK\domains\domain1\autodeploy.
If this doesn't work you could try to reinstall netbeans and java . -
Business logic flaw in pet store?
I am not sure if I understood correctly. In the requestmappings.xml file, we have a section like:
<url-mapping url="/validatenewaccount" screen="ACCOUNT_CREATED" useRequestHandler="true" useFlowHandler="true">
<request-handler-class>com.sun.j2ee.blueprints.petstore.control.web.handlers.AccountHandler</request-handler-class>
<flow-handler class="com.sun.j2ee.blueprints.petstore.control.web.handlers.AccountFlowHandler">
<handler-result result="1" screen="ACCOUNT_CREATED"/>
<handler-result result="2" screen="ACCOUNT_CREATED"/>
<handler-result result="3" screen="MISSING_FORM_DATA"/>
</flow-handler>
</url-mapping>
One question is both handler classes are executed BEFORE the web page displayed. But generally we need to perform some actions AFTER the page load but before going to next page. There is no logic to perfrom this kind of action in the pet store design.
One example, suppose we are adding a customer. We have two pages -- customer_add displays some input fields, customer_view display the customer info after the adding. We have the following steps:
1) Display the customer_add page;
2) When user fills the form and click submit, we must do the input validation BEFORE saving the info to db. So we use a FlowHandler class to validate the user input. If fails, we need redisplay customer_add page;
But if validation successful, we must save the info to db BEFORE displaying customer_view page. But we cannot do it here, as the RequestProcessor (supposed to do sth against db through EJB) must be executed BEFORE the page load and BEFORE the FlowHandler.
Someone may argue why don't we save the into to db at the beginning of displaying customer_view page. Remember, the customer_view page is nothing related to the customer_add page. The customer_view page could be called from somewhere else, such as search customers, view customers, edit customers.
The customer adding logic should really follow the customer_add page.
I am not sure if it is a design flaw or I just understand wrong.
Thanks,Hmm, seems like you did not understood correctly.
The validation of data posted by the user form should be done in the AccountHandler class (in your example, that means in a RequestHandler class), not in the AccountFlowHandler. If the data is not valid, throw an exception or set some value in the session, than the flow handler will use the value to decide what page to display ( back to the input page or success page, etc).
If the data is valid, the AccountHandler generates an event that goes to the EJB layer and updates the DB.
Regards,
Cristian -
J2EESDK-1_4_03 compatability with Java Pet Store
I am trying to install Java Pet Store (WIndows XP Prof) and have j2se 1.4.11 and J2EESDK-1_4_03 also but from following the install instructions on Java Pet Store, I've to run cloudscape.bat and j2ee.bat from the %J2EE_HOME%\bin folder and they are not contained in there. In fact, they are not anywhere in the entire folder.
Any suggestions. I could download J2EE-1.3 but I dont think its compatible with Windows XP Prof as when I go to run the file it keeps crashing on me!
Please any suggestions. Thanksin case that you are new , i should suggest you the follwoing steps
1- you should get J2EE tutorial from sun site
http://java.sun.com/j2ee/1.4/download.html
2-get Netbeans IDE 5 from the following link
http://www.netbeans.info/downloads/download.php?type=5.0
and now goto the Document home of Netbeans 5 , look under Tutorials for j2ee , I think it is right place for you to start.
http://www.netbeans.org/kb/50/quickstart-j2ee.html
Dealing with application servers and trying to deploy an application using deploy tools maybe kinda hard.
Masoud Kalali
http://weblogs.java.net/blog/kalali/ -
Configuring Oracle for Pet store
Hi when I'm executing the command:
java utils.Schema jdbc:weblogic:oracle:coc weblogic.jdbc.oci.Driver -u scott -p
tiger -verbose oracle.ddl
It gives me the foll error:
utils.Schema will use these parameters:
url: jdbc:weblogic:oracle:coc
driver: weblogic.jdbc.oci.Driver
dbserver: null
user: scott
password: tiger
SQL file: oracle.ddl
Missing license file for: WebLogic Server 6.1
Missing license file for: WebLogic Server 6.1
java.sql.SQLException: Fail to load jDriver/Oracle due to license checking faile
d!
at weblogic.jdbc.oci.Driver.loadLibraryIfNeeded(Driver.java:182)
at weblogic.jdbc.oci.Driver.connect(Driver.java:76)
at java.sql.DriverManager.getConnection(DriverManager.java:457)
at java.sql.DriverManager.getConnection(DriverManager.java:137)
at utils.Schema.main(Schema.java:112)
Could not make database connection
how can I configure my oracle for Pet Store...??
----anjaliHope this helps:
The following link is incorrect:
http://bernal/stage/docs61/adminguide/utils.html#1143071
1st)
In the doc it says "The directory containing your WebLogic Server
installation. For example, d:\beaHome\wlserver6.1. Required only if using a
BEA-supplied JDBC driver."
it should say "The directory containing your WebLogic Server License. For
example, Z:\bea\610sp1 .... "
The key here is that if WL_HOME=Z:\bea\610sp1load8c\wlserver6.1 bea.home is
generally but not always one directory above WL_HOME. bea.home should point
to the the bea license file.
2nd)
java -Dbea.home=WebLogicHome utils.dbping DBMS user password DB
//* WebLogicHome is almost never correct(unless the license file lives
there
which it never does, especially out of the box install.. and with multiple
installation the license file could live in a different directory structure
all together) please come up with a new convention for defined bea.home.
3rd)
Please so a "real" sample with a successful result: like the following
Z:\bea\610sp1load8c\wlserver6.1\config\docDomain>java -Dbea.home=%WL_HOME%\.
-Djava.library.path=%WL_HOME%\bin\oci817_8
utils.dbping ORACLE pet112 pet112 pet112
Starting Loading jDriver/Oracle .....
**** Success!!! ****
You can connect to the database in your app using:
java.util.Properties props = new java.util.Properties();
props.put("user", "pet112");
props.put("password", "pet112");
java.sql.Driver d =
(java.sql.Driver)Class.forName("weblogic.jdbc.oci.Driver").newInstance();
java.sql.Connection conn = d.connect("jdbc:weblogic:oracle:pet112",
props);
// This mode is superior, especially in serverside classes because
// it avoids DriverManager calls are class synchronized, and will
// bottleneck any other JDBC in the server, even already-running
// connections, because all JDBC drivers use DriverManager.println()
// to log info and exceptions, and that call is also class synchronized.
// For repeated connecting, a single driver instance can be re-used.
**** or ****
Class.forName("weblogic.jdbc.oci.Driver").newInstance();
java.sql.Connection conn =
Driver.connect("jdbc:weblogic:oracle:pet112", "pet112", "pet112");
**** or ****
java.util.Properties props = new java.util.Properties();
props.put("user", "pet112");
props.put("password", "pet112");
props.put("server", "pet112");
Class.forName("weblogic.jdbc.oci.Driver").newInstance();
java.sql.Connection conn =
Driver.connect("jdbc:weblogic:oracle", props);
4th)
Please show a common mistake and how to correct it: like
Z:\bea\610sp1load8c\wlserver6.1\config\docDomain>java -Dbea.home=%WL_HOME%\.
utils.dbping ORACLE pet112 pet112 pet112
Starting Loading jDriver/Oracle .....
Error encountered:
java.sql.SQLException: System.loadLibrary(weblogicoci37) threw
java.lang.UnsatisfiedLinkError: no weblogicoci37 in java.
library.path
at weblogic.jdbc.oci.Driver.loadLibraryIfNeeded(Driver.java:226)
at weblogic.jdbc.oci.Driver.connect(Driver.java:76)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:146)
at utils.dbping.main(dbping.java:167)
*In order to correct this add -Djava.library.path=%WL_HOME%\bin\oci817_8
or add %WL_HOME%\bin\oci817_8 to your path **THIS IS ONLY FOR WINDOWS**
For solaris -Djava.library.path=$WL_HOME\lib\solaris\oci817_8 or add that
directory to LD_LIBRARY_PATH Also we should documenent the requirement for
oracle libraries be available on the PATH or LD_LIBRARY_PATH otherwise it
won't work.
5th)
Please show what is expected when the user enters this information into the
console... The whole reason for this utility is to help the user with
problems that he/she is having with JDBC pools/datasources from the console.
Idealy a screen shot with the information as it would look from the console.
And tell what they need to do to there Weblogic startup scripts in order for
it work..
6th)
For Oracle Type 2 the following is not true. "DBNAME is the name of a
database on the DBMS." It is the name defined into tnsnames.ora file that
maps to particular DBMS. Also we should provide instructions on how to not
have to rely on the tnsnames.ora file like:
("jdbc:weblogic:oracle:(DESCRIPTION= (ADDRESS = (HOST = suncom) (PROTOCOL =
tcp) (PORT=1521)) (CONNECT_DATA = (SID = ORCL805)))","scott","tiger");
Please let me know if you have any questions...
Andrew Sliwkowski(BEA)
[email protected]
"Adam " <[email protected]> wrote in message
news:[email protected]...
>
i am having the same problem .. if you found a solution can u sahre itwith me
. thanks
"Anjaly" <[email protected]> wrote:
Hi when I'm executing the command:
java utils.Schema jdbc:weblogic:oracle:coc weblogic.jdbc.oci.Driver -u
scott -p
tiger -verbose oracle.ddl
It gives me the foll error:
utils.Schema will use these parameters:
url: jdbc:weblogic:oracle:coc
driver: weblogic.jdbc.oci.Driver
dbserver: null
user: scott
password: tiger
SQL file: oracle.ddl
Missing license file for: WebLogic Server 6.1
Missing license file for: WebLogic Server 6.1
java.sql.SQLException: Fail to load jDriver/Oracle due to license
checking
faile
d!
at weblogic.jdbc.oci.Driver.loadLibraryIfNeeded(Driver.java:182)
at weblogic.jdbc.oci.Driver.connect(Driver.java:76)
at java.sql.DriverManager.getConnection(DriverManager.java:457)
at java.sql.DriverManager.getConnection(DriverManager.java:137)
at utils.Schema.main(Schema.java:112)
Could not make database connection
how can I configure my oracle for Pet Store...??
----anjali -
Hi,
I am using weblogic 6.1 and remotely deployed pet store application on a different
machine using NodeManager. When I try to start the petStoreServer from local admin
console, I got following error:
Could not create pool connection. The DBMS driver exception was:
SQL Exception: Database 'petStore' not found.
at c8e.k.j.l_(Unknown Source)
at c8e.k.j.l_(Unknown Source)
at c8e.k.j.n(Unknown Source)
at c8e.k.q.<init>(Unknown Source)
at c8e._b.e.<init>(Unknown Source)
at c8e._b.c.getNewLocalConnection(Unknown Source)
at c8e.k.v.connect(Unknown Source)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:193)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:134)
at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.java:698)
at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java:282)
at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:623)
at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:279)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:233)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:193)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy0.updateDeployments(Unknown Source)
at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:2761)
at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:370)
at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:160)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy47.start(Unknown Source)
at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.java:480)
at weblogic.management.Admin.startApplicationManager(Admin.java:1180)
at weblogic.management.Admin.finish(Admin.java:590)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:518)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203)
Any hint?
Thanks,
Cathy
Covasoft, Inc.
1250 S. Capital of Texas Hwy.
Bldg. 1, Suite 240
Austin, Texas 78746
Office: 512.732.7860
Fax: 512.732.7832The exception tells me that the connection pool was not configured properly and
thus was not created; which as you know, the datasources are dependent on.
"Anjali" <[email protected]> wrote:
>
Created connection pool & data sources in the administartion console
for Pet Store
.When I start the example server after this , it gives the following
error on
the server console:
Enter password to boot WebLogic server:
Starting WebLogic Server ....
<Nov 1, 2001 10:24:21 AM IST> <Notice> <Management> <Loading configuration
file
.\config\examples\config.xml ...>
<Nov 1, 2001 10:24:24 AM IST> <Info> <Logging> <Only log messages of
severity
"E
rror" or worse will be displayed in this window. This can be changed
at Admin
Co
nsole> examples> Servers> examplesServer> Logging> General> Stdout severity
thre
shold>
<Nov 1, 2001 10:25:04 AM IST> <Error> <JDBC> <Error during TXDataSource
creation
: weblogic.common.ResourceException: DataSource(jdbc.InventoryDB) can't
be creat
ed with non-existent Connection Pool (petstorePool)>
<Nov 1, 2001 10:25:04 AM IST> <Error> <JDBC> <Error during TXDataSource
creation
: weblogic.common.ResourceException: DataSource(jdbc.SignOnDB) can't
be created
with non-existent Connection Pool (petstorePool)>
<Nov 1, 2001 10:25:04 AM IST> <Error> <JDBC> <Error during TXDataSource
creation
: weblogic.common.ResourceException: DataSource(jdbc.EstoreDB) can't
be created
with non-existent Connection Pool (petstorePool)>
<Nov 1, 2001 10:25:20 AM IST> <Notice> <WebLogicServer> <WebLogic Server
started
>
<Nov 1, 2001 10:25:21 AM IST> <Notice> <WebLogicServer> <SSLListenThread
listeni
ng on port 7002>
<Nov 1, 2001 10:25:21 AM IST> <Notice> <WebLogicServer> <ListenThread
listening
on port 7001>
what could be the problem. please if u can help out.
----anjali -
hi, iam quite new to java, and i have been trying to install the demo for java pet store.
I run windows xp, and have installed j2sdkee1.3.1 on my c drive, ie c:\j2sdkee1.3.1
how do i set the enviroment variables?
do i add them to the user variables or system variables??
in the instructions it says
JAVA_HOME must point to the root directory of your J2SE SDK installation. For example, if you installed the J2SE SDK in c:\jdk1.3.1, then that path should be the value of JAVA_HOME.
J2EE_HOME must point to the root directory of your J2EE SDK installation. For example, if you installed the J2EE SDK in /usr/local/java/j2sdkee1.3.1 , then that path should be the value of J2EE_HOME.
could someone explain the second part to me?
thanks for any helphi, iam quite new to java, and i have been trying to
install the demo for java pet store.
I run windows xp, and have installed j2sdkee1.3.1 on
my c drive, ie c:\j2sdkee1.3.1
how do i set the enviroment variables?
do i add them to the user variables or system
variables??
in the instructions it says
JAVA_HOME must point to the root directory of your
J2SE SDK installation. For example, if you installed
the J2SE SDK in c:\jdk1.3.1, then that path should be
the value of JAVA_HOME.
J2EE_HOME must point to the root directory of your
J2EE SDK installation. For example, if you installed
the J2EE SDK in /usr/local/java/j2sdkee1.3.1 , then
that path should be the value of J2EE_HOME.The paragraph above is for UNIX users. You should set your J2EE_HOME=C:\j2sdkee1.3.1
>
could someone explain the second part to me?
thanks for any help -
Best Regards
I would like to know which site I can download the sample application called Pet Store, I searched the web and all links lead me to the java.net site, but can not find where to download the. jar.
I appreciate the attention.Thank you very much for responding. However, explore the site, and the links redirect me to the java.net site showing the error "NOT FOUND" The Page You Were looking for does not exist. You May Have mistype the address or the page May Have moved.
-
Hi, my pet store has set up fine .
when go to pet store add something to the cart, verify the shipping address and
at time of clicking on continue to ship, it gives me huge error saying ,"insert
no successful".
If I continue working in the same session with the same very instance of browser
it gives me the foll error:
Server Error
Bean has been deleted.
Oops! Your request cannot be completed. The server got the following error.
com.sun.j2ee.blueprints.petstore.control.exceptions.GeneralFailureException:
Bean has been deleted.
at com.sun.j2ee.blueprints.petstore.control.web.ShoppingClientControllerWebImpl.handleEvent(ShoppingClientControllerWebImpl.java:142)
at com.sun.j2ee.blueprints.petstore.control.web.RequestProcessor.processRequest(RequestProcessor.java:84)
at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doProcess(MainServlet.java:111)
at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
If anybody can help me out with this...
---------anjali"Anjali" <[email protected]> wrote in message
news:3be1269e$[email protected]..
>
Hi, my pet store has set up fine .
when go to pet store add something to the cart, verify the shippingaddress and
at time of clicking on continue to ship, it gives me huge error saying,"insert
no successful".
If I continue working in the same session with the same very instance ofbrowser
it gives me the foll error:
Server Error
Bean has been deleted.
Oops! Your request cannot be completed. The server got the followingerror.
>
>
>
com.sun.j2ee.blueprints.petstore.control.exceptions.GeneralFailureException:
Bean has been deleted.
atcom.sun.j2ee.blueprints.petstore.control.web.ShoppingClientControllerWebImpl
.handleEvent(ShoppingClientControllerWebImpl.java:142)
atcom.sun.j2ee.blueprints.petstore.control.web.RequestProcessor.processRequest
(RequestProcessor.java:84)
atcom.sun.j2ee.blueprints.petstore.control.web.MainServlet.doProcess(MainServl
et.java:111)
atcom.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.j
ava:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2456)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
If anybody can help me out with this...
---------anjaliafter editing the customer_ejb.xml file as detailed here:
http://e-docs.bea.com/wls/docs61/petstore/bea_deployathon.html#oracle you
need to rebuild the Petstore (step 6 of the same doc) and redeploy it.
HTH
Bill -
Where to find the OC4J-ready Pet Store Demo file jps112.zip
where to find the OC4J-ready Pet Store Demo file jps112.zip in OTN
So that we may better diagnose DOWNLOAD problems, please provide the following information.
- Server name
- Filename
- Date/Time
- Browser + Version
- O/S + Version
- Error MsgYou have to execute the installer jar file.
This will create a folder with all the source codes inside.
I wasn't aware of any need for cvs. -
Question on threading in Java Pet Store
In the Java Pet Store, the MainServlet pulls the RequestProcessor and ScreenFlowManager objects from the ServletContext object. Once returned, the request is processed by methods in these objects. Since the ServletContext object and the objects that it contains are considered not to be thread-safe, how does the utilization of these shared objects not cause thread issues? Thanks for your help.
These objects are used in a read-only fashion, hence there should be no problems related to thread-safety.
-
Getting Java Pet Store to run in JBuilder (or any IDE)
I'm getting a dozen or so errors like:
"XMLDocumentUtils.java": method getPublicId() not found in interface org.w3c.dom.DocumentType
when I try to import & build Java Pet Store in JBuilder Enterprise. I've told JBuilder to include j2ee.jar, and I can run the precompiled JPS just fine, with J2EE_HOME pointing at that jar. The getPublicId method is listed for DocumentType in http://java.sun.com/j2ee/sdk_1.3/techdocs/api/index.html.
What gives? Anybody had success rolling their own Pet Store?
Is there any common utility for inspecting class files?The problem evidently was that JBuilder was picking up an obsolete version of the class somewhere along the line- problem solved by moving j2ee.jar to the top of the list of Required Libraries.
-
Is it possible to obtain the src of pet store 2.0 without CVS?
Is there any way I could obtain the petstore 2,0 as a zip file like it used to be in pet store 1.3.2?
Please, let me know where I can get it?
It is amazing, all the download button in Sun link to yet another place of blueprints.
previous sites with download link says with source code but blueprint download only as *.class
file inside of installer file.
Also, http://blog.naver.com/bluejames77/80049199960 says No. 2
2. 더블클릭해서 압축을 푼다음 index.html을 보면
Java EE 5 Application Server을 설치하거나 혹은 GlassFish Project를 설치하라고 나온다.
Translate ----
after unzip, there is index.html file which specifies to install Java EE 5 application server or glass fish project.
But, no index.html when I download the same date installer. In fact, any one can go to the CVS site and see
under www/ there is no *.java file???? only html file???
Is there anyway somebody in blueprint who just create source zip file like it used to be in 1.3.2?
with setup.xml and build.xml and link up there? It will say one day work for somebody.
Also ERROR -
http://webdev2.sun.com/petstore/faces/catalog.jsp?catid=Cats
Also, shows error! at chrome I don't know at iexplorer.
please try -You have to execute the installer jar file.
This will create a folder with all the source codes inside.
I wasn't aware of any need for cvs.
Maybe you are looking for
-
Multiple Informatica Repositories with the same name in the Repository Mgr
Hi, We need to have a single windows client machine with the Informatica client installed and have two different Linux servers with Infa server(version 811 shipped along with OBI Apps 795) We will have the same repository in both dev and prod -- Orac
-
Server could not find any Meta-Data devices!
Our MDC dropped out and the backups did not engage. On a reboot of the MDC we were able to mount the volume, but all files (QuickTme movies, FCP projct files) could not be opened with an "unknown file type error". We shut all the clients down we chec
-
Hello, I did have a problem when I did delete user from OIM, this user didn't get deleted from OID. I solved this by adding this to the undo task for Create User in OID User PD. However, one additional problem remains - users group memberships doesn'
-
Read the output of the iseries CL Program from Java
I have a Java program running on the iseries(AS400). I need to call a CL program from this JAVA.I have to pass 7 arguments to it.Out of 7, three are input parameters to CL and other 4 are its output parameters to the calling JAVA program. I am using
-
Playmemories crashes as soon as I open it on windows 8.1
Playmemories crashed -browser stopped working - as soon as I i open it on Windows 8.1 64-bit. I've tried uninstalling and reinstalling it, but that doesn't help. Does anyone know how to fix this? (PMB doesn't work on Windows 8/8.1, and using my other