So, you hint that my session is alive after redeployment? hmmmm... I'll
bear in mind this potential case.
But I use use for my app JBoss-3.0-RC3/Tomcat. So, if you plan Tapestry to
support JBoss-3.x branch you should take that into account.
Now about my attempt to deploy VLib on JBoss3.x. Beans are of version cmp
1.x and dtd refers to ejb2.0. Jboss won't take it complaining about absence
of abstract schema name. It can be avoided adding
<cmp-version>1.x</cmp-version> to each entity bean in ejb-jar.xml.
But that's not all. After mentioned above changes, I got this exception
deploying vlib.jar:
WARN [org.jboss.ejb.plugins.jaws.metadata.MappingMetaData] Unrecognized
jdbc-type: , using Types.OTHER
java.lang.NoSuchFieldException:
at java.lang.Class.getField0(Class.java:1721)
at java.lang.Class.getField(Class.java:889)
at
org.jboss.ejb.plugins.jaws.metadata.MappingMetaData.getJdbcTypeFromName(Mapp
ingMetaData.java:46)
at
org.jboss.ejb.plugins.jaws.metadata.CMPFieldMetaData.importXml(CMPFieldMetaD
ata.java:495)
...
For now I don't know what's the cause.
alex
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 23, 2002 4:46 PM
> To: [EMAIL PROTECTED]
> Cc: Tapestry Developer
> Subject: RE: [Tapestry-developer] Remote EJB interface as persistent
> property
>
>
> I just tried this using Jetty/JBoss and the Vlib.ear.
>
> I couldn't reproduce your problem because redeploying
> the Vlib.ear invalidated my session. This is a very
> sensible thing to do since it sidesteps class loader
> issues. I'm pretty sure its the standard approach taken
> by most application servers (including WebLogic).
>
> I'm sorry that with my limited resources I can't
> validate Tapestry against more configurations of servlet
> container and application server. This is an area where
> the help of the community is needed.
>
> --
> [EMAIL PROTECTED]
>
> http://tapestry.sf.net
> > I think I just have no other choice :) I have been
> struggling two days
> > with the problem. I'll try to run VLib and let you know.
> >
> > Thank you for the help, Howard.
> >
> > alex
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, May 23, 2002 4:24 PM
> > > To: [EMAIL PROTECTED]
> > > Cc: Tapestry Developer
> > > Subject: RE: [Tapestry-developer] Remote EJB interface as
> persistent
> > > property
> > >
> > >
> > > Hm. Can you deploy the Vlib in this same application
> > > server configuration?
> > >
> > > --
> > > [EMAIL PROTECTED]
> > >
> > > http://tapestry.sf.net
> > > > Tom,
> > > >
> > > > here it is. I got back that exception again.
> > > >
> > > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >
> > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> > > orImpl.java:39
> > > > )
> > > >
> > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> > > odAccessorImpl
> > > > .java:25)
> > > > java.lang.reflect.Method.invoke(Method.java:324)
> > > >
> > > com.primix.tapestry.util.prop.PropertyAccessor.set(PropertyAcc
> > > essor.java:169
> > > > )
> > > >
> > > com.primix.tapestry.util.prop.PropertyHelper.set(PropertyHelpe
> > > r.java:586)
> > > >
> > > com.primix.tapestry.record.PageRecorder.rollback(PageRecorder.
> > > java:222)
> > > >
> > >
> com.primix.tapestry.engine.RequestCycle.getPage(RequestCycle.java:257)
> > > >
> com.primix.tapestry.engine.PageService.service(PageService.java:92)
> > > >
> > > com.primix.tapestry.engine.AbstractEngine.service(AbstractEngi
> > > ne.java:706)
> > > >
> > > com.primix.tapestry.ApplicationServlet.doService(ApplicationSe
> > > rvlet.java:203
> > > > )
> > > >
> > > com.primix.tapestry.ApplicationServlet.doGet(ApplicationServle
> > > t.java:168)
> > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> > > >
> > > > Hope, it's enough. Further follows catalina's stack.
> > > >
> > > > And this is my getCatalog():
> > > > public Catalog getCatalog() {
> > > >
> > > > if(catalog == null) {
> > > > MTCatalogEngine engine = (MTCatalogEngine)getEngine();
> > > > for(int i = 0; i < 2; ++i) {
> > > > try {
> > > > CatalogHome catalogHome = engine.getCatalogHome();
> > > > setCatalog(catalogHome.create());
> > > > break;
> > > > } catch(CreateException ce) {
> > > > throw new ApplicationRuntimeException(ce);
> > > > } catch(RemoteException re) {
> > > > engine.rmiFailure("Remote exception creating
> > > Catalog", re, i > 0);
> > > > }
> > > > }
> > > > }
> > > > return catalog;
> > > > }
> > > >
> > > > Please, any hints would greatly appreciated.
> > > >
> > > > TIA,
> > > >
> > > > alex
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: [EMAIL PROTECTED]
> > > > > [mailto:[EMAIL PROTECTED]]On
> > > > > Behalf Of Tom
> > > > > Davies
> > > > > Sent: Thursday, May 23, 2002 3:44 PM
> > > > > Cc: 'Tapestry-Developer (E-mail)
> > > > > Subject: Re: [Tapestry-developer] Remote EJB interface as
> > > persistent
> > > > > property
> > > > >
> > > > >
> > > > > Alex Loubyansky wrote:
> > > > > > Hi, all.
> > > > > >
> > > > > > Do someone have any thoughts on what the cause for this
> > > > > exception could
> > > > > > be?
> > > > > > Name: com.primix.tapestry.record.RollbackException
> > > > > > Message: Unable to set property catalog of component
> > > > > CategoryManager to
> > > > > > tracker/ejb/Catalog:Stateless.
> > > > > > componentId: CategoryManager newValue:
> > > tracker/ejb/Catalog:Stateless
> > > > > > propertyName: catalog
> > > > > >
> > > > > > Name: com.primix.tapestry.util.DynamicInvocationException
> > > > > > Message: Could not invoke method getCatalog on
> > > > > >
> > > > >
> > >
> com.imedia.tracker.web.pages.CategoryManager@45bb9d[CategoryManager].
> > > > > > Name: java.lang.IllegalArgumentException
> > > > > > Message: argument type mismatch Trace:
> > > > > >
> > > > > > Catalog is a remote stateless session bean. I handle it
> > > > > like IBookQuery in
> > > > > > VLib tutorial. Please, if anyone have some thoughts
> let me know.
> > > > >
> > > > > What're the first few stack frames, and what's the
> signature of
> > > > > getCatalog()?
> > > > >
> > > > > Tom
> > > > >
> > > > >
> > > > >
> > > > >
> _______________________________________________________________
> > > > >
> > > > > Don't miss the 2002 Sprint PCS Application
> Developer's Conference
> > > > > August 25-28 in Las Vegas --
> > > http://devcon.sprintpcs.com/adp/index.cfm
> > > > >
> > > > > _______________________________________________
> > > > > Tapestry-developer mailing list
> > > > > [EMAIL PROTECTED]
> > > > >
> https://lists.sourceforge.net/lists/listinfo/tapestry-developer
> > > >
> > > >
> > > > _______________________________________________________________
> > > >
> > > > Don't miss the 2002 Sprint PCS Application Developer's
> Conference
> > > > August 25-28 in Las Vegas --
> > > http://devcon.sprintpcs.com/adp/index.cfm
> > > >
> > > > _______________________________________________
> > > > Tapestry-developer mailing list
> > > > [EMAIL PROTECTED]
> > > > https://lists.sourceforge.net/lists/listinfo/tapestry-developer
> >
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer