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.

Similar Messages

  • 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,
    Wolfgang

    gonso777 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 .

  • 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.

  • Java Pet Store and connection pooling

    Hi. Does the Java Petstore version 1.2 use connection pooling? I know in the database.properties file it has the following variables:
    Pool.MaximumActiveConnections=10
    Pool.MaximumIdleConnections=5
    Pool.MaximumCheckoutTime=120000
    Pool.TimeToWait=10000
    Pool.PingEnabled=false
    Pool.PingQuery=select * from dual
    Pool.PingConnectionsOlderThan=0
    Pool.PingConnectionsNotUsedFor=0
    Pool.QuietMode=true
    To me this seems like it is using connection pooling. However, on our server, we are continually running out of connections and I KNOW that our other apps ARE using connection pooling. So I'm just wondering if someone can confirm with me that the Java Pet Store is in fact using connection pooling.
    Thanks in advance,
    Dylan

    I forgot to mention that I'm using the Ibatis version of the JPetstore.

  • Java pet store

    how product.screen,main.screen,item.screen and so on ,these are handled in java pet store source code?

    Todd,
    SQL*Plus is a utility that is bundled with the Oracle database server.
    Yes, you start it with the "sqlplus" command. Seeing as you seem to
    also be in charge of setting up the Oracle database server, that means
    you (inevitably) have to do some "DBA" type work. Since you say that
    you are new to this, I suggest reading the documentation for the Oracle
    database server -- which is available from:
    http://tahiti.oracle.com
    Of-course, your other option would be to find an experienced DBA to
    handle the database stuff for you.
    By the way, you can use the "lsnrctl" utility (also bundled with the
    database server product) to start, test, and stop the database "listener".
    The command is "lsnrctl". There is also documentation available for
    it (from the same URL as shown above).
    Good Luck,
    Avi.

  • Functional requirements of the Java Pet Store

    Hi,
    Someone know where I could find the functional requirements of the Java Pet Store?
    Thanks,
    Antonio.

    Hi,
    Someone know where I could find the functional requirements of the Java Pet Store?
    Thanks,
    Antonio.

  • 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. Thanks

    in 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/

  • Java Pet Store Lite

    I'm working on an application that needs to allow multiple types of clients ("view-controllers") to access the model as described in the Java Pet Store, but I'd like to do it without all the many, many lines of code necessary for the full-blown EJB implementation seen there. Can I get away with just using Struts or some other good MVC framework?

    I'm working on an application that needs to allow
    multiple types of clients ("view-controllers") to
    access the model as described in the Java Pet Store,
    but I'd like to do it without all the many, many lines
    of code necessary for the full-blown EJB
    implementation seen there.In an MVC that uses EJB system, the model is acting as a facade (interface) onto the EJB. The Model does not have to be EJB, it could do all the processing it's self it could access the DB directly with ODBC.
    This would still be a sound architecture, particularly for a lite weight web application.
    Can I get away with just
    using Struts or some other good MVC framework?Yes.

  • Java pet store demo

    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 help

    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.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

  • Java Pet Store deployathlon...

    Hello all,
    I've installed WebLogic 6.1 (on win2k) for the first time today. No problems
    here.
    Then I downloaded the Java Pet Store (JPS) and followed the instructions on <a
    href="http://e-docs.bea.com/wls/docs61/petstore/bea_deployathon.html#petstore">BEAs
    deployathlon page</a>. I followed succesfully the instructions 1-11, but step
    13 (run the petstore) results in an error 500 (internal server error). The server
    console doesn't output any exceptions.
    What could be the problem?
    I would really appreciate your help, since I'm on a very tight schedule for my
    thesis...
    Final note:
    During the installation, I noted the following warning:
    [jar] Building jar: C:\Documents and Settings\Administrator\Mijn documenten\uia\thesis\binaries\java
    pet store\jps1.1.2\src\petstore\build\std_petstoreEjb.jar
    [jar] Warning: selected jar files include a META-INF/MANIFEST.MF which will
    be ignored (please use manifest attribute to jar task)

    "Pieter Van Gorp" <[email protected]> wrote:
    >
    Hello all,
    I've installed WebLogic 6.1 (on win2k) for the first time today. No
    problems
    here.
    Then I downloaded the Java Pet Store (JPS) and followed the instructions
    on <a
    href="http://e-docs.bea.com/wls/docs61/petstore/bea_deployathon.html#petstore">BEAs
    deployathlon page</a>. I followed succesfully the instructions 1-11,
    but step
    13 (run the petstore) results in an error 500 (internal server error).
    The server
    console doesn't output any exceptions.
    What could be the problem?
    I would really appreciate your help, since I'm on a very tight schedule
    for my
    thesis...
    Final note:
    During the installation, I noted the following warning:
    [jar] Building jar: C:\Documents and Settings\Administrator\Mijn
    documenten\uia\thesis\binaries\java
    pet store\jps1.1.2\src\petstore\build\std_petstoreEjb.jar
    [jar] Warning: selected jar files include a META-INF/MANIFEST.MF
    which will
    be ignored (please use manifest attribute to jar task)------------
    Ouch... I seem to have overlooked some errormessages...
    Here they are:
    [delete] Could not find file C:\Documents and Settings\Administrator\Mijn doc
    umenten\uia\thesis\binaries\java pet store\jps1.1.2\src\petstore\build\petstoreE
    jb.jar to delete.
    [delete] Could not find file C:\Documents and Settings\Administrator\Mijn doc
    umenten\uia\thesis\binaries\java pet store\jps1.1.2\src\petstore\build\std_petst
    oreEjb.jar to delete.
    [jar] Building jar: C:\Documents and Settings\Administrator\Mijn documente
    n\uia\thesis\binaries\java pet store\jps1.1.2\src\petstore\build\std_petstoreEjb
    .jar
    [jar] Warning: selected jar files include a META-INF/MANIFEST.MF which wil
    l be ignored (please use manifest attribute to jar task)
    [java] <10-okt-01 17:58:11 CEST> <Warning> <EJB> <EJB Deployment: TheShoppi
    ngClientController has a class com.sun.j2ee.blueprints.petstore.control.ejb.Shop
    pingClientControllerEJB which is in the classpath. This class should only be loc
    ated in the ejb-jar file.>
    [java] <10-okt-01 17:58:11 CEST> <Warning> <EJB> <EJB Deployment: TheShoppi
    ngClientController has a class com.sun.j2ee.blueprints.petstore.control.ejb.Shop
    pingClientControllerHome which is in the classpath. This class should only be
    lo
    cated in the ejb-jar file.>
    [java] <10-okt-01 17:58:11 CEST> <Warning> <EJB> <EJB Deployment: TheShoppi
    ngClientController has a class com.sun.j2ee.blueprints.petstore.control.ejb.Shop
    pingClientController which is in the classpath. This class should only be locate
    d in the ejb-jar file.>
    [java] error: cannot read: C:\Documents and Settings\Administrator\Mijn doc
    umenten\uia\thesis\binaries\java pet store\jps1.1.2\src\petstore\src\ejbcgen\com
    \sun\j2ee\blueprints\petstore\control\ejb\*.java
    [java] 1 error
    [java] Exec failed .. exiting
    [java] Java Result: 1
    [delete] Deleting directory C:\Documents and Settings\Administrator\Mijn docu
    menten\uia\thesis\binaries\java pet store\jps1.1.2\src\petstore\build\ejbjar
    ear:
    [delete] Could not find file C:\Documents and Settings\Administrator\Mijn doc
    umenten\uia\thesis\binaries\java pet store\jps1.1.2\src\petstore\build\petstore.
    ear to delete.
    [mkdir] Created dir: C:\Documents and Settings\Administrator\Mijn documenten
    \uia\thesis\binaries\java pet store\jps1.1.2\src\petstore\build\petstore_tmp
    [copy] Copying 1 file to C:\Documents and Settings\Administrator\Mijn docum
    enten\uia\thesis\binaries\java pet store\jps1.1.2\src\petstore\build\petstore_tm
    p
    [copy] Copying 1 file to C:\Documents and Settings\Administrator\Mijn docum
    enten\uia\thesis\binaries\java pet store\jps1.1.2\src\petstore\build\petstore_tm
    p
    [copy] Copying 1 file to C:\Documents and Settings\Administrator\Mijn docum
    enten\uia\thesis\binaries\java pet store\jps1.1.2\src\petstore\build\petstore_tm
    p
    [copy] Copying 1 file to C:\Documents and Settings\Administrator\Mijn docum
    enten\uia\thesis\binaries\java pet store\jps1.1.2\src\petstore\build\petstore_tm
    p
    [copy] Copying 1 file to C:\Documents and Settings\Administrator\Mijn docum
    enten\uia\thesis\binaries\java pet store\jps1.1.2\src\petstore\build\petstore_tm
    p
    [copy] Could not find file C:\Documents and Settings\Administrator\Mijn doc
    umenten\uia\thesis\binaries\java pet store\jps1.1.2\src\petstore\build\petstoreE
    jb.jar to copy.
    [copy] Could not find file C:\Documents and Settings\Administrator\Mijn doc
    umenten\uia\thesis\binaries\java pet store\jps1.1.2\src\components\mail\build\ma
    ilerEjb.jar to copy.
    [copy] Could not find file C:\Documents and Settings\Administrator\Mijn doc
    umenten\uia\thesis\binaries\java pet store\jps1.1.2\src\components\inventory\bui
    ld\inventoryEjb.jar to copy.
    [copy] Could not find file C:\Documents and Settings\Administrator\Mijn doc
    umenten\uia\thesis\binaries\java pet store\jps1.1.2\src\components\customer\buil
    d\customerEjb.jar to copy.
    [copy] Could not find file C:\Documents and Settings\Administrator\Mijn doc
    umenten\uia\thesis\binaries\java pet store\jps1.1.2\src\components\personalizati
    on\build\personalizationEjb.jar to copy.
    [copy] Could not find file C:\Documents and Settings\Administrator\Mijn doc
    umenten\uia\thesis\binaries\java pet store\jps1.1.2\src\components\shoppingcart\
    build\shoppingcartEjb.jar to copy.
    [copy] Could not find file C:\Documents and Settings\Administrator\Mijn doc
    umenten\uia\thesis\binaries\java pet store\jps1.1.2\src\components\signon\build\
    signonEjb.jar to copy.
    [copy] Copying 1 file to C:\Documents and Settings\Administrator\Mijn docum
    enten\uia\thesis\binaries\java pet store\jps1.1.2\src\petstore\build\petstore_tm
    p\META-INF
    [jar] Building jar: C:\Documents and Settings\Administrator\Mijn documente
    n\uia\thesis\binaries\java pet store\jps1.1.2\src\petstore\build\petstore.ear
    [delete] Deleting directory C:\Documents and Settings\Administrator\Mijn docu
    menten\uia\thesis\binaries\java pet store\jps1.1.2\src\petstore\build\petstore_t
    mp
    core:
    BUILD SUCCESSFUL
    Total time: 3 minutes 12 seconds

  • 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.

  • Java Pet Store Deployathon - wls 6.1 deplyment problem

    Hi All,
    I get following exception when i run build.bat on step 6 for building petstore.ear
    file.
    I have checked all the required resources for compiling the ejb classes are there
    in the required structure.
    EXCEPTION
    org.xml.sax.SAXException: Could not locate a local resource corresponding to public
    Id -//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN.
    Is the XML DOCTYPE header correct?
    at weblogic.ejb.deployment.xml.EJBEntityResolver.resolveEntity(EJBEntityResolver.java:55)
    at com.sun.xml.parser.ExternalEntity.getInputSource(ExternalEntity.java:46)
    at com.sun.xml.parser.Parser.pushReader(Parser.java:2748)
    at com.sun.xml.parser.Parser.externalParameterEntity(Parser.java:2500)
    at com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1136)
    at com.sun.xml.parser.Parser.parseInternal(Parser.java:480)
    at com.sun.xml.parser.Parser.parse(Parser.java:283)
    ANY IDEA? Thanks !
    Alok Sharma

    Hi All,
    I get following exception when i run build.bat on step 6 for building petstore.ear
    file.
    I have checked all the required resources for compiling the ejb classes are there
    in the required structure.
    EXCEPTION
    org.xml.sax.SAXException: Could not locate a local resource corresponding to public
    Id -//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN.
    Is the XML DOCTYPE header correct?
    at weblogic.ejb.deployment.xml.EJBEntityResolver.resolveEntity(EJBEntityResolver.java:55)
    at com.sun.xml.parser.ExternalEntity.getInputSource(ExternalEntity.java:46)
    at com.sun.xml.parser.Parser.pushReader(Parser.java:2748)
    at com.sun.xml.parser.Parser.externalParameterEntity(Parser.java:2500)
    at com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1136)
    at com.sun.xml.parser.Parser.parseInternal(Parser.java:480)
    at com.sun.xml.parser.Parser.parse(Parser.java:283)
    ANY IDEA? Thanks !
    Alok Sharma

  • Java Pet Store 2.0 on Tomcat 6

    Hey guys, I am trying to Deploy Javapetstore-2.0-ea5 on Tomcat 6 , but I am getting hopeless.
    Can anyone help me with this ?

    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 .

  • 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!

Maybe you are looking for

  • Background job not deleted

    Hi Experts, i want delete the   "SM:SELFDIAGNOSIS" background job on solution manager system . and i have deleted,  go to next date and then delete the released job but after one day again its showing in released. so how i can delete it properly . Re

  • Windows7, can't install, random freezes.

    Hey! Just got a new computer, It worked fine in the beginning, no trouble installing Windows 7 Ultimate (32bit). After ~1 day random freezes started... I tried reformatting and reinstalling Windows 7 but the problem came back. I tried reinstalling on

  • How do I disable Automatic TV Show/Movie downloads?

    Whenever I purchase an item on my Apple TV, it automatically begins downloading in iTunes. I would really like to not download all those episodes of My Little Pony that my boyfriend bought unless I specifically tell it to, but there's no way to turn

  • How standby database works

    Hi!! I have created standby database (testcat) for primary database (test) using Duplicate Command of RMAN on same server (windows XP) on Oracle 11.2 . I know how to create standby database But i don't know how and when standby database works. I chec

  • Xml is invalid but no errors when calling schemaValidate()

    Hi, I'm validating my xmls against xsd and regular expression is used in xsd restriction. Problem is that if the element value is missing then xml have to be invalid (in regular expression min length is 1) but no error is raised. Here is my xsd: <?xm