PetStore demo

Hi,
I am trying to take on the JAVA performance challenge and having some dificulty using OC4J. I am generating HTTP load through
LoadRunner. When I am running 100 threads on 4 cpu machine, I am getting "Connection Refused ...." messages from the container and
90-95 tests are failed consistently. I want to know how do I tune the default installation of OC4J so that it can handle
the load. I am more interested about the performance improvements offered by the
OC4J. I would appreciate your help on this.
Thanks,
Ram

I would suggest using loadbalancer and clustering.
Lemme know if problems persist.
Cheers,
Ashok

Similar Messages

  • Petstore Demo application

    Hello All,,
    I am a new bie user of Petstore demo application. After working around the code what i have found is a class 'orderapproval' sends the list of orders and order status to the customer relations which sends an email notice to each customer. I am running the application petstoredemo 1.3.2, my application doesn't do this function. I mean the application should send the status of the order or various notification to user. But it's not happening that ways. Do I need to change anything in the properties file?? (xml files) or anywhere else?
    Thanks.

    I know Petstore does work on 9.0.4 since I had to do it recently, but I don't think we have the later versions of it posted on OTN. It's not difficult, but a bit fiddly to do from scratch.
    There is a small set of demos available for 9.0.4 on OTN -- see http://otn.oracle.com/tech/java/oc4j/demos/904/index.html
    cheers
    -steve-

  • SocketExceptions in petStore demo

    Hi,
    I installed WL6.0 beta yesterday and I tried to run the PetStore demo. It runs well, I am able to get to different pages, but it is very slow.
    Checking the server DOS window, I noticed a lot of Socket Exceptions, and I assume one reason the application is so slow is that (1) the error messages are written to the console and log file, and (2) the communication is retried until it succeeds.
    Does anyone have any idea why the SocketExceptions occur?
    On my machine I have lots of JDKs (1.1.7b, 1.2.2, 1.3). Could it be a conflict? Also, I believe I have only NT 4.0 SP3. The documentation says that SP5 or SP6 are supported...
    Thanks,
    Vladimir
    Here is a sample of the errors I get:
    java.net.SocketException: Connection aborted by peer: socket write error...
    <Error> <HTTP> <[WebAppServletContext petStore] exception raised on '/petStore/template.jsp'
    java.net.SocketException: Connection aborted by peer: socket write error at ...
    <Error> <HTTP> <JavaSocketMuxer> <IOException on socket: JVM_recv in socket input stream at ...

    Hi All,
    I keep getting the following socket exceptions -
    Fri Jan 26 17:29:16 PST 2001:<E> <ServletContext-General> Servlet failed with Exception
    java.net.SocketException: socket write error (code=10053)
    at java.net.SocketOutputStream.socketWrite(Native Method)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:87)
    at weblogic.servlet.internal.ChunkUtils.writeChunks(ChunkUtils.java, Compiled Code)
    at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java:121)
    at weblogic.servlet.internal.ServletOutputStreamImpl.writeStream(ServletOutputStreamImpl.java, Compiled Code)
    at weblogic.servlet.FileServlet.sendFile(FileServlet.java:199)
    at weblogic.servlet.FileServlet.service(FileServlet.java:56)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:105)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:247)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
    Fri Jan 26 17:29:17 PST 2001:<E> <HTTP> Servlet request terminated with IOException:
    java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '4096' bytes instead of stated: '6427' bytes.
    at weblogic.servlet.internal.ServletOutputStreamImpl.finish(ServletOutputStreamImpl.java:372)
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:249)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
    I am sure they are harmless, but these messages make it difficult to view output on the console which I have put for aid in debugging. How can I solve this error/ suppress the messages?
    Thanks.
    Ajit
    "Jim Rivera" <[email protected]> wrote in message news:[email protected]...
    The socket exceptions are now being supressed as of the version 6
    beta-refresh which is now available at
    http://commerce.bea.com/downloads/weblogic_server.jsp#wls
    - Jim
    "Sriram Narayan" <[email protected]> wrote in message
    news:[email protected]...
    Jim,
    It may be a harmless message, but it seems like it can cause TransactionRollbacks. (trace extract below.)
    Could u pls tell how to avoid those socket exceptions?
    tia
    -sriram
    <trace>
    Sun Nov 19 07:22:55 GMT+05:30 2000:<E> <WebAppServletContext-estore>exception raised on '/estore/template.jsp'
    java.net.SocketException: Connection reset by peer: socket write error
    at java.net.SocketOutputStream.socketWrite(Native Method)
    and immediately after that ...
    Sun Nov 19 07:18:04 GMT+05:30 2000:<I> <WebAppServletContext-estore>Generated java file:
    D:\weblogic\petstore\petStoreServer\estore\_tmp_war\jsp_servlet\_productdeta
    ils.java
    Sun Nov 19 07:18:28 GMT+05:30 2000:<I> <EJB JAR deploymentd:/weblogic/petStore/
    estoreEjb_WL.jar> Transaction: '974597787511_17' rolled back due to EJBexception:
    java.rmi.NoSuchObjectException: Bean has been deleted
    atweblogic.ejb.internal.SessionEJBContext.activate(SessionEJBContext.java:165)
    ===========================================
    "Jim Rivera" <[email protected]> wrote:
    Hi Alex,
    This exception is basically a signal from the low-level socket library
    telling the WebLogic server
    that the connection has been broken by the client (browser). This will
    happen if the user hits stop/reload or switches to another page, etc,
    while
    server is still sending data.This exception is harmless and will be
    supressed in future versions.
    Thanks,
    Jim
    "Alex Esterkin" <[email protected]> wrote in message
    news:[email protected]...
    I run on NT4 SP6 and don't have any old JDKs, yet I get similarexceptions:
    <Wed Nov 08 12:14:36 EST 2000> <Error> <HTTP> <[WebAppServletContextpetStore] exception raised on '/petStore/te
    mplate.jsp'
    java.net.SocketException: Connection reset by peer: socket write error
    at java.net.SocketOutputStream.socketWrite(Native Method)
    at
    java.net.SocketOutputStream.write(SocketOutputStream.java:83)
    atweblogic.servlet.internal.ChunkUtils.writeChunkTransfer(ChunkUtils.java:167)
    atweblogic.servlet.internal.ChunkUtils.writeChunks(ChunkUtils.java:141)
    at
    weblogic.servlet.internal.ServletOutputStreamImpl.writeChunks(ServletOutputS
    treamImpl.java:150)
    at
    weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamI
    mpl.java:139)
    at
    weblogic.servlet.internal.ServletOutputStreamImpl.print(ServletOutputStreamI
    mpl.java:234)
    atweblogic.servlet.jsp.JspWriterImpl.print(JspWriterImpl.java:139)
    at jsp_servlet._template._jspService(_template.java:4813) [nosource]
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :209)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
    l.java:153)
    at jsp_servlet._main._jspService(_main.java:135) [no source]
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :209)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:1114)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :1388)
    at
    weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:133)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:116)
    >
    java.net.SocketException: Connection reset by peer: socket write error
    at java.net.SocketOutputStream.socketWrite(Native Method)
    atjava.net.SocketOutputStream.write(SocketOutputStream.java:83)
    atweblogic.servlet.internal.ChunkUtils.writeChunkTransfer(ChunkUtils.java:167)
    atweblogic.servlet.internal.ChunkUtils.writeChunks(ChunkUtils.java:141)
    at
    weblogic.servlet.internal.ServletOutputStreamImpl.writeChunks(ServletOutputS
    treamImpl.java:150)
    at
    weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamI
    mpl.java:139)
    at
    weblogic.servlet.internal.ServletOutputStreamImpl.print(ServletOutputStreamI
    mpl.java:234)
    atweblogic.servlet.jsp.JspWriterImpl.print(JspWriterImpl.java:139)
    at jsp_servlet._index._jspService(_index.java:82)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :209)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
    l.java:252)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImp
    l.java:171)
    at com.sun.estore.taglib.InsertTag.doEndTag(InsertTag.java:67)
    at jsp_servlet._template._jspService(_template.java:4802)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :209)
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
    l.java:153)
    at jsp_servlet._main._jspService(_main.java:135)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :209)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:1114)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :1388)
    at
    weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:133)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:116)
    "vladimir" <[email protected]> wrote:
    Hi,
    I installed WL6.0 beta yesterday and I tried to run the PetStore demo.
    It
    runs well, I am able to get to different pages, but it is very slow.
    Checking the server DOS window, I noticed a lot of Socket Exceptions,
    and
    I assume one reason the application is so slow is that (1) the error
    messages are written to the console and log file, and (2) thecommunication
    is retried until it succeeds.
    Does anyone have any idea why the SocketExceptions occur?
    On my machine I have lots of JDKs (1.1.7b, 1.2.2, 1.3). Could it be aconflict? Also, I believe I have only NT 4.0 SP3. The documentation says
    that SP5 or SP6 are supported...
    Thanks,
    Vladimir
    Here is a sample of the errors I get:
    java.net.SocketException: Connection aborted by peer: socket writeerror...
    <Error> <HTTP> <[WebAppServletContext petStore] exception raised on'/petStore/template.jsp'
    java.net.SocketException: Connection aborted by peer: socket write
    error
    at ...
    <Error> <HTTP> <JavaSocketMuxer> <IOException on socket: JVM_recv insocket input stream at ...
    [att1.html]

  • Petstore demo install under Win2000

    Hello:
    Trying to get my arms around J2EE. A large task.
    Anyway.
    I have downloaded the J2EESDK and installed it.
    I can start the Application server and run the Hello demo.
    I can also run the App Server Admin Application, so I
    think I got that right.
    I want to work with the Petstore demo. So I downloaded
    petstore-1_3_2.zip. I am following the enclosed install
    instructions. When I run setup I get the following:
    My environment is below also.
    The Petstore demo seems to be built on top of Cloudscape.
    But the J2EE SDK installs PointBase, is there a way around this.
    Need some help. Please
    thanks
    kd
    C:\Downloads\javasoft\petstore1.3.2>setup
    Buildfile: setup.xml
    init:
    help:
    create_jms_queues:
    [echo] Creating JMS Queues ....
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    create_users:
    [echo] Creating users ....
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/RealmTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/RealmTool
    [java] Java Result: 1
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/RealmTool
    [java] Java Result: 1
    create_petstore_db:
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    create_supplier_db:
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    create_opc_db:
    [java] java.lang.NoClassDefFoundError:
    com/sun/enterprise/tools/admin/AdminTool
    [java] Java Result: 1
    core:
    [echo] The J2EE SDK is now successfully configured to run the
    petstore application. P
    lease restart cloudscape and the j2ee servers, and deploy all the ear
    files. You can do th
    is by issuing the following commands:
    [echo] change directory to j2sdkee1.3/bin; start RI and
    Cloudscape in separate window
    s
    [echo] cloudscape -start
    [echo] j2ee -verbose
    [echo] change directory to petstore1.3.2 to deploy the EAR files
    [echo] setup.bat deploy (or on Unix, setup.sh deploy)
    BUILD SUCCESSFUL
    Total time: 5 seconds
    C:\Downloads\javasoft\petstore1.3.2>
    C:\Downloads\javasoft\petstore1.3.2>
    C:\Downloads\javasoft\petstore1.3.2>set
    ALLUSERSPROFILE=C:\Documents and Settings\All Users
    ANT_CLASSPATH=c:\sun\appserver/lib/j2ee.jar;src/lib/ant/lib/ant.jar;src/lib/ant/lib/parser
    .jar;src/lib/ant/lib/jaxp.jar;c:\programs\j2sdk1.4.2_03/lib/tools.jar
    ANT_HOME=src/lib/ant
    APPDATA=C:\Documents and Settings\Administrator\Application Data
    CommonProgramFiles=C:\Program Files\Common Files
    COMPUTERNAME=DUFFYHOU
    ComSpec=C:\WINNT\system32\cmd.exe
    HOMEDRIVE=C:
    HOMEPATH=\Documents and Settings\Administrator
    J2EE_HOME=c:\sun\appserver
    JAVA_HOME=c:\programs\j2sdk1.4.2_03
    LOGONSERVER=\\DUFFYHOU
    NUMBER_OF_PROCESSORS=1
    OS=Windows_NT
    Os2LibPath=C:\WINNT\system32\os2\dll;
    Path=c:\programs\j2sdk1.4.2_03\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\WI
    NDOWS;C:\WINDOWS\COMMAND
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PROCESSOR_ARCHITECTURE=x86
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 0 Stepping 7, GenuineIntel
    PROCESSOR_LEVEL=15
    PROCESSOR_REVISION=0007
    ProgramFiles=C:\Program Files
    PROMPT=$p$g
    SystemDrive=C:
    SystemRoot=C:\WINNT
    TEMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
    TMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
    USERDOMAIN=DUFFYHOU
    USERNAME=Administrator
    USERPROFILE=C:\Documents and Settings\Administrator
    winbootdir=C:\WINDOWS
    windir=C:\WINNT
    C:\Downloads\javasoft\petstore1.3.2>

    I had this same symptom, and it was because I was trying to use Petstore version 1.3.2 with the J2EE 1.4 SDK.
    There is an updated version of the Petstore sample application in the J2EE 1.4 samples bundle located at... http://java.sun.com/j2ee/1.4/download.html#samples. It is included as part of a group of three "J2EE Blueprint samples" and they can be run with the J2EE 1.4 SDK (whereas the old one's can't). (Note that the Buleprint samples are also included in the "All-In-One Bundle" and are located in the in the \AppServer\samples\blueprints directory.)
    If you download the samples by themselves, their documentation won't specify that they must be installed in the \AppServer\samples\blueprints directory, but they must because the ant build script references at least a couple of other files in the samples directory heirarchy (common.xml and common.properties).
    These are two samples of error messages I got when I was trying to build the Petstore application from outside the context of \AppServer\samples\blueprints directory heirarchy:
    C:\blueprints\petstore1.4\src>asant
    Buildfile: build.xml
    C:\common.xml could not be found
    BUILD FAILED
    java.io.FileNotFoundException: C:\common.xml (The system cannot find the file specified)
    C:\petstore1.4\src>asant
    Buildfile: build.xml
    BUILD FAILED
    The file or path you specified (..\..\..\common.properties) is invalid relative to C:\petstore1.4\src

  • Petstore demo application for 9.0.4

    I would like to install the petstore demo or something like it in my application server 10g 9.0.4. Petstore doesn't seem like it is available for 9.0.4. Is there another demo out there? Any help would be great

    I know Petstore does work on 9.0.4 since I had to do it recently, but I don't think we have the later versions of it posted on OTN. It's not difficult, but a bit fiddly to do from scratch.
    There is a small set of demos available for 9.0.4 on OTN -- see http://otn.oracle.com/tech/java/oc4j/demos/904/index.html
    cheers
    -steve-

  • PetStore Demo and WorkShop

    What are the steps required to add some web services to the PetStore demo? Do I
    need to bring up the PetStore server and then create a WorkShop project on top
    of the existing PetStore?
    I just want to create a simple web service that uses an existing PetStore EJB.
    What jar files do I need to add to the class path for the PetStore Demo server?
    How do I get workshop to point to the PetStore server rather than the server it
    defaults to?
    Thanks

    To get an EJB to show up in the new EJB dialog you'll need to put the client
    .jar file in your Workshop projects WEB-INF/lib directory.
    -Carl
    "Tedie West" <[email protected]> wrote in message
    news:3c9a4e82$[email protected]..
    >
    Jim,
    Thanks for your response. As a follow up, how do I get the EJBs from thepetstore
    to become available for selection when I create a new EJB Control. I wantto expose
    one of the petstore's EJBs as a web service.
    Also, I get a ton of errors when I start the server that are complainingabout
    things already being deployed. The server starts anyway.
    Thanks.
    Jim Weaver <[email protected]> wrote:
    Tedie
    I haven't test this all the way; however, these are the steps as I see
    them
    1. Bring up the workbench gui
    2. Set config path in tools->preferences->paths to
    "C:\bea70bCajun\weblogic700b\samples\server\config", i.e. the immediate
    parent of
    the petstore directory holding the config.xml for the petstore demo
    3. set domain to petsore, you may have to close and reopent the tools
    preferences
    dialog to see petstore as a choice.
    4. copy the startWeblogic.cmd from
    C:\bea70bCajun\weblogic700b\samples\workshop
    to
    C:\bea70bCajun\weblogic700b\samples\server\config\petstore and modify
    it to start
    the petStore server
    5. start the server from the workshop gui
    Thanks
    Tedie West wrote:
    What are the steps required to add some web services to the PetStoredemo? Do I
    need to bring up the PetStore server and then create a WorkShop projecton top
    of the existing PetStore?
    I just want to create a simple web service that uses an existing
    PetStore
    EJB.
    What jar files do I need to add to the class path for the PetStoreDemo server?
    How do I get workshop to point to the PetStore server rather than theserver it
    defaults to?
    ThanksContent-Description: Card for Jim Weaver
    begin:vcard
    n:Weaver;Jim
    x-mozilla-html:FALSE
    org:BEA Systems Inc.
    adr:;;.;;;;
    version:2.1
    email;internet:[email protected]
    title:Developer Relations Engineer
    fn:Jim Weaver
    end:vcard

  • Petstore demo on OC4J standalone (9.0.4)

    Hi,
    I tried to install the petstore demo on a standalone OC4J, deploying and table making works fine. But if I want to access the demo via "localhost:8888/estore" I got a Nullpointer exception [500 Internal Server Error
    java.lang.NullPointerException at com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.getTagValue(ScreenFlowXmlDAO.java:378)
    The log of OC4J says "[Fatal Error] :1:41: Invalid encoding name "Unicode"."
    My database is 9.2.0.1.
    Thanks in advance for helping.
    Regards, Thomas.

    Deepak:
    Two corrections:
    Unlike ejbs, which are wrapped in wrapper classes and got compiled during deployment, JSP files are not compiled during deployment. (It is likely that the next major version of oc4j will enable a deployer to instruct oc4j to precompile jsp files during application deployment, but that is not the case for all versions of present oc4j).
    The tool that is used to pre-compile jsp is not called ojsp. It is called ojspc, or "Oracle JSP preCompiler".
    Regard

  • Problems starting up PetStore demo with W6.1 on Solaris

    I just finished installing W6.1 on Solaris and I tried to run the PetStorr demo
    but I keep getting the following exception. Unfortunately, this error message
    does not tell anything because there is no indication as to what the hell is wrong.
    If this stack trace looks familar to anyone, please let me know how you solved
    your problems.
    The only change I made the petstore config.xml file was I changed the HTTP listening
    port to 9001. Here is my pool configuration...
    <JDBCConnectionPool CapacityIncrement="1"
    DriverName="COM.cloudscape.core.JDBCDriver" InitialCapacity="1"
    MaxCapacity="1" Name="petstorePool"
    Properties="user=none;password=none;server=none"
    Targets="petstoreServer" TestConnectionsOnReserve="true"
    TestTableName="product" URL="jdbc:cloudscape:petStore"/>
    ----------------Here is the stack trace-----------------------
    ####<Feb 1, 2002 2:06:39 PM EST> <Error> <JDBC> <jordan> <petstoreServer> <main>
    <system> <> <001060> <Cannot startup connection pool "petstorePool" weblogic.common.ResourceException:
    Could not create pool connection. The DBMS driver exception was:
    SQL Exception: Failed to start database 'petStore', see the next exception for
    details.
    at c8e.k.j.l_(Unknown Source)
    at c8e.k.j.l_(Unknown Source)
    at c8e.k.j.t(Unknown Source)
    at c8e.k.q.l(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 $Proxy32.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 $Proxy45.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)
    at weblogic.Server.main(Server.java:35)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:209)
    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 $Proxy32.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 $Proxy45.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)
    at weblogic.Server.main(Server.java:35)

    Thanks for the reply. I checked the scripts and we have all proper CLASSPATH and
    environment settings as you have indicated. But you made me realize one thing
    that I did not check before. There is a database log file in ./samples/eval/cloudscape/data/
    which I checked and found that the database was attempting to write to a file
    in which it did not have the proper permission to access. I'm hoping that this
    is the root of my problem.
    thanks again,
    SAF
    "pavans" <[email protected]> wrote:
    Hey..
    One of our team member was getting this same problem...
    I think it is something to do with cloudscape setup..
    try this out..
    Are you able to start cloudscape by java COM.cloudscape.tools.view cmd?
    make sure you have ".\samples\eval\cloudscape\lib\cloudscape.jar" in
    classpath of startpetstore.cmd file
    -Dcloudscape.system.home=./samples/eval/cloudscape/data in
    startPetStore.cmd
    If I remember correctly, we changed some settings like above ...and error
    was gone
    I guess you have table "product" in your "demo" database.
    "SAF" <[email protected]> wrote in message
    news:[email protected]...
    I just finished installing W6.1 on Solaris and I tried to run the PetStorrdemo
    but I keep getting the following exception. Unfortunately, this errormessage
    does not tell anything because there is no indication as to what thehell
    is wrong.
    If this stack trace looks familar to anyone, please let me know howyou
    solved
    your problems.
    The only change I made the petstore config.xml file was I changed theHTTP
    listening
    port to 9001. Here is my pool configuration...
    <JDBCConnectionPool CapacityIncrement="1"
    DriverName="COM.cloudscape.core.JDBCDriver" InitialCapacity="1"
    MaxCapacity="1" Name="petstorePool"
    Properties="user=none;password=none;server=none"
    Targets="petstoreServer" TestConnectionsOnReserve="true"
    TestTableName="product" URL="jdbc:cloudscape:petStore"/>
    ----------------Here is the stack trace-----------------------
    ####<Feb 1, 2002 2:06:39 PM EST> <Error> <JDBC> <jordan> <petstoreServer><main>
    <system> <> <001060> <Cannot startup connection pool "petstorePool"weblogic.common.ResourceException:
    Could not create pool connection. The DBMS driver exception was:
    SQL Exception: Failed to start database 'petStore', see the next exceptionfor
    details.
    at c8e.k.j.l_(Unknown Source)
    at c8e.k.j.l_(Unknown Source)
    at c8e.k.j.t(Unknown Source)
    at c8e.k.q.l(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)
    atweblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Connection
    EnvFactory.java:193)
    atweblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Connection
    EnvFactory.java:134)
    atweblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.j
    ava:698)
    atweblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java:282
    atweblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:623
    atweblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
    atweblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
    arget.java:329)
    atweblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deployment
    Target.java:279)
    atweblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(D
    eploymentTarget.java:233)
    atweblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploym
    entTarget.java:193)
    at java.lang.reflect.Method.invoke(Native Method)
    atweblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
    ..java:636)
    atweblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
    21)
    atweblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
    nImpl.java:359)
    atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy32.updateDeployments(Unknown Source)
    atweblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(
    ServerMBean_CachingStub.java:2761)
    atweblogic.management.mbeans.custom.ApplicationManager.startConfigManager(Appl
    icationManager.java:370)
    atweblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManage
    r.java:160)
    at java.lang.reflect.Method.invoke(Native Method)
    atweblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
    ..java:636)
    atweblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
    21)
    atweblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
    nImpl.java:359)
    atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy45.start(Unknown Source)
    atweblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(
    ApplicationManagerMBean_CachingStub.java:480)
    atweblogic.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)
    at weblogic.Server.main(Server.java:35)
    atweblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Connection
    EnvFactory.java:209)
    atweblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Connection
    EnvFactory.java:134)
    atweblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.j
    ava:698)
    atweblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java:282
    atweblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:623
    atweblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:107)
    atweblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
    arget.java:329)
    atweblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deployment
    Target.java:279)
    atweblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(D
    eploymentTarget.java:233)
    atweblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploym
    entTarget.java:193)
    at java.lang.reflect.Method.invoke(Native Method)
    atweblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
    ..java:636)
    atweblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
    21)
    atweblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
    nImpl.java:359)
    atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy32.updateDeployments(Unknown Source)
    atweblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(
    ServerMBean_CachingStub.java:2761)
    atweblogic.management.mbeans.custom.ApplicationManager.startConfigManager(Appl
    icationManager.java:370)
    atweblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManage
    r.java:160)
    at java.lang.reflect.Method.invoke(Native Method)
    atweblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
    ..java:636)
    atweblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
    21)
    atweblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
    nImpl.java:359)
    atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy45.start(Unknown Source)
    atweblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(
    ApplicationManagerMBean_CachingStub.java:480)
    atweblogic.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)
    at weblogic.Server.main(Server.java:35)

  • What is the servlet for "verifysignin" in signin.jsp in petstore Demo?

              Hi,
              I downloaded Weblogic Appl. Server 6.0 2 weeks ago, and installed the Demo "petstore",
              it runs fine.
              I have a question for the sign in page about "verifysignin" ,
              because I did not see any codes how the action passed to signonEJB. there is no web
              layer between JSP and EJB. what is th servlet between? is it made inside the Server?
              We can't see anything about that?
              Any help for that will be appreciated.
              James
              

    I assume you already desactivated IE's preformatted error, to see what actually gives the error 500.
    That's first step.
    Second you can put in your code for SQL exceptions for example this :
    catch(SQLException ex) {
    res.setContentType("text/html");
    out = res.getWriter();
    out.println("Error connecting to the database");
    out.println("Message: " + ex.getMessage ());
    out.println("<br>SQLState: " + ex.getSQLState ());
    out.println("<br>ErrorCode: " + ex.getErrorCode ());}
    It will output the sql error on your html page.
    Hope this helps
    :-)

  • Problem About J2EE RI and PetStore Demo

    Hello ^^
    I have a problem about j2ee & petstore.
    I trird to set up sun j2ee RI 1.3.1 + pet store on win2000 or redhat.
    Everything run ok. But when I changed web port 8000 to any port (included
    80),
    j2ee ri server showed the error message below :
    java.net.ConnectException: Connection refused: connect
    java.security.PrivilegedActionException: javax.servlet.ServletException:
    An error occurred while evaluating custom action attribute "items" with
    value "${catalog.categories.list}": An error occurred while getting
    property "categories" from an instance of class
    com.sun.j2ee.blueprints.catalog.client.CatalogHelper
    I used root to start j2ee & cloudscape on linux,
    and changed database to postgresql, too.
    but the error is the same.
    How to solve this problem ??
    Thank you ~~
    Jovi

    Hi,
    I dont know how useful my reply would be since the question was posted about 2 yrs back, but just wanted to reply in case somebody faces the same problem.
    If you change the web port to some other port (other than 8000) then please check the sun-j2ee-ri.xml files. Actually the CatalogDAOSQL.xml is read using a url which includes the port you are running the server on. So, you need to change the port even in the sun-j2ee-ri.xml file.
    One of the sun-j2ee-ri.xml files, where you need to make the change is in the $PETSTORE_HOME/src/apps/petstore/src/sun-j2ee-ri.xml file.
    Other one is in $PETSTORE_HOME/src/apps/supplier/src/sun-j2ee-ri.xml file.
    Look for other sun-j2ee-ri.xml files where the url is hardcoded. (I think the two sun-j2ee-ri.xml files mentioned above, are the only places you need to make the change, but still look for other files in case i have missed)
    Change those urls and redeploy the ears.
    Hope this solves the problem.
    Regards,
    Archit

  • Error: File does not exist (while trying to get Petstore and demos to run)

    Hi all,
    I have been trying in vain to get the Petstore demo and other servlet demo HelloWorld to run. It seems to install okay cause it creates the directories and extracts the .ear or .war files. My problem is connecting to the application. When I run http://my.host:7778/estore or http://my.host/7778/HelloWorld/HelloWorld I get and error in the Apache error_log that says: File does not exist: c:/oracle/components/apache/apache/htdocs/helloworld/helloworld and File does not exist: c:/oracle/components/apache/apache/htdocs/estore
    I have looked and searched everywhere for help but to no avail. Under the WebModule the URL Binding is /HelloWorld and /estore.
    Please help me!!! I am going crazy with this.
    Thanks,
    Grant
    PS. I am running 9iAS 9.0.2.0.1 and everything is on 1 Windows 2000 (sp1) machine. Infrastructure and Components in separate dirs with port 7777 and 7778 for each.

    I'm having the same problem under a solaris system did anyone ever find the solution to this problem. For some reason the server just wants to use the document root instead of the deployed application directory.

  • Getting PetStore to run in WLS 6.1sp3 on Mac OS X 10.2.6?

    Hi all!
    I've read with great interest all the articles relating to WLS running on OS X.
    It's great to read this as I am pretty much the only guy in the entire organisation
    here trying to keep using his Mac.
    I was able to get WLS admin server to run on my PowerBook running OS X 10.2.6.
    However, after stopping the admin server and trying to start the PetStore demo
    server, I've got a few exceptions that prevent the server from starting.
    So, I was wondering how you people, running WLS 6.1 on OS X have configured your
    start scripts. When trying to use the standard jdk that comes with WLS, I'm getting
    an exception. When using the Apple 1.3.1 jdk, I'm getting another exception about
    a missing 'libmuxer' library. Basically, what set of libraries are you using?
    Thanks in advance!
    -Laurent.

    Thanks for the reply, Mark. I finally figured it out by replacing all references
    to the WebLogic provided 1.3.1 jdk by the one provided by Apple and all is well
    now!
    Thanks!
    -Laurent.
    "Mark Griffith" <[email protected]> wrote:
    All you should need (with 7.0 and 8.1) to start WLS is
    "java weblogic.Server"
    As long as your have your classpath set.
    export CLASSPATH=$WLHOME:$WLHOME/server/lib/weblogic.jar
    On my windoze box WLHOME=C:/bea/wls81/weblogic81
    Libmuxer is our native socket muxing code, you don't need it to run you'll
    just use java muxing.
    Sam just posted the libs on another thread.
    Any other exceptions?
    cheers
    mbg
    "Laurent Daudelin" <[email protected]> wrote in message
    news:3eccefbe$[email protected]..
    Hi all!
    I've read with great interest all the articles relating to WLS runningon
    OS X.
    It's great to read this as I am pretty much the only guy in the entireorganisation
    here trying to keep using his Mac.
    I was able to get WLS admin server to run on my PowerBook running OSX
    10.2.6.
    However, after stopping the admin server and trying to start the PetStoredemo
    server, I've got a few exceptions that prevent the server from starting.
    So, I was wondering how you people, running WLS 6.1 on OS X haveconfigured your
    start scripts. When trying to use the standard jdk that comes withWLS,
    I'm getting
    an exception. When using the Apple 1.3.1 jdk, I'm getting anotherexception about
    a missing 'libmuxer' library. Basically, what set of libraries areyou
    using?
    Thanks in advance!
    -Laurent.

  • Looking for good canned demo of WLS 5.1 using SQL

    I am looking for a good canned demo that i can install on a WLS 5.1 machine that is similiar to the PetStore demo on the WLS 6.0B2 download... something that can be setup and shown on a moments notice...
    thanks

    Hi,I am using wls 5.1 and also use it as an app server and webserver.I need to set the mime type for ms-excel for it to display excel sheets.I have modified the properties as follows.
    weblogic.httpd.mimetype.application/vnd.ms-excel=xls,xlw,xla,xlc,xlm,xlt
    weblogic.httpd.mimetype.application/vnd.x-excel=xls,xlc,xll,xlm,xlw
    I am unable to read the charecters which appear as junk .Also in the log i see the following
    Tue Mar 06 15:19:12 PST 2001:<W> <WebLogicServer> Found undeclared property: web
    logic.httpd.mimetype.application/vnd.ms-excel
    Tue Mar 06 15:19:12 PST 2001:<W> <WebLogicServer> Found undeclared property: web
    logic.httpd.mimetype.application/vnd.x-excel
    Any clues as to what i may be doing wrong?
    Thx,
    vamsi

  • Petstore setup

    Hi all,
    I'm trying to get my arms around J2EE. I've read through a lot of documentation and I'm now trying to get the Petstore demo application up and running. However, I can't seem to run the setup.bat process. I've got the J2 SDK and the J2EE SDK installed and am following the install instructions in the Petstore demo app:
    <petstore.home>\docs\installing.html
    The setup tell me to go to <petstore.home> and run the setup.bat file. When I do this I get a "The system cannot find the path specified." error message. Setup.bat is setting a few env variables and then running
    %JAVA_HOME%\bin\java -classpath "%ANT_CLASSPATH%" -Dant.home=%ANT_HOME% -Dj2ee.home=%J2EE_HOME% -Dj2ee-script-suffix=.bat org.apache.tools.ant.Main -buildfile setup.xml %1 %2 %3 %4
    If I comment this line out it works fine, meaning it is having no problem setting evn variables. No suprise there. When I try to run the above program directly in the command line:
    C:\j2sdk1.4.2_04\bin> java -classpath "%ANT_CLASSPATH%" -Dant.home=%ANT_HOME% -Dj2ee.home=%J2EE_HOME% -Dj2ee-script-suffix=.bat org.apache.tools.ant.Main -buildfile setup.xml %1 %2 %3 %4
    I get the following error.
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/
    Main
    I'm not sure where or why this error is coming up and if it really has anything to do with the setup. I'm suprised to see any reference to Apache.
    Am I missing a piece? Do I need to run another process prior to this one?
    Thanks for the help.

    Hi Seth,
    I'm assuming that you are using Petstore version 1.3.2 based on the instructions you reference. From the error you are getting, it looks like JAVA_HOME is not set. Make sure that you set JAVA_HOME and J2EE_HOME correctly according to the installing.html file and then try running setup.bat.
    Please note that there is an updated version of the Petstore sample application in the J2EE 1.4 samples bundle located at... http://java.sun.com/j2ee/1.4/download.html#samples. The 1.4 samples can be run with the J2EE 1.4 SDK.
    -Kyle

  • Error -- ISO8859_1 Not Supported in Weblogic 6.1 SP2

    I've installed Weblogic 6.1 Service Pack 2 on Solaris 8, and when I go to install
    and deploy and applications (including the Petstore Demo) I get an error message
    which says 'ISO8859_1 is not supported'.
    If I stop and then restart the Weblogic Server, I get the following StackTrace
    included below.
    I've noticed there have been several posts on this topic, but no response. Thanks
    in advance to anyone who can help me out!
    Gary Smith
    [email protected]
    --Stack Trace of Error when Server Startup:
    weblogic.xml.process.XMLParsingException: The encoding "ISO8859_1" is not supported.
    - with nested exception:
    [org.xml.sax.SAXParseException: The encoding "ISO8859_1" is not supported.] Line:
    0 Column: 0
    at weblogic.xml.process.ProcessorDriver.process(ProcessorDriver.java:135)
    at weblogic.j2ee.dd.xml.J2EEDeploymentDescriptorLoader_J2EE12.process(J2EEDeploymentDescriptorLoader_J2EE12
    .java:137)
    at weblogic.j2ee.dd.xml.J2EEUtils.loadDeploymentDescriptor(J2EEUtils.java:114)
    at weblogic.j2ee.dd.xml.J2EEUtils.loadDeploymentDescriptor(J2EEUtils.java:85)
    at weblogic.management.mbeans.custom.Application.getDD(Application.java:670)
    at weblogic.management.mbeans.custom.Application.adminLoad(Application.java:487)
    at weblogic.management.mbeans.custom.Application.load(Application.java:387)
    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 $Proxy11.load(Unknown Source)
    at weblogic.management.mbeans.custom.ApplicationManager.loadApplications(ApplicationManager.java:556)
    at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:367)
    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 $Proxy38.start(Unknown Source)
    at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_Cach
    ingStub.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)
    at weblogic.Server.main(Server.java:35)

    Gary:
    Please try using a valid XML (also called MIME or IANA) encoding name
    (ISO-8859-1) instead of the Java encoding name (ISO8859_1).
    The IANA character set registry can be found at:
    <http://www.iana.org/assignments/character-sets>
    Regards --
    Jim Brown
    Gary Smith wrote:
    >
    I've installed Weblogic 6.1 Service Pack 2 on Solaris 8, and when I go to install
    and deploy and applications (including the Petstore Demo) I get an error message
    which says 'ISO8859_1 is not supported'.
    If I stop and then restart the Weblogic Server, I get the following StackTrace
    included below.
    I've noticed there have been several posts on this topic, but no response. Thanks
    in advance to anyone who can help me out!
    Gary Smith
    [email protected]
    --Stack Trace of Error when Server Startup:
    weblogic.xml.process.XMLParsingException: The encoding "ISO8859_1" is not supported.
    - with nested exception:
    [org.xml.sax.SAXParseException: The encoding "ISO8859_1" is not supported.] Line:
    0 Column: 0
    at weblogic.xml.process.ProcessorDriver.process(ProcessorDriver.java:135)
    at weblogic.j2ee.dd.xml.J2EEDeploymentDescriptorLoader_J2EE12.process(J2EEDeploymentDescriptorLoader_J2EE12
    java:137)
    at weblogic.j2ee.dd.xml.J2EEUtils.loadDeploymentDescriptor(J2EEUtils.java:114)
    at weblogic.j2ee.dd.xml.J2EEUtils.loadDeploymentDescriptor(J2EEUtils.java:85)
    at weblogic.management.mbeans.custom.Application.getDD(Application.java:670)
    at weblogic.management.mbeans.custom.Application.adminLoad(Application.java:487)
    at weblogic.management.mbeans.custom.Application.load(Application.java:387)
    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 $Proxy11.load(Unknown Source)
    at weblogic.management.mbeans.custom.ApplicationManager.loadApplications(ApplicationManager.java:556)
    at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:367)
    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 $Proxy38.start(Unknown Source)
    at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_Cach
    ingStub.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)
    at weblogic.Server.main(Server.java:35)--
    Jim Brown
    Developer Relations Engineer
    BEA Support

Maybe you are looking for

  • I want to buy a 3G Phone

    I have 4 Mac computers, 1 iPhone, 1 iTouch and an 80 gb iPod, but can't buy a new 3G phone. I am the President of a small company and my phone is part of a corporate account. The Apple Store has telephones but they can't sell one to me and AT&T has n

  • Transaction VA01 separate LUW / commit DB when creating in Background PO

    Hi experts, I have a request to create a PO for a particular item of a sales document, and for the PO created I need to fill one component and to lock it. I found out that the only way to create for sure a PO is the FM BAPI_ORDER_CREATE. To update th

  • Create a check box in excel cell  using sap abap

    Dear Sap Master's, Please give me some idea on  how to create a check box in excel cell using abap program.. (OLE concept). Thanks Moderator message: please search for available information first. Edited by: Thomas Zloch on Jan 12, 2012

  • Outlook 2010 Cannot Send To One Contact

    A couple days ago my sister no longer receives emails from my desktop. I tried sending from a business account that I have - it went. I fired up my laptop, sent an email - it went, so the problem seems to be in the desktop The laptop is on the same i

  • Images in JTable

    Hi, The Problem: Instead of the Image i see the image's filename. The Question: Which is the simplest way to display an Image in a JTable?