Re: [JBoss-user] [EJB/JBoss] - Could not create Entity exception
I don't know if this may make a difference but it may be worth trying. Return hospitalid in place of myid, your ejbCreate() method may look like this. public Long ejbCreate(HospitalData hospitalData) throws CreateException { System.out.println("Came in ejbCreate method of HospitalEJB"); Long myid = new Long(UniqueIdGenerator.getId()); System.out.println("My id generated == " + myid); this.hospitalid = myid; System.out.println("My id generated == " + this.hospitalid); this.hospitalname = hospitalData.getHospitalname(); System.out.println("Hospital Name " + hospitalData.getHospitalname()); return hospitalid; } Allan. --- pittupgd <[EMAIL PROTECTED]> wrote: > Hello Friends, > > I deploy Hospital entity bean.The tables are created > properly in the database. > While entering a record using the CMP hospital bean > I get the following error > > 13:23:06,031 ERROR [Hospital] Could not create > entity > java.sql.SQLException: Column 'hospitalid' cannot be > null > at > com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2921) > at > com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1570) > at > com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:1085) > at > com.mysql.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:670) > at > com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1159) > at > com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1076) > at > com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1061) > at > org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:316) > at > org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.executeInsert(JDBCAbstractCreateCommand.java:352) > at > org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.performInsert(JDBCAbstractCreateCommand.java:308) > > Here is the code for my HospitalEJB > > > public abstract class HospitalEJB implements > EntityBean { > > private EntityContext context; > public Long hospitalid; > public String hospitalname; > > public void ejbLoad() throws EJBException, > RemoteException { > > } > public void ejbActivate() throws EJBException, > RemoteException { > > } > > public Long ejbCreate(HospitalData hospitalData) > throws CreateException { > System.out.println("Came in ejbCreate method of > HospitalEJB"); > Long myid = new Long(UniqueIdGenerator.getId()); > System.out.println("My id generated == " + > myid); > this.hospitalid = myid; > System.out.println("My id generated == " + > this.hospitalid); > this.hospitalname = > hospitalData.getHospitalname(); > System.out.println("Hospital Name " + > hospitalData.getHospitalname()); > return myid; > > } > > public void ejbPostCreate(HospitalData > hospitalData) > throws CreateException, RemoteException { > > System.out.println("$"); > System.out.println("Came in EJB POSTCreate of > HospitalEJB"); > > System.out.println("$"); > > } > > public void ejbRemove() > throws RemoveException, RemoteException, > EJBException { > > } > > public void setEntityContext(EntityContext context) > throws EJBException, RemoteException { > > } > > public void unsetEntityContext() throws > EJBException, RemoteException { > > } > > public void ejbPassivate() throws EJBException, > RemoteException { > > } > > public void ejbStore() throws EJBException, > RemoteException { > > } > > /** >* @return >*/ > public abstract Long getHospitalid(); > > /** >* @return >*/ > public abstract String getHospitalname(); > > /** >* @param long1 >*/ > public abstract void setHospitalid(Long long1); > > /** >* @param string >*/ > public abstract void setHospitalname(String > string); > > public HospitalData getHospitalData() { > System.out.println("Came in get hospital data"); > System.out.println("In Get method of HospitalEJB" > + this.hospitalid); > System.out.println("In Get method of HospitalEJB" > + this.hospitalname); > > HospitalData hospitalData = new HospitalData(); > hospitalData.setHospitalid(this.hospitalid); > hospitalData.setHospitalname(this.hospitalname); > S
Re: [JBoss-user] [EJB/JBoss] - Re: Help stuck with JBoss 4.0.2 and MySQL 4.1.13
I've just realized the ejb-ql opening tag comes after the closing result-type-mapping tag which comes after the closing query-method tag. These three tags are enclosed within the query tag. Allan. --- Allan Kamau <[EMAIL PROTECTED]> wrote: > Surely your ejb-jar.xml file and probably > jbosscmp-jdbc.xml files have errors. XML errors and > errors caused by the xml not conforming to the .dtd. > For example, you have a string "False" after the > closing and your ejb-ql tag should > enclose the query-method tag. I'd suggest going > through your xml and comparing the xml tags and > their > sequence against the appropriate .dtd. Then finally, > pass the xml file against a validating parser to > display the remaining error(s) if any. Reading on > XML > and dtd will help. > > Allan. > > > --- pittupgd <[EMAIL PROTECTED]> wrote: > > > Hello, > > Even if I return the primary key it gives me the > > same error. > > I have tried it can you tell me whether the > > ejb-jar.xml and jbosscmp-jdc.xml are correct. > > > > > > 10:38:02,093 ERROR [LogInterceptor] > > TransactionRolledbackException in method: public > > abstract com.cygnet.medina.Hospital.Hospital > > > com.cygnet.medina.Hospital.HospitalHome.create(com.cygnet.medina.Hospital.HospitalData) > > throws > > > javax.ejb.CreateException,java.rmi.RemoteException, > > causedBy: > > javax.ejb.EJBException: getGeneratedKeys returned > an > > empty ResultSet > > at > > > org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCMySQLCreateCommand.executeInsert(JDBCMySQLCreateCommand.java:87) > > at > > > org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.performInsert(JDBCAbstractCreateCommand.java:308) > > at > > > org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.execute(JDBCAbstractCreateCommand.java:138) > > at > > > org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreManager.java:572) > > at > > > org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:222) > > at > > > org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createEntity(CachedConnectionInterceptor.java:266) > > at > > > org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:766) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > Method) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at > > java.lang.reflect.Method.invoke(Method.java:324) > > at > > > org.jboss.invocation.Invocation.performCall(Invocation.java:345) > > at > > > org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1113) > > > > > > > > View the original post : > > > http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3886981#3886981 > > > > Reply to the post : > > > http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3886981 > > > > > > > --- > > SF.Net email is Sponsored by the Better Software > > Conference & EXPO September > > 19-22, 2005 * San Francisco, CA * Development > > Lifecycle Practices > > Agile & Plan-Driven Development * Managing > Projects > > & Teams * Testing & QA > > Security * Process Improvement & Measurement * > > http://www.sqe.com/bsce5sf > > ___ > > JBoss-user mailing list > > JBoss-user@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > > > --- > SF.Net email is Sponsored by the Better Software > Conference & EXPO September > 19-22, 2005 * San Francisco, CA * Development > Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects > & Teams * Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > ___ > JBoss-user mailing list > JBoss-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinf
Re: [JBoss-user] [EJB/JBoss] - Re: Help stuck with JBoss 4.0.2 and MySQL 4.1.13
Surely your ejb-jar.xml file and probably jbosscmp-jdbc.xml files have errors. XML errors and errors caused by the xml not conforming to the .dtd. For example, you have a string "False" after the closing and your ejb-ql tag should enclose the query-method tag. I'd suggest going through your xml and comparing the xml tags and their sequence against the appropriate .dtd. Then finally, pass the xml file against a validating parser to display the remaining error(s) if any. Reading on XML and dtd will help. Allan. --- pittupgd <[EMAIL PROTECTED]> wrote: > Hello, > Even if I return the primary key it gives me the > same error. > I have tried it can you tell me whether the > ejb-jar.xml and jbosscmp-jdc.xml are correct. > > > 10:38:02,093 ERROR [LogInterceptor] > TransactionRolledbackException in method: public > abstract com.cygnet.medina.Hospital.Hospital > com.cygnet.medina.Hospital.HospitalHome.create(com.cygnet.medina.Hospital.HospitalData) > throws > javax.ejb.CreateException,java.rmi.RemoteException, > causedBy: > javax.ejb.EJBException: getGeneratedKeys returned an > empty ResultSet > at > org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCMySQLCreateCommand.executeInsert(JDBCMySQLCreateCommand.java:87) > at > org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.performInsert(JDBCAbstractCreateCommand.java:308) > at > org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.execute(JDBCAbstractCreateCommand.java:138) > at > org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreManager.java:572) > at > org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:222) > at > org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createEntity(CachedConnectionInterceptor.java:266) > at > org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:766) > at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at > java.lang.reflect.Method.invoke(Method.java:324) > at > org.jboss.invocation.Invocation.performCall(Invocation.java:345) > at > org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1113) > > > > View the original post : > http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3886981#3886981 > > Reply to the post : > http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3886981 > > > --- > SF.Net email is Sponsored by the Better Software > Conference & EXPO September > 19-22, 2005 * San Francisco, CA * Development > Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects > & Teams * Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > ___ > JBoss-user mailing list > JBoss-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jboss-user > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Query method not found
You may try specifying the result-type-mapping after your query-method closing tag. Depending on the type of home interface you have/expect for the beans being returned. If remote, the tag may look like so. Remote Allan. --- zaddo <[EMAIL PROTECTED]> wrote: > Hi, > > i implemented a finder method using xDoclet. > > The tag looks like this: > > > | @ejb.finder > | signature="de.fhnon.beans.Kunde > findByLoginData(java.lang.String email, > java.lang.String passwort)" > | query="SELECT DISTINCT OBJECT(a) FROM kunde > a WHERE a.email = ?1 AND a.passwort = ?2" > > Here is the snippet from the ejb-jar: > > | > | > | > findByLoginData > | > | > java.lang.String > | > java.lang.String > | > | > | [CDATA[SELECT DISTINCT > OBJECT(a) FROM kunde a WHERE a.email = ?1 AND > a.passwort = ?2]] > | > | > > When i try to deploy the bean I get the following > exception: > > org.jboss.deployment.DeploymentException: Query > method not found: > findByLoginData(java.lang.String,java.lang.String) > > The method seems to be correctly generated in the > Home Interfaces: > > | public de.fhnon.beans.Kunde > findByLoginData(java.lang.String email, > java.lang.String passwort) > | throws > javax.ejb.FinderException,java.rmi.RemoteException; > | > > Any help is highly appreciated - thank u. > > View the original post : > http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3886602#3886602 > > Reply to the post : > http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3886602 > > > --- > SF.Net email is sponsored by: Discover Easy Linux > Migration Strategies > from IBM. Find simple to follow Roadmaps, > straightforward articles, > informative Webcasts and more! Get everything you > need to get up to > speed, fast. > http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > ___ > JBoss-user mailing list > JBoss-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jboss-user > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Null Primary Key
Have you specified the primary key tag in your ejb declaration? In the original post the ejb-jar.xml xml treelet didn't have it. Allan. --- pittupgd <[EMAIL PROTECTED]> wrote: > Hi spiffer, > I am getting the same error Have u figured out what > the problem was > > View the original post : > http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3886579#3886579 > > Reply to the post : > http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3886579 > > > --- > SF.Net email is sponsored by: Discover Easy Linux > Migration Strategies > from IBM. Find simple to follow Roadmaps, > straightforward articles, > informative Webcasts and more! Get everything you > need to get up to > speed, fast. > http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > ___ > JBoss-user mailing list > JBoss-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jboss-user > Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] [EJB/JBoss] - Unable to create data using CMP 2.0
Strange, you've said you've debugged the Entity bean and found that the pk field has a value perhaps using simple System.out.println(" Value of PK is:"+pk). Check to see there is nowhere in the entity bean code that you may be initializing the pk to null. Ensure that the pk field like other fields to be persisted has public access. And that you've explicitly declared the PK in the EJB's declaration in the ejb-jar.xml Allan. --- pittupgd <[EMAIL PROTECTED]> wrote: > Hi Friends I am using JBoss 4.0.2 and postgres7.2. > > Now my primarykey field is of type java.lang.Long. > I have kept the jdbc and sql type as follows > BIGINT > BIGINT > > When I try to create a record using the CMP I get > the following error > > va.sql.SQLException: ERROR: ExecAppend: Fail to add > null value in not null attribute hospitalid > > at > org.postgresql.Connection.ExecSQL(Connection.java:533) > at > org.postgresql.jdbc2.Statement.execute(Statement.java:294) > at > org.postgresql.jdbc2.Statement.executeUpdate(Statement.java:78) > at > org.postgresql.jdbc2.PreparedStatement.executeUpdate(PreparedStatement.java:122) > at > org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:316) > at > org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCPostgreSQLCreateCommand.executeInsert(JDBCPostgreSQLCreateCommand.java:59) > at > org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.performInsert(JDBCAbstractCreateCommand.java:308) > at > org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.execute(JDBCAbstractCreateCommand.java:138) > at > org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreManager.java:572) > at > org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:222) > at > org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createEntity(CachedConnectionInterceptor.java:266) > at > org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:766) > at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at > java.lang.reflect.Method.invoke(Method.java:324) > at > org.jboss.invocation.Invocation.performCall(Invocation.java:345) > at > org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1113) > at > org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90) > at > org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:192) > at > org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:212) > at > org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90) > at > org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:117) > at > org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61) > at > org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28) > at > org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41) > at > org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:109) > at > org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335) > at > org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146) > > > I have debugged in the EJB and found that the > primary key is not null. > So can anyone tell me what is the problem. > > Thanks in advance. > Cheers > Sameer > > View the original post : > http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3886312#3886312 > > Reply to the post : > http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3886312 > > > --- > SF.Net email is sponsored by: Discover Easy Linux > Migration Strategies > from IBM. Find simple to follow Roadmaps, > straightforward articles, > informative Webcasts and more! Get everything you > need to get up to > speed, fast. > http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > ___ > JBoss-user mailing list > JBoss-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jboss-user > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you ne
Re: [JBoss-user] [Persistence & CMP/JBoss] - special primary key
I could provide you with part 1 of the solution. Your table seems to have a composite primary key comprising of the two foreign keys form countries and languages tables. If this is so, you may need to create a primary key class. Which is basically a java bean containing the two fields (country and language in your case) having public access specifiers in addition your java bean need to implement the Comparable and java.util.Comparator interfaces and also the Serializable interface which doesn't have methods. After this you need to specify this bean class as your primary key class in your ejb-jar.xml deployment descriptor in the region you specify the CMP fields for your EJBs in this case the countrylanguages EJB. Allan. --- grafl <[EMAIL PROTECTED]> wrote: > Hi > I have the following tables: > > -- countries -- > int id (pk) > string name > string shortname > > -- languages -- > int id (pk) > string language > > -- countrylanguages -- > int country (pk) > int language (pk) > > Can somebody give me a CMP entity bean example and > the related xml files for the last table? > > Thank you > > Laszlo > > View the original post : > http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3884499#3884499 > > Reply to the post : > http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3884499 > > > --- > This SF.Net email is sponsored by the 'Do More With > Dual!' webinar happening > July 14 at 8am PDT/11am EDT. We invite you to > explore the latest in dual > core and dual graphics technology at this free one > hour event hosted by HP, > AMD, and NVIDIA. To register visit > http://www.hp.com/go/dualwebinar > ___ > JBoss-user mailing list > JBoss-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jboss-user > __ Do you Yahoo!? Make Yahoo! your home page http://www.yahoo.com/r/hs --- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Simple JAAS Client LoginModule
Hi, I would like to use a simple LoginModule for client side JAAS authentication. I have tried using the LoginModule SampleLoginModule.java available with sun's JAAS tutorial http://java.sun.com/j2se/1.5.0/docs/guide/security/jaas/tutorials/GeneralAcnOnly.html the authentication at the client (SampleLoginModule.java) is successful when I supply the username (testUser), and password (testPassword) but the username and password are never sent to the other LoginModule at the backend (deployed in Jboss). However when I use org.jboss.security.ClientLoginModule in my client application and supply the same username and password as indicated above, the username and password data (login credentials) get transmitted and are available in the LoginModule I've configured/deployed in the Jboss container and the user is successfully authenticated in the second LoginModule seamlessly. The question is; since I'd like to write the LoginModule at the client application based on sun's tutorial SampleLoginModule.java, what do I need to add to the code to ensure the login credentials are sent to the second LoginModule deployed in the Jboss container (as it does when I use org.jboss.security.ClientLoginModule)? I have tried adding the username and password to the LoginModule sharedState variable as shown below in the login() and then in the commit() after successful authentication without much success in both cases. sharedState.put("javax.security.auth.login.name", username); sharedState.put("javax.security.auth.login.password", password); Allan. __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Persisting arrays using CMP in Entity EJBs
This is probably an EJB spec question. I am using PostgreSQL for persistance and it susports array datatype. I would like to know if it is possible to store seamlessly an array in Entity EJBs using CMP. And if so do I simply refer (in the ejb-jar.xml) to the array field as if it was a non-collection field as illustrated below? myArrayField Allan. ___ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Limiting the number of beans returned in the home interfaces multi-entity find methods
I would like to limit the number of EJB object references returned by an entity's home interface's finder method(s) through the corresponding finder method(s) ejb-ql statement. This is my situation. I am developing a module that would process a user defined number of entity EJB that satisfy a specific criterion. This module is in fact an independent client application running outside the EJB container, this means that I will obtain the corresponding EJB objects from the returned EJB object references and package each into a serializable data object. This client application should process the serializable data objects in batches. Example: if the batch size specified by the user during deployment is 5, the client application will obtain the first five qualifying objects, then after processing the batch, it would obtain the next five and process the same and so on. The client application along with the resources used by it (in the EJB container) should have small memory footprint. How can I write this size restrictive ejb-ql query. Is there any other way of achieving the same keeping in mind the size unrestricted ejb-ql query may return a large number (count) of object references. Allan. __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com --- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Limiting the number of beans returned in the home interfaces multi-entity find methods
I would like to limit the number of EJB object references returned by an entity's home interface's finder method(s) through the corresponding finder method(s) ejb-ql statement. This is my situation. I am developing a module that would process a user defined number of entity EJB that satisfy a specific criterion. This module is in fact an independent client application running outside the EJB container, this means that I will obtain the corresponding EJB objects from the returned EJB object references and package each into a serializable data object. This client application should process the serializable data objects in batches. Example: if the batch size specified by the user during deployment is 5, the client application will obtain the first five qualifying objects, then after processing the batch, it would obtain the next five and process the same and so on. The client application along with the resources used by it (in the EJB container) should have small memory footprint. How can I write this size restrictive ejb-ql query. Is there any other way of achieving the same keeping in mind the size unrestricted ejb-ql query may return a large number (count) of object references. Allan. __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com --- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] CMP ejb-ql and Joins
I am trying to write join queries in ejb-ql. This is my situation. I have three CMP entry beans, two of these entity beans are have a many to many relationship, so I created an the third ejb. This new ejb is also a parent of some other ejb. I would like to retrive a Collection or Set of this third ejb from it's home interface depending on some criteria that is dependent on one of the first two (parent) EJBs. I tried each of these ejb-ql statements but I get deployment errors. select object(prs) from ProjectReportingScheduleTimingAlertEJB prs join ProjectReportingScheduleTimingEJB on prs.projectReportingScheduleTimingCode=ProjectReportingScheduleTimingEJB.projectReportingScheduleTimingCode where ProjectReportingScheduleTimingEJB.timing > ?1 and prs.hasSuccessfullyAlerted!=true I have even tried rewriting the query select object(prs2) from ProjectReportingScheduleTimingAlertEJB prs2 where prs2.hasSuccessfullyAlerted ?1) During deployment I get the error: 2003-06-24 14:55:21,405 WARN [org.jboss.system.ServiceController] Problem starting service jboss.j2ee:jndiName=ProjectReportingScheduleEJB,service=EJB org.jboss.deployment.DeploymentException: Error compiling ejbql; - nested throwable: (org.jboss.ejb.plugins.cmp.ejbql.TokenMgrError: Lexical error at line 1, column 106. Encountered: "]" (93), after : "") at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.(JDBCEJBQLQuery.java:46) at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createEJBQLQuery(JDBCCommandFactory.java:44) at org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.start(JDBCQueryManager.java:218) Thank you. Allan __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com --- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] newbie question on JMS and JBOSS
Hi Markus, Indeed it is difficult to explain how to use JMS in an J2EE environment/application like JBOSS by email. This is because one needs to first understand what messaging is, what message driven beans (MDB) are, then how to deploy MDB in an application server such as JBOSS. A good place to start would be to get your hands on Enterprise JavaBeans (3rd Edition) by Richard Monson-Haefel by O'Reilly ISBN: 0596002262. It covers EJB 2.0. It is an excellent book on EJB 2.0 and includes MDB which is part of EJB 2.0 spec. However, the book does not cover EJB 2.1 spec but that is okay as not many application servers implement the EJB 2.1 yet. Allan. --- Markus Jais <[EMAIL PROTECTED]> wrote: > hello > > I am totally new to JBOSS and JMS. After reading the > documentation I found > at jboss.org and java.sun.com I am a bit lost. > > is there some information on how to use the examples > from the JMS tutorial > from Sun together with JBOSS ?? > > I am currently trying to compile the examples but do > not know with jar file > from JBOSS to put in my CLASSPATH necessary to > compile the JMS examples > > Markus > > -- > Markus Jais > Software Developer > GMX Aktiengesellschaft > Riesstraße 17, 80992 München > Phone: +49 89 14 339-514 > mailto:[EMAIL PROTECTED] > http://www.gmx.de > > > > > > --- > This SF.net email is sponsored by: ObjectStore. > If flattening out C++ or Java code to make your > application fit in a > relational database is painful, don't do it! Check > out ObjectStore. > Now part of Progress Software. > http://www.objectstore.net/sourceforge > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com --- This SF.net email is sponsored by: ObjectStore. If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software. http://www.objectstore.net/sourceforge ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] CMR uses the default datasource in stead of the one specifically specified for the CMP 2.0 EJB entity beans concerned
Hi, I faced the same problem some time back and this is how I solved it (on JBoss 3.0.6). My application was using data from PostgreSQL database and I had to access use data residing a M$ SQL 2000 database. I had configured the entire application to use PostgreSQL for CMP persistence. I did this by creating a META-INF/jbosscmp-jdbc.xml containing something like this. java:/PostgresDS PostgreSQL 7.2 true false false 300 true true false foreign-key on-load 1000 * 1000 PBudgetSummaryLineItemYearEJB java:/MSSQLDS MS SQLSERVER2000 PBudgetSummaryLineItemYearEJB true Now all the CMP entity beans in my application are using the PostgreSQL datasource. EXCEPT the PBudgetSummaryLineItemYearEJB CMP entity bean which is using MSSQLDS datasource for persistence. Of course the datasources have to be configured in your JBoss installation. Allan Kamau. --- Jboss Percy <[EMAIL PROTECTED]> wrote: > I use the normal download (with Tomcat integrated) > from the Jboss Site > jboss-3.0.6_tomcat-4.1.18. > Here is the release log. > JBoss Release: JBoss-3.0.6 CVSTag=JBoss_3_0_6 > How and where can I get that latewst release? Is > that build or do I have > to retrieve the sources and build > My own version from a merge? > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Alex > Loubyansky > Sent: maandag 31 maart 2003 13:40 > To: Jboss Percy > Subject: Re: [JBoss-user] CMR uses the default > datasource in stead of > the one specifically specified for the CMP 2.0 EJB > entity beans > concerned > > > What JBoss version are you using? > This was fixed in Branch_3_2 recently. > > alex > > Monday, March 31, 2003, 2:05:25 PM, Jboss Percy > wrote: > > JP> I am new to JBoss and to MySql (although the > problem has not > JP> specifically to do with MySql). I am trying to > port a rather large > JP> application from Borland BES 5.2 to JBoss 3.06 > and ran in a little > JP> problem. The application uses different > databases, which I all > JP> hosted to MySql. Each deployable unit has its > own database with its > JP> own tables. This situation prevents me from > using the simple > JP> solution of setting a single database a default > data source (in the > JP> > \server\default\conf\standardjaws.xml > and > JP> > \server\default\conf\standardjbosscmp-jdbc.xml) > > JP> So I define my multiple data sources in multiple > mysql--service.xml > JP> files (one per database) and configure each of > these services in the > JP> > \server\default\conf\login-config.xml) > > JP> All runs fine except for the CMR. When I create > a new (EJB 2.0 > JP> entity > JP> bean) relation I see that the Hypersonic SQL > driver is selected > in-stead > JP> of the MySql one, although I specifically > specified the datasource > JP> element of EJB 2.0 CMP each entity bean. On top > I cannot specify the > JP> element in the relation (It is > specified in the > > JP> element although but that seems to be ignored in > the relationship > JP> elements that uses these entities). Both > entities that are parts of > the > JP> relation are in the same datasource (read > database). > JP> I can of course also include a > element in the > JP> jbosscmp-jdbc.xml file in the deployed unit but > there again that > would > JP> be for the whole deployable unit (which could > contain may different > JP> entity beans which would not necessarily all use > the same datastore. > My > JP> guess is that the relationships should > automatically inherit > whatever > JP> datastore specification the entity bean to which > the relationship > JP> belongs has. This seems logic as I cannot > understand where the data > JP> should be stored elsewhere as in the same > database as the rest of > the > JP> data of the bean. > > JP> Has anyone an Idea of how to overcome this > problem. > > JP> Thanks for any advance. > > JP> Percy Christian > > JP> [EMAIL PROTECTED] > > > > > --- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of > bandwidth! > No other company gives more support or power for > your dedicated
[JBoss-user] Accessing multiple SQL data sources using queries
Hi, I would like to know if there is any way to reference data from a table in a secondary datasource. My data exists in two data sources, PostgreSQL 7.2 and M$-SQL 2000. I configured the two data sources and I can use CMP to store data into both the data sources through configurations in my META-INF/jbosscmp-jdbc.xml file deployed in my J2EE application and all is well. Some EJB entity beans store (using CMP) and obtain data from one datasource and the other EJB entity beans get obtain and store their data in the other database. My data sources are java:/PostgresDS and java:/MSSQLDS. I am using raw SQL statements to get the data from the databases. I can access data from my default datasource (java:/PostgresDS) using plain SQL queries like so SELECT * FROM PBudgetSummaryLineItemYearEJB where proposalId=? and departmentId=? and userId=? and groupId=? now I would like to know how I can modify the above query to access data from the other datasource java:/MSSQLDS? I am trying not to use CMP for data retrieval using EJB QL. Thank you. __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com --- This SF.net email is sponsored by: Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for? http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] xactisolevel error: PostgreSQL-7.3 and JBOSS-3.0.4
I am experiencing problems running JBoss-3.0.4 using PostgreSQL-7.3 as the database for CMP. It appears PostgreSQL-7.3 doesn't understand "show xactisolevel" command (which is been sent to it by JBoss) unlike PostgreSQL-7.2.x. I've deployed the latest jdbc driver for PostgreSQL-7.3 from jdbc.postgres.org. but the query "show xactisolevel" is still being passed on to the DB causing postgres to throw an error. I don't get any such problems while I use PostgreSQL-7.2.3 as "show xactisolevel" is a valid PostgresSQL-7.2.x command. Now my question is there a way to possibly through one of the configuration .xmls in JBoss that I can make JBoss not pass this query to the backend and instead pass a PostgreSQL-7.3.x alternative to this query? Or how as/can this situation be solved. Thank you. Allan. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss 3.0.x and PostgresDS solved thank you
Thank you Saroj and Dain Sundstrom for his contribution under "Re: [JBossCMP] CMP 2.x 1-to-n in JBoss 2.x alpha" . Following the search in the archives I understand the use of the jbosscmp-jdbc file. Previously, I had changed the jndi-name in postgres-service.xml to 'DefaultDS'. My application is now using postgreSQL 7.2 for persistance and I am not getting any column type errors like mapping to colomn type 'object' in place of 'BYTEA'. my jbosscmp-jdbc now reads as follows. java:/PostgresDS PostgreSQL 7.2 true false false 300 true false false foreign-key on-load 1000 * 1000 Allan Kamau. --- Saroj Kumar <[EMAIL PROTECTED]> wrote: > In file , > > Do it like (For ORACLE): > > java:/OracleDS > > Oracle8 > > > > -Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] On > Behalf Of Allan Kamau > Sent: Monday, August 12, 2002 1:11 PM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] JBoss 3.0.x and PostgresDS > > > I have successfully configured and deployed the > PostgresDS on JBoss-3.0.0 now I seem to be stuck in > getting JBoss use PostgresDS as CMP of my EJBs in > place of the DefaultDS. > What additional configurations are required (is > jboss.xml used in JBoss-3.0.x for the same?) > > Allan. > > > __ > Do You Yahoo!? > HotJobs - Search Thousands of New Jobs > http://www.hotjobs.com > > > --- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > --- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com --- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss 3.0.x and PostgresDS
I have successfully configured and deployed the PostgresDS on JBoss-3.0.0 now I seem to be stuck in getting JBoss use PostgresDS as CMP of my EJBs in place of the DefaultDS. What additional configurations are required (is jboss.xml used in JBoss-3.0.x for the same?) Allan. __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] MSSQLDS and JBoss 3.0
I'd also like to ask, once you have the MSSQLDS running what changes are required in the jboss.xml to make the deployed application use the 'MSSQLDS' in place of the default 'DefaultDS'? Allan --- Jamie Burns <[EMAIL PROTECTED]> wrote: > > > b). I tried writing a client program (classpath > has > > all the client jars of jboss) to connect to the > > DataSource with the jndi name java:/MSSQLDS (this > is > > the jndi name of the MS SQL service as given in > the > > sample MS SQL service file i modified and > deployed. > > It gives Problems in connections and cannot get > the > > naming reference..Is it because of some VM > > restrictions? > > Do you have the 3 MS SQL Server 2000 JDBC driver > jars installed? > > > > > --- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Complex relationships involving relationships to M-to-M EJB relationships
Id like to know how I can create an EJB relationship involving an EJB and a pre-existing relationship (of many to many) of two EJB. I have the following scenario: I have User, Group and Department objects/entities. A User belongs to zero or more groups and a group contains zero or more users. The association of a user and group is then to be associated to one or more departments. In a nutshell a User is given rights and privileges depending on the group they are in. Then the user may then participate in a departments activities depending on the group they belong to. The problem I am facing is that how can I get to treat the association EJB (User-Group) as an EJB so I may then create a many to many relationship between it and the Department EJB using Set collections on the relationship tag (in the ejb-jar.xml) of both the EJBs. Any suggestions are welcomed on how I should model the association between the department and the User-Group, including how my relationship tag in the deployment descriptor may look like. Thanks in advance. Allan. __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com --- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] How do I obtain a connection from the DefaultDS from my session bean
Thanks Jamie Burns, it works. I am wondering how come I don't find the "DefaultDS" entry running on my JBoss-3.0.0 accessing the resource at "http://localhost:8082/"; I only see the "hsqldbDS" entry. When I try use the "hsqldbDS" in place of "DefaultDS" in the code sample below, it doesn't work. Allan. --- "Burns, Jamie" <[EMAIL PROTECTED]> wrote: > I think your code should be > > Context jndiCntx=getInitialContext(); > DataSource ds = > (DataSource)jndiCntx.lookup("java:/DefaultDS"); > > return ds.getConnection(); > > > -Original Message- > > From: Allan Kamau [SMTP:[EMAIL PROTECTED]] > > Sent: Thursday, July 11, 2002 9:02 AM > > To: [EMAIL PROTECTED] > > Subject:[JBoss-user] How do I obtain a connection > from the DefaultDS > > from my session bean > > > > I am trying to obtain a connection from the > DefaultDS, > > but I get the error "DefaultDS not Bound". > > Below is the code I use to try a bind to the > > DefaultDS. > > > > > > private Connection getConnection()throws > SQLException > > { > > try > > { > > > > Context jndiCntx=getInitialContext(); > > Object ref=jndiCntx.lookup("DefaultDS"); > > DataSource > > > ds=(DataSource)javax.rmi.PortableRemoteObject.narrow(ref,DataSource.class) > > ; > > > > > > > > return ds.getConnection(); > > } > > catch(NamingException ne) > > { > > throw new EJBException(ne); > > } > > } > > public static Context getInitialContext() > > throws javax.naming.NamingException { > > > > java.util.Properties env=new > java.util.Properties(); > > > > > env.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingCo > > ntextFactory"); > > > > > env.setProperty("java.naming.provider.url","localhost:1099"); > > > > > env.setProperty("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.i > > nterfaces"); > > InitialContext initialContext = new > > InitialContext(env); > > return initialContext; > > } > > > > Thanks. > > > > > > > > __ > > Do You Yahoo!? > > Sign up for SBC Yahoo! Dial - First Month Free > > http://sbc.yahoo.com > > > > > > > --- > > This sf.net email is sponsored by:ThinkGeek > > PC Mods, Computing goodies, cases & more > > http://thinkgeek.com/sf > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > This electronic mail system is used for > information purposes and is > not intended to form any legal contract or binding > agreement. > The content is confidential and may be legally > privileged. Access > by anyone other than the addressee(s) is > unauthorised and any > disclosure, copying, distribution or any other > action taken in > reliance on it is prohibited and maybe unlawful > > All incoming and outgoing e-mail communications > and attachments > are scanned automatically by software designed to > detect and remove > any material containing viruses or other > unauthorised content. While > we undertake best endeavours to ensure that this > content checking > software is up to date, recipients should take > steps to assure themselves > that e-mails received are secure. > > __ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com --- This sf.net email is sponsored by:ThinkGeek PC Mods, Computing goodies, cases & more http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] How do I obtain a connection from the DefaultDS from my session bean
I am trying to obtain a connection from the DefaultDS, but I get the error "DefaultDS not Bound". Below is the code I use to try a bind to the DefaultDS. private Connection getConnection()throws SQLException { try { Context jndiCntx=getInitialContext(); Object ref=jndiCntx.lookup("DefaultDS"); DataSource ds=(DataSource)javax.rmi.PortableRemoteObject.narrow(ref,DataSource.class); return ds.getConnection(); } catch(NamingException ne) { throw new EJBException(ne); } } public static Context getInitialContext() throws javax.naming.NamingException { java.util.Properties env=new java.util.Properties(); env.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory"); env.setProperty("java.naming.provider.url","localhost:1099"); env.setProperty("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces"); InitialContext initialContext = new InitialContext(env); return initialContext; } Thanks. __ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com --- This sf.net email is sponsored by:ThinkGeek PC Mods, Computing goodies, cases & more http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] CMP in EJB2.0 with Postgres
Thanks so much McAuley, this seems like it will solve my issues. Allan. --- "McAuley, Tim" <[EMAIL PROTECTED]> wrote: > No problem. > > The following is for JBoss beta (not beta 2, current > CVS version) > > Notice the classpath setup. > > Place this file in $JBOSS_HOME\deploy. > Add jdbc7.1-1.2.jar to $JBOSS_HOME\lib\ext > > I think I removed the hsql service file as well from > deploy. I'm not sure > exactly why but it was probably just to speed up the > startup time, but it > may have been to remove the possibility of conflicts > happening, so if you > don't need HSQL, might as well remove it. > > Why did you need jboss.xml? I have included an exert > of it anyway. > > Good luck, and let me know how it goes! > > Cya > > Tim > > > postgres-service.xml > > > > > > > > > > > > > >archives="jdbc7.1-1.2.jar"/> > > > > > > >code="org.jboss.resource.ConnectionFactoryLoader" > > name="jboss:service=ConnectionFactoryLoader,name=PostgresDS"> > name="ManagedConnectionFactoryProperties"> > > ConnectionURL=jdbc:postgresql://server1/testDB > DriverClass=org.postgresql.Driver > UserName=username > Password=password > > name="JndiName">PostgresDS > name="TransactionManagerName">java:/TransactionManager > > > > > > optional-attribute-name="ResourceAdapterName">jboss.jca:service=RARDeploymen > t,name=Minerva JDBC LocalTransaction > ResourceAdapter > optional-attribute-name="ConnectionManagerFactoryLoaderName">jboss.jca:servi > ce=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory > > MinSize=0 > MaxSize=10 > BlockingTimeoutMillis=5000 > IdleTimeoutMinutes=30 > CleanupIntervalMinutes=10 > MaxIdleTimeoutPercent=1.0 > > > > org.jboss.resource.security.ManyToOnePrincipalMapping > > name="PrincipalMappingProperties">UserName=username > > > > --- > > JBoss.xml > --- > > > > > > > > OneEJB > emuse/ejb/OneEJB > > > > > TwoEJB > > emuse/ejb/TwoEJB > > > > > mailbean > > queue/emusemail > > > > > --- > > > > -----Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On > Behalf Of > > Allan Kamau > > Sent: 03 April 2002 13:00 > > To: Marius Kotsbak; > [EMAIL PROTECTED] > > Subject: RE: [JBoss-user] CMP in EJB2.0 with > Postgres > > > > > > McAuley, > > Kindly send me the postgresql-service.xml for > > jboss-3.0.0beta together with details of where to > > place this file and the postgres-jdbc.jar file and > > finally an extract of the jboss.xml file. > > > > Thanks, > > Allan Kamau. > > > > --- Marius Kotsbak <[EMAIL PROTECTED]> wrote: > > > I have used the same file since alpha, so i > don't > > > think it has changed > > > much. Have sent it to him, forgot to add the > list, > > > so could you > > > forward/reply to all it to the list, Allan? > > > > > > On tir, 2002-04-02 at 15:56, McAuley, Tim wrote: > > > > Which version of JBoss are you using? > > > > > > > > My advise is firstly to make sure you're using > a > > > copy of the service file > > > > applicable to the version of JBoss you're > using. > === message truncated === __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] CMP in EJB2.0 with Postgres
Marius, Thanks.One last question, how will my jboss.xml look like. And what name will I use to refer to the datasource. Allan. --- Marius Kotsbak <[EMAIL PROTECTED]> wrote: > jboss-service.xml: (maybe you could call it > postgres-service.xml also) > > > > > > > > > >code="org.jboss.resource.ConnectionFactoryLoader" > > name="BoostCom:service=ConnectionFactoryLoader,name=ConnectDS"> > name="ManagedConnectionFactoryProperties"> > > ConnectionURL=jdbc:postgresql://localhost/connect > UserName=user > Password=pw > DriverClass=org.postgresql.Driver > > name="JndiName">connect/ConnectDS > name="TransactionManagerName">java:/TransactionManager > > optional-attribute-name="ResourceAdapterName">jboss.jca:service=RARDeployment,name=Minerva > JDBC LocalTransaction ResourceAdapter > optional-attribute-name="ConnectionManagerFactoryLoaderName">jboss.jca:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory > > MinSize=0 > MaxSize=10 > BlockingTimeoutMillis=5000 > IdleTimeoutMinutes=30 > CleanupIntervalMinutes=10 > MaxIdleTimeoutPercent=1.0 > > > > > org.jboss.resource.security.ManyToOnePrincipalMapping > > name="PrincipalMappingProperties">userName=connect > > > > place this file in the deploy-directory (after > copying the postgres > jdbc-driver (.jar) into the jboss-3.0.0beta2/lib, > and restarted jboss) > > > > On Wed, 2002-04-03 at 14:00, Allan Kamau wrote: > > McAuley, > > Kindly send me the postgresql-service.xml for > > jboss-3.0.0beta together with details of where to > > place this file and the postgres-jdbc.jar file and > > finally an extract of the jboss.xml file. > > > > Thanks, > > Allan Kamau. > > > > --- Marius Kotsbak <[EMAIL PROTECTED]> wrote: > > > I have used the same file since alpha, so i > don't > > > think it has changed > > > much. Have sent it to him, forgot to add the > list, > > > so could you > > > forward/reply to all it to the list, Allan? > > > > > > On tir, 2002-04-02 at 15:56, McAuley, Tim wrote: > > > > Which version of JBoss are you using? > > > > > > > > My advise is firstly to make sure you're using > a > > > copy of the service file > > > > applicable to the version of JBoss you're > using. > > > > > > > > - Make a copy of hsqldb-default-service.xml > and > > > rename it to > > > > postgres-service.xml. > > > > - Modify the relevent sections for use with > > > Postgres i.e. > > > > - jdbc driver, datasource name (if not > default) > > > > - database to access, and username password > > > > (possibly the location of the postgres jar > file > > > needs to be added > > > > in). > > > > > > > > If you let me know what version of JBoss you > have, > > > I might be able to send > > > > you a copy of my postgres service file. I have > > > been using alpha, beta and > > > > beta2 (26/03) > > > > > > > > Tim > > > > > > > > > > > > > > > > > > I havent been successful in get PostgreSQL > to be > > > used > > > > > for CMP in my entity EJB running on JBoss > 3.0.0. > > > > > Can anyone show some light in the areas I am > may > > > have > > > > > overlooked or if possible a step by step > listing > > > of > > > > > what I is required to get PostgreSQL being > used > > > for > > > > > CMP. > > > > > Thank you all in advance. > > > > > > > > > > Allan Kamau. > > > > > > > > > > > > > > ___ > > > > JBoss-user mailing list > > > > [EMAIL PROTECTED] > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > > > > > ___ > > > JBoss-user mailing list > > > [EMAIL PROTECTED] > > > > > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > __ > > Do You Yahoo!? > > Yahoo! Tax Center - online filing with TurboTax > > http://taxes.yahoo.com/ > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] CMP in EJB2.0 with Postgres
McAuley, Kindly send me the postgresql-service.xml for jboss-3.0.0beta together with details of where to place this file and the postgres-jdbc.jar file and finally an extract of the jboss.xml file. Thanks, Allan Kamau. --- Marius Kotsbak <[EMAIL PROTECTED]> wrote: > I have used the same file since alpha, so i don't > think it has changed > much. Have sent it to him, forgot to add the list, > so could you > forward/reply to all it to the list, Allan? > > On tir, 2002-04-02 at 15:56, McAuley, Tim wrote: > > Which version of JBoss are you using? > > > > My advise is firstly to make sure you're using a > copy of the service file > > applicable to the version of JBoss you're using. > > > > - Make a copy of hsqldb-default-service.xml and > rename it to > > postgres-service.xml. > > - Modify the relevent sections for use with > Postgres i.e. > > - jdbc driver, datasource name (if not default) > > - database to access, and username password > > (possibly the location of the postgres jar file > needs to be added > > in). > > > > If you let me know what version of JBoss you have, > I might be able to send > > you a copy of my postgres service file. I have > been using alpha, beta and > > beta2 (26/03) > > > > Tim > > > > > > > > > > I havent been successful in get PostgreSQL to be > used > > > for CMP in my entity EJB running on JBoss 3.0.0. > > > Can anyone show some light in the areas I am may > have > > > overlooked or if possible a step by step listing > of > > > what I is required to get PostgreSQL being used > for > > > CMP. > > > Thank you all in advance. > > > > > > Allan Kamau. > > > > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] CMP in EJB2.0 with Postgres
I havent been successful in get PostgreSQL to be used for CMP in my entity EJB running on JBoss 3.0.0. Can anyone show some light in the areas I am may have overlooked or if possible a step by step listing of what I is required to get PostgreSQL being used for CMP. Thank you all in advance. Allan Kamau. --- Andrew Scherpbier <[EMAIL PROTECTED]> wrote: > Put your postgres-service.xml file in the deploy > directory. (or > server/default/deploy if you're using a more recent > beta of 3.0) > Don't forget to put the JDBC driver in that > directory as well... > > Allan Kamau wrote: > > >I am unable to use postgreSQL for CMP of my EJB2.0 > >bean. > >I have looked at Gnacio Coloma's > postgres-service.xml > >but I'd like to know where to save this file or the > >contents of this file. And also any other > >configuration required. > >Thank you all. > >Allan. > > > >__ > >Do You Yahoo!? > >Yahoo! Movies - coverage of the 74th Academy > Awards® > >http://movies.yahoo.com/ > > > >___ > >JBoss-user mailing list > >[EMAIL PROTECTED] > >https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > -- > Andrew Scherpbier, CTO ([EMAIL PROTECTED]) > BlackBall Music (http://www.blackballmusic.com/) > > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://http://taxes.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] CMP of EJB2.0 with Postgres
I am unable to use postgreSQL for CMP of my EJB2.0 bean. I have looked at Gnacio Coloma's postgres-service.xml but I'd like to know where to save this file or the contents of this file. And also any other configuration required. Thank you all. Allan. __ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Compiling Haefel's example EJB 2.0 .java files in JBoss 3
Dirk Krummacker, Thanks so much it worked. And sorry it was indeed a typing error on my part. Allan Kamau. --- Dirk Krummacker <[EMAIL PROTECTED]> wrote: > 1) change 'returns' to 'return' > 2) the method name is "setId", not "setID" > > HTH, > > Dirk > > -Original Message- > From: Allan Kamau [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 19, 2002 8:41 AM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Compiling Haefel's example EJB > 2.0 .java files in > JBoss 3 > > > I have tried compiling the example EJB application > list in Richard Monson-Haefel's book. > The application consists of the following *.java > files > i)CabinHomeRemote > ii)CabinHome > iii)CabinBean > > I am using the command below to compile. > "javac -classpath > %JBOSS_DIST%\client\jbosssx-client.jar;%JBOSS_DIST%\client\jboss-j2ee.jar;%JBOSS_DIST%\client\jboss-client.jar; > com\burudani\cabin\*.java" > > I get errors below. > > com\burudani\cabin\CabinBean.java:9: not a statement > returns null; > ^ > com\burudani\cabin\CabinBean.java:9: ';' expected > returns null; > ^ > com\burudani\cabin\CabinBean.java:8:cannot resolve > symbol > symbol : method setID (java.lang.Integer) > location: class com.burudani.cabin.CabinBean > this.setID(id); > ^ > 3 errors > > Attached find the *.java files > > > > __ > Do You Yahoo!? > Yahoo! Sports - live college hoops coverage > http://sports.yahoo.com/ > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Compiling Haefel's example EJB 2.0 .java files in JBoss 3
I have tried compiling the example EJB application list in Richard Monson-Haefel's book. The application consists of the following *.java files i)CabinHomeRemote ii)CabinHome iii)CabinBean I am using the command below to compile. "javac -classpath %JBOSS_DIST%\client\jbosssx-client.jar;%JBOSS_DIST%\client\jboss-j2ee.jar;%JBOSS_DIST%\client\jboss-client.jar; com\burudani\cabin\*.java" I get errors below. com\burudani\cabin\CabinBean.java:9: not a statement returns null; ^ com\burudani\cabin\CabinBean.java:9: ';' expected returns null; ^ com\burudani\cabin\CabinBean.java:8:cannot resolve symbol symbol : method setID (java.lang.Integer) location: class com.burudani.cabin.CabinBean this.setID(id); ^ 3 errors Attached find the *.java files __ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ com.zip Description: com.zip
RE: [JBoss-user] JBoss/Linux thread probs
Thanks Owen, I've had this problem running tests on JBoss from a client creating many threads accessing an EJB in JBoss. I think this will solve my problem. Allan. --- Owen <[EMAIL PROTECTED]> wrote: > In run.sh; incidentally I've found that on some > Linux boxes (slackware) I've had to > resort to using -classic to stop certain libraries > from seg faulting all the time (Xerces > and Ant). > > hth > Owen > > On 28 Sep 2001 at 3:22, Allan Kamau wrote: > > > Where (in what file) does one remove the "-server" > > option. > > > > Allan > > --- Mica Cooper <[EMAIL PROTECTED]> wrote: > > > JBoss/Linux thread probsThe -server affects the > > > runtime compilation of the > > > 20% of java code that is interpreted. It is > supposed > > > to optimize it for > > > running over and over. For instance a loop that > gets > > > executed 15000 times > > > will get compiled on the fly. I would not use it > > > though. I found that my > > > servers VM would occasionally just die with no > > > message except that a java > > > error had occurred that needed to be logged with > > > Sun. Remove the -server and > > > presto, the error went away. Note: this was on > > > Win2K, Weblogic5.1, and JDK > > > 1.3.0. > > > > -- > Owen Green > Software Developer, Unique Interactive > 50 Lisson St, London, NW1 5DF > [EMAIL PROTECTED] > http://www.uniqueinteractive.co.uk > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss/Linux thread probs
Thanks Owen, I've had this problem running tests on JBoss from a client creating many threads accessing an EJB in JBoss. I think this will solve my problem. Allan. --- Owen <[EMAIL PROTECTED]> wrote: > In run.sh; incidentally I've found that on some > Linux boxes (slackware) I've had to > resort to using -classic to stop certain libraries > from seg faulting all the time (Xerces > and Ant). > > hth > Owen > > On 28 Sep 2001 at 3:22, Allan Kamau wrote: > > > Where (in what file) does one remove the "-server" > > option. > > > > Allan > > --- Mica Cooper <[EMAIL PROTECTED]> wrote: > > > JBoss/Linux thread probsThe -server affects the > > > runtime compilation of the > > > 20% of java code that is interpreted. It is > supposed > > > to optimize it for > > > running over and over. For instance a loop that > gets > > > executed 15000 times > > > will get compiled on the fly. I would not use it > > > though. I found that my > > > servers VM would occasionally just die with no > > > message except that a java > > > error had occurred that needed to be logged with > > > Sun. Remove the -server and > > > presto, the error went away. Note: this was on > > > Win2K, Weblogic5.1, and JDK > > > 1.3.0. > > > > -- > Owen Green > Software Developer, Unique Interactive > 50 Lisson St, London, NW1 5DF > [EMAIL PROTECTED] > http://www.uniqueinteractive.co.uk > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss/Linux thread probs
Where (in what file) does one remove the "-server" option. Allan --- Mica Cooper <[EMAIL PROTECTED]> wrote: > JBoss/Linux thread probsThe -server affects the > runtime compilation of the > 20% of java code that is interpreted. It is supposed > to optimize it for > running over and over. For instance a loop that gets > executed 15000 times > will get compiled on the fly. I would not use it > though. I found that my > servers VM would occasionally just die with no > message except that a java > error had occurred that needed to be logged with > Sun. Remove the -server and > presto, the error went away. Note: this was on > Win2K, Weblogic5.1, and JDK > 1.3.0. > > Mica Cooper > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On > Behalf Of Herve Tchepannou > Sent: Thursday, September 27, 2001 2:57 PM > To: [EMAIL PROTECTED] > Subject: RE: [JBoss-user] JBoss/Linux thread probs > > > What's the theorical difference between having the > -server set or not? > > Does anyone know how to monitor JBoss? I tryed to > run monitor.jar, but > that app does nothing :-( > > Is there any JBoss develloper who can explain me > why JBoss use that much > threads?? > Once again, what will be the best JBoss config for > develloping on Linux > (in terms of GC, caching and pooling)? > > -Original Message- > From: Bill Burke [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 27, 2001 3:10 PM > To: [EMAIL PROTECTED] > Subject: RE: [JBoss-user] JBoss/Linux thread > probs > > > We experienced some weird shit with Linux 7.1, > jdk 1.3.1 and JBoss > 2.2.2. It may be related. We saw huge amounts of > memory being allocated > for no apparent reason. We reverted to jdk1.3.0 and > everything worked fine. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On > Behalf Of Ferguson, Doug > Sent: Thursday, September 27, 2001 2:50 PM > To: '[EMAIL PROTECTED]' > Subject: RE: [JBoss-user] JBoss/Linux thread > probs > > > One thing I noticed is that the -server > options sucks.. trying > removing that.. > > d. > -Original Message- > From: Herve Tchepannou > [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 27, 2001 12:21 PM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] JBoss/Linux thread > probs > > > Im develloping my app on Linux RH 6.2/JBoss > 2.4 and HypersonicSQL. > My app has: > - 4 session beans > - 6 entity beans using CMP > - 4 MDB > - 120 test cases. > When I start JBoss, they are 48 threads that > are spawned. > When I run all my test cases the 1st time , > 230 threads are spawned > the 2nd time 340 threads > the 3rd time 500 threads > until my JBoss crashed because too many > processed are spawned. > > I understand that Linux thread managemenent > is not the best, but how > can I configure my JBoss > in order to reduce that threading behaviour > (gc config? caching > size? pool size?). Does anyone has a clue? > > By the way, when I run my test-cases on > Win2K, I have no prob.. > > > > Herve Tchepannou > Software Engineer > Objexis Coorporation > Phone: (514) 932 3295 Ext. 231 > mailto:[EMAIL PROTECTED] > > Objexis Coorporation > http://www.objexis.com > 1635 Sherbrooke West, Suite #405 > Montreal, Qc H3H 1E2 > Tel: 514.932.3295 > Fax: 514.932.4639 > http://www.objexis.com > > Important - This message may contain > privileged and confidential > information. It is intended only for the use of the > individual(s) named > above. If the reader of this message is not the > intended recipient you are > hereby notified that any use, dissemination, > distribution or reproduction of > this message is prohibited. If you have received > this message in error > please notify Objexis Corporation immediately and > promptly delete this > message and any copies thereof. Any views expressed > in this message are > those of the individual sender and may not > necessarily reflect the views of > Objexis Corporation. > > __ Do You Yahoo!? Listen to your Yahoo! Mail messages from any phone. http://phone.yahoo.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Increasing the thread limit in RH 7.1
Hi all, I'd like to increase the number of threads in my RedHat 7.1 and RedHat 6.2 to a value way above 200. I think I have seen someone ask this question some time back but I didn't see the answer to it. Allan. __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Increasing the thread limit in RH 7.1
--- Mariano Kamp <[EMAIL PROTECTED]> wrote: > Hi Dragos, > > thanks for your support. It is working now. > > But now, the auto-deploy is not working anymore. > When copying files to the > conf directory then the jar files are not picked up > by JBoss. How can I check > what the reasons for that are? None of the logfiles > contain error messages. I > removed the existing jars, recompiled and redeployed > them but Jboss is not > picking them up as it did yesterday ;-) > > Mariano > > On Friday 14 September 2001 14:54, Dragos Haiduc > wrote: > > Mariano, > > > > This is the class you should use in the jboss.jcml > file in JBoss 2.4 for > > DataSource creation , not the one mentioned by > you: > > org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl > > Best, > > > > Dragos > > > > > > -Ursprüngliche Nachricht- > > Von: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]Im > Auftrag von Mariano > > Kamp > > Gesendet: Freitag, 14. September 2001 10:25 > > An: [EMAIL PROTECTED] > > Betreff: Re: [JBoss-user] Class Not Found > Exception: > > > org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl > > > > > > Sebastian, > > > > thanks for caring. > > > > Kind of ;-) I have it in the ext/lib directory > of my JDK. And the > > postgres driver was loaded. The class not loaded > is the > > > org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl. > > > > Does anybody know from which jar file this > should come? > > > > Mariano > > > > On Thursday 13 September 2001 16:42, Sebastian > Hauer wrote: > > > Hi Mariano, > > > > > > Mariano Kamp wrote: > > > > I tried to setup a postgres datasource. > Unfortunately the log says > > > > that it doesn't find the am class. > > > > > > > > I am using jboss 2.4.1. Do I have to add a > particular jar to the > > > > installation? > > > > > > did you copy the PostgreSQL jdbc driver to the > $JBOSS_HOME/lib/ext > > > directory? > > > > > > Bye, > > > > > > Sebastian > > > > > > ___ > > > JBoss-user mailing list > > > [EMAIL PROTECTED] > > > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > Content-Type: text/html; charset="iso-8859-1"; > name="Attachment: 1" > Content-Transfer-Encoding: quoted-printable > Content-Description: > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Two copies of Jboss2.4.1/tomcat3.2.3 on the same machine
Hi, I think you can. However it may require changing of one the JBoss/TC installation ports. In this installation change the port which Tomcat listens to something other than the default port or to a port not been listened by the other TC installation. Then do the same for the JNDI from 1099 to another port not been used by another process. Then of course you have to make neccessary changes to let the JBoss installation to know which port TC is running on and so on. Allan. --- [EMAIL PROTECTED] wrote: > Hi, > > I'm trying two run two instances of > Jboss2.4.1/tomcat3.2.2 on the same > machine, can anyone define the configuration files > that need to be updated. > > Cheers > > TC > > > Tony Cadogan > > Technology > > Tel: 020 7574 8120 > > Fax: 020 7574 8141 > > Mobile: > > E Mail: [EMAIL PROTECTED] > > > > Halifax Group Treasury & Wholesale Banking > > 33 Old Broad Street > > London > > EC2N 1HZ > > > > Halifax Group Treasury & Wholesale Banking is a > division of Halifax plc. > > Registered in England No. 2367076. Registered > Office: Trinity Road, > > Halifax, West Yorkshire HX1 2RG > > > > > > > > > > -- > Halifax Group Treasury & Wholesale Banking is a > division of Halifax plc. Registered in England No. > 2367076. Registered Office: Trinity Road, Halifax, > West Yorkshire HX1 2RG. > > == > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] RE:My app deploys but lookup from servlet won't work ! HELP!
I've been searching for an answer to the same problem (with exactly the same senerio: where a client other than a servlet is accessing the ejb just fine) for a couple of weeks. If you get a solution please let me know. Allan Kamau. --- damian guy <[EMAIL PROTECTED]> wrote: > Hi, > > Can anyone tell me how to fix the problem outlined > below? > > Thanks, > Damian > -- > FROM: philips.com > DATE: 07/18/2001 08:53:43 > SUBJECT: [JBoss-user] My app deploys but lookup > from servlet won't > work ! HELP ! > > > Hello, > > I'm a newbye with JBoss and J2EE deployment and > it's the first web-app > I try > to deploy with JBoss ans EmbeddedTomcat (JBoss 2.2 > + Tomcat 3.2.1). > > I have made following archives : >- First, a jar containg my session beans and > the enitty > interfaces > they're using (entites are in >another jar). When I test this SB with a > simple client, it works > well > (without the following archives). >- Then, a war containg my servlets, web pages > and the interfaces > of session beans. >- Finally, a ear archive with an > application.xml for my modules. > > During the deployment of this ear archive, > everything seems to go > well. > I've got this messages : > ... > [Auto deploy] Auto deploy of > file:/C:/Devlpt/jboss-2.2/deploy/frontend.ear > [J2EE Deployer Default] Deploy J2EE application: > file:/C:/Devlpt/jboss-2.2/deploy/frontend.ear > [J2EE Deployer Default] Create application > frontend.ear > [J2EE Deployer Default] inflate and install module > web-app.war > [J2EE Deployer Default] install module ejb-app.jar > [J2EE Deployer Default] add all ejb jar files to > the common classpath > [J2EE Deployer Default] Starting module > web-app.war > 2001-07-18 05:34:19 - ContextManager: Adding > context Ctx( /frontend ) > [Container factory] > Deploying:file:/C:/Devlpt/jboss-2.2/tmp/deploy/Default/frontend.ear > [Verifier] Verifying > file:/C:/Devlpt/jboss-2.2/tmp/deploy/Default/frontend.ear/ejb1002.jar > [Verifier] > Bean : SphfGeneratorBean > Method : public abstract SphfGenerator create() > throws > CreateException, RemoteException > Section: 6.10.6 > Warning: The method return values in the home > interface must be of > valid > types for RMI/IIOP. > [Container factory] Deploying SphfGeneratorBean > [Container factory] Deployed application: > file:/C:/Devlpt/jboss-2.2/tmp/deploy/Default/frontend.ear > [J2EE Deployer Default] J2EE application: > file:/C:/Devlpt/jboss-2.2/deploy/frontend.ear > is deployed. > ... > > This warning doesn't bother me (first time i > deploy my session beans, > i > already get it but everything was fine). > When I launch my simple client, everything works > fine ! > > But, when I try a servlet, I've got the following > exception thrown : > > 2001-07-18 05:34:39 - Ctx( /frontend ): Exception > in: R( /frontend + > /servlet/DisplayPlansServlet > + null) - java.lang.NoClassDefFoundError: $Proxy6 > at > sun.reflect.GeneratedSerializationConstructorAccessor66.newInstance(Unknown > Source) > at > java.lang.reflect.Constructor.newInstance(Unknown > Source) > at > java.io.ObjectStreamClass.newInstance(Unknown > Source) > at > java.io.ObjectInputStream.readOrdinaryObject(Unknown > Source) > at > java.io.ObjectInputStream.readObject0(Unknown > Source) > at > java.io.ObjectInputStream.readObject(Unknown Source) > at java.rmi.MarshalledObject.get(Unknown > Source) > at > org.jnp.interfaces.NamingContext.lookup(NamingContext.java:299) > at > org.jnp.interfaces.NamingContext.lookup(NamingContext.java:279) > at > javax.naming.InitialContext.lookup(Unknown Source) > at > pcc.intranet.frontend.sphf.servlet.DisplayPlansServlet.init(pcc/intranet/frontend/sphf/servlet/DisplayPlansServlet.java:87) > at > org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) > . > > The code in my servlet is just a lookup to my > session bean (and > interface > classes are in Web-inf/classes). > Why does it thrown a NoClassDefFound Error ? What > is the $Proxy6 class > ? > I've tried to package my application more properly > by putting the > sessions > interfaces into another jar and by adding > a Class-Path entry to the manifest of my web > module bu
Re: [JBoss-user] Problems accessing an ejb from a servlet.
Hi all, I have copied all the .jar files for the $JBOSS_HOME/client to the lib folder of the tomcat-3.2.2 context serving the client ejb servlet. Now where I am I going wrong. Thank you in advance. Allan Kamau. --- Allan Kamau <[EMAIL PROTECTED]> wrote: > I am reposting this question after unsuccessful > debugging. I have learnt one thing though, the line > "Got Context" is been executed then the exception > gets > thrown as I never get to see the line "Got > reference". > I think the problem could be in the way I have set > the > environmental variables. > Thanks in advance > Allan Kamau. > > --- Allan Kamau <[EMAIL PROTECTED]> wrote: > > I am running tomcat and JBoss separately. And I > > would > > like to access an ejb from a servlet just as my > > client > > application did. > > > > I tried the ejb interest example and it worked > just > > fine. > > The client application was able to communicated > with > > a > > remote ejb. I modified this client application > into > > a > > servlet and complied it just fine. > > During execution, the servlet throws the exception > > below. Sure JBoss was running as I did > successfully > > run the usual client application. > > Then copied the > jbosssx-client.jar,jboss-client.jar, > > jnp-client.jar and even the jaas.jar and ejb.jar > > files > > into tomcats lib directory, but the error > persisted > > (even after restarting tomcat). > > > > Error javax.naming.NoInitialContextException: > Cannot > > instantiate class: > > org.jnp.interfaces.NamingContextFactory [Root > > exception is java.lang.ClassNotFoundException: > > org.jnp.interfaces.NamingContextFactory] > > > > The servlet looks like this. > > (see attachment). > > > > > > > > __ > > Do You Yahoo!? > > Get personalized email addresses from Yahoo! Mail > > http://personal.mail.yahoo.com/> package > com.burudani.interest; > > import java.util.Properties; > > import javax.rmi.PortableRemoteObject; > > import javax.naming.*; > > import com.burudani.interest.Interest; > > import com.burudani.interest.InterestHome; > > import java.io.*; > > import java.text.*; > > import java.util.*; > > import javax.servlet.http.*; > > import javax.servlet.*; > > > > > > > > public class InterestClientServlet extends > > HttpServlet > > { > > private void executeServer(String > > JavaNamingProviderURLValue,String > > JndiContextLookupValue,PrintWriter out) > > { > > out.println("inside executeServer()"); > > String JavaNamingProviderURL="localhost:1099"; > > String JndiContextLookup="Interest"; > > Date ServerDate=new Date(); > > SimpleDateFormat sdf; > > sdf=new SimpleDateFormat("dd MMM > hh:mm:ss:ms > > zzz"); > > try > > { > > /*System.out.println("Set the > > \"java.naming.provider.url\""); > > BufferedReader br=new BufferedReader (new > > InputStreamReader(System.in)); > > String str="";int i; > > for (i=0;i<1;i++) > > str=br.readLine(); > > JavaNamingProviderURL=str; > > System.out.println("Enter the lookup jndi Name > > of remote object"); > > br=new BufferedReader (new > > InputStreamReader(System.in)); > > for (i=0;i<1;i++) > > str=br.readLine(); > > */ > > > > JavaNamingProviderURL=JavaNamingProviderURLValue; > > JndiContextLookup=JndiContextLookupValue; > > out.println("Setting the > > \"java.naming.provider.url\""); > > out.println(JavaNamingProviderURL); > > out.println("Setting the lookup jndi Name of > > remote object"); > > out.println(JndiContextLookup); > > } > > catch(Excepti
Re: [JBoss-user] Problems accessing an ejb from a servlet.
I am reposting this question after unsuccessful debugging. I have learnt one thing though, the line "Got Context" is been executed then the exception gets thrown as I never get to see the line "Got reference". I think the problem could be in the way I have set the environmental variables. Thanks in advance Allan Kamau. --- Allan Kamau <[EMAIL PROTECTED]> wrote: > I am running tomcat and JBoss separately. And I > would > like to access an ejb from a servlet just as my > client > application did. > > I tried the ejb interest example and it worked just > fine. > The client application was able to communicated with > a > remote ejb. I modified this client application into > a > servlet and complied it just fine. > During execution, the servlet throws the exception > below. Sure JBoss was running as I did successfully > run the usual client application. > Then copied the jbosssx-client.jar,jboss-client.jar, > jnp-client.jar and even the jaas.jar and ejb.jar > files > into tomcats lib directory, but the error persisted > (even after restarting tomcat). > > Error javax.naming.NoInitialContextException: Cannot > instantiate class: > org.jnp.interfaces.NamingContextFactory [Root > exception is java.lang.ClassNotFoundException: > org.jnp.interfaces.NamingContextFactory] > > The servlet looks like this. > (see attachment). > > > > __ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail > http://personal.mail.yahoo.com/> package com.burudani.interest; > import java.util.Properties; > import javax.rmi.PortableRemoteObject; > import javax.naming.*; > import com.burudani.interest.Interest; > import com.burudani.interest.InterestHome; > import java.io.*; > import java.text.*; > import java.util.*; > import javax.servlet.http.*; > import javax.servlet.*; > > > > public class InterestClientServlet extends > HttpServlet > { > private void executeServer(String > JavaNamingProviderURLValue,String > JndiContextLookupValue,PrintWriter out) > { > out.println("inside executeServer()"); > String JavaNamingProviderURL="localhost:1099"; > String JndiContextLookup="Interest"; > Date ServerDate=new Date(); > SimpleDateFormat sdf; > sdf=new SimpleDateFormat("dd MMM hh:mm:ss:ms > zzz"); > try > { > /*System.out.println("Set the > \"java.naming.provider.url\""); > BufferedReader br=new BufferedReader (new > InputStreamReader(System.in)); > String str="";int i; > for (i=0;i<1;i++) > str=br.readLine(); > JavaNamingProviderURL=str; > System.out.println("Enter the lookup jndi Name > of remote object"); > br=new BufferedReader (new > InputStreamReader(System.in)); > for (i=0;i<1;i++) > str=br.readLine(); > */ > > JavaNamingProviderURL=JavaNamingProviderURLValue; > JndiContextLookup=JndiContextLookupValue; > out.println("Setting the > \"java.naming.provider.url\""); > out.println(JavaNamingProviderURL); > out.println("Setting the lookup jndi Name of > remote object"); > out.println(JndiContextLookup); > } > catch(Exception ioe) > { > System.out.println("Problems reading your values > "+ioe.toString()); > } > //set up the naming provider, this may not be > necessary, depending on how your Java system is > configured. > Properties env=new Properties(); > > env.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory"); > > //env.setProperty("java.naming.provider.url","localhost:1099"); > > env.setProperty("java.naming.provider.url",JavaNamingProviderURL); > > env.setProperty("java.nami
[JBoss-user] Problems accessing an ejb from a servlet.
I am running tomcat and JBoss separately. And I would like to access an ejb from a servlet just as my client application did. I tried the ejb interest example and it worked just fine. The client application was able to communicated with a remote ejb. I modified this client application into a servlet and complied it just fine. During execution, the servlet throws the exception below. Sure JBoss was running as I did successfully run the usual client application. Then copied the jbosssx-client.jar,jboss-client.jar, jnp-client.jar and even the jaas.jar and ejb.jar files into tomcats lib directory, but the error persisted (even after restarting tomcat). Error javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory] The servlet looks like this. (see attachment). __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ package com.burudani.interest; import java.util.Properties; import javax.rmi.PortableRemoteObject; import javax.naming.*; import com.burudani.interest.Interest; import com.burudani.interest.InterestHome; import java.io.*; import java.text.*; import java.util.*; import javax.servlet.http.*; import javax.servlet.*; public class InterestClientServlet extends HttpServlet { private void executeServer(String JavaNamingProviderURLValue,String JndiContextLookupValue,PrintWriter out) { out.println("inside executeServer()"); String JavaNamingProviderURL="localhost:1099"; String JndiContextLookup="Interest"; Date ServerDate=new Date(); SimpleDateFormat sdf; sdf=new SimpleDateFormat("dd MMM hh:mm:ss:ms zzz"); try { /*System.out.println("Set the \"java.naming.provider.url\""); BufferedReader br=new BufferedReader (new InputStreamReader(System.in)); String str="";int i; for (i=0;i<1;i++) str=br.readLine(); JavaNamingProviderURL=str; System.out.println("Enter the lookup jndi Name of remote object"); br=new BufferedReader (new InputStreamReader(System.in)); for (i=0;i<1;i++) str=br.readLine(); */ JavaNamingProviderURL=JavaNamingProviderURLValue; JndiContextLookup=JndiContextLookupValue; out.println("Setting the \"java.naming.provider.url\""); out.println(JavaNamingProviderURL); out.println("Setting the lookup jndi Name of remote object"); out.println(JndiContextLookup); } catch(Exception ioe) { System.out.println("Problems reading your values "+ioe.toString()); } //set up the naming provider, this may not be necessary, depending on how your Java system is configured. Properties env=new Properties(); env.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory"); //env.setProperty("java.naming.provider.url","localhost:1099"); env.setProperty("java.naming.provider.url",JavaNamingProviderURL); env.setProperty("java.naming.factory.url.pkgs","org.jboss.naming"); try { InitialContext jndiContext=new InitialContext(env); out.println("Got context"); //Object ref=jndiContext.lookup("Interest"); Object ref=jndiContext.lookup(JndiContextLookup); out.println("Got Reference"); //Get a reference from this to the Bean's Home interface. InterestHome home=(InterestHome)PortableRemoteObject.narrow(ref,InterestHome.class); //Create an Interest Object using the Home Interface Interest interest=home.create(); ServerDate=interest.getServerDate(); System.out.println("Server date is "+sdf.format(ServerDate));
[JBoss-user] Problems accessing an ejb from a servlet.
I am running tomcat and JBoss separately. And I would like to access an ejb from a servlet just as my client application did. I tried the ejb interest example and it worked just fine. The client application was able to communicated with a remote ejb. I modified this client application into a servlet and complied it just fine. During execution, the servlet throws the exception below. Sure JBoss was running as I did successfully run the usual client application. Then copied the jbosssx-client.jar,jboss-client.jar, jnp-client.jar and even the jaas.jar and ejb.jar files into tomcats lib directory, but the error persisted (even after restarting tomcat). Error javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory] The servlet looks like this. (see attachment). __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ package com.burudani.interest; import java.util.Properties; import javax.rmi.PortableRemoteObject; import javax.naming.*; import com.burudani.interest.Interest; import com.burudani.interest.InterestHome; import java.io.*; import java.text.*; import java.util.*; import javax.servlet.http.*; import javax.servlet.*; public class InterestClientServlet extends HttpServlet { private void executeServer(String JavaNamingProviderURLValue,String JndiContextLookupValue,PrintWriter out) { out.println("inside executeServer()"); String JavaNamingProviderURL="localhost:1099"; String JndiContextLookup="Interest"; Date ServerDate=new Date(); SimpleDateFormat sdf; sdf=new SimpleDateFormat("dd MMM hh:mm:ss:ms zzz"); try { /*System.out.println("Set the \"java.naming.provider.url\""); BufferedReader br=new BufferedReader (new InputStreamReader(System.in)); String str="";int i; for (i=0;i<1;i++) str=br.readLine(); JavaNamingProviderURL=str; System.out.println("Enter the lookup jndi Name of remote object"); br=new BufferedReader (new InputStreamReader(System.in)); for (i=0;i<1;i++) str=br.readLine(); */ JavaNamingProviderURL=JavaNamingProviderURLValue; JndiContextLookup=JndiContextLookupValue; out.println("Setting the \"java.naming.provider.url\""); out.println(JavaNamingProviderURL); out.println("Setting the lookup jndi Name of remote object"); out.println(JndiContextLookup); } catch(Exception ioe) { System.out.println("Problems reading your values "+ioe.toString()); } //set up the naming provider, this may not be necessary, depending on how your Java system is configured. Properties env=new Properties(); env.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory"); //env.setProperty("java.naming.provider.url","localhost:1099"); env.setProperty("java.naming.provider.url",JavaNamingProviderURL); env.setProperty("java.naming.factory.url.pkgs","org.jboss.naming"); try { InitialContext jndiContext=new InitialContext(env); out.println("Got context"); //Object ref=jndiContext.lookup("Interest"); Object ref=jndiContext.lookup(JndiContextLookup); out.println("Got Reference"); //Get a reference from this to the Bean's Home interface. InterestHome home=(InterestHome)PortableRemoteObject.narrow(ref,InterestHome.class); //Create an Interest Object using the Home Interface Interest interest=home.create(); ServerDate=interest.getServerDate(); System.out.println("Server date is "+sdf.format(ServerDate));
Re: [JBoss-user] Re: JBoss 2.2.2 - Linux kernel 2.4
Hi Axel Muench, it seems you are trying to start jboss from a location other than the /bin directory. To solve your problem you may have to change your current working directory while starting JBoss to this directory. Allan. --- awc <[EMAIL PROTECTED]> wrote: > I am running sun JDK-1.3.0 and 1.3.1-rc1-b21 on > RedHat 6.2/libc-.2.1.3 with > Jboss-2.2.2-Tomcat-3.2.2. > I ran Jboss-2.4 too. > > anil > > Devraj Mukherjee wrote: > > > I use the same, under Solaris and Windows. I have > not tried Linux as yet. > > > > I will today and let you know. > > > > Devraj > > > > At 11:59 3/07/01 -0700, you wrote: > > >Devraj, > > >I'm using JDK 1.3.1 - Is that one not supported? > I understand this is sort > > >of an official question, where would be the place > to address this? > > > > > >Thanks, Axel. > > > > > > > > > > Hi, > > > > I'm new to JBoss and try to start JBoss by > executing run.sh > > > > > > > > > > > > > > > > > > > > This is the error message: > > > > > > > > JBOSS_CLASSPATH=:run.jar:../lib/crimson.jar > > > > Exception in thread "main" > java.lang.NoclassDefFoundError: org/jboss/Main > > > > > > > > Any major thing I'm missing here? > > > > > > > > Thanks, Axel Muench. > > > > > > > > > > > >___ > > >JBoss-user mailing list > > >[EMAIL PROTECTED] > > > >http://lists.sourceforge.net/lists/listinfo/jboss-user > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > > http://lists.sourceforge.net/lists/listinfo/jboss-user > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Problems with FreeTDS-Driver
I am also experiencing problems with freetds driver. I am using the freetds driver packaged in a jar. I have set up the jboss.jcml file to include 'com.internetcds.jdbc.tds.Driver' in the list of drivers. then add a new mbean tag reading as follows freetdsPool org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl jdbc:freetds:sqlserver://Allan:1433/pubs;TDS=7.0 120 sa 10 false false false true 12 180 false false 1.0 0 The pool seems to initialize properly but jboss startup stalls when trying to start the pool (freetdsPool in my case) throwing a java.lang.NullPointerException MS-SQL server is running and has a 'pubs' database accessible by the 'sa' with no password account. I have not deployed any EJB beans therefore there is no 'jaws' file I have configured. I have copied the freetds.jar file to the $JBOSS_HOME/lib/ directory then added it to the $JAVA_HOME/jre/lib/ and $JAVA_HOME/jre/lib/ext/ directories. Thank you in advance. Allan. --- Burkhard Vogel <[EMAIL PROTECTED]> wrote: > Hi, > this exception is quit explicit... It means you are > performing a finder > which uses parts of sql which are not sql92 > standard. To use the driver (and > I do even with CMP) you need t be rather SQL92 > conform or implement the > missing part into the driver (as it comes with > source). > pls post using a descriptive subject, always include > java version, jboss > version, driver version, OS, and in this case cose > fragments (jaws.xml > fragment) and in case of errors the stack-trace. > Burkhard > - Original Message - > From: "Rama Rao" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, June 27, 2001 10:52 AM > Subject: [JBoss-user] (no subject) > > > Hai all, > I am getting some problem with free tds > driver.The CMP beans are > sucessfullu deployed with sql server using free tds > driver. > When i calling finder method on CMP bean, > its giving SQLException > with the message "Not Implemented". The driver is > working fine from simple > standalone java file. > Can you give me some information about this > driver. > 1.Whether we can use this driver for CMP > beans. > Regards > Rama Rao > > > > > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBossCX tutorial
Am also looking for the same including samples. Allan. --- Daryl Beattie <[EMAIL PROTECTED]> wrote: > Dear JBoss Users, > > Hey, I hate to be a pain, but is there a > tutorial for how to use > JBossCX? If so, where can I find it? If not, uh.. > nevermind. > Also, I seem to be having trouble learning > about the Java Connector > architecture in general. Is there a better place to > learn about it besides > the white-paper? > I would appreciate any suggestions the > community has to offer. > Thanks! > > Sincerely, > > Daryl. > > > Daryl Beattie > Java Developer/Research and Development > ScreamingMedia > 601 West 26 Street 13 Floor > New York New York 10001 > T 212 691 7900 F 212 691 1483 > Direct 212 659 1895 > www.screamingmedia.com > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Opta2000/Minerva pool combination, unexpected results
When using CMP with Opta2000trial for MSSQL, a table representing the entity bean gets created in the Master database (default for 'sa' login I am using) and not in the database I have specified in the Minerva pool and and the Minerva pool name is in my applications WEB-INF/jaws.xml file. The max-size of the pool in the jboss.jcml is set to 1,(I can get only 2 connections on the Opta2000 trial). After the table creation I get a listing of errors from the JBoss window. The bean does not get saved to the table when I create a new instance of the bean. I don't exprience this problem if I modify my application to use postgresql. Allan. __ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] AnyBody managed to use transactions with MYSQL ?? Please help !!!
--- Francesco Marchioni <[EMAIL PROTECTED]> wrote: > Dear jBossusers, > I have spent some weeks to set up an environment > "jBoss + mysql". > Unfortunately I have discovered (too lately) that > mysql by default doesn't support > transactions. So I have downloaded the lates version > of mysql (mysql-max) with BDB transaction > tables. > Then I tried to use a declarative transaction but > transactions still > don't startI'm desperate!! did anybody manage to > use transaction with > MYSQL & JBoss ? or it's totally impossible ? Maybe I > have to use > different table TYPE rather than Berkley-DB tables ? > Thanks a lot for who will help... > bye > Francesco > > If you are totally unable to get transactions running in mySQL and if this feature is of get importance to you, I suggest you have a look at postgresql:you can even write 'procedures' (as functions in postgresql using PLPGSQL). Allan. __ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Minerva DataSource Error
use DataSource ds = (DataSource) jndiCntx.lookup("java:/OracleDB"); return ds.getConnection( ); Allan. --- "De Closmadeuc, Etienne" <[EMAIL PROTECTED]> wrote: > > I'm trying to execute a query on an Oracle 8.1.7 > database but ... > I can't figure what JNDI name must be used. > > name="DefaultDomain:service=XADataSource,name=OracleDB"> >OracleDB > name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp > l > name="URL">jdbc:oracle:thin:@spirou:1521:AGENCE >** >** > > ... > jboss.xa.xidclass=oracle.jdbc.xa.OracleXid > ... > [OracleDB] Starting > [OracleDB] XA Connection pool OracleDB bound to > java:/OracleDB > [OracleDB] Started > ... > >DataSource for the Oracle > database >OracleDB >javax.sql.DataSource >Container > > ... > InitialContext jndiCntx = new InitialContext( > ); > DataSource ds = (DataSource) > jndiCntx.lookup("java:comp/env/OracleDB"); > return ds.getConnection( ); > ... > but I get this error : > > Got context > Got reference > java.rmi.ServerException: RemoteException occurred > in server thread; nested > exception is: > java.rmi.ServerException: Transaction rolled > back; nested exception > is: > java.sql.SQLException: Table not found: TAB > in statement [select > tname from tab where tabtype = 'TABLE'] > > and of course, this table exists in Oracle : > > Oracle8i Enterprise Edition Release 8.1.7.0.0 - > Production > With the Partitioning option > JServer Release 8.1.7.0.0 - Production > > SQL> select tname from tab where tabtype = 'TABLE'; > > TNAME > -- > ACCOUNTSAMPLE > > Thanks for any help. > > Etienne de Closmadeuc ([EMAIL PROTECTED]) > Logica SA > 183, route de Canéjan 33173 GRADIGNAN CEDEX > Tél : 05.56.75.77.00 > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBossMQ exception on startup
I have the same problem in Windows 2000 server but not on Linux. Can anyone help, thank you in advance. Allan. --- "Ferguson, Doug" <[EMAIL PROTECTED]> wrote: > Hey, > > I get following exception on jboss startup for win2k > but not on linux. > > [JBossMQ] Starting > [JBossMQ] Cannot start the JMS server ! Invalid > configuration. > [JBossMQ] javax.jms.JMSException: Invalid > configuration. > [JBossMQ] at > org.jbossmq.server.PersistenceManager.(PersistenceManag > er.java:107) > [JBossMQ] at > org.jbossmq.server.StartServer.run(StartServer.java:170) > [JBossMQ] at > org.jbossmq.server.StartServer.start(StartServer.java:70) > [JBossMQ] at > org.jbossmq.server.JBossMQService.startService(JBossMQService > .java:66) > [JBossMQ] at > org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport. > java:93) > [JBossMQ] at > java.lang.reflect.Method.invoke(Native Method) > [JBossMQ] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > .java:1628) > [JBossMQ] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > .java:1523) > [JBossMQ] at > org.jboss.util.ServiceControl.start(ServiceControl.java:97) > [JBossMQ] at > java.lang.reflect.Method.invoke(Native Method) > [JBossMQ] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > .java:1628) > [JBossMQ] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > .java:1523) > [JBossMQ] at > org.jboss.Main.(Main.java:217) > [JBossMQ] at > org.jboss.Main$1.run(Main.java:121) > [JBossMQ] at > java.security.AccessController.doPrivileged(Native > Method) > [JBossMQ] at > org.jboss.Main.main(Main.java:117) > [JBossMQ] Linked Exception: > [JBossMQ] javax.jms.JMSException: Could not open the > queue's tranaction log: > /C: > /java/JBoss-2.2.2_Tomcat-3.2.2/jboss/db/jbossmq/transactions.dat > [JBossMQ] at > org.jbossmq.persistence.SpyTxLog.throwJMSException(SpyTxLog.j > ava:95) > [JBossMQ] at > org.jbossmq.persistence.SpyTxLog.(SpyTxLog.java:35) > [JBossMQ] at > org.jbossmq.server.PersistenceManager.(PersistenceManag > er.java:104) > [JBossMQ] at > org.jbossmq.server.StartServer.run(StartServer.java:170) > [JBossMQ] at > org.jbossmq.server.StartServer.start(StartServer.java:70) > [JBossMQ] at > org.jbossmq.server.JBossMQService.startService(JBossMQService > .java:66) > [JBossMQ] at > org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport. > java:93) > [JBossMQ] at > java.lang.reflect.Method.invoke(Native Method) > [JBossMQ] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > .java:1628) > [JBossMQ] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > .java:1523) > [JBossMQ] at > org.jboss.util.ServiceControl.start(ServiceControl.java:97) > [JBossMQ] at > java.lang.reflect.Method.invoke(Native Method) > [JBossMQ] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > .java:1628) > [JBossMQ] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > .java:1523) > [JBossMQ] at > org.jboss.Main.(Main.java:217) > [JBossMQ] at > org.jboss.Main$1.run(Main.java:121) > [JBossMQ] at > java.security.AccessController.doPrivileged(Native > Method) > [JBossMQ] at > org.jboss.Main.main(Main.java:117) > [JBossMQ] Started > [DefaultJMSProvider] Starting > [DefaultJMSProvider] JMS provider Adapter > DefaultJMSProvider bound to > java:/Defa > ultJMSProvider > [DefaultJMSProvider] Started > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Minerva DataSource Error
This is the exactly the problem (java.lang.NullPointerException)I have had over the past week, trying to connect to postgresql. I have tried with and without 'password' value in the password attribute. Of course the database is running. I know it works. I made it work perfectly the first time, I even used JAWS and could see data in CMP Beans in the postgres tables. But I haven't been able to replicate the same actions this time round. The problem persists. Allan Kamau --- "De Closmadeuc, Etienne" <[EMAIL PROTECTED]> wrote: > > Hello everybody ! > > I'm trying to access an Oracle database with JBoss > (excellent product by the > way). > > I followed all the instructions for the "minerva > pools" for Oracle : > > - I put the "classes12.zip" file from Oracle into > "lib/ext" directory, > - I modified the "jboss.properties" file to > uncomment the right line for > "xidclass" (and the class is present in > classes12.zip), > - I modified the "jboss.cml" file : > >name="DefaultDomain:service=JdbcProvider"> > name="Drivers">org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,orac > le.jdbc.driver.OracleDriver > > > and > > name="DefaultDomain:service=XADataSource,name=OracleDB"> >OracleDB > name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp > l > name="URL">jdbc:oracle:thin:spirou:1521:AGENCE >hidden >hidden > > > But I got an error : > > [JDBC provider] Initializing > [JDBC provider] Loaded > JDBC-driver:org.hsql.jdbcDriver > [JDBC provider] Loaded > JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver > [JDBC provider] Loaded > JDBC-driver:oracle.jdbc.driver.OracleDriver > [JDBC provider] Initialized > . > [DefaultDS] Started > [OracleDB] Starting > [OracleDB] XA Connection pool OracleDB bound to > java:/OracleDB > [OracleDB] Stopped > [OracleDB] java.lang.NullPointerException > [OracleDB] at > org.opentools.minerva.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSourc > e.java:165) > [OracleDB] at > org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:330) > [OracleDB] at > org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93) > [OracleDB] at > java.lang.reflect.Method.invoke(Native Method) > [OracleDB] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) > [OracleDB] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) > [OracleDB] at > org.jboss.util.ServiceControl.start(ServiceControl.java:97) > [OracleDB] at > java.lang.reflect.Method.invoke(Native Method) > [OracleDB] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) > [OracleDB] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) > [OracleDB] at > org.jboss.Main.(Main.java:217) > [OracleDB] at > org.jboss.Main$1.run(Main.java:121) > [OracleDB] at > java.security.AccessController.doPrivileged(Native > Method) > [OracleDB] at > org.jboss.Main.main(Main.java:117) > [Service Control] Could not start > DefaultDomain:service=XADataSource,name=OracleDB > [Service Control] java.lang.NullPointerException > [Service Control] at > org.opentools.minerva.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSourc > e.java:165) > [Service Control] at > org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:330) > [Service Control] at > org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93) > [Service Control] at > java.lang.reflect.Method.invoke(Native Method) > [Service Control] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) > [Service Control] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) > [Service Control] at > org.jboss.util.ServiceControl.start(ServiceControl.java:97) > [Service Control] at > java.lang.reflect.Method.invoke(Native Method) > [Service Control] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) > [Service Control] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) > [Service Control] at > org.jboss.Main.(Main.java:217) > [Service Control] at > org.jboss.Main$1.run(Main.java:121) > [Service Control] at > java.security.AccessController.doPrivileged(Native > Method) > [Service Control] at > org.jboss.Mai
Re: [JBoss-user] Problems installing Postgresql JDBC driver:
Hi, I have tried the steps below very carefully,followed all the instructions in the documentation. I am now suspecting my jdbc driver may be faulty . Kindly anyone send me an attachment of a postgresql 7.x JDBC. Thanks in advance. Allan. --- Burkhard Vogel <[EMAIL PROTECTED]> wrote: > Hi, > 1) make sure your Driver is loaded by serching a > line like [JDBC provider] > Loaded JDBC-driver:org.postgresql.Driver > 2) provide a password, some Drivers don't work > without one, or try making it > a "real" empty one: < > /attribute> > 3) tripple check your URL to the db. > Burkhard > > - Original Message - > From: "Allan Kamau" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, June 12, 2001 11:31 AM > Subject: Re: [JBoss-user] Problems to install JDBC > driver > > > > I am facing the same problem. I am trying to load > a > > postgresql driver. I have copied the driver to the > > /lib/ext/ directory, configured the jboss.jcml > file to > > include. > > > > > >> name="DefaultDomain:service=JdbcProvider"> > > > > name="Drivers">org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,org. > postgresql.Driver > > > > > > > >> > name="DefaultDomain:service=XADataSource,name=postgresqlPool"> > > > name="PoolName">postgresqlPool > > > > name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp > l > > > > > name="URL">jdbc:postgresql:diary1 > > > > alex > > > > > > > > > > I modified the jboss.properties to read. > > > > > jdbc.drivers=org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,org.po > stgresql.Driver > > > > > > On starting JBoss-2.2.2 I got the following error. > > [postgresqlPool] Initializing > > [postgresqlPool] Initialized > > .. > > .. > > > > [postgresqlPool] Starting > > [postgresqlPool] XA Connection pool postgresqlPool > > bound to java:/postgresqlPool > > [postgresqlPool] Stopped > > [postgresqlPool] java.lang.NullPointerException > > [postgresqlPool]at > > > org.opentools.mineva.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource > .java:165) > > .. > > > > > > > > --- Arnaud TAVARD <[EMAIL PROTECTED]> wrote: > > > > > > you need to put your jdbc driver in the > > > jboss.properies file as well > > > > > > >From: "Marie Rajon" <[EMAIL PROTECTED]> > > > >Reply-To: [EMAIL PROTECTED] > > > >To: [EMAIL PROTECTED] > > > >Subject: [JBoss-user] Problems to install JDBC > > > driver > > > >Date: Mon, 11 Jun 2001 15:28:54 +0200 > > > > > > > > > > > > > _ > > > Get Your Private, Free E-mail from MSN Hotmail > at > > > http://www.hotmail.com. > > > > > > > > ATTACHMENT part 2 message/rfc822 > > > From: "Marie Rajon" <[EMAIL PROTECTED]> > > > To: [EMAIL PROTECTED] > > > Subject: [JBoss-user] Problems to install JDBC > > > driver > > > Reply-to: [EMAIL PROTECTED] > > > Date: Mon, 11 Jun 2001 15:28:54 +0200 > > > > > > > > > Hi, > > > > I am using JBOSS with Cloudscape and I have > > difficulties to install the JDBC Drivers. I copied > the > > RmiJdbc.jar file in the lib/ext directory of JBOSS > and > > I add COM.cloudscape.core.RmiJdbcDriver in the > > jboss.jcml configuration file, but jboss doesn't > want > > to load it when it starts ... > > Could you help me and tell me what I did > > wrong? > > > > Thank you very much > > > > MarieGet Your > Private, > > Free E-mail from MSN Hotmail at > > href="http://www.hotmail.com";>http://www.hotmail.com. > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > > http://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > > > __ > > Do You Yahoo!? > > Get personalized email addresses from Yahoo! Mail > - only $35 > > a year! http://personal.mail.yahoo.com/ > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > > http://lists.sourceforge.net/lists/listinfo/jboss-user > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Problems to install JDBC driver
I am facing the same problem. I am trying to load a postgresql driver. I have copied the driver to the /lib/ext/ directory, configured the jboss.jcml file to include. org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,org.postgresql.Driver postgresqlPool org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl jdbc:postgresql:diary1 alex I modified the jboss.properties to read. jdbc.drivers=org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,org.postgresql.Driver On starting JBoss-2.2.2 I got the following error. [postgresqlPool] Initializing [postgresqlPool] Initialized .. .. [postgresqlPool] Starting [postgresqlPool] XA Connection pool postgresqlPool bound to java:/postgresqlPool [postgresqlPool] Stopped [postgresqlPool] java.lang.NullPointerException [postgresqlPool]at org.opentools.mineva.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java:165) .. --- Arnaud TAVARD <[EMAIL PROTECTED]> wrote: > > you need to put your jdbc driver in the > jboss.properies file as well > > >From: "Marie Rajon" <[EMAIL PROTECTED]> > >Reply-To: [EMAIL PROTECTED] > >To: [EMAIL PROTECTED] > >Subject: [JBoss-user] Problems to install JDBC > driver > >Date: Mon, 11 Jun 2001 15:28:54 +0200 > > > > _ > Get Your Private, Free E-mail from MSN Hotmail at > http://www.hotmail.com. > > ATTACHMENT part 2 message/rfc822 > From: "Marie Rajon" <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Problems to install JDBC > driver > Reply-to: [EMAIL PROTECTED] > Date: Mon, 11 Jun 2001 15:28:54 +0200 > Hi, I am using JBOSS with Cloudscape and I have difficulties to install the JDBC Drivers. I copied the RmiJdbc.jar file in the lib/ext directory of JBOSS and I add COM.cloudscape.core.RmiJdbcDriver in the jboss.jcml configuration file, but jboss doesn't want to load it when it starts ... Could you help me and tell me what I did wrong? Thank you very much MarieGet Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com";>http://www.hotmail.com. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Problems to install JDBC driver
I am facing the same problem. I am trying to load a postgresql driver. I have copied the driver to the /lib/ext/ directory, configured the jboss.jcml file to include. org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,org.postgresql.Driver postgresqlPool org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl jdbc:postgresql:diary1 alex I modified the jboss.properties to read. jdbc.drivers=org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,org.postgresql.Driver On starting JBoss-2.2.2 I got the following error. [postgresqlPool] Initializing [postgresqlPool] Initialized .. .. [postgresqlPool] Starting [postgresqlPool] XA Connection pool postgresqlPool bound to java:/postgresqlPool [postgresqlPool] Stopped [postgresqlPool] java.lang.NullPointerException [postgresqlPool]at org.opentools.mineva.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java:165) .. --- Arnaud TAVARD <[EMAIL PROTECTED]> wrote: > > you need to put your jdbc driver in the > jboss.properies file as well > > >From: "Marie Rajon" <[EMAIL PROTECTED]> > >Reply-To: [EMAIL PROTECTED] > >To: [EMAIL PROTECTED] > >Subject: [JBoss-user] Problems to install JDBC > driver > >Date: Mon, 11 Jun 2001 15:28:54 +0200 > > > > _ > Get Your Private, Free E-mail from MSN Hotmail at > http://www.hotmail.com. > > ATTACHMENT part 2 message/rfc822 > From: "Marie Rajon" <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Problems to install JDBC > driver > Reply-to: [EMAIL PROTECTED] > Date: Mon, 11 Jun 2001 15:28:54 +0200 > Hi, I am using JBOSS with Cloudscape and I have difficulties to install the JDBC Drivers. I copied the RmiJdbc.jar file in the lib/ext directory of JBOSS and I add COM.cloudscape.core.RmiJdbcDriver in the jboss.jcml configuration file, but jboss doesn't want to load it when it starts ... Could you help me and tell me what I did wrong? Thank you very much MarieGet Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com";>http://www.hotmail.com. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Unable to run JBoss-2.2.2 on NT2000
Hi All, I still haven't received a response on the problem below. > I have been running JBoss-2.2.1 successfully on > Win2000 server. However where I tried running > JBoss-2.2.2 it listed error associated with the JMS > server.JBossMQ server. > > Cannot start the JMS server! > javax.jms.JMSException: Invalid configuration > > .. > > How can I configure the JMS server to avoid this > problem. This senario was also reflected on another server running Win2000 server. Has anyone else exprienced the same? > Thank you in advance. > Allan > __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Unable to run JBoss-2.2.2 on NT2000
I still haven't received a response on the problem below. > I have been running JBoss-2.2.1 successfully on > Win2000 server. However where I tried running > JBoss-2.2.2 it listed error associated with the JMS > server.JBossMQ server. > > Cannot start the JMS server! > javax.jms.JMSException: Invalid configuration > > .. > > How can I configure the JMS server to avoid this > problem. This senario was also reflected on another server running Win2000 server. > Thank you in advance. > Allan > > > > __ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail - > only $35 > a year! http://personal.mail.yahoo.com/ > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Unable to run JBoss-2.2.2 on NT2000
I still haven't received a response on the problem below. > I have been running JBoss-2.2.1 successfully on > Win2000 server. However where I tried running > JBoss-2.2.2 it listed error associated with the JMS > server.JBossMQ server. > > Cannot start the JMS server! > javax.jms.JMSException: Invalid configuration > > .. > > How can I configure the JMS server to avoid this > problem. This senario was also reflected on another server running Win2000 server. > Thank you in advance. > Allan > > > > __ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail - > only $35 > a year! http://personal.mail.yahoo.com/ > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: DataSource ?? Re: [JBoss-user] to Dexter
I also did experience the same problem. Here's how I solved mine. You may need include the JDBC optional (or greater) package into your classpath during your .java compilation. Visit the www.javasoft.com for this class or get it from the attachment with this email. I hope this helps. I would be interested to know if it did help you. Allan __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ jdbc2_0-stdext.jar
[JBoss-user] Unable to run JBoss-2.2.2 on NT2000
I have been running JBoss-2.2.1 successfully on Win2000 server. However where I tried running JBoss-2.2.2 it listed error associated with the JMS server.JBossMQ server. Cannot start the JMS server! javax.jms.JMSException: Invalid configuration .. How can I configure the JMS server to avoid this problem. Thank you in advance. Allan __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Using Minerva
I understand Minerva is a pool of connections to a database. I have configured my postgresql 7.1.1 database to be accessed by Minerva and I have successfully queried the database. However I don't think I am making use of connection pooling offered. I am obtaining a DataSource object from the java:/myDB then I open a connection on the Datasource. Upon completion I close the connection (as I noticed postgresql will lock the table till I close the connection) and set the connection along with the Statement objects to null. If someone has a better way to use the pool show me in sample code lines. Thank you in Advance. Allan __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user