-
1. Re: Problem with Petstore
friisfriis Jan 9, 2002 2:44 AM (in response to friisfriis)> Hey
>
> I have a little problem deploying Java Petstore on
> JBOSS. When I'm accessing the Petstore I get an
> null-pointer exception when the application tries to
> read requestmappings.xml in ScreenFlowXmlDAO. I can
> see the application tries to read:
>
> jndi:/localhost/estore/WEB-INF/xml/requestmappings.xml
>
>
> I'm using Petstore 1.1.2 and
> JBoss-2.4.4_Tomcat-4.0.1. I have applied the patch
> for Petstore.
>
Hi
I just tried turning debug on and got the follow output:
[INFO,Default] ScreenFlowXmlDAO error:java.lang.ClassCastException: org.apache.
crimson.jaxp.DocumentBuilderFactoryImpl
The error occurred in the line:
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
in ScreenFlowXmlDAO.java
Please help.
/Soren -
2. Re: Problem with Petstore
bravo Jan 30, 2002 6:21 AM (in response to friisfriis)Hey,
where do I get the PetStore-patch?
Regards
Volker -
-
4. Re: Problem with Petstore
jeffc Feb 7, 2002 11:23 AM (in response to friisfriis)If you navigate to http://www.jboss.org/doco_files/, there
is a file you can download named petstore-1.1.1-patch.zip
that appears to have the same contents as the file referenced in the JBoss manual named jboss-jps-patch.zip. -
5. Re: Problem with Petstore
kingting Feb 20, 2002 7:07 PM (in response to friisfriis)Hi,
I encountered exactly the same problem running Petstore 1.1.2 with jps112-01.zip patch using JBoss-2.4.4_tomcat-4.0.1 . However the same petstore.ear seems to work with JBoss-2.4.4_Tomcat-3.2.3.
Has anyone successfully run petstore 1.1.2 against JBoss-2.4.4_tomcat-4.0.1? Is there a new patch for running petstore on new Jboss? I would appreciate if I can get some responses to these questions.
Regards
King -
6. Re: Problem with Petstore
prakash Mar 1, 2002 4:42 AM (in response to friisfriis)Hi Kingting,
You have mentioned that you have worked Petstore1.1.2 example with JBoss2.4.4-Tomcat3.2.3 with jps112_01.zip patch. So can you mention the steps what exactly you have done to make it work?? Thanks in advance. -
7. Re: Problem with Petstore
kingting Mar 24, 2002 6:26 PM (in response to friisfriis)Hi Prakash,
Here are some of the key steps I follow in order to get the petstore to work. You also cannot avoid reading the jboss documentation and the original petstore installation guide in order to be successful.
1. Applied the patch and make sure that you can build the petstore. You may see this error: [error] No local string for enterprise.deployment.application ... I just ignore this message. I believe this to do with the environment settings. Once you can successfully build, you need to configure the JBoss in order to deploy the petstore.ear.
2. Inside jboss.jcml, you need to configure two pools, EstoreDB and InventoryDB.
3. Change JPS_HOME%
\src\components\customer\src\customer_ejb.xml
<env-entry>
<env-entry-name>ejb/order/OrderDAOClass</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>com.sun.j2ee.blueprints.customer.order.dao.OrderDAOCS</env-entry-value>
</env-entry>
to base on the database you are using. I use OrderDAOOracle.
I hope this help.
King -
8. Re: Problem with Petstore
gaurav0002 Oct 1, 2003 6:26 AM (in response to friisfriis)Hello Sir,
I couldn't locate the patch to run the petstore as pointed by in you in your earlier mails, could you guide
me where I can find the patch to run petstore in jboss
with regards,
Gaurav -
9. Re: Problem with Petstore
murthyk Oct 22, 2003 2:57 PM (in response to friisfriis)Hi,
I am having the same problem, some body please help
TIA
K -
10. Re: Problem with Petstore
murthyk Oct 22, 2003 2:59 PM (in response to friisfriis)I am experiencing the same problem, any body who knows the fix please let me know
TIA
> Hey
>
> I have a little problem deploying Java Petstore on
> JBOSS. When I'm accessing the Petstore I get an
> null-pointer exception when the application tries to
> read requestmappings.xml in ScreenFlowXmlDAO. I can
> see the application tries to read:
>
> jndi:/localhost/estore/WEB-INF/xml/requestmappings.xml
>
>
> I'm using Petstore 1.1.2 and
> JBoss-2.4.4_Tomcat-4.0.1. I have applied the patch
> for Petstore.
>
> Regards
> Soren Friis
>