Hi Alexey,
        i tried to do the following, but i didnt help out..
i have packaged my webapp as WAR file.
however, i kept the package that contains jdo classes outside
the WAR file, and i added that jar to JBOSS CLASSPATH.
however, i keep on getting same exception....

is it so that in order to make it work my WAR file should contain
only JSP and not lib\*.jars ?


regards
        marco

> -----Original Message-----
> From: ext Alexey Loubyansky [mailto:[EMAIL PROTECTED]
> Sent: 18 August, 2003 19:14
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] error in running application that uses JDO -
> cannot locate persistencemanagerfactory
> 
> 
> Yes, it is possible.
> For now, you can deploy war and jar seperately from each 
> other, or pack 
> them together in a JAR or SAR archive.
> JAR and SAR deployers look for nested packages and deploy them. EAR 
> deployer deploys only packages specified in application.xml 
> (there is no 
> jdo module). So, you can't put JDO package in an EAR, ATM.
> Eventually, all this will be possible.
> 
> alex
> 
> [EMAIL PROTECTED] wrote:
> 
> > Hi Alexey,  
> >     so what are the workarounds? is it impossible to use JDO wiht
> > Web Archive?
> > if instead i place the JDO classes inside the \classes directory of
> > the webapp will it work?
> > 
> > i need it 'desperately'. i m willing 2 wait if u can give 
> me a timeline
> > of when it will work with webapp.... :-) and i m willing to 
> help if needed..
> > 
> > 
> > thanx and regards
> >     marco
> > 
> > 
> >>-----Original Message-----
> >>From: ext Alexey Loubyansky [mailto:[EMAIL PROTECTED]
> >>Sent: 18 August, 2003 17:00
> >>To: [EMAIL PROTECTED]
> >>Subject: Re: [JBoss-user] error in running application that 
> uses JDO -
> >>cannot locate persistencemanagerfactory
> >>
> >>
> >>Unfortunately, it is a limitation of JDODeployer.
> >>At the moment, you can't place JDO jar packages into the lib 
> >>directories 
> >>of the WAR.
> >>The JAR in the WAR will be added to the classpath but won't 
> >>be deployed 
> >>by the JDODeployer. Actually, it behaves like EJBDeployer.
> >>
> >>alex
> >>
> >>[EMAIL PROTECTED] wrote:
> >>
> >>
> >>>hi all,
> >>>   i have written a web app that uses jdo.
> >>>i have written a class named Test in the package com.marco.test
> >>>i have placed the Test.jdo in the same package, and then 
> >>
> >>created a jar file.
> >>
> >>>i have subsequently added the jar file to the lib directory 
> >>
> >>of the web application.
> >>
> >>>
> >>>the Test.jdo class is as follow
> >>>
> >>><?xml version="1.0" encoding="UTF-8"?>
> >>><jdo>
> >>>   <package name="com.tgmm.commons">
> >>>      <class name="Test" objectid-class="java.lang.Integer">
> >>>         <field name="name">
> >>>            <extension vendor-name="jboss" 
> >>
> >>key="column-name" value="name"/>
> >>
> >>>         </field>
> >>>         <field name="te�" default-fetch-group="true">
> >>>            <extension vendor-name="jboss" 
> >>
> >>key="column-name" value="tel"/>
> >>
> >>>         </field>
> >>>
> >>>         <extension vendor-name="jboss" key="table-name" 
> >>
> >>value="test"/>
> >>
> >>>         <extension vendor-name="jboss" 
> >>
> >>key="objectid-column-name" value="oid"/>
> >>
> >>>         <extension vendor-name="jboss" key="datasource" 
> >>
> >>value="java:/MySqlDS"/>
> >>
> >>>         <extension vendor-name="jboss" 
> >>
> >>key="key-generator-factory" value="java:/HiLoIDGeneratorFactory"/>
> >>
> >>>      </class>
> >>>   </package>
> >>>
> >>>   <extension vendor-name="jboss" 
> >>
> >>key="persistence-manager-factory" 
> >>value="java:/PersistenceManagerFactory"/>
> >>
> >>></jdo>
> >>>
> >>>
> >>>in the code i am  trying to retrieve the 
> >>
> >>PersistenceManagerFactory by doing this:
> >>
> >>>InitialContext ic = null;
> >>>                           try {
> >>>                                   ic = new InitialContext();
> >>>                                   pmf = 
> >>
> >>(PersistenceManagerFactory)ic.lookup("java:/PersistenceManager
> >>Factory");
> >>
> >>>                                   System.err.println("We 
> >>
> >>got successfully persistencemanagerfactory.");
> >>
> >>>                           } catch(NamingException e) {
> >>>                                   e.printStackTrace();
> >>>                           }
> >>>
> >>>
> >>>but i keep on getting following exception.
> >>>
> >>>
> >>>15:54:58,433 ERROR [STDERR] 
> >>
> >>javax.naming.NameNotFoundException: PersistenceManag
> >>
> >>>erFactory not bound
> >>>15:54:58,443 ERROR [STDERR]     at 
> >>
> >>org.jnp.server.NamingServer.getBinding(Naming
> >>
> >>>Server.java:490)
> >>>15:54:58,443 ERROR [STDERR]     at 
> >>
> >>org.jnp.server.NamingServer.getBinding(Naming
> >>
> >>>Server.java:498)
> >>>15:54:58,453 ERROR [STDERR]     at 
> >>
> >>org.jnp.server.NamingServer.getObject(NamingS
> >>
> >>>erver.java:504)
> >>>15:54:58,453 ERROR [STDERR]     at 
> >>
> >>org.jnp.server.NamingServer.lookup(NamingServ
> >>
> >>>er.java:277)
> >>>15:54:58,453 ERROR [STDERR]     at 
> >>
> >>org.jnp.interfaces.NamingContext.lookup(Namin
> >>
> >>>gContext.java:500)
> >>>15:54:58,463 ERROR [STDERR]     at 
> >>
> >>org.jnp.interfaces.NamingContext.lookup(Namin
> >>
> >>>gContext.java:479)
> >>>15:54:58,463 ERROR [STDERR]     at 
> >>
> >>javax.naming.InitialContext.lookup(InitialCon
> >>
> >>>text.java:347)
> >>>15:54:58,463 ERROR [STDERR]     at 
> >>
> >>com.tgmm.action.TestAction.perform(Unknown So
> >>
> >>>urce)
> >>>15:54:58,473 ERROR [STDERR]     at 
> >>
> >>org.apache.struts.action.Action.execute(Actio
> >>
> >>>n.java:415)
> >>>15:54:58,473 ERROR [STDERR]     at 
> >>
> >>org.apache.struts.action.RequestProcessor.pro
> >>
> >>>cessActionPerform(RequestProcessor.java:480)
> >>>15:54:58,483 ERROR [STDERR]     at 
> >>
> >>org.apache.struts.action.RequestProcessor.pro
> >>
> >>>cess(RequestProcessor.java:274)
> >>>15:54:58,483 ERROR [STDERR]     at 
> >>
> >>org.apache.struts.action.ActionServlet.proces
> >>
> >>>s(ActionServlet.java:1420)
> >>>15:54:58,493 ERROR [STDERR]     at 
> >>
> >>org.apache.struts.action.ActionServlet.doGet(
> >>
> >>>ActionServlet.java:502)
> >>>15:54:58,493 ERROR [STDERR]     at 
> >>
> >>javax.servlet.http.HttpServlet.service(HttpSe
> >>
> >>>rvlet.java:740)
> >>>15:54:58,493 ERROR [STDERR]     at 
> >>
> >>javax.servlet.http.HttpServlet.service(HttpSe
> >>
> >>>rvlet.java:853)
> >>>15:54:58,503 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.core.ApplicationFilterCha
> >>
> >>>in.internalDoFilter(ApplicationFilterChain.java:247)
> >>>15:54:58,503 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.core.ApplicationFilterCha
> >>
> >>>in.doFilter(ApplicationFilterChain.java:193)
> >>>15:54:58,503 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.core.StandardWrapperValve
> >>
> >>>.invoke(StandardWrapperValve.java:256)
> >>>15:54:58,513 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.core.StandardPipeline$Sta
> >>
> >>>ndardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> >>>15:54:58,513 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.core.StandardPipeline.inv
> >>
> >>>oke(StandardPipeline.java:480)
> >>>15:54:58,513 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.core.ContainerBase.invoke
> >>
> >>>(ContainerBase.java:995)
> >>>15:54:58,523 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.core.StandardContextValve
> >>
> >>>.invoke(StandardContextValve.java:191)
> >>>15:54:58,523 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.core.StandardPipeline$Sta
> >>
> >>>ndardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> >>>15:54:58,533 ERROR [STDERR]     at 
> >>
> >>org.jboss.web.catalina.security.JBossSecurity
> >>
> >>>MgrRealm.invoke(JBossSecurityMgrRealm.java:236)
> >>>15:54:58,533 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.core.StandardPipeline$Sta
> >>
> >>>ndardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> >>>15:54:58,533 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.valves.CertificatesValve.
> >>
> >>>invoke(CertificatesValve.java:246)
> >>>15:54:58,543 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.core.StandardPipeline$Sta
> >>
> >>>ndardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> >>>15:54:58,543 ERROR [STDERR]     at 
> >>
> >>org.jboss.web.catalina.statistics.ContainerSt
> >>
> >>>atsValve.invoke(ContainerStatsValve.java:75)
> >>>15:54:58,553 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.core.StandardPipeline$Sta
> >>
> >>>ndardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> >>>15:54:58,553 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.core.StandardPipeline.inv
> >>
> >>>oke(StandardPipeline.java:480)
> >>>15:54:58,553 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.core.ContainerBase.invoke
> >>
> >>>(ContainerBase.java:995)
> >>>15:54:58,563 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.core.StandardContext.invo
> >>
> >>>ke(StandardContext.java:2415)
> >>>15:54:58,563 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.core.StandardHostValve.in
> >>
> >>>voke(StandardHostValve.java:180)
> >>>15:54:58,573 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.core.StandardPipeline$Sta
> >>
> >>>ndardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> >>>15:54:58,573 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.valves.ErrorDispatcherVal
> >>
> >>>ve.invoke(ErrorDispatcherValve.java:171)
> >>>15:54:58,573 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.core.StandardPipeline$Sta
> >>
> >>>ndardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> >>>15:54:58,583 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.valves.ErrorReportValve.i
> >>
> >>>nvoke(ErrorReportValve.java:172)
> >>>15:54:58,583 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.core.StandardPipeline$Sta
> >>
> >>>ndardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> >>>15:54:58,593 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.valves.AccessLogValve.inv
> >>
> >>>oke(AccessLogValve.java:509)
> >>>15:54:58,593 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.core.StandardPipeline$Sta
> >>
> >>>ndardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> >>>15:54:58,593 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.core.StandardPipeline.inv
> >>
> >>>oke(StandardPipeline.java:480)
> >>>15:54:58,603 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.core.ContainerBase.invoke
> >>
> >>>(ContainerBase.java:995)
> >>>15:54:58,603 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.core.StandardEngineValve.
> >>
> >>>invoke(StandardEngineValve.java:174)
> >>>15:54:58,613 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.core.StandardPipeline$Sta
> >>
> >>>ndardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> >>>15:54:58,613 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.core.StandardPipeline.inv
> >>
> >>>oke(StandardPipeline.java:480)
> >>>15:54:58,623 ERROR [STDERR]     at 
> >>
> >>org.apache.catalina.core.ContainerBase.invoke
> >>
> >>>(ContainerBase.java:995)
> >>>15:54:58,623 ERROR [STDERR]     at 
> >>
> >>org.apache.coyote.tomcat4.CoyoteAdapter.servi
> >>
> >>>ce(CoyoteAdapter.java:223)
> >>>15:54:58,623 ERROR [STDERR]     at 
> >>
> >>org.apache.coyote.http11.Http11Processor.proc
> >>
> >>>ess(Http11Processor.java:594)
> >>>15:54:58,633 ERROR [STDERR]     at 
> >>
> >>org.apache.coyote.http11.Http11Protocol$Http1
> >>
> >>>1ConnectionHandler.processConnection(Http11Protocol.java:392)
> >>>15:54:58,633 ERROR [STDERR]     at 
> >>
> >>org.apache.tomcat.util.net.TcpWorkerThread.ru
> >>
> >>>nIt(PoolTcpEndpoint.java:565)
> >>>15:54:58,633 ERROR [STDERR]     at 
> >>
> >>org.apache.tomcat.util.threads.ThreadPool$Con
> >>
> >>>trolRunnable.run(ThreadPool.java:619)
> >>>15:54:58,643 ERROR [STDERR]     at 
> >>
> >>java.lang.Thread.run(Thread.java:536)
> >>
> >>>15:54:58,643 ERROR [STDERR] java.lang.NullPointerException
> >>>15:54:58,643 ERROR [STDERR]     at 
> >>
> >>com.tgmm.action.TestAction.perform(Unknown So
> >>
> >>>urce)
> >>>15:54:58,643 ERROR [STDERR]     at 
> >>
> >>org.apache.struts.action.Action.execute(Actio
> >>
> >>>n.java:415)
> >>>
> >>>
> >>>anyone can help?
> >>>
> >>>thanx and regards
> >>>   marco
> >>>
> >>>
> >>>-------------------------------------------------------
> >>>This SF.Net email sponsored by: Free pre-built ASP.NET 
> >>
> >>sites including
> >>
> >>>Data Reports, E-commerce, Portals, and Forums are available now.
> >>>Download today and enter to win an XBOX or Visual Studio .NET.
> >>>
> >>
> >>http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet
> >>_072303_01/01
> >>
> >>>_______________________________________________
> >>>JBoss-user mailing list
> >>>[EMAIL PROTECTED]
> >>>https://lists.sourceforge.net/lists/listinfo/jboss-user
> >>>
> >>
> >>
> >>
> >>-------------------------------------------------------
> >>This SF.Net email sponsored by: Free pre-built ASP.NET 
> sites including
> >>Data Reports, E-commerce, Portals, and Forums are available now.
> >>Download today and enter to win an XBOX or Visual Studio .NET.
> >>http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet
> >>_072303_01/01
> >>_______________________________________________
> >>JBoss-user mailing list
> >>[EMAIL PROTECTED]
> >>https://lists.sourceforge.net/lists/listinfo/jboss-user
> >>
> > 
> > 
> > 
> > -------------------------------------------------------
> > This SF.Net email sponsored by: Free pre-built ASP.NET 
> sites including
> > Data Reports, E-commerce, Portals, and Forums are available now.
> > Download today and enter to win an XBOX or Visual Studio .NET.
> > 
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to