Hi Andrew,
I think Carlos is right. We had the same problem:
we are doing it like this:
<finder-method-jdbc-mapping>
<jonas-method>
<method-name>findByNotStatusAndBearbeiter</method-name>
</jonas-method>
<jdbc-where-clause>where COL_NAME1 > ? AND COL_NAME2 = ? ORDER BY
COL_NAME3</jdbc-where-clause>
</finder-method-jdbc-mapping>
so long!
simon
> Perhaps I'm goint to say the "betisse du jour", anyway, but it might be
> that the XML parser is having troubles parsing the greater-or-equal sign
> at the jdbc-where-clause eleemnt:
>
> <finder-method-jdbc-mapping>
> <jonas-method>
> <method-name>findBigAccounts</method-name>
> </jonas-method>
> <jdbc-where-clause>where bal > ?</jdbc-where-clause>
> </finder-method-jdbc-mapping>
Andrew Gray wrote:
>
> Hi Hélène,
>
> > Are you on Linux ?
> > I vaguely remember that many months ago, Linux users have got this
> > kind of problem due to a problem of a JDK version on Linux.
> > I apologize to not be able to give you more details.
>
> Thanks again for your reply. I am trying to run JOnAS on Windows NT 4.0. I
> am using the JDK 1.2.2 (official Sun release).
>
> I have tried using the new JOnAS 2.0 version. This meant rewriting my
> deployment descriptors for the new XML format. When I try and deploy my bean
> in the new version I get a similar error! The full trace of the error I get
> is:
>
> JOnAS Server, version 2.0, running on Jeremie.
> TransactionService: Working with a colocated Transaction Manager
> Create and register TM factory
> initialising a JonasSender
> initialising a JonasReceiver
> TransactionFactory constructor
> NamingManager: rebind TMFactory
> Current.Current(TransactionFactory tmfact)
> Batch constructor
> Clock constructor
> Register UserTransactionFactory
> NamingManager: rebind java:comp/UserTransaction
> javaURLContextFactory.getObjectInstance:null
> javaURLContext rebind java:comp/UserTransaction
> Current.getReference()
> Env.getDataSources()
> Env.getDataSource()
> datasource =datastore
> DataBaseManager.createConnectionManagers()
> DataBaseManager.createConnectionManager()
> ConnectionManager.ConnectionManager()
> PoolKeeper: started
> XADataSourceImpl.XADataSourceImpl()
> ConnectionManager.setDataSourceName: weblogic.jdbc.connectionPool.demoPool
> XADataSourceImpl.setDataSourceName(weblogic.jdbc.connectionPool.demoPool)
> ConnectionManager.setUrl(String
> jdbc:weblogic:mssqlserver4:@Darwin@endor:1433)
> ConnectionManager.setClassName(String weblogic.jdbc.mssqlserver4.Driver)
> Load JDBC driver weblogic.jdbc.mssqlserver4.Driver
> ConnectionManager.setUserName(String SQLuser)
> ConnectionManager.setPassword(String SQLuser)
> ConnectionManager configured with:
> jdbcConnCheckLevel = 1
> jdbcConnMaxAge = 30
> jdbcConnMaxThreads = 4
> jdbcConnExclTimeout = 30
> jdbcTestStmt = SELECT 1
> Mapping datasource jdbc:weblogic:mssqlserver4:@Darwin@endor:1433 on
> weblogic.jdbc.connectionPool.demoPool
> Container.Container()
> Env.getDescBeans()
> descriptors=[jonas-ejb-jar.xml]
> createEJBContainers [jonas-ejb-jar.xml])
> descriptor is null
> Cannot read the deployment descriptors 'jonas-ejb-jar.xml': Invalid XML in
> jonas-ejb-jar.xml:
>
> Since I am not getting a "file not found" error I presume that it is finding
> the descriptors okay. I am launching JOnAS from the JONAS_ROOT dir of
> c:\jonas_jdk1.2. My "jonas.properties" entry for the bean is:
>
> jonas.beans.descriptors jonas-ejb-jar.xml
>
> This xml file is also in the c:\jonas_jdk1.2 directory as is the .jar file
> container all the class files I want to deploy. This .jar file is called
> "ejb-jar.jar". Does the name of this file matter? Do I have to specify it in
> another file? Should it be in this directory?
>
> I have attached my deployment descriptors to this email. I have compared
> them to the sample ones distributed with JOnAS and can see no difference in
> format between them. Or any errors in the XML well-formedness.
>
> Sorry to send so much material to the newsgroup but I am clueless as to why
> this is not working and would appreciate any help anyone can give me.
>
> Thanks in advance.
>
> Andy.
>
> Andrew Gray
> Senior Software Engineer
> Velitar Ltd
> (+44)131 623 2621
>
> ------------------------------------------------------------------------
>
> ejb-jar.xmlName: ejb-jar.xml
> Type: application/x-unknown-content-type-xmlfile
>
> jonas-ejb-jar.xmlName: jonas-ejb-jar.xml
> Type: application/x-unknown-content-type-xmlfile
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".