RE: osuser example: propertyset versioning issue in the example app.

"J. Matthew Pryor" <[email protected]> Thu, 11 Dec 2003 23:25:32 +1100
Newsgroups gmane.comp.java.open-symphony.devel
Message-ID <[email protected]>
So sniffing around some more, I can see the the xdoclet template wants a
configParam to set the database type

<database-type><XDtConfig:configParameterValue
paramName="DatabaseType"/></database-type>

So if that is not passed to xdoclet when oscore is built, then it will
always be empty

Sniffing around a bit more I can see that it is not passed to the
<weblogic/> subtask of ejbdoclet at build time, so that explains it

The question is, what to do now?

jmp

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of
> J. Matthew Pryor
> Sent: Thursday, December 11, 2003 11:09 PM
> To: [email protected]
> Subject: RE: [Opensymphony-developers] osuser example: propertyset
> versioning issue in the example app.
>
>
> The issue appears to be that META-INF/weblogic-cmp-rdbms-jar.xml in oscore
> doe sindeed have an empty element for database-type
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!DOCTYPE weblogic-rdbms-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic
> 7.0.0 EJB RDBMS Persistence//EN"
> "http://www.bea.com/servers/wls700/dtd/weblogic-rdbms20-persistenc
> e-700.dtd"
> >
>
> <weblogic-rdbms-jar>
>
> [snip]
>
>    <create-default-dbms-tables>True</create-default-dbms-tables>
>    <database-type></database-type>
>
> </weblogic-rdbms-jar>
>
> And whilst this is legal XML, I have had trouble with WebLogic before not
> liking empty elements.
>
> The WebLogic documentation claims the value has to be one of
>
> DB2| INFORMIX| ORACLE| SQL_SERVER| SYBASE| POINTBASE
>
> Which kind of sucks for a library that doesn't know what database it is
> going to target
>
> No easy way to solve this that I can see (you can work around it easily)
>
> jmp
>
> > -----Original Message-----
> > From: [email protected]
> > [mailto:[email protected]]On Behalf Of
> > Nick Faiz
> > Sent: Thursday, December 11, 2003 5:49 PM
> > To: '[email protected]'
> > Subject: [Opensymphony-developers] osuser example: propertyset
> > versioning issue in the example app.
> >
> >
> > Hi,
> > 	The example app. built with Matthew's version of build.xml but there
> > were a couple of issues. I thought I'd email them.
> >
> > 	There's a versioning discrepancy in the reference to the
> > propertyset-x.jar.
> >
> > <application>
> >
> > 	<display-name>OSUser example app</display-name>
> >
> > 	...
> >     <module>
> >         <ejb>propertyset-1.1.1.jar</ejb>
> >     </module>
> >
> > 	The only propertyset.jar I can find in my checkout is
> > propertyset-1.3-dev.jar .
> >
> > 	I altered application.xml to the included version and got past that
> > error, but found missing libraries when I next tried to deploy
> the example
> > ear in WebLogic 7.2..
> >
> > 	I don't have commons logging set up, but that won't be hard to fix.
> >
> > 	I did see this stacktrace, related to oscore.
> >
> > <11/12/2003 17:41:08> <Error> <EJB> <010069> <Error preparing
> EJB Module :
> > oscore-2.2.1.jar
> > Exception is :
> >
> > Unable to deploy EJB: oscore-2.2.1.jar from oscore-2.2.1.jar:
> >
> >
> > Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml'. The
> error was:
> >  PAction[3456720](.weblogic-rdbms-jar.database-type.) must be a
> non-empty
> > string
> >
> > 	Are there any instructions for configuring the example app. for a
> > WebLogic build?
> >
> >
> >
> > Regards,
> > Nick Faiz
> > B2B e-Commerce Developer
> > Corporate Express Australia Ltd.
> >
> > Phone: +61-2-9335-0495, Fax: 9335-0753, Email: [email protected]
> >
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: SF.net Giveback Program.
> > Does SourceForge.net help you be more productive?  Does it
> > help you create better code?  SHARE THE LOVE, and help us help
> > YOU!  Click Here: http://sourceforge.net/donate/
> > _______________________________________________
> > Opensymphony-developers mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-developers
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Opensymphony-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-developers



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/