You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Madhu <ra...@oracle.com> on 2007/07/02 08:38:56 UTC

Re: JPetstore not working for me...

Larry,

Thanks for  new zip. I am able to deploy  application  and access in 
Tomcat. But I am  not able to execute  in  Oracle Application Server. 
Getting same error message.
I think some thing wrong with database configuration.

I configured like this my data-sources.xml  file.

 <managed-data-source connection-pool-name="Example Connection Pool" 
jndi-name="jdbc/jpetstore1" name="jdbc/jpetstore1"/>
  <connection-pool name="Example Connection Pool">
    <connection-factory 
factory-class="oracle.jdbc.pool.OracleDataSource" password="tiger" 
url="jdbc:oracle:thin:@host1:5521:db" user="scott">
    </connection-factory>
  </connection-pool>


 Am I correct, do  I need to add any  other attributes?

Pls suggest me..

thanks,
Madhu


Larry Meadors wrote:

> Wow, that version is *really* old - from 2004.
>
> Try this one:
>
> http://www.ibiblio.org/pub/mirrors/apache/ibatis/binaries/ibatis.java/JPetStore-5.0.zip 
>
>
> Larry
>
>
> On 6/21/07, Madhu <ra...@oracle.com> wrote:
>
>>
>>  Hi Clinton,
>>
>>  Thanks for your reply.
>>  I downloaded JPetstore application from following location.
>> http://sourceforge.net/project/showfiles.php?group_id=60632&package_id=112534 
>>
>>  I tried with Tomcat and OC4J using Oracle Database, But it didn't 
>> worked
>> for me.
>>  I did following this before  building and deploying application
>>  1) Created Data Source  in Oracle data-souces.xml file/server.xml in 
>> Tomcat
>>  2) Executed sql file Created data base table and insert statement.
>>  3) Modified database.properties  file with DB details.
>>   But Still I am seeing the same error.
>>  I didn't find any readme file  in Zip..
>>
>>  Pls help me if you have any working steps  with you.
>>
>>
>>  thanks,
>>  Madhu
>>
>>
>>  Clinton Begin wrote:
>>
>>  Look in the logs for the real exception.  This one is a secondary
>> exception.  Probably just DB config or initialization.
>>
>>  Clinton
>>
>>
>> On 6/20/07, Madhu <ra...@oracle.com> wrote:
>> Hi All,
>>
>>  I am getting following exception with JPetstore, when I enter into
>>  Store. I am using Oracle Database+ OC4J and JDK1.6
>>  Pls sugget me what could be the reason for error..
>>
>>  javax.servlet.jsp.JspException: Exception creating bean of class
>>  com.ibatis.jpetstore.presentation.CatalogBean: {1}
>>          at
>> org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:563)
>>          at
>> org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:520)
>>          at
>> _catalog._Main.__jsp_tag_ctru5_helper_12(_Main.java:530)
>>          at _catalog._Main._jspService(_Main.java:89)
>>          at com.orionserver[Oracle Containers for J2EE 10g (11.1.1.0.0)
>>  ].http.OrionHttpJspPage.service( OrionHttpJspPage.java:60)
>>          at
>> oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:748)
>>          at
>> oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:439)
>>          at
>>  oracle.jsp.runtimev2.JspServlet.internalService
>> (JspServlet.java:690)
>>          at
>> oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:611)
>>          at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>>          at com.evermind[Oracle Containers for J2EE 10g ( 11.1.1.0.0)
>> ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:709) 
>>
>>          at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0)
>>  ].server.http.ServletRequestDispatcher.forwardInternal(
>> ServletRequestDispatcher.java:368)
>>          at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0)
>> ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:257) 
>>
>>          at com.evermind [Oracle Containers for J2EE 10g (11.1.1.0.0)
>> ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:45) 
>>
>>          at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0)
>>  ].server.http.ServletRequestDispatcher$2.oc4jRun(
>> ServletRequestDispatcher.java:191)
>>          at
>> oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:386)
>>          at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0)
>>  ].server.http.ServletRequestDispatcher.forward(
>> ServletRequestDispatcher.java:196)
>>
>>


Re: JPetstore not working for me...

Posted by Larry Meadors <lm...@apache.org>.
Are there any other errors in the log? I'm not at all familiar with OAS.

Larry


On 7/2/07, Madhu <ra...@oracle.com> wrote:
> Larry,
>
> Thanks for  new zip. I am able to deploy  application  and access in
> Tomcat. But I am  not able to execute  in  Oracle Application Server.
> Getting same error message.
> I think some thing wrong with database configuration.
>
> I configured like this my data-sources.xml  file.
>
>  <managed-data-source connection-pool-name="Example Connection Pool"
> jndi-name="jdbc/jpetstore1" name="jdbc/jpetstore1"/>
>   <connection-pool name="Example Connection Pool">
>     <connection-factory
> factory-class="oracle.jdbc.pool.OracleDataSource" password="tiger"
> url="jdbc:oracle:thin:@host1:5521:db" user="scott">
>     </connection-factory>
>   </connection-pool>
>
>
>  Am I correct, do  I need to add any  other attributes?
>
> Pls suggest me..
>
> thanks,
> Madhu
>
>
> Larry Meadors wrote:
>
> > Wow, that version is *really* old - from 2004.
> >
> > Try this one:
> >
> > http://www.ibiblio.org/pub/mirrors/apache/ibatis/binaries/ibatis.java/JPetStore-5.0.zip
> >
> >
> > Larry
> >
> >
> > On 6/21/07, Madhu <ra...@oracle.com> wrote:
> >
> >>
> >>  Hi Clinton,
> >>
> >>  Thanks for your reply.
> >>  I downloaded JPetstore application from following location.
> >> http://sourceforge.net/project/showfiles.php?group_id=60632&package_id=112534
> >>
> >>  I tried with Tomcat and OC4J using Oracle Database, But it didn't
> >> worked
> >> for me.
> >>  I did following this before  building and deploying application
> >>  1) Created Data Source  in Oracle data-souces.xml file/server.xml in
> >> Tomcat
> >>  2) Executed sql file Created data base table and insert statement.
> >>  3) Modified database.properties  file with DB details.
> >>   But Still I am seeing the same error.
> >>  I didn't find any readme file  in Zip..
> >>
> >>  Pls help me if you have any working steps  with you.
> >>
> >>
> >>  thanks,
> >>  Madhu
> >>
> >>
> >>  Clinton Begin wrote:
> >>
> >>  Look in the logs for the real exception.  This one is a secondary
> >> exception.  Probably just DB config or initialization.
> >>
> >>  Clinton
> >>
> >>
> >> On 6/20/07, Madhu <ra...@oracle.com> wrote:
> >> Hi All,
> >>
> >>  I am getting following exception with JPetstore, when I enter into
> >>  Store. I am using Oracle Database+ OC4J and JDK1.6
> >>  Pls sugget me what could be the reason for error..
> >>
> >>  javax.servlet.jsp.JspException: Exception creating bean of class
> >>  com.ibatis.jpetstore.presentation.CatalogBean: {1}
> >>          at
> >> org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:563)
> >>          at
> >> org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:520)
> >>          at
> >> _catalog._Main.__jsp_tag_ctru5_helper_12(_Main.java:530)
> >>          at _catalog._Main._jspService(_Main.java:89)
> >>          at com.orionserver[Oracle Containers for J2EE 10g (11.1.1.0.0)
> >>  ].http.OrionHttpJspPage.service( OrionHttpJspPage.java:60)
> >>          at
> >> oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:748)
> >>          at
> >> oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:439)
> >>          at
> >>  oracle.jsp.runtimev2.JspServlet.internalService
> >> (JspServlet.java:690)
> >>          at
> >> oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:611)
> >>          at
> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> >>          at com.evermind[Oracle Containers for J2EE 10g ( 11.1.1.0.0)
> >> ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:709)
> >>
> >>          at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0)
> >>  ].server.http.ServletRequestDispatcher.forwardInternal(
> >> ServletRequestDispatcher.java:368)
> >>          at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0)
> >> ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:257)
> >>
> >>          at com.evermind [Oracle Containers for J2EE 10g (11.1.1.0.0)
> >> ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:45)
> >>
> >>          at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0)
> >>  ].server.http.ServletRequestDispatcher$2.oc4jRun(
> >> ServletRequestDispatcher.java:191)
> >>          at
> >> oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:386)
> >>          at com.evermind[Oracle Containers for J2EE 10g (11.1.1.0.0)
> >>  ].server.http.ServletRequestDispatcher.forward(
> >> ServletRequestDispatcher.java:196)
> >>
> >>
>
>