[JBoss-user] Help: cross package EJB access problem how ?
Hello all, Please help me wit this: I have a session bean A accessing to an entity bean A using EJB reference java:comp/env/ejb/syssetting. These two beans is put into package A. Then I have another package B, with a session bean B trying to access the session bean A (which in turns accesses entity bean A). But this can't be done, it gives out the error below. What should I do ? Should I define any reference for session bean B, or should session bean A access entity bean A using different way, or is there a different way of session bean B accessing session bean A, etc ? Any suggestion appreciated. Thanks!! The error is : java.rmi.ServerException: ; nested exception is: java.rmi.RemoteException: Missing Node - syssetting; nested exception is: java.rmi.RemoteException: Missing Node - syssetting java.rmi.RemoteException: Missing Node - syssetting; nested exception is: java.rmi.RemoteException: Missing Node - syssetting java.rmi.RemoteException: Missing Node - syssetting Regards, ChetHong Lau ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] rollback jdbc transaction
Hi, here is my problem: I have a sample session bean connecting to a postgres datasource (Using JBOSS 2.2.2 here). A bussiness method goes like this: try { con.setAutoCommit(false); updateOrderItem(productId, orderId); updateInventory(productId, quantity); con.commit(); } catch (Exception ex) { try { con.rollback(); throw new EJBException("Transaction failed: " + ex.getMessage()); } catch (Throwable sqx) { throw new EJBException("Rollback failed: " + sqx.getMessage()); } } } if transaction is committed, all is OK. When an application exception occurs (e.g. updateInventory throws an exception) and con.rollback() is called, the client gets an exception: RemoteException occurred in server thread; ne sted exception is: java.rmi.ServerException: Transaction rolled back java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.ServerException: Transaction rolled back java.rmi.ServerException: Transaction rolled back at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:248) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:128) at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown Source) at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:188) at $Proxy1.ship(Unknown Source) at warehouse.test.WarehouseClient.main(WarehouseClient.java:37) The server log is empty, like nothing happened. The rollback is only supposed to throw an SQLException in case of db backend problems. What am I doing wrong here? Jure ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] EJB 2
Can anybody briefly describe how much of EJB2 spec is implemented in JBoss? ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Need help with Postgresql7.1 setup
Try using a password in mbean declaration for data sources, I think someone mentioned here it was required... Jure > I'm just getting started with JBoss. I'm trying to set up a connection > pool using a PostgreSQL 7.1 database on a FreeBSD 4.3 machine. I can > connect to the database using JDBC in a standalone java app from both my > FreeBSD and Linux machines, but setting up the connection pool in JBoss > fails (configuration and error files are attached). > > Can anyone tell me what I'm doing wrong? > > Thanks in advance. Content-Type: text/plain; charset="us-ascii"; name="jboss.log" Content-Transfer-Encoding: 7bit Content-Description: Content-Type: text/plain; charset="us-ascii"; name="jboss.jcml" Content-Transfer-Encoding: 7bit Content-Description: ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Can I directly use the JBOSS connection pool from servlet.
You can't use the connection outside of jBoss. If you are using integratd tomcat you can use the jBoss connection pool. Note, a common rookie mistake is to try and use java:com/env/MyPool name from a servlet. You can't do this... you gotta use java:MyPool cheers, d. -Original Message- From: Rakesh Shankar Shringi [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 04, 2001 11:04 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] Can I directly use the JBOSS connection pool from servlet. HI, Can i directly use the jboss connection pool in a servlet without writing it in ejb. How to get it from the env context. Thanks Rakesh Shringi ___ 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
RE: [JBoss-user] JBoss performance problems
Hi, I think the multiple transactions - one for the findall and one for each row- may be sufficient to explain the 30 sec. Trying a slsb would tell. Also, I don't know much about sun hardware, is ultrasparc 170 mhz a fast or slow machine? david jencks On 2001.07.04 23:20:31 -0400 Jonathan Ackerman wrote: > True, knew I was going to get myself into trouble answering this one :) > > Still believe that using ValueObjects and a Distributed Facade is a > better > way to go. In many cases your web container & EJB container are not > running > on the same machine in production. > > However because both are in VM in this case then network traffic is not > an > issue. > > Could it be that the entity beans are causing the ejbStore() method to > fire > for each attribute that is retrieved from them because of container > managed > transactions ? > > Maybe Saul could stick some System.outs in his ejbLoad() & ejbStore() > methods to see what is happening. > > Jonathan > > -Original Message- > From: marc fleury [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 5 July 2001 2:55 p.m. > To: [EMAIL PROTECTED] > Subject: RE: [JBoss-user] JBoss performance problems > > > |1) You do a network call for home look up > |2) You do a network call for the findAll(), the server returns the > |enumeration > |3) You do a network call to get an attribute from the entity bean > |3a) The server starts a transaction > |3b) server gets attributes from ejb > |3c) The server commits the transaction (which can result in a DB update > |unless you are using dirty flags) > |3d) Server returns value to client (more network traffic) > |4) You repeat step 3 for each attributes you fetch > |5) You repeat step 4 for each row > > ? we are integrated in VM with jetty and tomcat > > marcf > > | > |Also if this is the first time you have accessed these entity beans, the > |server will have to create and data fill them from the database. > | > |As you can see above, you are doing a large number of network calls > which > |are expensive & a large number of transactions which is even more > |expensive. > | > |A better approach is to use stateless session beans as Facades for your > |entity beans. The session bean talks to your entity beans, data fills a > |serializable class (a ValueObject) with the data for each row and > |returns an > |array or collection of these back to the client. > | > |If you do that the client/server flow looks like: > | > |1) You do a network call for home look up for your session bean > |2) You do a network call to the home calling create() to get the remote > |interface > |3) You do a network call to your session bean calling a getRows() method > |3a) Server starts a transaction > |3b) Session bean lookups the home of the your entity bean (usually a > |optimised call since we are in the container already) > |3c) Session bean calls findAll() on the entity bean's home and gets an > |enumeration of entity beans > |3d) Session bean creates a collection > |3e) Session bean creates a ValueObject and copies the attributes from > the > |entity bean to the ValeuObject. (Once again these calls are optimised > |because we are in container already) > |3f) Session bean adds ValueObject to the collection > |3g) Steps 3e, 3f are repeated for each row (entity bean) > |3h) Session bean returns collection > |3i) Server commits transaction (this could result in DB updates if > |you don't > |have dirty flags on your entity beans) > |4) Client processes collection of ValueObjects and generates HTML table > | > |As you can see this method reduces the number of network calls > dramatically > |and is more scaleable (because Stateless Session Beans are pooled). > | > |Check out some of the patterns at http://www.theserverside.com > | > |Hope that helps > | > |Jonathan > | > |-Original Message- > |From: Saul Farber [mailto:[EMAIL PROTECTED]] > |Sent: Thursday, 5 July 2001 1:01 p.m. > |To: [EMAIL PROTECTED] > |Subject: [JBoss-user] JBoss performance problems > | > | > |Hello gurus, > | > |I'm having some performance problems with JBoss right now. Could > |someone help me out a bit? > | > |Here's the scenario: > | > |Sun UltraSparc1-170Mhz: > | > | running:+Jboss2.2.1_Jetty3.1.RC4 bundle > | +PostgreSQL (ver 7.x) > | > |My app is pretty simple, just direct calls to entity EJB's from JSP's. > |However, when I try to load a page that essentially displays a whole > |table (all 30 rows) by using Home.findAll(), then running through the > |java.util.Enumeration object, it takes close to 30 seconds to load the > |page. This seems rather excessive. Could I have something > |misconfigured? > | > |If you need more info, please email me. I saw a similar post in the > |archives, but couldn't find a response to it. > | > |Thanks, > | > |Saul > | > | > |___ > |JBoss-user mailing list > |[EMAIL PROTECTED] > |http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss performance problems
Hi, as far as I know the ejbStore() is called after you access a method of the Entity Bean (no matter if reading or writing access), because the container cannot find out if it is neccessary to update the corresponding row in the DB Table, also there is a Transaction started for the when you access a method of the entity bean. You may implement the isModified() method to support the Container. We did this and we gained a lot of performance. I hope this helps. Frank Marx ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Can I directly use the JBOSS connection pool from servlet.
HI, Can i directly use the jboss connection pool in a servlet without writing it in ejb. How to get it from the env context. Thanks Rakesh Shringi ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss performance problems
True, knew I was going to get myself into trouble answering this one :) Still believe that using ValueObjects and a Distributed Facade is a better way to go. In many cases your web container & EJB container are not running on the same machine in production. However because both are in VM in this case then network traffic is not an issue. Could it be that the entity beans are causing the ejbStore() method to fire for each attribute that is retrieved from them because of container managed transactions ? Maybe Saul could stick some System.outs in his ejbLoad() & ejbStore() methods to see what is happening. Jonathan -Original Message- From: marc fleury [mailto:[EMAIL PROTECTED]] Sent: Thursday, 5 July 2001 2:55 p.m. To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] JBoss performance problems |1) You do a network call for home look up |2) You do a network call for the findAll(), the server returns the |enumeration |3) You do a network call to get an attribute from the entity bean |3a) The server starts a transaction |3b) server gets attributes from ejb |3c) The server commits the transaction (which can result in a DB update |unless you are using dirty flags) |3d) Server returns value to client (more network traffic) |4) You repeat step 3 for each attributes you fetch |5) You repeat step 4 for each row ? we are integrated in VM with jetty and tomcat marcf | |Also if this is the first time you have accessed these entity beans, the |server will have to create and data fill them from the database. | |As you can see above, you are doing a large number of network calls which |are expensive & a large number of transactions which is even more |expensive. | |A better approach is to use stateless session beans as Facades for your |entity beans. The session bean talks to your entity beans, data fills a |serializable class (a ValueObject) with the data for each row and |returns an |array or collection of these back to the client. | |If you do that the client/server flow looks like: | |1) You do a network call for home look up for your session bean |2) You do a network call to the home calling create() to get the remote |interface |3) You do a network call to your session bean calling a getRows() method |3a) Server starts a transaction |3b) Session bean lookups the home of the your entity bean (usually a |optimised call since we are in the container already) |3c) Session bean calls findAll() on the entity bean's home and gets an |enumeration of entity beans |3d) Session bean creates a collection |3e) Session bean creates a ValueObject and copies the attributes from the |entity bean to the ValeuObject. (Once again these calls are optimised |because we are in container already) |3f) Session bean adds ValueObject to the collection |3g) Steps 3e, 3f are repeated for each row (entity bean) |3h) Session bean returns collection |3i) Server commits transaction (this could result in DB updates if |you don't |have dirty flags on your entity beans) |4) Client processes collection of ValueObjects and generates HTML table | |As you can see this method reduces the number of network calls dramatically |and is more scaleable (because Stateless Session Beans are pooled). | |Check out some of the patterns at http://www.theserverside.com | |Hope that helps | |Jonathan | |-Original Message- |From: Saul Farber [mailto:[EMAIL PROTECTED]] |Sent: Thursday, 5 July 2001 1:01 p.m. |To: [EMAIL PROTECTED] |Subject: [JBoss-user] JBoss performance problems | | |Hello gurus, | |I'm having some performance problems with JBoss right now. Could |someone help me out a bit? | |Here's the scenario: | |Sun UltraSparc1-170Mhz: | | running:+Jboss2.2.1_Jetty3.1.RC4 bundle | +PostgreSQL (ver 7.x) | |My app is pretty simple, just direct calls to entity EJB's from JSP's. |However, when I try to load a page that essentially displays a whole |table (all 30 rows) by using Home.findAll(), then running through the |java.util.Enumeration object, it takes close to 30 seconds to load the |page. This seems rather excessive. Could I have something |misconfigured? | |If you need more info, please email me. I saw a similar post in the |archives, but couldn't find a response to it. | |Thanks, | |Saul | | |___ |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 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss performance problems
|1) You do a network call for home look up |2) You do a network call for the findAll(), the server returns the |enumeration |3) You do a network call to get an attribute from the entity bean |3a) The server starts a transaction |3b) server gets attributes from ejb |3c) The server commits the transaction (which can result in a DB update |unless you are using dirty flags) |3d) Server returns value to client (more network traffic) |4) You repeat step 3 for each attributes you fetch |5) You repeat step 4 for each row ? we are integrated in VM with jetty and tomcat marcf | |Also if this is the first time you have accessed these entity beans, the |server will have to create and data fill them from the database. | |As you can see above, you are doing a large number of network calls which |are expensive & a large number of transactions which is even more |expensive. | |A better approach is to use stateless session beans as Facades for your |entity beans. The session bean talks to your entity beans, data fills a |serializable class (a ValueObject) with the data for each row and |returns an |array or collection of these back to the client. | |If you do that the client/server flow looks like: | |1) You do a network call for home look up for your session bean |2) You do a network call to the home calling create() to get the remote |interface |3) You do a network call to your session bean calling a getRows() method |3a) Server starts a transaction |3b) Session bean lookups the home of the your entity bean (usually a |optimised call since we are in the container already) |3c) Session bean calls findAll() on the entity bean's home and gets an |enumeration of entity beans |3d) Session bean creates a collection |3e) Session bean creates a ValueObject and copies the attributes from the |entity bean to the ValeuObject. (Once again these calls are optimised |because we are in container already) |3f) Session bean adds ValueObject to the collection |3g) Steps 3e, 3f are repeated for each row (entity bean) |3h) Session bean returns collection |3i) Server commits transaction (this could result in DB updates if |you don't |have dirty flags on your entity beans) |4) Client processes collection of ValueObjects and generates HTML table | |As you can see this method reduces the number of network calls dramatically |and is more scaleable (because Stateless Session Beans are pooled). | |Check out some of the patterns at http://www.theserverside.com | |Hope that helps | |Jonathan | |-Original Message- |From: Saul Farber [mailto:[EMAIL PROTECTED]] |Sent: Thursday, 5 July 2001 1:01 p.m. |To: [EMAIL PROTECTED] |Subject: [JBoss-user] JBoss performance problems | | |Hello gurus, | |I'm having some performance problems with JBoss right now. Could |someone help me out a bit? | |Here's the scenario: | |Sun UltraSparc1-170Mhz: | | running:+Jboss2.2.1_Jetty3.1.RC4 bundle | +PostgreSQL (ver 7.x) | |My app is pretty simple, just direct calls to entity EJB's from JSP's. |However, when I try to load a page that essentially displays a whole |table (all 30 rows) by using Home.findAll(), then running through the |java.util.Enumeration object, it takes close to 30 seconds to load the |page. This seems rather excessive. Could I have something |misconfigured? | |If you need more info, please email me. I saw a similar post in the |archives, but couldn't find a response to it. | |Thanks, | |Saul | | |___ |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
RE: [JBoss-user] JBoss performance problems
It could be an misconfiguration problem, but it is also an architectural one. You should never access an entity bean from a client (the JSP in this case). If you look at what is happening you will see why: 1) You do a network call for home look up 2) You do a network call for the findAll(), the server returns the enumeration 3) You do a network call to get an attribute from the entity bean 3a) The server starts a transaction 3b) server gets attributes from ejb 3c) The server commits the transaction (which can result in a DB update unless you are using dirty flags) 3d) Server returns value to client (more network traffic) 4) You repeat step 3 for each attributes you fetch 5) You repeat step 4 for each row Also if this is the first time you have accessed these entity beans, the server will have to create and data fill them from the database. As you can see above, you are doing a large number of network calls which are expensive & a large number of transactions which is even more expensive. A better approach is to use stateless session beans as Facades for your entity beans. The session bean talks to your entity beans, data fills a serializable class (a ValueObject) with the data for each row and returns an array or collection of these back to the client. If you do that the client/server flow looks like: 1) You do a network call for home look up for your session bean 2) You do a network call to the home calling create() to get the remote interface 3) You do a network call to your session bean calling a getRows() method 3a) Server starts a transaction 3b) Session bean lookups the home of the your entity bean (usually a optimised call since we are in the container already) 3c) Session bean calls findAll() on the entity bean's home and gets an enumeration of entity beans 3d) Session bean creates a collection 3e) Session bean creates a ValueObject and copies the attributes from the entity bean to the ValeuObject. (Once again these calls are optimised because we are in container already) 3f) Session bean adds ValueObject to the collection 3g) Steps 3e, 3f are repeated for each row (entity bean) 3h) Session bean returns collection 3i) Server commits transaction (this could result in DB updates if you don't have dirty flags on your entity beans) 4) Client processes collection of ValueObjects and generates HTML table As you can see this method reduces the number of network calls dramatically and is more scaleable (because Stateless Session Beans are pooled). Check out some of the patterns at http://www.theserverside.com Hope that helps Jonathan -Original Message- From: Saul Farber [mailto:[EMAIL PROTECTED]] Sent: Thursday, 5 July 2001 1:01 p.m. To: [EMAIL PROTECTED] Subject: [JBoss-user] JBoss performance problems Hello gurus, I'm having some performance problems with JBoss right now. Could someone help me out a bit? Here's the scenario: Sun UltraSparc1-170Mhz: running:+Jboss2.2.1_Jetty3.1.RC4 bundle +PostgreSQL (ver 7.x) My app is pretty simple, just direct calls to entity EJB's from JSP's. However, when I try to load a page that essentially displays a whole table (all 30 rows) by using Home.findAll(), then running through the java.util.Enumeration object, it takes close to 30 seconds to load the page. This seems rather excessive. Could I have something misconfigured? If you need more info, please email me. I saw a similar post in the archives, but couldn't find a response to it. Thanks, Saul ___ 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
RE: [JBoss-user] JBoss performance problems
the first time is compilation of your jsp and afaik that is jasper even with jetty, talk to apache marcf |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]]On Behalf Of Saul Farber |Sent: Wednesday, July 04, 2001 9:01 PM |To: [EMAIL PROTECTED] |Subject: [JBoss-user] JBoss performance problems | | |Hello gurus, | |I'm having some performance problems with JBoss right now. Could |someone help me out a bit? | |Here's the scenario: | |Sun UltraSparc1-170Mhz: | | running:+Jboss2.2.1_Jetty3.1.RC4 bundle | +PostgreSQL (ver 7.x) | |My app is pretty simple, just direct calls to entity EJB's from JSP's. |However, when I try to load a page that essentially displays a whole |table (all 30 rows) by using Home.findAll(), then running through the |java.util.Enumeration object, it takes close to 30 seconds to load the |page. This seems rather excessive. Could I have something |misconfigured? | |If you need more info, please email me. I saw a similar post in the |archives, but couldn't find a response to it. | |Thanks, | |Saul | | |___ |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] JBoss performance problems
Hello gurus, I'm having some performance problems with JBoss right now. Could someone help me out a bit? Here's the scenario: Sun UltraSparc1-170Mhz: running:+Jboss2.2.1_Jetty3.1.RC4 bundle +PostgreSQL (ver 7.x) My app is pretty simple, just direct calls to entity EJB's from JSP's. However, when I try to load a page that essentially displays a whole table (all 30 rows) by using Home.findAll(), then running through the java.util.Enumeration object, it takes close to 30 seconds to load the page. This seems rather excessive. Could I have something misconfigured? If you need more info, please email me. I saw a similar post in the archives, but couldn't find a response to it. Thanks, Saul ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] ....Jetty.... IllegalStateException when doingjsp:include on a servlet
I'm not sure when it will be fixed - may be some time. btw Shouldn't you be going straight to the Servlet first - then just use jsp to display? On Wed, 4 Jul 2001, Jonas Tehler wrote: > Brett Sealey wrote: > > > On Tue, 3 Jul 2001, Jonas Tehler wrote: > > > > > >>Hi, > >> > >>I am trying to use to include a servlet into a jsp-page > >>resulting in: > >> > >>java.lang.IllegalStateException: Request is committed > >> > >>According to the changelog for Jetty this have been fixed: > >> > >>Jetty-3.0.2 - 13 Jan 2001 > >> + Ignore included response updates rather than IllegalStateException > >> > >>Is this a problem with JBoss+Jetty? Or have the bug somehow sneaked back > >>into 3.1.x? Or is this some other problem I'm having? > >> > >>/ Jonas > >> > > > > Jonas, > > > > The included servlet is attempting to do a forward() from within the > > jsp:include. I think this is a different problem to the one reported fixed > > in Jetty-3.0.2. > > > > Trying to use a sendRedirect instead didn't work for me either > > (java.lang.IllegalStateException: Output committed). If you can do the > > forward before you do the jsp:include then you will be able to work around > > it. > > Yes, that must be the problem. I am using Struts and want to jsp:include > the output from an Action that forwards to a JSP page... > > Is this something that will be fixed? > > / Jonas > > > ___ > 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
Re: [JBoss-user] Newbie Datasource question
On Wed, Jul 04, 2001 at 07:58:46AM -0400, kevin1 wrote: > Hello all, > I'm porting over some beans from a different app server. I had a utility >class > that I used that connected to the dbpool and returned a connection. What is the > syntax to connect to a datasource in Jboss? Could someone pls show me an example? It's in the EJB spec. And there's probably an example in the manual. Toby. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] mysql-Jboss ConnectionPool
On Wed, Jul 04, 2001 at 03:53:39PM +0530, Rakesh Shankar Shringi wrote: > hi, > > I am trying to use the JBOSS connectionPool > and i am getting the following error: > [java]java.lang.ClassCastException: > org.opentools.minerva.jdbc.xa.XAPoolDataSource > > jboss.xml > > > jdbc/mySQLFlirtDS > java:/mySQLFlirtDS > This is wrong. I can't remember what it should be, but look in the mailing list archives. > in the bean: > > Context ctx = new InitialContext(); > ConnectionPoolDataSource cpds = > (ConnectionPoolDataSource)ctx.lookup("java:comp/env/jdbc/mySQLFlirtDS"); > PooledConnection pc = cpds.getPooledConnection(); Ok, WTF is ConnectionPoolDataSource? Just use javax.sql.DataSource. Toby. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] CMP Entity Bean using Opta2000 Driver - Has Anyone got this to work???
I faced the problem also. I cime back to using Minerva Pool DataSource instead of the inet one : org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl SQLServerPool jdbc:inetdae7:localhost sa etc... This is for 2.4, on 2.2 change the package to minerva. What remains a ? for me, it's that the doco explain it using inet datasource. BTW, have you a full license ? (I tried with the demo version, maybe a problem...) Have you tried 4.00 or previous versions ? Have you strong relationships with the support to ask them the sources to debug this problem ourselves, or ask them to look at the jboss code, I mean they could have a return on investment,... Vincent. > -Message d'origine- > De : [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]De la part de Mark > Crowley > Envoyé : mercredi 4 juillet 2001 20:01 > À : [EMAIL PROTECTED] > Objet : [JBoss-user] CMP Entity Bean using Opta2000 Driver - Has Anyone > got this to work??? > > > I and a number of other Opta2000 users are trying > without success to create CMP Entity bean. The bean > deploys correctly, the datasource starts happily and > JBoss creates the necessary table (proving the > datasource is setup and working correctly), but when > ever the bean is accessed (for example using a finder > method) the following exception is generated (looging > has been turned on as well): > > [MSADictionary] [TDS Driver]XA_CONNECTION_GET > [MSADictionary] SQL Server 7 unicode mode > [MSADictionary] Single Server License > [MSADictionary] Driver: i-net OPTA 2000 4.10 > [MSADictionary] Statement.close > [MSADictionary] SELECT server,catalog,chartID FROM > ChartData > [MSADictionary] Statement.close > [MSADictionary] [TDS Driver]XA_CONNECTION_FREE > [MSADictionary] javax.transaction.xa.XAException: The > Xid is not valid.(XidImpl [FormatId=257, > GlobalId=ZEBEDEE//0, BranchQual=1]) resource > manager:com.inet.tds.k@785d65 > [ChartData] XAException: tx=XidImpl [FormatId=257, > GlobalId=ZEBEDEE//0, BranchQual=] errorCode=XAER_NOTA > [ChartData] javax.transaction.xa.XAException: The Xid > is not valid.(XidImpl [FormatId=257, > GlobalId=ZEBEDEE//0, BranchQual=1]) resource > manager:com.inet.tds.k@785d65 > [ChartData] at com.inet.tds.k.if(Unknown Source) > > We have been in touch with the tech-support for the > driver who eventually came to the following > conclusion: > > "The exception occurs because there is a rollback of > the transaction with a specific XID but no transaction > has been started. There seem be a bug in JBoss. JBoss > is calling a rollback for a DT without starting a DT". > > I find it hard to believe there arent 1000's of people > complaining about this, and therefore believe there is > no bug, just a problem in my set up. > > My environment is > > OS: Win2K > App Server: JBoss 2.2.2 with Tomcat 3.2.2 > JDBC: Opta2000 Tds driver 4.10 > > Has anybody actually managed to get a CMP Entity bean > working in JBoss with the Opta driver? > > Any thoughts, help, pointers would be much > appreciated. > > Thanks in advance. > > > Do You Yahoo!? > Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk > or your free @yahoo.ie address at http://mail.yahoo.ie > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Problems deploying EARs with JSPs under JBoss/Jetty
On Wed, Jul 04, 2001 at 01:10:10PM +0100, Julian Gosnell wrote: > I've figured this out, and fixed it. > > I shall try to get a 2.4 based release out tomorrow > night - until then you can use the 2.2 (release > candidate<5), or be explicit about the JSP mapping in > your web.xml. How do I go about being explicit? I tried putting in something along the lines of; signup /signup.jsp signup_result /signup_result.jsp in web.xml but it didn't get me anywhere. Also tried with "signup.jsp" and "/account/signup.jsp" but no luck there either. Cheers Bent D -- Bent Dalager - [EMAIL PROTECTED] - http://www.pvv.org/~bcd powered by emacs ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss & Tomcat under the same JVM
To: [EMAIL PROTECTED] Date: Wed, 04 Jul 2001 17:09:35 +0100 From: Anthony IVETAC <[EMAIL PROTECTED]> You are doing everything correctly. Subject: [JBoss-user] JBoss & Tomcat under the same JVM Reply-To: [EMAIL PROTECTED] If I start JBoss with the "run_with_tomcat" script, how can I be sure that they are both running under the same JVM? Is this the correct way of starting JBoss & Tomcat within the same JVM? I get no error messages upon initialization, and the test deployment works fine. Thanks ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] mysql works
>There is a pretty good example in the J2EE Tutorial PDF from Sun. >-- > Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com >mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] >GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 Thanks, I'll try that one too. Well now that I have all the tools in place I think I'll go enjoy some non-virtual people for a while. Happy 4th y'all. r.b. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] problems with jms
On Wed, 4 Jul 2001, Manfred Meyer wrote: > hi, > > i want to send jms messages from a servlet to a message driven bean running in > the jboss server. but when i start it, this exception occurs: > > [Default] Exception: Invalid transaction id. > [Default] javax.jms.JMSException: Invalid transaction id. > [Default] at >org.jbossmq.SpyXAResourceManager.addMessage(SpyXAResourceManager.java:80) This is allways tricky, but my guess would be that you are using a transacted connection without starting a transaction. Whats the name of the connection factory you are using? //Peter > [Default] > [Default] at org.jbossmq.SpySession.sendMessage(SpySession.java:381) > [Default] > [Default] at org.jbossmq.SpyQueueSender.send(SpyQueueSender.java:103) > [Default] > [Default] at org.jbossmq.SpyQueueSender.send(SpyQueueSender.java:62) > [Default] > [Default] at com.xlinkbase.servlet.Kicker.Kicker.doPost(Kicker.java:133) > [Default] > [Default] at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > [Default] > [Default] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > [Default] > [Default] at >org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) > [Default] > [Default] at org.apache.tomcat.core.Handler.service(Handler.java:287) > [Default] > [Default] at >org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) > [Default] > [Default] at >org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) > [Default] > [Default] at >org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) > [Default] > [Default] at >org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) > [Default] > [Default] at >org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) > [Default] > [Default] at >org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) > [Default] > [Default] at java.lang.Thread.run(Thread.java:484) > > what's wrong? what does "Invalid transaction id" mean, i don't want to use > transactions at all. > i use jboss-2.4beta with tomcat 3.2.2, jdk 1.3 on suse linux 2.2.14. > > please help me, > thanks. > > here are fragments of the servlet code: > > ... > public void init (ServletConfig config) throws ServletException > { > super.init(config); > > try > { > > servletID = System.currentTimeMillis(); > > ctx = getInitialContext(); > queueCtx = (Context)ctx.lookup(JMS_QUEUES_CONTEXT); > qconFactory = (QueueConnectionFactory) ctx.lookup(JMS_FACTORY); > qcon = qconFactory.createQueueConnection(); > qsession = qcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); > queueInput = (Queue) queueCtx.lookup("Kicker"); > queueOutput = (Queue) queueCtx.lookup("Controller"); > qsender = qsession.createSender(queueOutput); > qreceiver = qsession.createReceiver(queueInput); > qreceiver.setMessageListener(this); > > qcon.start(); > > > } catch (NamingException ne) { > System.err.println("Naming exception: " + ne.getMessage()); > ne.printStackTrace(); > } catch (JMSException jmse) { > System.err.println("JMS exception: " + jmse.getMessage()); > jmse.printStackTrace(); > } > } > ... > > public void doPost (HttpServletRequest request, > HttpServletResponse response) throws ServletException, IOException > { > > ... > > Message msg = qsession.createTextMessage(new String(buffer)); > msg.setJMSReplyTo(queueInput); > msg.setStringProperty("Sender", "Kicker"); > msg.setIntProperty("RequestId", requestId); > > qsender.send(msg); <== here the exception occurs > > ... > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > Jobba hos oss: http://www.tim.se/weblab Peter Antman Technology in Media, Box 34105 100 26 Stockholm Systems ArchitectWWW: http://www.tim.se Email: [EMAIL PROTECTED]WWW: http://www.backsource.org Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] mysql examples
Google and yea shall receive: http://p2p.wrox.com/archive/java_databases/2001-03/7.asp r.b. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] mysql works
> "RB" == Richard Bottoms <[EMAIL PROTECTED]> writes: >> Hmm. >> >> Ours is Debian GNU/Linux and the mysql version is >> >> mysql Ver 11.13 Distrib 3.23.36, for pc-linux-gnu (i586) >> >> Could it be that the mysql version is older and maybe incompatible >> with that driver? RB> That's the thing, I went to the older version to get it to RB> work. In any case I'm glad I can stop banging my head against the RB> wall. Now then any help with an example of how to actually use it RB> in a servlet and/or jsp page would be greatly appreciated. There is a pretty good example in the J2EE Tutorial PDF from Sun. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] mysql works
>Hmm. > >Ours is Debian GNU/Linux and the mysql version is > > mysql Ver 11.13 Distrib 3.23.36, for pc-linux-gnu (i586) > >Could it be that the mysql version is older and maybe incompatible >with that driver? That's the thing, I went to the older version to get it to work. In any case I'm glad I can stop banging my head against the wall. Now then any help with an example of how to actually use it in a servlet and/or jsp page would be greatly appreciated. r.b. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] mysql works
Okay, now that I have mysql functioning would any one have a servlet and/or a http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] mysql works
> "RB" == Richard Bottoms <[EMAIL PROTECTED]> writes: RB> At 06:59 PM 7/4/01 +0100, you wrote: >>> "RB" == Richard Bottoms <[EMAIL PROTECTED]> writes: RB> Under Red Hat 6.1: RB> [JDBC provider] Starting [JDBC provider] Started [mySQLDS] RB> Starting [mySQLDS] XA Connection pool mySQLDS bound to RB> java:/mySQLDS [mySQLDS] Stopped [mySQLDS] [snip] RB> java.security.AccessController.doPrivileged(Native Method) RB> [mySQLDS] at org.jboss.Main.main(Main.java:117) RB> All I did was change to the older version of mm.mysql and RB> restarted. Problem gone. Hmm. Ours is Debian GNU/Linux and the mysql version is mysql Ver 11.13 Distrib 3.23.36, for pc-linux-gnu (i586) Could it be that the mysql version is older and maybe incompatible with that driver? -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] servlet inside a package
How to make tom cat access a servlet that is inside a Package >I and a number of other Opta2000 users are trying without success to create >CMP Entity bean. The bean deploys correctly, the datasource starts happily >and JBoss creates the necessary table (proving the datasource is setup and >working correctly), but when ever the bean is accessed (for example using a >finder method) the following exception is generated (looging has been turned >on as well): > >[MSADictionary] [TDS Driver]XA_CONNECTION_GET >[MSADictionary] SQL Server 7 unicode mode >[MSADictionary] Single Server License >[MSADictionary] Driver: i-net OPTA 2000 4.10 >[MSADictionary] Statement.close >[MSADictionary] SELECT server,catalog,chartID FROM ChartData >[MSADictionary] Statement.close >[MSADictionary] [TDS Driver]XA_CONNECTION_FREE >[MSADictionary] javax.transaction.xa.XAException: The Xid is not >valid.(XidImpl [FormatId=257, GlobalId=ZEBEDEE//0, BranchQual=1]) resource >manager:com.inet.tds.k@785d65 >[ChartData] XAException: tx=XidImpl [FormatId=257, GlobalId=ZEBEDEE//0, >BranchQual=] errorCode=XAER_NOTA >[ChartData] javax.transaction.xa.XAException: The Xid is not valid.(XidImpl >[FormatId=257, GlobalId=ZEBEDEE//0, BranchQual=1]) resource >manager:com.inet.tds.k@785d65 >[ChartData]at com.inet.tds.k.if(Unknown Source) > >We have been in touch with the tech-support for the driver who eventually >came to the following conclusion: > >"The exception occurs because there is a rollback of the transaction with a >specific XID but no transaction has been started. There seem be a bug in >JBoss. JBoss is calling a rollback for a DT without starting a DT". > >I find it hard to believe there arent 1000's of people complaining about >this, and therefore believe there is no bug, just a problem in my set up. > >My environment is > >OS: Win2K >App Server: JBoss 2.2.2 with Tomcat 3.2.2 >JDBC: Opta2000 Tds driver 4.10 > >Has anybody actually managed to get a CMP Entity bean working in JBoss with >the Opta driver? > >Any thoughts, help, pointers would be much appreciated. > >Thanks in advance. > >___ >JBoss-user mailing list >[EMAIL PROTECTED] >http://lists.sourceforge.net/lists/listinfo/jboss-user > > Emerson Cargnin TRE-SC Setor de Desenvolvimento Tel: (48) 251-3700 - Ramal 3134 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] How to map a Number field to a int correctly?
You probably need to use an Integer instead of an int, even though the jdbc spec seems to say getInt returns 0 for null values.. david jencks On 2001.07.04 09:33:14 -0400 [EMAIL PROTECTED] wrote: > Hello everyone: > > In a cmp entity bean, I made a map from Number(in Oracle) to INTEGER > (in Jdbc type) to int( in the entity bean) in the jaws.xml, as the > following: > cityId > CITY_ID > NUMBER(6) > INTEGER > > (DataBase: oracle8i) > > But When I call a finder to load a row whose City_ID field is null in > database, An Exception occurred.(as below). > If city_id is not null, It work well. > > How to make it work? why this happened? > > > java.rmi.ServerException: RemoteException occurred in server thread; > nested exception is: > java.rmi.ServerException: Load failed; nested exception is: > java.lang.NullPointerException > java.rmi.ServerException: Load failed; nested exception is: > java.lang.NullPointerException > java.lang.NullPointerException > at >sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245) > at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220) > at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122) > at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown > Source) > at >org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy.java:182) > at $Proxy1.getId(Unknown Source) > at untitled6.NodeTestClient1.main(NodeTestClient1.java:106) > Exception in thread "main" > > > _ > [×ã²»³ö»§ ÇáËÉÉÏÍø] ÉÏÍøרÓúţº95963£¬Óû§Ãû/ÃÜÂ룺263 > »¯×±Æ·ÏÄÈÕÌػݣ¬½µ¼Û¿ñ³±£¡ http://shopping.263.net/category04.htm > > ___ > 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] how to build from source
how do I get/build the cvs source for jboss? -- No one may be called "good" if they have had no chance to be bad... ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: Re[2]: [JBoss-user] (no subject)
Hi, I don't know much about it, Anatoly Akkerman (sp?) added it recently, I'd search the dev list for his postings and if that doesn't help ask him. david jencks On 2001.07.04 09:26:38 -0400 Eugene Igumnov wrote: > Dear David, > > DJ> Where do you get ut from? My guess is same computer as Test1Bean. > Unless > DJ> you have a distributed transaction manager, and the two jbosses know > about > DJ> each other, the bean operations will be in separate transactions: one > using > DJ> ut, the other container managed - hence committed as the create call > DJ> returns. > > DJ> There is a dtm integration - Tyrex- for jboss, I think in contrib. I > don't > DJ> know how to tell the 2 jbosses about each other. Perhaps there are > DJ> examples with the Tyrex stuff. > Where could I get eamples with Tyrex stuff? > > I try configurate Tyrex... My JBoss does not work :( So many errors... > > > -- > Best regards, > Eugene Igumnov mailto:[EMAIL PROTECTED] icq://877365 > Russia, Novosibirsk, > Project Manager (System Architect), > GeoCad Plus Company http://www.geocad.ru > > > > ___ > 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
Re: [JBoss-user] findAll not finding Dirty data in transaction
If I understand what is going on, this was recently fixed by Bill Burke. I think the 2.4.? ?beta? versions include the fix, don't know about 2.2.? david jencks On 2001.07.04 09:05:23 -0400 Andre Vermeulen@i-Commerce wrote: > Hi > > I am experiencing the following problem while doing updates and > subsequent > finds on entity beans. The scenario is as follows: > > In my code I first find an object via primary key, I then update a field > or > two and call setData on the remote interface for the object. If I then do > another find by PK the changed/dirty object is returned and checking in > the > log file reveals that a pooled object is returned i.e. there was no DB > access. If I then call a finder method that should return this changed > object, amongst others, e.g. a findAll I do not get the changed/dirty > object > but rather one representing the committed data on the DB, for this step > the > log file shows DB access as expected. > > here is a short code example, that interacts with the entity bean: > > TrailerHome trailerHome = > (TrailerHome)EJBUtil.getBeanHome(TrailerHome.JNDI_NAME); > Trailer trailerRemote = trailerHome.findByPrimaryKey(trailerPK); > TrailerData trailerData = trailerRemote.getData(); > > // change a property > trailerData.setColour("purple"); > > //update trailer > trailerRemote.setData(trailerData); > > // do search by PK, this returns "dirty" object > Trailer pkResult = railerHome.findByPrimaryKey(trailerPK); > > // do a search for everything, this does not return the "dirty" > object > Collection allTrailers; > allTrailers = trailerHome.findAll(); > > Has anybody got any ideas as to what I am doing wrong, if anything, or is > this what should be happening. In the above example I could obviously put > the update and find in different transactions but for what I am working > on I > need to do an update followed by a find, that includes the changes, and > then > an update elsewhere in a single transaction. > > thanks > > > > ** > > The information in this e-mail is confidential and is legally privileged. > It is intended solely for the addressee. If this email is not intended > for > you, you cannot copy, distribute, or disclose the included information > to any-one > > If you are not the intended recipient please delete the mail. Whilst > all reasonable steps have been taken to ensure the accuracy and > integrity of all data transmitted electronically, no liability is > accepted > if the data, for whatever reason, is corrupt or does not reach it's > intended destination. > All business is undertaken, subject to our standard trading conditions > which are available on request. > > *** > > ___ > 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
Re: [JBoss-user] mysql works
At 06:59 PM 7/4/01 +0100, you wrote: >> "RB" == Richard Bottoms <[EMAIL PROTECTED]> writes: Under Red Hat 6.1: [JDBC provider] Starting [JDBC provider] Started [mySQLDS] Starting [mySQLDS] XA Connection pool mySQLDS bound to java:/mySQLDS [mySQLDS] Stopped [mySQLDS] java.lang.NullPointerException [mySQLDS] at org.opentools.minerva.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSourc e.java:165) [mySQLDS] at org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:330) [mySQLDS] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93) [mySQLDS] at java.lang.reflect.Method.invoke(Native Method) [mySQLDS] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [mySQLDS] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [mySQLDS] at org.jboss.util.ServiceControl.start(ServiceControl.java:97) [mySQLDS] at java.lang.reflect.Method.invoke(Native Method) [mySQLDS] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [mySQLDS] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [mySQLDS] at org.jboss.Main.(Main.java:217) [mySQLDS] at org.jboss.Main$1.run(Main.java:121) [mySQLDS] at java.security.AccessController.doPrivileged(Native Method) [mySQLDS] at org.jboss.Main.main(Main.java:117) All I did was change to the older version of mm.mysql and restarted. Problem gone. r.b. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] findAll and RowSet
Hi all. In my application I want to display a table with my objets. To make it more performat I wanted to use RowSet instead of findAll and then fatching the data for each object separately. (I use BMP, since the data are already stored in an RDBMS and used by legacy applications). This aproach works fine with a separate stateless session bean, which contains the method: ResultSet retrieveAllTabularData(void) throws RemoteException; I wonder, if I can throw the additional stateless session bean away and declare the method retrieveAllTabularData into the home interface of my entity bean. Is this allowed by the EJB spec? If yes, how can I do it? I tried to implement it in my bean under the name retrieveAllTabularData as well as ejbRetrieveAllTabularData, but JBoss always complained it cold not resolve the method. Is the Home interface at all the place for "static" methods of EJBs? Or is it necessary to create a stateless session bean? Thanks for any patterns. -- gR ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] CMP Entity Bean using Opta2000 Driver - Has Anyone got this to work???
I and a number of other Opta2000 users are trying without success to create CMP Entity bean. The bean deploys correctly, the datasource starts happily and JBoss creates the necessary table (proving the datasource is setup and working correctly), but when ever the bean is accessed (for example using a finder method) the following exception is generated (looging has been turned on as well): [MSADictionary] [TDS Driver]XA_CONNECTION_GET [MSADictionary] SQL Server 7 unicode mode [MSADictionary] Single Server License [MSADictionary] Driver: i-net OPTA 2000 4.10 [MSADictionary] Statement.close [MSADictionary] SELECT server,catalog,chartID FROM ChartData [MSADictionary] Statement.close [MSADictionary] [TDS Driver]XA_CONNECTION_FREE [MSADictionary] javax.transaction.xa.XAException: The Xid is not valid.(XidImpl [FormatId=257, GlobalId=ZEBEDEE//0, BranchQual=1]) resource manager:com.inet.tds.k@785d65 [ChartData] XAException: tx=XidImpl [FormatId=257, GlobalId=ZEBEDEE//0, BranchQual=] errorCode=XAER_NOTA [ChartData] javax.transaction.xa.XAException: The Xid is not valid.(XidImpl [FormatId=257, GlobalId=ZEBEDEE//0, BranchQual=1]) resource manager:com.inet.tds.k@785d65 [ChartData] at com.inet.tds.k.if(Unknown Source) We have been in touch with the tech-support for the driver who eventually came to the following conclusion: "The exception occurs because there is a rollback of the transaction with a specific XID but no transaction has been started. There seem be a bug in JBoss. JBoss is calling a rollback for a DT without starting a DT". I find it hard to believe there arent 1000's of people complaining about this, and therefore believe there is no bug, just a problem in my set up. My environment is OS: Win2K App Server: JBoss 2.2.2 with Tomcat 3.2.2 JDBC: Opta2000 Tds driver 4.10 Has anybody actually managed to get a CMP Entity bean working in JBoss with the Opta driver? Any thoughts, help, pointers would be much appreciated. Thanks in advance. Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] CMP Entity Bean using Opta2000 Driver - Has Anyone got this to work???
I and a number of other Opta2000 users are trying without success to create CMP Entity bean. The bean deploys correctly, the datasource starts happily and JBoss creates the necessary table (proving the datasource is setup and working correctly), but when ever the bean is accessed (for example using a finder method) the following exception is generated (looging has been turned on as well): [MSADictionary] [TDS Driver]XA_CONNECTION_GET [MSADictionary] SQL Server 7 unicode mode [MSADictionary] Single Server License [MSADictionary] Driver: i-net OPTA 2000 4.10 [MSADictionary] Statement.close [MSADictionary] SELECT server,catalog,chartID FROM ChartData [MSADictionary] Statement.close [MSADictionary] [TDS Driver]XA_CONNECTION_FREE [MSADictionary] javax.transaction.xa.XAException: The Xid is not valid.(XidImpl [FormatId=257, GlobalId=ZEBEDEE//0, BranchQual=1]) resource manager:com.inet.tds.k@785d65 [ChartData] XAException: tx=XidImpl [FormatId=257, GlobalId=ZEBEDEE//0, BranchQual=] errorCode=XAER_NOTA [ChartData] javax.transaction.xa.XAException: The Xid is not valid.(XidImpl [FormatId=257, GlobalId=ZEBEDEE//0, BranchQual=1]) resource manager:com.inet.tds.k@785d65 [ChartData] at com.inet.tds.k.if(Unknown Source) We have been in touch with the tech-support for the driver who eventually came to the following conclusion: "The exception occurs because there is a rollback of the transaction with a specific XID but no transaction has been started. There seem be a bug in JBoss. JBoss is calling a rollback for a DT without starting a DT". I find it hard to believe there arent 1000's of people complaining about this, and therefore believe there is no bug, just a problem in my set up. My environment is OS: Win2K App Server: JBoss 2.2.2 with Tomcat 3.2.2 JDBC: Opta2000 Tds driver 4.10 Has anybody actually managed to get a CMP Entity bean working in JBoss with the Opta driver? Any thoughts, help, pointers would be much appreciated. Thanks in advance. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] mysql works
At last. Note that Jboss 2.2.2 requires mm.mysql-2.0.2-bin.jar. Version mm.mysql-2.0.4-bin.jar will not work. r.b. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] mysql works
> "RB" == Richard Bottoms <[EMAIL PROTECTED]> writes: RB> At last. Note that Jboss 2.2.2 requires RB> mm.mysql-2.0.2-bin.jar. Version mm.mysql-2.0.4-bin.jar will not RB> work. H, I've been using 2.0.4 with JBoss 2.2.2 for quite some time now. What excactly doesn't work? -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JAAS Security question - Getting pricipaldata...
> > This thema is in deed very confusing. Here my 2 > cents > > ( though I use it with tomcat ) > > lol, glad to hear that, im going nuts here :-) Happened to me too... :) But 2 weekends of code diving ( recompiling security stuff myself with adding a LOT of debug output to trace calls helped... ) > Did that, seems to work okay. Using a testclient > from the > prompt verifies that access to my ejb's are only > allowed > for the correct user/pass combo... That's the way it works. it's good so :) > hmmm perhaps im missing something here?! Do i have > to > specify allowed user/pass for both jetty ans jBoss?? > (sure hope not :-) It depends on what you like to have. I have brain dead securoty schema in my aplication ( big banks are paranoid on security. ) I have EJB's , which manage users - one session bean, and couple of entities. And my login module goes to them to authenticate/authorize. Of course those beans like to have valid user/pass. I solved it following way: I Created login module just for the backend, which treats null principal/credential as "nobody"/"nobody", and alway adds role "nobody" to every user. ( Though JaasSecurityManager.java needed some patching, and I already forwarded this patch so Jboss team. Hope to see it inside next release. ) This allows also anonymous access to beans for non authenticated users ( they shall be able i.e. to access stock quotes ), and of course login. Then there is a separate login module ( and login context ) just for the web - where it authenticates against beans ( and has nobody/nobody permission on them ), and after successfull authentication it stores not the user name as credential ( it is not a primary key in my schema ), but ID of principal bean. and password. After it is stored on session somewhere, every access to beans gets those 2 things ( i.e 2/foobar ) attached, and it's authenticated against backend login module. Unfortunately, here I had to go to database directly, because trying to access those beans from login module caused very deep recursion and crash. ( maybe I'll find a way to overcome this problem ) This login module performs role mapping, and then it is stored in some kind of cache somewhere, and used on subsequent invocations. If you have simple setups, where you can go away with just login name/password pair, you coud use just one login module. BUt remember, tomcat/jetty uses assigned roles for web access only. Role mapping/authentication happens again on every bean invocation. I also used simplier schema for my JUnit tests - I created a FakeLogin class, which instantiates login context and logs me directly wiith desired user ID and password. ( it goes directly to backend login module ) [do you have more insight in problem nbow :) ? ] > Doing a session.invalidate has absolutely no effect! > Doing a simple refresh after the invalidate will > just > bring up the page again, without prompting for > user/pass! Maybe it was cache? > > You can also throw out any web-context login > stuff, > > and > > obtain login context yourselves, provide necessary > > callbacks and call login on context. > > (just like in java client examples) > > Well, that should of cource work, but i the other > thing > should work... (i think?!?) it does :) regards, = Konstantin Priblouda ( ko5tik )Freelance Software developer < http://www.pribluda.de > < play java games -> http://www.yook.de > < render charts online -> http://www.pribluda.de/povray/ > __ 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] JAAS Security question - Getting pricipaldata...
--- Torsten Terp <[EMAIL PROTECTED]> wrote: > Hi, > > Thanks for replying Are you saying that the > session should > have attributes j_username ans j_password? Doing a > session.getAttributeNames() > reveals none?! I have also tried > HttpSevletRequest.getRemoteUser() and > HttpSevletRequest.getUserPrincipal() both return > null !? > Also, trying a session.invalidate() or > response.sendError(401,"") does not > seem to have any influence, since a refresh will > refresh the page, just > as if i had passed the user and pass? I dont quite > get it! > > I seems as though the page is'nt secured at all, but > i cant get to it without > passing user and pass? hm... I recomend to start reading source in contrib/tomcat directory. Especially JBossSecurityMgrRealm.java ( or like it ) This will give you more insight. And maybe check your deployment descriptors... regards, = Konstantin Priblouda ( ko5tik )Freelance Software developer < http://www.pribluda.de > < play java games -> http://www.yook.de > < render charts online -> http://www.pribluda.de/povray/ > __ 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] xxx is NOT authorized, requiredRoles=[xxx]
--- awc <[EMAIL PROTECTED]> wrote: > I run Jboss-2.2.2-Tomcat-3.2.2 combo. > I do have user(saman) set up to access certain > methods and beans. Still > I get lots of these lines. You dod not submit most interesting part of your ejb.jar.xml - the one with method permissions. And judging from your tables, JohnH does not has role "admin" - so why you wonder? regards, = Konstantin Priblouda ( ko5tik )Freelance Software developer < http://www.pribluda.de > < play java games -> http://www.yook.de > < render charts online -> http://www.pribluda.de/povray/ > __ 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] Security with JBoss 2.4-Tomcat
--- [EMAIL PROTECTED] wrote: > > Hi all, > > I've had some difficulties using the integrated > security with JBoss2.4. > The two problems that I've noticed are, > b. The other problem is with configuration to use > database based security. I > could not get myself authenticated unless the table > names are the same as the > example. You can set parameters to login module ( if you use database login module ) in the auth.conf You can even set up whole queries the way you like there. regards, = Konstantin Priblouda ( ko5tik )Freelance Software developer < http://www.pribluda.de > < play java games -> http://www.yook.de > < render charts online -> http://www.pribluda.de/povray/ > __ 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] Cacheing LoginContext objects
--- Andy Comley <[EMAIL PROTECTED]> wrote: > I have all the JAAS security working within a J2EE > application with both a > web component and a ejb component. In order to > authenticate a user to the > application, I have a login JSP where the user > enters the login name and > password. In the web application, this information > is then used to create a > LoginContext in order to access the ejb component - > this works great. > However, the next request from the same user does > not have the principal > set. > > My question is, do I have to log that user in on > every request in order to > set the right LoginContext, or can I cache the > LoginContext from the initial > login in the user's web session and somehow > dynamically set it for > subsequent ejb calls derived from future requests? You can use form based authentication instead. Or look into JbossSecurityMgrRealm.java in tomcat/contrib directory ( CVS ) - and steal principal/credential storing from there... regards, = Konstantin Priblouda ( ko5tik )Freelance Software developer < http://www.pribluda.de > < play java games -> http://www.yook.de > < render charts online -> http://www.pribluda.de/povray/ > __ 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] Error fetchning session bean
> "NT" == Nick Taylor <[EMAIL PROTECTED]> writes: >> Hmmm, I got this error. The bean verifies and is deployed. Could >> somebody please shed some light into this? Am I missing a jar >> file? NT> yep, jboss-client.jar Arrrgh. *pilot error*. I had the file in my classpath but jde-mode doesn't barf when the file doesn't exist. I did some restructuring (bad thing) and created a little problem. Now I'm getting this: Exception in thread "main" java.lang.NoClassDefFoundError: javax/transaction/TransactionManager at java.lang.Class.getMethods0(Native Method) at java.lang.Class.getDeclaredMethods(Class.java:1039) at java.io.ObjectStreamClass.computeSerialVersionUID(ObjectStreamClass.java:873) at java.io.ObjectStreamClass.access$200(ObjectStreamClass.java:46) at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:420) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.init(ObjectStreamClass.java:401) Another jar file missing? -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss & Tomcat under the same JVM
If I start JBoss with the "run_with_tomcat" script, how can I be sure that they are both running under the same JVM? Is this the correct way of starting JBoss & Tomcat within the same JVM? I get no error messages upon initialization, and the test deployment works fine. Thanks ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [Ejbdoclet-user] AW: [JBoss-user] Help with another one - ejbdoclet/jboss.dtd not found
help - how do i unsubscribe ? > -Original Message- > From: Vincent Harcq [SMTP:[EMAIL PROTECTED]] > Sent: &dalet; 04 &yod;&vav;&lamed;&yod; 2001 17:44 > To: Jan Heise; [EMAIL PROTECTED]; ejbdoclet > Subject: RE: [Ejbdoclet-user] AW: [JBoss-user] Help with another one > - ejbdoclet/jboss.dtd not found > > I wanted to say remove the dtd from the template... > > > -Message d'origine- > > De : [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]De la part de Jan > > Heise > > Envoye : mercredi 4 juillet 2001 17:18 > > A : [EMAIL PROTECTED]; ejbdoclet > > Objet : [Ejbdoclet-user] AW: [JBoss-user] Help with another one - > > ejbdoclet/jboss.dtd not found > > > > > > But I want to get around editing the automatically generated > > files by hand. That does not fit very well into my build.xml. > > > > jan > > > > -- > > Jan Heise / Tel: +49-170-4803237 / E-Mail: [EMAIL PROTECTED] > > > > -Ursprungliche Nachricht- > > Von: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]Im Auftrag von Vincent > > Harcq > > Gesendet: Mittwoch, 4. Juli 2001 13:01 > > An: [EMAIL PROTECTED]; ejbdoclet > > Betreff: RE: [JBoss-user] Help with another one - ejbdoclet/jboss.dtd > > not found > > > > > > Remove the DTD from jboss.xml. There is no validation anyway. > > Normally JBoss will find it in jboss.jar but I am not sure on 2.2. > > > > > -Message d'origine- > > > De : [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED]]De la part de Jan Heise > > > Envoye : mercredi 4 juillet 2001 12:40 > > > A : ejbdoclet > > > Cc : jboss-user > > > Objet : [JBoss-user] Help with another one - ejbdoclet/jboss.dtd not > > > found > > > > > > > > > hi folks, > > > > > > regarding ejbdoclet - thanks for your help so far. > > > > > > my other question is: on deployment of my beans, jboss is > > > complaining about the jboss.dtd which can't be found: > > > > > > [Auto deploy] org.jboss.ejb.DeploymentException: > > > Could not deploy > > > file:/C:/development/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Def > > > ault/CN_BS > > > C3-0.0.1.ear, > > > Cause:org.jboss.ejb.DeploymentException: > > > File "http://www.jboss.org/j2ee/dtd/jboss.dtd" not found., > > > Cause:org.xml.sax.SAXParseException: > > > File "http://www.jboss.org/j2ee/dtd/jboss.dtd" not found. > > > > > > in jboss.xml: > > > > > "http://www.jboss.org/j2ee/dtd/jboss.dtd"> > > > > > > this was generated by ejbdoclet. is there a way to suppress the > > > generation of this line? perhaps this is just another newbie > > > error with ejbdoclet though, but a download from the above address > > > fails - and i never used the dtd on other projects anyway. > > > > > > any suggestions? > > > > > > jan > > > > > > -- > > > Jan Heise / Tel: +49-170-4803237 / E-Mail: [EMAIL PROTECTED] > > > > > > > > > ___ > > > 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 > > > > > > ___ > > Ejbdoclet-user mailing list > > [EMAIL PROTECTED] > > http://lists.sourceforge.net/lists/listinfo/ejbdoclet-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
RE: [JBoss-user] Error fetchning session bean
> -Original Message- > From: Nicolai P Guba [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 04, 2001 4:39 PM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Error fetchning session bean > > > Hmmm, I got this error. The bean verifies and is deployed. Could > somebody please shed some light into this? Am I missing a jar file? > yep, jboss-client.jar ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [Ejbdoclet-user] AW: [JBoss-user] Help with another one - ejbdoclet/jboss.dtd not found
I wanted to say remove the dtd from the template... > -Message d'origine- > De : [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]De la part de Jan > Heise > Envoyé : mercredi 4 juillet 2001 17:18 > À : [EMAIL PROTECTED]; ejbdoclet > Objet : [Ejbdoclet-user] AW: [JBoss-user] Help with another one - > ejbdoclet/jboss.dtd not found > > > But I want to get around editing the automatically generated > files by hand. That does not fit very well into my build.xml. > > jan > > -- > Jan Heise / Tel: +49-170-4803237 / E-Mail: [EMAIL PROTECTED] > > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]Im Auftrag von Vincent > Harcq > Gesendet: Mittwoch, 4. Juli 2001 13:01 > An: [EMAIL PROTECTED]; ejbdoclet > Betreff: RE: [JBoss-user] Help with another one - ejbdoclet/jboss.dtd > not found > > > Remove the DTD from jboss.xml. There is no validation anyway. > Normally JBoss will find it in jboss.jar but I am not sure on 2.2. > > > -Message d'origine- > > De : [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]De la part de Jan Heise > > Envoyé : mercredi 4 juillet 2001 12:40 > > À : ejbdoclet > > Cc : jboss-user > > Objet : [JBoss-user] Help with another one - ejbdoclet/jboss.dtd not > > found > > > > > > hi folks, > > > > regarding ejbdoclet - thanks for your help so far. > > > > my other question is: on deployment of my beans, jboss is > > complaining about the jboss.dtd which can't be found: > > > > [Auto deploy] org.jboss.ejb.DeploymentException: > > Could not deploy > > file:/C:/development/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Def > > ault/CN_BS > > C3-0.0.1.ear, > > Cause:org.jboss.ejb.DeploymentException: > > File "http://www.jboss.org/j2ee/dtd/jboss.dtd"; not found., > > Cause:org.xml.sax.SAXParseException: > > File "http://www.jboss.org/j2ee/dtd/jboss.dtd"; not found. > > > > in jboss.xml: > > > "http://www.jboss.org/j2ee/dtd/jboss.dtd";> > > > > this was generated by ejbdoclet. is there a way to suppress the > > generation of this line? perhaps this is just another newbie > > error with ejbdoclet though, but a download from the above address > > fails - and i never used the dtd on other projects anyway. > > > > any suggestions? > > > > jan > > > > -- > > Jan Heise / Tel: +49-170-4803237 / E-Mail: [EMAIL PROTECTED] > > > > > > ___ > > 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 > > > ___ > Ejbdoclet-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/ejbdoclet-user > > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Error fetchning session bean
Hmmm, I got this error. The bean verifies and is deployed. Could somebody please shed some light into this? Am I missing a jar file? javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.ejb.plugins.jrmp13.interfaces.HomeProxy (no security manager: RMI class loader disabled)] SAXException:java.lang.NullPointerException -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] RMI/IIOP warning
Still not. I removed all the RemoteExceptions from my bean and there is still the same message :( François - Original Message - From: "Per Böckman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 04, 2001 4:11 PM Subject: RE: [JBoss-user] RMI/IIOP warning > I guess that your methods in the bean-class throws RemoteException. The > methods in the home, and remote interface must throw RemoteException, > however the method in the bean-class are no longer allowed to do that (see > EJB2.0 PFD section 18, Exception handling, for more information). > > However I can't see why EJBException should not be a valid RMI/IIOP type??? > > /Per > > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of François > > Charoy > > Sent: den 4 juli 2001 15:37 > > To: [EMAIL PROTECTED] > > Subject: Re: [JBoss-user] RMI/IIOP warning > > > > > > Anyway, I have still this error message without EJBException > > > > François > > > > - Original Message - > > From: "Hermann RANGAMANA" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Wednesday, July 04, 2001 3:23 PM > > Subject: Re: [JBoss-user] RMI/IIOP warning > > > > > > > Still it's an invalid exception of RMI/IIOP because ... it extends > > > RuntimeException (regardless of what the superclass of > > RuntimeException > > is). > > > > > > --hermann > > > PS : cf previous post of Toby ... ;-) > > > - Original Message - > > > From: "Burkhard Vogel" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Wednesday, July 04, 2001 2:36 PM > > > Subject: Re: [JBoss-user] RMI/IIOP warning > > > > > > > > > > No! > > > > EJBException extends RuntimeException extends Exception extends > > Throwable > > > > implements java.io.Serializable. > > > > So? > > > > Burkhard > > > > - Original Message - > > > > From: "Toby Allsopp" <[EMAIL PROTECTED]> > > > > To: <[EMAIL PROTECTED]> > > > > Sent: Tuesday, July 03, 2001 12:18 AM > > > > Subject: Re: [JBoss-user] RMI/IIOP warning > > > > > > > > > > > > > On Sun, Jul 01, 2001 at 09:07:57PM -0400, asdfa asdfdfd wrote: > > > > > > public void setHostIP(String hostName) throws > > > java.rmi.RemoteException, > > > > javax.ejb.EJBException; > > > > > > > > > > javax.ejb.EJBException is not a valid exception for > > RMI/IIOP because > > it > > > > > is a subclass of RuntimeException. Remove this from your throws > > clause. > > > > > > > > > > Toby. > > > > > > > > > > ___ > > > > > 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 > > > > > > > > > ___ > > 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
RE: [JBoss-user] problem : installation of JBoss
I don't speak french, but it looks that a port is already in use. Check which software uses the port (do you have a other webserver running?) or configure jetty to use another port. > -Original Message- > From: > IMCEAEX-_O=THOMSON+20CSF+20COMMUNICATIONS_OU=THALES-ISR-MASSY_CN=DESTINATA > IRES+20TEMPORAIRES+20ET+20STAGIAIRES+20DE+20ISR-MASSY_CN=SIMON+2ERIVAS@tcc > .thomson-csf.com > [SMTP:IMCEAEX-_O=THOMSON+20CSF+20COMMUNICATIONS_OU=THALES-ISR-MASSY_CN=DES > TINATAIRES+20TEMPORAIRES+20ET+20STAGIAIRES+20DE+20ISR-MASSY_CN=SIMON+2ERIV > [EMAIL PROTECTED]] > Sent: 04 July 2001 16:26 > To: [EMAIL PROTECTED] > Subject: [JBoss-user] problem : installation of JBoss > > I have a problem installing JBoss on my computer. > I have downloaded and installed JBoss 2.2.1 (+ Jetty), JDK v1.3.0 and Ant > v1.3. > I am almost sure that the JDK and Ant are properly installed since I have > already used them in the past to install PostgreSQL v7.1. > > Nevertheless, when I run the script run.sh, a few exceptions are thrown. > Here is the part of the output that corresponds to my problem: > > ... > [Jetty] Started ServletHandler in ServletHandlerContext[/] > [Jetty] ResourceHandler started in file:/usr/local/jboss/jetty/etc/dtd/ > [Jetty] Started ResourceHandler in ServletHandlerContext[/] > [Jetty] Stopped > [Jetty] java.net.BindException: Adresse déjà utilisée > [Jetty] at java.net.PlainSocketImpl.socketBind(Native Method) > [Jetty] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397) > [Jetty] at java.net.ServerSocket.(ServerSocket.java:170) > [Jetty] at > com.mortbay.Util.ThreadedServer.newServerSocket(ThreadedServer.java:323) > [Jetty] at > com.mortbay.Util.ThreadedServer.start(ThreadedServer.java:400) > [Jetty] at > com.mortbay.HTTP.SocketListener.start(SocketListener.java:71) > [Jetty] at com.mortbay.HTTP.HttpServer.start(HttpServer.java:136) > [Jetty] at > org.jboss.jetty.JettyService.startService(JettyService.java:294) > [Jetty] at > org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93) > [Jetty] at java.lang.reflect.Method.invoke(Native Method) > [Jetty] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) > [Jetty] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) > [Jetty] at > org.jboss.util.ServiceControl.start(ServiceControl.java:97) > [Jetty] at java.lang.reflect.Method.invoke(Native Method) > [Jetty] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) > [Jetty] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) > [Jetty] at org.jboss.Main.(Main.java:217) > [Jetty] at org.jboss.Main$1.run(Main.java:121) > [Jetty] at java.security.AccessController.doPrivileged(Native > Method) > [Jetty] at org.jboss.Main.main(Main.java:117) > [Service Control] Could not start DefaultDomain:service=Jetty > [Service Control] java.net.BindException: Adresse déjà utilisée > [Service Control] at java.net.PlainSocketImpl.socketBind(Native > Method) > [Service Control] at > java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397) > [Service Control] at > java.net.ServerSocket.(ServerSocket.java:170) > [Service Control] at > com.mortbay.Util.ThreadedServer.newServerSocket(ThreadedServer.java:323) > [Service Control] at > com.mortbay.Util.ThreadedServer.start(ThreadedServer.java:400) > [Service Control] at > com.mortbay.HTTP.SocketListener.start(SocketListener.java:71) > [Service Control] at > com.mortbay.HTTP.HttpServer.start(HttpServer.java:136) > [Service Control] at > org.jboss.jetty.JettyService.startService(JettyService.java:294) > [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.Main.main(Main.java:117) > [Jetty] start HttpServer version Jetty/3.1.RC5 > [Jetty] > java.lang.reflect.InvocationTargetException: java.net.BindException: > Adresse
Re: [JBoss-user] How to map to cloudscape database
Hi! You should have defined both "JdbcProvider" & "XADataSource" services in your jboss.jcml as something like :- ... COM.cloudscape.core.RmiJdbcDriver ... Cloudscape ... jdbc:rmi://localhost:1099/jdbc:cloudscape:CloudscapeDB;create=true ... ... That should bring up something like :- ... [JDBC provider] Initializing [JDBC provider] Loaded COM.cloudscape.core.RmiJdbcDriver [JDBC provider] Initialized ... [Cloudscape] Starting [Cloudscape] XA Connection pool Cloudscape bound to java:/Cloudscape [Cloudscape] Started ... when you start jboss. Then in jboss.xml in your META-INF, do something like :- ... jdbc/ConferenceDB java:/Cloudscape ... ralph wrote: > > I copied the cloudscape driver files to [jboss-home] \ lib \ ext. > Edited jboss.conf > Started jBoss. > Deployed a few beans in a jar-file. > Everything appears to be okay according to server.log and standard output. > :-) > > Now: > What do I need to do in order to map my datasource name correctly, meaning: > > In my beans I want to connect to Cloudscape this way: > > DataSource ds = (DataSource) > nitial.lookup( "java:comp/env/jdbc/ConferenceDB" ); > > The beans which should access cloudscape have the following resource-ref in > ejb-jar.xml: > > jdbc/ConferenceDB > javax.sql.DataSource > Container > Shareable > > > Currently, after deploying my jar file, the output on port 8082 looks like > this for these beans: > > + env (class: org.jnp.interfaces.NamingContext) > | + jdbc (class: org.jnp.interfaces.NamingContext) > | | + ConferenceDB[link -> java: / DefaultDS] (class: > javax.naming.LinkRef) > > I guess that should say Cloudscape instead of DefaultDS - or not ? > > I know it has something to do with jBoss.xml, but didn't find an example > for that. What has to go into jboss.xml ? > > Thanks > Ralph > > ___ > 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
AW: [JBoss-user] Help with another one - ejbdoclet/jboss.dtd not found
But I want to get around editing the automatically generated files by hand. That does not fit very well into my build.xml. jan -- Jan Heise / Tel: +49-170-4803237 / E-Mail: [EMAIL PROTECTED] -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von Vincent Harcq Gesendet: Mittwoch, 4. Juli 2001 13:01 An: [EMAIL PROTECTED]; ejbdoclet Betreff: RE: [JBoss-user] Help with another one - ejbdoclet/jboss.dtd not found Remove the DTD from jboss.xml. There is no validation anyway. Normally JBoss will find it in jboss.jar but I am not sure on 2.2. > -Message d'origine- > De : [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]De la part de Jan Heise > Envoyé : mercredi 4 juillet 2001 12:40 > À : ejbdoclet > Cc : jboss-user > Objet : [JBoss-user] Help with another one - ejbdoclet/jboss.dtd not > found > > > hi folks, > > regarding ejbdoclet - thanks for your help so far. > > my other question is: on deployment of my beans, jboss is > complaining about the jboss.dtd which can't be found: > > [Auto deploy] org.jboss.ejb.DeploymentException: > Could not deploy > file:/C:/development/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Def > ault/CN_BS > C3-0.0.1.ear, > Cause:org.jboss.ejb.DeploymentException: > File "http://www.jboss.org/j2ee/dtd/jboss.dtd"; not found., > Cause:org.xml.sax.SAXParseException: > File "http://www.jboss.org/j2ee/dtd/jboss.dtd"; not found. > > in jboss.xml: > "http://www.jboss.org/j2ee/dtd/jboss.dtd";> > > this was generated by ejbdoclet. is there a way to suppress the > generation of this line? perhaps this is just another newbie > error with ejbdoclet though, but a download from the above address > fails - and i never used the dtd on other projects anyway. > > any suggestions? > > jan > > -- > Jan Heise / Tel: +49-170-4803237 / E-Mail: [EMAIL PROTECTED] > > > ___ > 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
[JBoss-user] Errror with tomcat-test.ear
Hi, i am new with JBoss. i installed JBoss 2.2.2 on W2K with jdk 1.3.0 the server starts without error-messages. I wanted to test the tomcat-test application. when i enter http://localhost:8080/jboss the index-page appears in IE. But if i click on execute example i get an exception: Servlet calling EJB Call failed... Exception: javax.naming.CommunicationException. Root exception is java.net.MalformedURLException: no protocol: Files/appserver/jboss/tmp/deploy/Default/tomcat-test.ear/ejb1002.jar at java.net.URL.(URL.java:473) at java.net.URL.(URL.java:376) at java.net.URL.(URL.java:330) at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:374) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:132) at sun.rmi.server.MarshalInputStream.resolveClass (MarshalInputStream.java:143) at java.io.ObjectInputStream.inputClassDescriptor (ObjectInputStream.java:918) at java.io.ObjectInputStream.readObject (ObjectInputStream.java:366) at java.io.ObjectInputStream.readObject (ObjectInputStream.java:350) at java.io.ObjectInputStream.inputClassFields (ObjectInputStream.java:2262) at java.io.ObjectInputStream.defaultReadObject (ObjectInputStream.java:519) at java.io.ObjectInputStream.inputObject (ObjectInputStream.java:1411) at java.io.ObjectInputStream.readObject (ObjectInputStream.java:386) at java.io.ObjectInputStream.readObject (ObjectInputStream.java:236) at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.readExternal (HomeProxy.java:267) at java.io.ObjectInputStream.inputObject (ObjectInputStream.java:1212) at java.io.ObjectInputStream.readObject (ObjectInputStream.java:386) at java.io.ObjectInputStream.inputClassFields (ObjectInputStream.java:2262) at java.io.ObjectInputStream.defaultReadObject (ObjectInputStream.java:519) at java.io.ObjectInputStream.inputObject (ObjectInputStream.java:1411) at java.io.ObjectInputStream.readObject (ObjectInputStream.java:386) at java.io.ObjectInputStream.readObject (ObjectInputStream.java:236) at java.rmi.MarshalledObject.get(MarshalledObject.java:138) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:353) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333) at javax.naming.InitialContext.lookup(InitialContext.java:350) at org.jboss.test.tomcat.servlet.HelloEJB.testBean (HelloEJB.java:57) at org.jboss.test.tomcat.servlet.HelloEJB.doGet(HelloEJB.java:38) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService (ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service (ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService (ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service (ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection (HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt (PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run (ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) can anybody help me? is JBoss not properly configured??? Thanks Michael ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Which version of JDK is advisable?
Integration with tomcat is available with jboss 2.2.2. If You are new to jboss I would recommend using fist the stable version 2.2.2 with jdk 1.3. > -Original Message- > From: Anthony IVETAC [SMTP:[EMAIL PROTECTED]] > Sent: 04 July 2001 16:43 > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Which version of JDK is advisable? > > I am installing a JBOSS-TOMCAT system and am currently using JDK-1.2.1. I > was > unable to install JBOSS-2.4 as it uses some of the newly introduced > classes to > JDK-1.3. I have now successfully installed JBOSS-2.2.2, which is working > OK. > > My dilemma is : should I continue to use JBOSS-2.2.2 with JDK-1.2.1 OR > should > I go for JDK-1.3 together with the latest JBOSS-2.4? > > Any help would be much appreciated. Most important to me is that JBoss > integrates with Tomcat under the same JVM - is this possible with > JBOSS-2.2.2? > > Thankyou > > > ___ > 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] problem with Beta 2.4 and Sybase
Hello all, I'm trying to use the 2.4 beta with Sybase. I've installed the FreeTDS driver jconn2d.jar into jboss' lib/ext directory. When I start the server it hang here... [JdbcProvider] Started [XADataSourceLoader] Starting [SybaseDS] XA Connection pool SybaseDS bound to java:/SybaseDS excerpts from my jboss.jcml file com.sybase.jdbc2.jdbc.SybDriver org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl SybaseDS jdbc:sybase:Tds:localhost:4100/evn sa zyb4s3 10 true What newbie mistake am I making here? -- No one may be called "good" if they have had no chance to be bad... ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] findAll not finding Dirty data in transaction
I suppose bug fix# 433314 (fixed bug 433115. storeEntities on find) Will solve our problem ! When will JBoss 2.4 final be released ? How stable is the current version 2.4 beta version ? thanks andre -Original Message- From: Andre Vermeulen@i-Commerce [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 04, 2001 3:05 PM To: '[EMAIL PROTECTED]' Cc: Robin Beetge@iCommerce Subject: [JBoss-user] findAll not finding Dirty data in transaction Hi I am experiencing the following problem while doing updates and subsequent finds on entity beans. The scenario is as follows: In my code I first find an object via primary key, I then update a field or two and call setData on the remote interface for the object. If I then do another find by PK the changed/dirty object is returned and checking in the log file reveals that a pooled object is returned i.e. there was no DB access. If I then call a finder method that should return this changed object, amongst others, e.g. a findAll I do not get the changed/dirty object but rather one representing the committed data on the DB, for this step the log file shows DB access as expected. here is a short code example, that interacts with the entity bean: TrailerHome trailerHome = (TrailerHome)EJBUtil.getBeanHome(TrailerHome.JNDI_NAME); Trailer trailerRemote = trailerHome.findByPrimaryKey(trailerPK); TrailerData trailerData = trailerRemote.getData(); // change a property trailerData.setColour("purple"); //update trailer trailerRemote.setData(trailerData); // do search by PK, this returns "dirty" object Trailer pkResult = railerHome.findByPrimaryKey(trailerPK); // do a search for everything, this does not return the "dirty" object Collection allTrailers; allTrailers = trailerHome.findAll(); Has anybody got any ideas as to what I am doing wrong, if anything, or is this what should be happening. In the above example I could obviously put the update and find in different transactions but for what I am working on I need to do an update followed by a find, that includes the changes, and then an update elsewhere in a single transaction. thanks ** The information in this e-mail is confidential and is legally privileged. It is intended solely for the addressee. If this email is not intended for you, you cannot copy, distribute, or disclose the included information to any-one If you are not the intended recipient please delete the mail. Whilst all reasonable steps have been taken to ensure the accuracy and integrity of all data transmitted electronically, no liability is accepted if the data, for whatever reason, is corrupt or does not reach it's intended destination. All business is undertaken, subject to our standard trading conditions which are available on request. *** ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ** The information in this e-mail is confidential and is legally privileged. It is intended solely for the addressee. If this email is not intended for you, you cannot copy, distribute, or disclose the included information to any-one If you are not the intended recipient please delete the mail. Whilst all reasonable steps have been taken to ensure the accuracy and integrity of all data transmitted electronically, no liability is accepted if the data, for whatever reason, is corrupt or does not reach it's intended destination. All business is undertaken, subject to our standard trading conditions which are available on request. *** ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Which version of JDK is advisable?
I am installing a JBOSS-TOMCAT system and am currently using JDK-1.2.1. I was unable to install JBOSS-2.4 as it uses some of the newly introduced classes to JDK-1.3. I have now successfully installed JBOSS-2.2.2, which is working OK. My dilemma is : should I continue to use JBOSS-2.2.2 with JDK-1.2.1 OR should I go for JDK-1.3 together with the latest JBOSS-2.4? Any help would be much appreciated. Most important to me is that JBoss integrates with Tomcat under the same JVM - is this possible with JBOSS-2.2.2? Thankyou ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] problem : installation of JBoss
2001-07-04
Thread
IMCEAEX-_O=THOMSON+20CSF+20COMMUNICATIONS_OU=THALES-ISR-MASSY_CN=DESTINATAIRES+20TEMPORAIRES+20ET+20STAGIAIRES+20DE+20ISR-MASSY_CN=SIMON+2ERIVAS
I have a problem installing JBoss on my computer. I have downloaded and installed JBoss 2.2.1 (+ Jetty), JDK v1.3.0 and Ant v1.3. I am almost sure that the JDK and Ant are properly installed since I have already used them in the past to install PostgreSQL v7.1. Nevertheless, when I run the script run.sh, a few exceptions are thrown. Here is the part of the output that corresponds to my problem: ... [Jetty] Started ServletHandler in ServletHandlerContext[/] [Jetty] ResourceHandler started in file:/usr/local/jboss/jetty/etc/dtd/ [Jetty] Started ResourceHandler in ServletHandlerContext[/] [Jetty] Stopped [Jetty] java.net.BindException: Adresse déjà utilisée [Jetty] at java.net.PlainSocketImpl.socketBind(Native Method) [Jetty] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397) [Jetty] at java.net.ServerSocket.(ServerSocket.java:170) [Jetty] at com.mortbay.Util.ThreadedServer.newServerSocket(ThreadedServer.java:323) [Jetty] at com.mortbay.Util.ThreadedServer.start(ThreadedServer.java:400) [Jetty] at com.mortbay.HTTP.SocketListener.start(SocketListener.java:71) [Jetty] at com.mortbay.HTTP.HttpServer.start(HttpServer.java:136) [Jetty] at org.jboss.jetty.JettyService.startService(JettyService.java:294) [Jetty] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93) [Jetty] at java.lang.reflect.Method.invoke(Native Method) [Jetty] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [Jetty] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [Jetty] at org.jboss.util.ServiceControl.start(ServiceControl.java:97) [Jetty] at java.lang.reflect.Method.invoke(Native Method) [Jetty] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [Jetty] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [Jetty] at org.jboss.Main.(Main.java:217) [Jetty] at org.jboss.Main$1.run(Main.java:121) [Jetty] at java.security.AccessController.doPrivileged(Native Method) [Jetty] at org.jboss.Main.main(Main.java:117) [Service Control] Could not start DefaultDomain:service=Jetty [Service Control] java.net.BindException: Adresse déjà utilisée [Service Control] at java.net.PlainSocketImpl.socketBind(Native Method) [Service Control] at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397) [Service Control] at java.net.ServerSocket.(ServerSocket.java:170) [Service Control] at com.mortbay.Util.ThreadedServer.newServerSocket(ThreadedServer.java:323) [Service Control] at com.mortbay.Util.ThreadedServer.start(ThreadedServer.java:400) [Service Control] at com.mortbay.HTTP.SocketListener.start(SocketListener.java:71) [Service Control] at com.mortbay.HTTP.HttpServer.start(HttpServer.java:136) [Service Control] at org.jboss.jetty.JettyService.startService(JettyService.java:294) [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.Main.main(Main.java:117) [Jetty] start HttpServer version Jetty/3.1.RC5 [Jetty] java.lang.reflect.InvocationTargetException: java.net.BindException: Adresse déjà utilisée at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397) at java.net.ServerSocket.(ServerSocket.java:170) at com.mortbay.Util.ThreadedServer.newServerSocket(ThreadedServer.java:323) at com.mortbay.Util.ThreadedServer.start(ThreadedServer.java:400) at com.mortbay.HTTP.SocketListener.start(SocketListener.java:71) at com.mortbay.HTTP.HttpServer.start(HttpServer.java:136) at java.lang.reflect.Method.invoke(Native Method) at com.mortbay.Jetty.JMX.ModelMBeanImpl.invoke(ModelMBeanImpl.java:633) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at org.jboss.util.ServiceControl.start(ServiceCo
[JBoss-user] PostgreSQL setup
I tried it again with a bogus password (like the docs say) and it worked. Sorry for the inconvenience. -- Larry Coleman [EMAIL PROTECTED] Democracy: Two wolves and a lamb deciding what to have for dinner. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] RMI/IIOP warning
I guess that your methods in the bean-class throws RemoteException. The methods in the home, and remote interface must throw RemoteException, however the method in the bean-class are no longer allowed to do that (see EJB2.0 PFD section 18, Exception handling, for more information). However I can't see why EJBException should not be a valid RMI/IIOP type??? /Per > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of François > Charoy > Sent: den 4 juli 2001 15:37 > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] RMI/IIOP warning > > > Anyway, I have still this error message without EJBException > > François > > - Original Message - > From: "Hermann RANGAMANA" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, July 04, 2001 3:23 PM > Subject: Re: [JBoss-user] RMI/IIOP warning > > > > Still it's an invalid exception of RMI/IIOP because ... it extends > > RuntimeException (regardless of what the superclass of > RuntimeException > is). > > > > --hermann > > PS : cf previous post of Toby ... ;-) > > - Original Message - > > From: "Burkhard Vogel" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Wednesday, July 04, 2001 2:36 PM > > Subject: Re: [JBoss-user] RMI/IIOP warning > > > > > > > No! > > > EJBException extends RuntimeException extends Exception extends > Throwable > > > implements java.io.Serializable. > > > So? > > > Burkhard > > > - Original Message - > > > From: "Toby Allsopp" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Tuesday, July 03, 2001 12:18 AM > > > Subject: Re: [JBoss-user] RMI/IIOP warning > > > > > > > > > > On Sun, Jul 01, 2001 at 09:07:57PM -0400, asdfa asdfdfd wrote: > > > > > public void setHostIP(String hostName) throws > > java.rmi.RemoteException, > > > javax.ejb.EJBException; > > > > > > > > javax.ejb.EJBException is not a valid exception for > RMI/IIOP because > it > > > > is a subclass of RuntimeException. Remove this from your throws > clause. > > > > > > > > Toby. > > > > > > > > ___ > > > > 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 > > > > > ___ > 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
Re: [JBoss-user] RMI/IIOP warning
ohh yes, i should realy check back with the spec before posting?!?! Burkhard - Original Message - From: "Hermann RANGAMANA" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 04, 2001 3:23 PM Subject: Re: [JBoss-user] RMI/IIOP warning > Still it's an invalid exception of RMI/IIOP because ... it extends > RuntimeException (regardless of what the superclass of RuntimeException is). > > --hermann > PS : cf previous post of Toby ... ;-) > - Original Message - > From: "Burkhard Vogel" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, July 04, 2001 2:36 PM > Subject: Re: [JBoss-user] RMI/IIOP warning > > > > No! > > EJBException extends RuntimeException extends Exception extends Throwable > > implements java.io.Serializable. > > So? > > Burkhard > > - Original Message - > > From: "Toby Allsopp" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Tuesday, July 03, 2001 12:18 AM > > Subject: Re: [JBoss-user] RMI/IIOP warning > > > > > > > On Sun, Jul 01, 2001 at 09:07:57PM -0400, asdfa asdfdfd wrote: > > > > public void setHostIP(String hostName) throws > java.rmi.RemoteException, > > javax.ejb.EJBException; > > > > > > javax.ejb.EJBException is not a valid exception for RMI/IIOP because it > > > is a subclass of RuntimeException. Remove this from your throws clause. > > > > > > Toby. > > > > > > ___ > > > 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 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] RMI/IIOP warning
Anyway, I have still this error message without EJBException François - Original Message - From: "Hermann RANGAMANA" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 04, 2001 3:23 PM Subject: Re: [JBoss-user] RMI/IIOP warning > Still it's an invalid exception of RMI/IIOP because ... it extends > RuntimeException (regardless of what the superclass of RuntimeException is). > > --hermann > PS : cf previous post of Toby ... ;-) > - Original Message - > From: "Burkhard Vogel" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, July 04, 2001 2:36 PM > Subject: Re: [JBoss-user] RMI/IIOP warning > > > > No! > > EJBException extends RuntimeException extends Exception extends Throwable > > implements java.io.Serializable. > > So? > > Burkhard > > - Original Message - > > From: "Toby Allsopp" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Tuesday, July 03, 2001 12:18 AM > > Subject: Re: [JBoss-user] RMI/IIOP warning > > > > > > > On Sun, Jul 01, 2001 at 09:07:57PM -0400, asdfa asdfdfd wrote: > > > > public void setHostIP(String hostName) throws > java.rmi.RemoteException, > > javax.ejb.EJBException; > > > > > > javax.ejb.EJBException is not a valid exception for RMI/IIOP because it > > > is a subclass of RuntimeException. Remove this from your throws clause. > > > > > > Toby. > > > > > > ___ > > > 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 > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Need help with Postgresql7.1 setup
I'm just getting started with JBoss. I'm trying to set up a connection pool using a PostgreSQL 7.1 database on a FreeBSD 4.3 machine. I can connect to the database using JDBC in a standalone java app from both my FreeBSD and Linux machines, but setting up the connection pool in JBoss fails (configuration and error files are attached). Can anyone tell me what I'm doing wrong? Thanks in advance. -- Larry Coleman [EMAIL PROTECTED] Democracy: Two wolves and a lamb deciding what to have for dinner. [Americredit] Stopped [Americredit] java.lang.NullPointerException: [Americredit] at org.opentools.minerva.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java:165) [Americredit] at org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:330) [Americredit] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93) [Americredit] at java.lang.reflect.Method.invoke(Native Method) [Americredit] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [Americredit] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [Americredit] at org.jboss.util.ServiceControl.start(ServiceControl.java:97) [Americredit] at java.lang.reflect.Method.invoke(Native Method) [Americredit] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [Americredit] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [Americredit] at org.jboss.Main.(Main.java:217) [Americredit] at org.jboss.Main$1.run(Main.java:121) [Americredit] at java.security.AccessController.doPrivileged(Native Method) [Americredit] at org.jboss.Main.main(Main.java:117) [Service Control] Could not start DefaultDomain:service=XADataSource,name=Americredit [Service Control] java.lang.NullPointerException: [Service Control] at org.opentools.minerva.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.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.Main.main(Main.java:117) 8083 1099 300 org.jboss.security.plugins.JaasSecurityManager org.postgresql.Driver 1476 true default false Americredit org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl jdbc:postgresql://localhost/americredit larry InstantDB org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl jdbc:idb:../conf/default/instantdb.properties 120 10 false false false true 12 180 false false 1.0 0 DefaultDS org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl jdbc:HypersonicSQL:hsql://localhost:1476 120 sa 10 false false false true 12 180 false false 1.0 0 true false true false DefaultJMSProvider org.jboss.jms.jndi.JBossMQProvider StdJMSPool org.jboss.jms.asf.StdServerSessionPoolFactory Default :service=ContainerFactory :service=EmbeddedTomcat J2EE:service=J2eeDeployer ../deploy MinervaNoTransCMFactory org.opentools.minerva.connector.jboss.MinervaNoTransCMFactory MinervaSharedLocalCMFactory org.opentools.minerva.connector.jboss.MinervaSharedLocalCMFactory MinervaXACMFactory org.opentools.minerva.connector.jboss.MinervaXACMFactory BlackBoxDS JCA:service=RARDeployer Black Box LocalTx Adapter ConnectionURL=jdbc:HypersonicSQL:hsql://localhost:1476 MinervaSharedLocalCMFactory # Pool type - uncomment to force, otherwise it is the default #PoolConfiguration=per-factory # Connection pooling properties - see
[JBoss-user] How to map a Number field to a int correctly?
Hello everyone: In a cmp entity bean, I made a map from Number(in Oracle) to INTEGER (in Jdbc type) to int( in the entity bean) in the jaws.xml, as the following: cityId CITY_ID NUMBER(6) INTEGER (DataBase: oracle8i) But When I call a finder to load a row whose City_ID field is null in database, An Exception occurred.(as below). If city_id is not null, It work well. How to make it work? why this happened? java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.ServerException: Load failed; nested exception is: java.lang.NullPointerException java.rmi.ServerException: Load failed; nested exception is: java.lang.NullPointerException java.lang.NullPointerException at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122) at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown Source) at org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy.java:182) at $Proxy1.getId(Unknown Source) at untitled6.NodeTestClient1.main(NodeTestClient1.java:106) Exception in thread "main" _ [×ã²»³ö»§ ÇáËÉÉÏÍø] ÉÏÍøרÓúţº95963£¬Óû§Ãû/ÃÜÂ룺263 »¯×±Æ·ÏÄÈÕÌػݣ¬½µ¼Û¿ñ³±£¡ http://shopping.263.net/category04.htm ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Re: JBoss 2.2.2 - Linux kernel 2.4
On Wed, Jul 04, 2001 at 05:34:09AM -0700, Allan Kamau wrote: > 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. This is a design flaw in run.sh which can easily fixed by adding cd `dirname $0` at the top if the script. -billy. -- Philipp Meier o-matic GmbH Geschäftsführer Pfarrer-Weiß-Weg 16-18 Tel.: +49-(0)700-66284236 89077 Ulm PGP signature
Re[2]: [JBoss-user] (no subject)
Dear David, DJ> Where do you get ut from? My guess is same computer as Test1Bean. Unless DJ> you have a distributed transaction manager, and the two jbosses know about DJ> each other, the bean operations will be in separate transactions: one using DJ> ut, the other container managed - hence committed as the create call DJ> returns. DJ> There is a dtm integration - Tyrex- for jboss, I think in contrib. I don't DJ> know how to tell the 2 jbosses about each other. Perhaps there are DJ> examples with the Tyrex stuff. Where could I get eamples with Tyrex stuff? I try configurate Tyrex... My JBoss does not work :( So many errors... -- Best regards, Eugene Igumnov mailto:[EMAIL PROTECTED] icq://877365 Russia, Novosibirsk, Project Manager (System Architect), GeoCad Plus Company http://www.geocad.ru ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] RMI/IIOP warning
Still it's an invalid exception of RMI/IIOP because ... it extends RuntimeException (regardless of what the superclass of RuntimeException is). --hermann PS : cf previous post of Toby ... ;-) - Original Message - From: "Burkhard Vogel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 04, 2001 2:36 PM Subject: Re: [JBoss-user] RMI/IIOP warning > No! > EJBException extends RuntimeException extends Exception extends Throwable > implements java.io.Serializable. > So? > Burkhard > - Original Message - > From: "Toby Allsopp" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, July 03, 2001 12:18 AM > Subject: Re: [JBoss-user] RMI/IIOP warning > > > > On Sun, Jul 01, 2001 at 09:07:57PM -0400, asdfa asdfdfd wrote: > > > public void setHostIP(String hostName) throws java.rmi.RemoteException, > javax.ejb.EJBException; > > > > javax.ejb.EJBException is not a valid exception for RMI/IIOP because it > > is a subclass of RuntimeException. Remove this from your throws clause. > > > > Toby. > > > > ___ > > 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
Re: [JBoss-user] (no subject)
Hi, Where do you get ut from? My guess is same computer as Test1Bean. Unless you have a distributed transaction manager, and the two jbosses know about each other, the bean operations will be in separate transactions: one using ut, the other container managed - hence committed as the create call returns. There is a dtm integration - Tyrex- for jboss, I think in contrib. I don't know how to tell the 2 jbosses about each other. Perhaps there are examples with the Tyrex stuff. david jencks On 2001.07.04 02:58:18 -0400 Eugene Igumnov wrote: > Dear jboss-user, > > Could You help me? > > We have 2 computers. > We install JBoss on both computers. > We install PostgreSQL on 3rd computer. > We deploy Test1Bean working with table test1 (first JBoss). > We deploy Test2Bean working with table test2 (second JBoss). > We make client with UserTransaction. > --work--- > ut.begin > Test1Bean.create(); > ut.commit > - > > --work--- > ut.begin > Test1Bean.create(); > ut.rollback > - > > --work--- > ut.begin > Test1Bean.create(); > Test2Bean.create(); > ut.commit > - > > --does not work--- > ut.begin > Test1Bean.create(); > Test2Bean.create(); > ut.rollback > ---(Test2Bean.create does not rollback!!!)-- > > Why? > > > > -- > Best regards, > Eugene Igumnov mailto:[EMAIL PROTECTED] icq://877365 > Russia, Novosibirsk, > Project Manager (System Architect), > GeoCad Plus Company http://www.geocad.ru > > > > ___ > 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] findAll not finding Dirty data in transaction
Hi I am experiencing the following problem while doing updates and subsequent finds on entity beans. The scenario is as follows: In my code I first find an object via primary key, I then update a field or two and call setData on the remote interface for the object. If I then do another find by PK the changed/dirty object is returned and checking in the log file reveals that a pooled object is returned i.e. there was no DB access. If I then call a finder method that should return this changed object, amongst others, e.g. a findAll I do not get the changed/dirty object but rather one representing the committed data on the DB, for this step the log file shows DB access as expected. here is a short code example, that interacts with the entity bean: TrailerHome trailerHome = (TrailerHome)EJBUtil.getBeanHome(TrailerHome.JNDI_NAME); Trailer trailerRemote = trailerHome.findByPrimaryKey(trailerPK); TrailerData trailerData = trailerRemote.getData(); // change a property trailerData.setColour("purple"); //update trailer trailerRemote.setData(trailerData); // do search by PK, this returns "dirty" object Trailer pkResult = railerHome.findByPrimaryKey(trailerPK); // do a search for everything, this does not return the "dirty" object Collection allTrailers; allTrailers = trailerHome.findAll(); Has anybody got any ideas as to what I am doing wrong, if anything, or is this what should be happening. In the above example I could obviously put the update and find in different transactions but for what I am working on I need to do an update followed by a find, that includes the changes, and then an update elsewhere in a single transaction. thanks ** The information in this e-mail is confidential and is legally privileged. It is intended solely for the addressee. If this email is not intended for you, you cannot copy, distribute, or disclose the included information to any-one If you are not the intended recipient please delete the mail. Whilst all reasonable steps have been taken to ensure the accuracy and integrity of all data transmitted electronically, no liability is accepted if the data, for whatever reason, is corrupt or does not reach it's intended destination. All business is undertaken, subject to our standard trading conditions which are available on request. *** ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Help with AutoNumber class file
Hi All, I have been trying to use the JBoss AutoNumber class file that is provided in org.jboss.util package. Now the problem is that one of my session bean uses that AutoNumber class to generate autonumbers. The beans deploy all right, but when I try to use the add method which uses the AutoNumber Bean to create a new Integer ID, the server console gives an error message where it says that it is throwing NoClassDefException The JBoss startup batch file does not have this package in it's classpath, but when I try and include this in the server fails to startup. Any Suggestions?? Regards, Devraj PS - A dump of my server console error messages are as follows: [ForumManagerBean] TRANSACTION ROLLBACK EXCEPTION:org/jboss/util/AutoNumberHome; nested exception is: java.lang.NoClassDefFoundError: org/jboss/util/AutoNumberHome [ForumManagerBean] java.lang.NoClassDefFoundError: org/jboss/util/AutoNumberHome [ForumManagerBean] at freeforums.forum.ForumManagerBean.getAutoNumber(Forum ManagerBean.java:68) [ForumManagerBean] at freeforums.forum.ForumManagerBean.addForum(ForumManag erBean.java:83) [ForumManagerBean] at java.lang.reflect.Method.invoke(Native Method) [ForumManagerBean] at org.jboss.ejb.StatelessSessionContainer$ContainerInte rceptor.invoke(StatelessSessionContainer.java:472) [ForumManagerBean] at org.jboss.ejb.plugins.StatelessSessionInstanceInterce ptor.invoke(StatelessSessionInstanceInterceptor.java:87) [ForumManagerBean] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxI nterceptorCMT.java:133) [ForumManagerBean] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransac tions(TxInterceptorCMT.java:263) [ForumManagerBean] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInter ceptorCMT.java:99) [ForumManagerBean] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(Secu rityInterceptor.java:190) [ForumManagerBean] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterc eptor.java:195) [ForumManagerBean] at org.jboss.ejb.StatelessSessionContainer.invoke(Statel essSessionContainer.java:271) [ForumManagerBean] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoke r.invoke(JRMPContainerInvoker.java:482) [ForumManagerBean] at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessio nProxy.invoke(StatelessSessionProxy.java:152) [ForumManagerBean] at $Proxy4.addForum(Unknown Source) [ForumManagerBean] at freeforums.jspbeans.ForumController.addNewForum(Forum Controller.java:46) [ForumManagerBean] at jsp._0002fjsp_0002fsave_0005fforum_0002ejspsave_0005f forum_jsp_2._jspService(_0002fjsp_0002fsave_0005fforum_0002ejspsave_0005fforum_j sp_2.java:71) [ForumManagerBean] at org.apache.jasper.runtime.HttpJspBase.service(HttpJsp Base.java:119) [ForumManagerBean] at javax.servlet.http.HttpServlet.service(HttpServlet.ja va:853) [ForumManagerBean] at org.apache.jasper.servlet.JspServlet$JspCountedServle t.service(JspServlet.java:130) [ForumManagerBean] at javax.servlet.http.HttpServlet.service(HttpServlet.ja va:853) [ForumManagerBean] at org.apache.jasper.servlet.JspServlet$JspServletWrappe r.service(JspServlet.java:282) [ForumManagerBean] at org.apache.jasper.servlet.JspServlet.serviceJspFile(J spServlet.java:429) [ForumManagerBean] at org.apache.jasper.servlet.JspServlet.service(JspServl et.java:500) [ForumManagerBean] at javax.servlet.http.HttpServlet.service(HttpServlet.ja va:853) [ForumManagerBean] at org.apache.tomcat.core.ServletWrapper.doService(Servl etWrapper.java:405) [ForumManagerBean] at org.apache.tomcat.core.Handler.service(Handler.java:2 87) [ForumManagerBean] at org.apache.tomcat.core.ServletWrapper.service(Servlet Wrapper.java:372) [ForumManagerBean] at org.apache.tomcat.core.ContextManager.internalService (ContextManager.java:797) [ForumManagerBean] at org.apache.tomcat.core.ContextManager.service(Context Manager.java:743) [ForumManagerBean] at org.apache.tomcat.service.http.HttpConnectionHandler. processConnection(HttpConnectionHandler.java:213) [ForumManagerBean] at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolT cpEndpoint.java:416) [ForumManagerBean] at org.apache.tomcat.util.ThreadPool$ControlRunnable.run (ThreadPool.java:501) [ForumManagerBean] at java.lang.Thread.run(Unknown Source) [EmbeddedTomcatSX] Exception occured javax.transaction.TransactionRolledbackException: org/jboss/util/AutoNumberHome; nested exception is: java.lang.NoClassDefFoundError: org/jboss/util/AutoNumberHome ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: RE: RE: [JBoss-user] Entity bean with special objects attributes?(Vincent Harcq)
Hello, Thanks for your help it works fine now. There was a problem with the table created in Hypersonic. I had to recreate this table. Nevertheless, should the Parameter class be included in the .jar for the deployment? I've included this one by default but I am not clear whether this kind of class has to be included or not. Bye, Jm :) Message: 10 :) From: "Vincent Harcq" <[EMAIL PROTECTED]> :) To: <[EMAIL PROTECTED]> :) Subject: RE: RE: [JBoss-user] Entity bean with special objects :) attributes?(Vincent Harcq) :) Date: Wed, 4 Jul 2001 10:06:29 +0200 :) Reply-To: [EMAIL PROTECTED] :) :) It's independant of the DB. :) Parameter is in your ejb jar ? :) How did you make the mapping in jaws (if you did - its' not necessary) ? :) What is the exact message ? :) WHen does it happen (at deployment, at run time) ? :) Vincent. :) :) :) > -Message d'origine- :) > De : [EMAIL PROTECTED] :) > [mailto:[EMAIL PROTECTED]]De la part de :) Jm Seigneur :) > Envoyé : mercredi 4 juillet 2001 9:24 :) > À : [EMAIL PROTECTED] :) > Objet : RE: RE: [JBoss-user] Entity bean with special objects :) > attributes?(Vincent Harcq) :) > :) > :) > Hello, :) > :) > Until now Parameter has no internal object. :) > I use the Hypersonic database coming with JBoss. :) > Could it be the problem? :) > :) > Thanks, :) > :) > Jm ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Timed-out transaction (URGENT)
Hi, > My connection pool however large gets used so JBOSS hangs waiting for a > fresh unused connection. This problem is not in the application code > rather something do with either the configuration of jboss or a bug in > connection pool handling classes. this IS application code issue. There is a method which does not propperly close either ResultSet, PreparedStatement or Connection! make sure to ALWAYS use something like: Connection con=null; PreparedStatement prepStmt=null; ResultSet rs=null; try { DataSource _dataSource=null; try { InitialContext context = new InitialContext(); _dataSource = (DataSource) context.lookup("java:comp/env/jdbc/somedb"); } catch (Exception nx) { throw new SQLException("DS lookup failed (" + nx.toString() + ")"); } con= _dataSource.getConnection(); prepStmt = con.prepareStatement("SELECT * FROM Table"); rs = prepStmt.executeQuery(); if( rs.next() ) { //do something } } catch(SQLException Ex) { log.error("Error accessing DataSource"); log.exception(Ex); } finally { if( rs!=null) try { rs.close(); } catch(Exception Ex) { rs=null; } if( prepStmt!=null) try { prepStmt.close(); } catch(Exception Ex) { prepStmt=null; } if( con!=null) try { con.close(); } catch(Exception Ex) { con=null; } } so all DB-Pool related gets properly closed. (You may do a lookup on the DataSource in setEntityContext, but you should NOT obtain a connection there) Burkhard ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Distributed Transaction in JBoss
Dear All, Do Distributed transactions work only under TYREX Transaction Manager? -- ../conf/default/domain.xml -- JBoss errors: [JMXAdaptorService] Unable to externalize tpc! [JMXAdaptorService] Lost connection to UserTransaction clients: Rolling back 1 a ctive transaction(s). [Default] java.io.StreamCorruptedException: Connection aborted by peer: socket w rite error [Default] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.jav a:398) [Default] [Default] at org.jboss.tm.plugins.tyrex.TyrexTxPropagationContext.writeExt ernal(TyrexTxPropagationContext.java:95) [Default] [Default] at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.ja va:1172) [Default] [Default] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.jav a:366) [Default] [Default] at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:268) [Default] [Default] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.jav a:251) [Default] [Default] at sun.rmi.transport.Transport$1.run(Transport.java:142) [Default] [Default] at java.security.AccessController.doPrivileged(Native Method) [Default] [Default] at sun.rmi.transport.Transport.serviceCall(Transport.java:139) [Default] [Default] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspor t.java:443) [Default] [Default] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPT ransport.java:643) [Default] [Default] at java.lang.Thread.run(Thread.java:484) [Default] Client errors: javax.transaction.SystemException: java.rmi.UnmarshalException: error unmarshall ing return; nested exception is: java.lang.ClassNotFoundException: org.jboss.tm.plugins.tyrex.TyrexTxProp agationContext (no security manager: RMI class loader disabled) -- Best regards, Eugene Igumnov mailto:[EMAIL PROTECTED] icq://877365 Russia, Novosibirsk, Project Manager (System Architect), GeoCad Plus Company http://www.geocad.ru ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] RMI/IIOP warning
No! EJBException extends RuntimeException extends Exception extends Throwable implements java.io.Serializable. So? Burkhard - Original Message - From: "Toby Allsopp" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 03, 2001 12:18 AM Subject: Re: [JBoss-user] RMI/IIOP warning > On Sun, Jul 01, 2001 at 09:07:57PM -0400, asdfa asdfdfd wrote: > > public void setHostIP(String hostName) throws java.rmi.RemoteException, javax.ejb.EJBException; > > javax.ejb.EJBException is not a valid exception for RMI/IIOP because it > is a subclass of RuntimeException. Remove this from your throws clause. > > Toby. > > ___ > 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
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] connection pooling JBOSS-mySQL
> Given that the SQL that was echoed had the table name in lowercase and > the error message was uppercase (and nobody complained about case > sensitive breakage with mySQL in 2.4 beta when I squashed case!) I don't > think that it's a case problem. (for the record, you're right, > relational databases shouldn't be case sensitive with tablenames, column > names, or keywords (but _should_ be with data)). In MySQL, databases and tables correspond to directories and files within those directories. Consequently, the case sensitivity of the underlying operating system determines the case sensitivity of database and table names. This means database and table names are case sensitive in Unix and case insensitive in Windows. k. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Problems deploying EARs with JSPs under JBoss/Jetty
I've figured this out, and fixed it. I shall try to get a 2.4 based release out tomorrow night - until then you can use the 2.2 (release candidate<5), or be explicit about the JSP mapping in your web.xml. Thanks for all the help guys, Jules --- Julian Gosnell <[EMAIL PROTECTED]> wrote: > OK - I've tried this. The JMX deploy DOESN'T work > either. > > I won't be home tonight, but will try to get out a > 2.4 > release that fixes this on thursday night. > > Thanks again, > > Keep 'em coming ! > > > Jules > > > --- [EMAIL PROTECTED] wrote: > On Tue, Jul 03, 2001 > at > 12:47:09AM +0100, Julian > > Gosnell wrote: > > > OK, Bent, > > > > > > How big is the EAR ? > > > > > > if it is less than a couple of meg, mail it to > me > > and I will have a look. > > > > It's more like 3k :-) > > > > I have put it at > > http://www.pvv.org/~bcd/account.ear > > > > Its contents is > > LengthDateTimeName > > -- > > 0 07-04-01 00:38 META-INF/ > > 68 07-04-01 00:38 META-INF/MANIFEST.MF > > 439 07-01-01 13:23 > META-INF/application.xml > >2265 07-04-01 00:38 account.war > > ----- > > > > > > Also, the JBoss output when I (re)deploy it is > > below. Note that the > > old version was already running when I did this, > so > > that one gets > > undeployed first. > > > > [Jetty] Admin: init > > [Jetty] Registered > > > com.mortbay.Jetty:name=Jetty,Jetty=0,context=/,ServletHandlerContext=1 > > [Jetty] Adding NotFoundHandler to > > ServletHandlerContext[/] > > [Jetty] Started NotFoundHandler in > > ServletHandlerContext[/] > > [AutoDeployer] Auto deploy of > > > file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jboss/deploy/account.ear > > [J2EE Deployer Default] Stopping module > account.war > > [Jetty] Stopped SecurityHandler in > > > WebApplicationContext[/account,file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jboss/tmp/deploy/Default/account.ear/web1002/] > > [Jetty] Stopped ServletHandler in > > > WebApplicationContext[/account,file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jboss/tmp/deploy/Default/account.ear/web1002/] > > [Jetty] Stopped WebInfProtect > > [Jetty] Stopped ResourceHandler in > > > WebApplicationContext[/account,file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jboss/tmp/deploy/Default/account.ear/web1002/] > > [Jetty] Deregister > > > com.mortbay.Jetty:name=Jetty,Jetty=0,context=/account,WebApplicationContext=1 > > [Jetty] successfully undeployed > > > file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jboss/tmp/deploy/Default/account.ear/web1002/ > > [J2EE Deployer Default] Stopping module > account.ear > > [Container factory] > > > Undeploying:file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jboss/tmp/deploy/Default/account.ear > > [Container factory] Undeployed application: > > > file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jboss/tmp/deploy/Default/account.ear > > [J2EE Deployer Default] Destroying application > > account.ear > > [J2EE Deployer Default] Report of undeployment of > > J2EE application: > > > file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jboss/deploy/account.ear > > could not be reported. > > [J2EE Deployer Default] Deploy J2EE application: > > > file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jboss/deploy/account.ear > > [J2EE Deployer Default] Create application > > account.ear > > [J2EE Deployer Default] inflate and install module > > account.war > > [Container factory] > > > Deploying:file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jboss/tmp/deploy/Default/account.ear > > [Default] Added ClassLoader: > > org.jboss.web.WebClassLoader@1f03d7 URL: > > http://lillehjerne:8083/WebClassLoader@2032599/ > > [Container factory] Deployed application: > > > file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jboss/tmp/deploy/Default/account.ear > > [J2EE Deployer Default] Starting module > account.war > > [Jetty] Registered > > > com.mortbay.Jetty:name=Jetty,Jetty=0,context=/account,WebApplicationContext=2 > > [Jetty] resolving -//Sun Microsystems, Inc.//DTD > Web > > Application 2.2//EN : > > http://java.sun.com/j2ee/dtds/web-app_2_2.dtd > > [Jetty] resolved -//Sun Microsystems, Inc.//DTD > Web > > Application 2.2//EN : > > > jar:file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jetty/lib/com.mortbay.jetty.jar!/com/mortbay/Jetty/Servlet/web.dtd > > [Jetty] no jboss-web.xml found > > [Jetty] WebApp ClassLoader is not child of > > J2EEDeployer's ClassLoader > > [WebContainer] > > AbstractWebContainer.parseWebAppDescriptors, Begin > > [WebContainer] addEnvEntries > > [WebContainer] linkResourceRefs > > [WebContainer] linkEjbRefs > > [WebContainer] linkSecurityDomain > > [WebContainer] Binding security/securityMgr to > > NullSecurityManager > > [WebContainer] > > AbstractWebContainer.parseWebAppDescriptors, End > > [Default] +++ Created JBossUserRealm, > realmName=JAAS > > Tutorial Servlets > > [Jetty] Started SetupHandler in > > > WebAp
Re: [JBoss-user] Problems deploying EARs with JSPs under JBoss/Jetty
No, that doesn't seem to change anything. =( I am not using an .ear, just a .war. / Jonas Julian Gosnell wrote: > H... > > OK - I'm getting an inkling of what the problem is > > I reckon you are deploying your ear BEFORE starting > JBoss - am I right ??? > > If so, please try a JMX deployment, via 8082, or a > hot-deploy AFTER Jboss starts and let me know if these > work. If they do, I understand the problem. > > Thanks for your feedback, > > > > Jules > > > --- Jonas Tehler <[EMAIL PROTECTED]> wrote: > > >>I did some testing and it seems like the only >>problem is that the >>webdefaults.xml file isn't found/used. If I put the >>JSP mappings in my >>web.xml file, it works fine. >> >>/ Jonas ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Newbie Datasource question
Hello all, I'm porting over some beans from a different app server. I had a utility class that I used that connected to the dbpool and returned a connection. What is the syntax to connect to a datasource in Jboss? Could someone pls show me an example? -- No one may be called "good" if they have had no chance to be bad... ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Problems deploying EARs with JSPs under JBoss/Jetty
OK - I've tried this. The JMX deploy DOESN'T work either. I won't be home tonight, but will try to get out a 2.4 release that fixes this on thursday night. Thanks again, Keep 'em coming ! Jules --- [EMAIL PROTECTED] wrote: > On Tue, Jul 03, 2001 at 12:47:09AM +0100, Julian > Gosnell wrote: > > OK, Bent, > > > > How big is the EAR ? > > > > if it is less than a couple of meg, mail it to me > and I will have a look. > > It's more like 3k :-) > > I have put it at > http://www.pvv.org/~bcd/account.ear > > Its contents is > LengthDateTimeName > -- > 0 07-04-01 00:38 META-INF/ > 68 07-04-01 00:38 META-INF/MANIFEST.MF > 439 07-01-01 13:23 META-INF/application.xml >2265 07-04-01 00:38 account.war > ----- > > > Also, the JBoss output when I (re)deploy it is > below. Note that the > old version was already running when I did this, so > that one gets > undeployed first. > > [Jetty] Admin: init > [Jetty] Registered > com.mortbay.Jetty:name=Jetty,Jetty=0,context=/,ServletHandlerContext=1 > [Jetty] Adding NotFoundHandler to > ServletHandlerContext[/] > [Jetty] Started NotFoundHandler in > ServletHandlerContext[/] > [AutoDeployer] Auto deploy of > file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jboss/deploy/account.ear > [J2EE Deployer Default] Stopping module account.war > [Jetty] Stopped SecurityHandler in > WebApplicationContext[/account,file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jboss/tmp/deploy/Default/account.ear/web1002/] > [Jetty] Stopped ServletHandler in > WebApplicationContext[/account,file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jboss/tmp/deploy/Default/account.ear/web1002/] > [Jetty] Stopped WebInfProtect > [Jetty] Stopped ResourceHandler in > WebApplicationContext[/account,file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jboss/tmp/deploy/Default/account.ear/web1002/] > [Jetty] Deregister > com.mortbay.Jetty:name=Jetty,Jetty=0,context=/account,WebApplicationContext=1 > [Jetty] successfully undeployed > file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jboss/tmp/deploy/Default/account.ear/web1002/ > [J2EE Deployer Default] Stopping module account.ear > [Container factory] > Undeploying:file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jboss/tmp/deploy/Default/account.ear > [Container factory] Undeployed application: > file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jboss/tmp/deploy/Default/account.ear > [J2EE Deployer Default] Destroying application > account.ear > [J2EE Deployer Default] Report of undeployment of > J2EE application: > file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jboss/deploy/account.ear > could not be reported. > [J2EE Deployer Default] Deploy J2EE application: > file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jboss/deploy/account.ear > [J2EE Deployer Default] Create application > account.ear > [J2EE Deployer Default] inflate and install module > account.war > [Container factory] > Deploying:file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jboss/tmp/deploy/Default/account.ear > [Default] Added ClassLoader: > org.jboss.web.WebClassLoader@1f03d7 URL: > http://lillehjerne:8083/WebClassLoader@2032599/ > [Container factory] Deployed application: > file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jboss/tmp/deploy/Default/account.ear > [J2EE Deployer Default] Starting module account.war > [Jetty] Registered > com.mortbay.Jetty:name=Jetty,Jetty=0,context=/account,WebApplicationContext=2 > [Jetty] resolving -//Sun Microsystems, Inc.//DTD Web > Application 2.2//EN : > http://java.sun.com/j2ee/dtds/web-app_2_2.dtd > [Jetty] resolved -//Sun Microsystems, Inc.//DTD Web > Application 2.2//EN : > jar:file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jetty/lib/com.mortbay.jetty.jar!/com/mortbay/Jetty/Servlet/web.dtd > [Jetty] no jboss-web.xml found > [Jetty] WebApp ClassLoader is not child of > J2EEDeployer's ClassLoader > [WebContainer] > AbstractWebContainer.parseWebAppDescriptors, Begin > [WebContainer] addEnvEntries > [WebContainer] linkResourceRefs > [WebContainer] linkEjbRefs > [WebContainer] linkSecurityDomain > [WebContainer] Binding security/securityMgr to > NullSecurityManager > [WebContainer] > AbstractWebContainer.parseWebAppDescriptors, End > [Default] +++ Created JBossUserRealm, realmName=JAAS > Tutorial Servlets > [Jetty] Started SetupHandler in > WebApplicationContext[/account,file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jboss/tmp/deploy/Default/account.ear/web1003/] > [Jetty] Started SecurityHandler in > WebApplicationContext[/account,file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jboss/tmp/deploy/Default/account.ear/web1003/] > [Jetty] Started ServletHandler in > WebApplicationContext[/account,file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.RC5-1/jboss/tmp/deploy/Default/account.ear/web1003/] > [Jetty] Started WebInfProtect > [Jetty] ResourceHandler started in > file:/D:/java/JBoss/JBoss-2.4.0BETA_Jetty-3.1.R
RE: [JBoss-user] Problems deploying EARs with JSPs under JBoss/Jetty
Hi, Sorry to say so, but i get the exact same result when i start jBoss without my ear and then deploys it and when i start jboss with my ear in the deploy lib! This is with JBoss-2.2.2_Jetty-3.1.RC5-6. ^terp > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Julian > Gosnell > Sent: Wednesday, July 04, 2001 12:32 PM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] Problems deploying EARs with JSPs under > JBoss/Jetty > > > H... > > OK - I'm getting an inkling of what the problem is > > I reckon you are deploying your ear BEFORE starting > JBoss - am I right ??? > > If so, please try a JMX deployment, via 8082, or a > hot-deploy AFTER Jboss starts and let me know if these > work. If they do, I understand the problem. > > Thanks for your feedback, > > > > Jules > > > --- Jonas Tehler <[EMAIL PROTECTED]> wrote: > > > I did some testing and it seems like the only > > problem is that the > > webdefaults.xml file isn't found/used. If I put the > > JSP mappings in my > > web.xml file, it works fine. > > > > / Jonas > > > > Julian Gosnell wrote: > > > > > OK - I'll try to have a look at it tomorrow, guys. > > > > > > thanks for letting me know, > > > > > > > > > Jules > > > > > > Jonas Tehler wrote: > > > > > > > > >>Julian Gosnell wrote: > > >> > > >> > > >>>OK, Bent, > > >>> > > >>>How big is the EAR ? > > >>> > > >>>if it is less than a couple of meg, mail it to me > > and I will have a look. > > >>> > > >>>That's the best I can do ! > > >>> > > >>I think I have the same problem. I switched from > > >>JBoss-2.2.1_Jetty3.1.RC4 to > > >> > > >>JBoss-2.2.2_Jetty-3.1.RC5-6 and suddenly the the > > jsps in my .war doesn't > > >>execute. > > >> > > >>/ Jonas > > >> > > > > > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > > http://lists.sourceforge.net/lists/listinfo/jboss-user > > > Do You Yahoo!? > Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk > or your free @yahoo.ie address at http://mail.yahoo.ie > > ___ > 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
Re: [JBoss-user] problems with Data Source lookup
Ups count me in: > OK, altogether now! one...two...three... It Won't Work. Stop Trying. It Won't Work. Stop Trying. Yes. Burkhard ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] problems with jms
hi, i want to send jms messages from a servlet to a message driven bean running in the jboss server. but when i start it, this exception occurs: [Default] Exception: Invalid transaction id. [Default] javax.jms.JMSException: Invalid transaction id. [Default] at org.jbossmq.SpyXAResourceManager.addMessage(SpyXAResourceManager.java:80) [Default] [Default] at org.jbossmq.SpySession.sendMessage(SpySession.java:381) [Default] [Default] at org.jbossmq.SpyQueueSender.send(SpyQueueSender.java:103) [Default] [Default] at org.jbossmq.SpyQueueSender.send(SpyQueueSender.java:62) [Default] [Default] at com.xlinkbase.servlet.Kicker.Kicker.doPost(Kicker.java:133) [Default] [Default] at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) [Default] [Default] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) [Default] [Default] at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) [Default] [Default] at org.apache.tomcat.core.Handler.service(Handler.java:287) [Default] [Default] at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) [Default] [Default] at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) [Default] [Default] at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) [Default] [Default] at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) [Default] [Default] at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) [Default] [Default] at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) [Default] [Default] at java.lang.Thread.run(Thread.java:484) what's wrong? what does "Invalid transaction id" mean, i don't want to use transactions at all. i use jboss-2.4beta with tomcat 3.2.2, jdk 1.3 on suse linux 2.2.14. please help me, thanks. here are fragments of the servlet code: ... public void init (ServletConfig config) throws ServletException { super.init(config); try { servletID = System.currentTimeMillis(); ctx = getInitialContext(); queueCtx = (Context)ctx.lookup(JMS_QUEUES_CONTEXT); qconFactory = (QueueConnectionFactory) ctx.lookup(JMS_FACTORY); qcon = qconFactory.createQueueConnection(); qsession = qcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); queueInput = (Queue) queueCtx.lookup("Kicker"); queueOutput = (Queue) queueCtx.lookup("Controller"); qsender = qsession.createSender(queueOutput); qreceiver = qsession.createReceiver(queueInput); qreceiver.setMessageListener(this); qcon.start(); } catch (NamingException ne) { System.err.println("Naming exception: " + ne.getMessage()); ne.printStackTrace(); } catch (JMSException jmse) { System.err.println("JMS exception: " + jmse.getMessage()); jmse.printStackTrace(); } } ... public void doPost (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { ... Message msg = qsession.createTextMessage(new String(buffer)); msg.setJMSReplyTo(queueInput); msg.setStringProperty("Sender", "Kicker"); msg.setIntProperty("RequestId", requestId); qsender.send(msg); <== here the exception occurs ... ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] problem deploying CMP EJBs.
Hi, Deployment descriptors are case sensitive, check you use ONLY Jamal or jamal... Burkhard - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 02, 2001 11:40 PM Subject: [JBoss-user] problem deploying CMP EJBs. > Hey Group: > > My system: JBoss-2.2.2_Tomcat-3.2.2, jdk1.3, NT4,Oracle 8i. > > Here is my problem: I have three EJBs which are being deployed: > jamalcontroller, jamal, jamalDAO > jamalcontroller is a statefull session bean which calls jamal also a > stateful session bean. EJB jamal calls jamalDAO which is CMP Entity bean. I > have three XML files: ejb-jar.xml, jboss.xml, and jaws.xml. Here are my > deployment files content: > > 1- ejb-jar.xml: > > > > JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'> > > > This set of components implements the CVM > application > Jamal CVM Project > > > The MVC Controller for Jamal > JamalController > jamalcontroller > com.infosphere.jamal.control.ejb.JamalControllerHome > com.infosphere.jamal.control.ejb.JamalController > > com.infosphere.jamal.control.ejb.JamalControllerBean > Stateful > Container > > jamalEvent > java.lang.String > > com.infosphere.jamal.control.ejb.JamalHandler lue> > > > > ejb/jamal > Session > com.infosphere.jamal.jamalCVM.ejb.JamalHome > com.infosphere.jamal.jamalCVM.ejb.Jamal > com.infosphere.jamal.jamalCVM.ejb.JamalBean > > > > > > The Jamal > jamal > jamal > com.infosphere.jamal.jamalCVM.ejb.JamalHome > com.infosphere.jamal.jamalCVM.ejb.Jamal > com.infosphere.jamal.jamalCVM.ejb.JamalBean > Stateful > Container > > ejb/jamalDAO > Entity > com.infosphere.jamal.jamalCVM.dao.JamalDAOHome > com.infosphere.jamal.jamalCVM.dao.JamalDAO > com.infosphere.jamal.jamalCVM.dao.JamalDAOBean > > > > > > The Jamal DataAccessObject > jamalDAO > jamalDAO > com.infosphere.jamal.jamalCVM.dao.JamalDAOHome > com.infosphere.jamal.jamalCVM.dao.JamalDAO > com.infosphere.jamal.jamalCVM.dao.JamalDAOBean > java.lang.Long > Container > True > > id_ > > > name_ > > id_ > > > The Oracle Relational Database > jdbc/OraclePool > javax.sql.DataSource > Container > > > > > > > > > jamalcontroller > * > > > jamalcontroller > Home > * > > > jamalcontroller > Remote > * > > NotSupported > > > > > jamal > * > > > jamal > Home > * > > > jamal > Remote > * > > NotSupported > > > > > > > jamalDAO > Remote > getId > > > Required > > > > jamalDAO > Remote > setId > > java.lang.String > > > Required > > > > jamalDAO > Remote > getName > > > Required > > > > jamalDAO > Remote > setName > > java.lang.String > > > Required > > > > jamalDAO > Home > FindByPrimaryKey > > java.lang.String > > > Required > > > > > all > > jamalcontroller > * > > > > all > > jamal > * > > > > all > > jamalDAO > * > > > > > > > > 2- jboss.xml: > > > > > > > jamalDAO > ejb/jamalDAO > > > jdbc/OraclePool > javax.sql.DataSource > java:/OraclePool > > > > > jamal > ejb/jamal > > > > jamalcontroller > ejb/jamalcontroller > > > > > > > 3- jaws.xml: > > > > > > jamalDAO > JamalDAO > false > > > id_ > ID > > > name_ > NAME > > > > > >OraclePool >Oracle8 > > > > Here is the error message which I get when I deploy the JAR file which > contains everything. The name of the jar file is jamalejb.jar: > [Container factory] Deploying jamalDAO > [Container factory] Deploying jamalcontroller > [Container factory] Deploying jamal > [Container factory] org.jboss.ejb.DeploymentException: Bean > com.infosphere.jamal > .jamalCVM.dao.JamalDAOBean not found within this application. > [Container factory] at > org.jboss.ejb.Container.setupEnvironment(Container.ja > va:438) > [Container factory] at org.jboss.ejb.Container.init(Container.java:298) > [Container factory] at > org.jboss.ejb.StatefulSessionContainer.init(StatefulS > essionContainer.java:171) > [Container factory] at > org.jboss.ejb.Application.init(Application.java:183) > [Container factory] at > org.jboss.ejb.ContainerFactory.deploy(ContainerFactor > y.java:337
Re: [JBoss-user] JBOSS Connection MYSQL.
Hi, your jboss.xml tag is not right, use ... Burkhard - Original Message - From: "Rakesh Shankar Shringi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 04, 2001 8:48 AM Subject: [JBoss-user] JBOSS Connection MYSQL. > hi, > > I am using my sql with JBOSS. > the problem is that i am connecting to hypersonic database instead of > connecting to the mysql database. > i am using the session bean. > This is what i have in my jboss.jcml file >name="DefaultDomain:service=XADataSource,name=mySQLDB"> > name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp l > name="PoolName">mySQLFlirtDS > name="URL">jdbc:mysql://baba9.websoft.com/flirtshow2 > w3server > > > > my Jboss.xml file contains: > > jdbc/mySQLDB > java:/mySQLDB > > > ejb-jar.xml contains > > jdbc/mySQLDB > javax.sql.DataSource > Container > > > > And this is how i am getting the connection. > > Context jndiCntx=new InitialContext(); > DataSource > ds=(DataSource)jndiCntx.lookup("java:comp/env/jdbc/mySQLDB"); > return ds.getConnection(); > > And I am using it in session Bean. but instead of connecting to the > mysql database it is connecting to the default hypersonic database > So can some one tell me where i am wrong. > > ___ > 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
Re: [JBoss-user] How to map to cloudscape database
Hi, RTFM (;-)) on JBoss.xml, which belongs into META-INF of your yar. You might as well alter standardjboss.xml. Key word is Resource-Managers. Burkhard - Original Message - From: "ralph" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 04, 2001 8:11 AM Subject: [JBoss-user] How to map to cloudscape database > I copied the cloudscape driver files to [jboss-home] \ lib \ ext. > Edited jboss.conf > Started jBoss. > Deployed a few beans in a jar-file. > Everything appears to be okay according to server.log and standard output. > :-) > > > Now: > What do I need to do in order to map my datasource name correctly, meaning: > > In my beans I want to connect to Cloudscape this way: > > DataSource ds = (DataSource) > nitial.lookup( "java:comp/env/jdbc/ConferenceDB" ); > > > The beans which should access cloudscape have the following resource-ref in > ejb-jar.xml: > > jdbc/ConferenceDB > javax.sql.DataSource > Container > Shareable > > > Currently, after deploying my jar file, the output on port 8082 looks like > this for these beans: > > + env (class: org.jnp.interfaces.NamingContext) > | + jdbc (class: org.jnp.interfaces.NamingContext) > | | + ConferenceDB[link -> java: / DefaultDS] (class: > javax.naming.LinkRef) > > > I guess that should say Cloudscape instead of DefaultDS - or not ? > > I know it has something to do with jBoss.xml, but didn't find an example > for that. What has to go into jboss.xml ? > > Thanks > Ralph > > > > ___ > 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
RE: [JBoss-user] Help with another one - ejbdoclet/jboss.dtd not found
Remove the DTD from jboss.xml. There is no validation anyway. Normally JBoss will find it in jboss.jar but I am not sure on 2.2. > -Message d'origine- > De : [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]De la part de Jan Heise > Envoyé : mercredi 4 juillet 2001 12:40 > À : ejbdoclet > Cc : jboss-user > Objet : [JBoss-user] Help with another one - ejbdoclet/jboss.dtd not > found > > > hi folks, > > regarding ejbdoclet - thanks for your help so far. > > my other question is: on deployment of my beans, jboss is > complaining about the jboss.dtd which can't be found: > > [Auto deploy] org.jboss.ejb.DeploymentException: > Could not deploy > file:/C:/development/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Def > ault/CN_BS > C3-0.0.1.ear, > Cause:org.jboss.ejb.DeploymentException: > File "http://www.jboss.org/j2ee/dtd/jboss.dtd"; not found., > Cause:org.xml.sax.SAXParseException: > File "http://www.jboss.org/j2ee/dtd/jboss.dtd"; not found. > > in jboss.xml: > "http://www.jboss.org/j2ee/dtd/jboss.dtd";> > > this was generated by ejbdoclet. is there a way to suppress the > generation of this line? perhaps this is just another newbie > error with ejbdoclet though, but a download from the above address > fails - and i never used the dtd on other projects anyway. > > any suggestions? > > jan > > -- > Jan Heise / Tel: +49-170-4803237 / E-Mail: [EMAIL PROTECTED] > > > ___ > 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
Re: [JBoss-user] Free TDS Driver -- getResultSet is hanging
Do: > PreparedStatement ps = con.prepareStatement("Select * from AdminTable"); > System.out.println("After getting Statement"); > ps.executeQuery(); > System.out.println("After Executing"); > ResultSet rs=ps.getResultSet(); ResultSet rs=ps.executeQuery(); > System.out.println("After getting Result set"); instead. Burkhard > ___ > 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
Re: [JBoss-user] Cannot Start JBoss-2.2.2_Tomcat-3.2.2
I do have JSDK 1.3 - the latest one - I installed just the other day - Original Message - From: "Burkhard Vogel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 04, 2001 10:41 PM Subject: Re: [JBoss-user] Cannot Start JBoss-2.2.2_Tomcat-3.2.2 > Hi, > The ducumetation states that you need JDK 1.2.2 and above. > Burkhard > - Original Message - > From: "John Bruce" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, July 04, 2001 3:39 AM > Subject: [JBoss-user] Cannot Start JBoss-2.2.2_Tomcat-3.2.2 > > > > Hi, > > > > I'm having trouble starting JBoss. When I do > > > > >sh run.sh > > > > I get this... > > > > JBOSS_CLASSPATH=:run.jar:../lib/crimson.jar > > java.lang.NullPointerException > > at org.jboss.Main.main(Compiled Code) > > > > I believe it may be more to do with my setup of the j2sdk which is version > > 1.1.3. But I have checked the installation documentation for the sdk and > > JBoss several times and set up my path as it says to in the docs. I am > > running on Solaris 2.6. > > > > Any suggestions? > > > > Cheers > > > > John B > > > > -- > > [EMAIL PROTECTED] > > > > > > ___ > > 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
Re: [JBoss-user] Cannot Start JBoss-2.2.2_Tomcat-3.2.2
Hi, The ducumetation states that you need JDK 1.2.2 and above. Burkhard - Original Message - From: "John Bruce" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 04, 2001 3:39 AM Subject: [JBoss-user] Cannot Start JBoss-2.2.2_Tomcat-3.2.2 > Hi, > > I'm having trouble starting JBoss. When I do > > >sh run.sh > > I get this... > > JBOSS_CLASSPATH=:run.jar:../lib/crimson.jar > java.lang.NullPointerException > at org.jboss.Main.main(Compiled Code) > > I believe it may be more to do with my setup of the j2sdk which is version > 1.1.3. But I have checked the installation documentation for the sdk and > JBoss several times and set up my path as it says to in the docs. I am > running on Solaris 2.6. > > Any suggestions? > > Cheers > > John B > > -- > [EMAIL PROTECTED] > > > ___ > 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
Re: [JBoss-user] Cannot start JBoss-2.2.2_Tomcat-3.2.2 properly
Hi, Did you do a run_with_tomcat.sh/bat? Burkhard - Original Message - From: "Dennis Huang" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 04, 2001 3:00 AM Subject: [JBoss-user] Cannot start JBoss-2.2.2_Tomcat-3.2.2 properly > Hi, all: > > Today I download JBoss-2.2.2_Tomcat-3.2.2, but I can not start it > properly. I got following exceptions, please tell me how to fix this > problem. > > Thanks, > > Dennis huang > > === > . > [J2EE Deployer Default] Started > [Auto deploy] Starting > [Auto deploy] Watching C:\JBoss-2.2.2_Tomcat-3.2.2\jboss\deploy > [Auto deploy] Auto deploy of > file:/C:/JBoss-2.2.2_Tomcat-3.2.2/jboss/deploy/tomcat-test.ea > r > [J2EE Deployer Default] Deploy J2EE application: > file:/C:/JBoss-2.2.2_Tomcat-3.2.2/jboss/d > eploy/tomcat-test.ear > [J2EE Deployer Default] Create application tomcat-test.ear > [J2EE Deployer Default] inflate and install module tomcat-test.war > [J2EE Deployer Default] install module tomcat-test.jar > [J2EE Deployer Default] add all ejb jar files to the common classpath > [Container factory] > Deploying:file:/C:/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/t > omcat-test.ear > [Verifier] Verifying > file:/C:/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/tomcat-tes > t.ear/ejb1002.jar > [Container factory] Deploying Optimized > [Container factory] Deploying NonOptimized > [Container factory] Deployed application: > file:/C:/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/depl > oy/Default/tomcat-test.ear > [J2EE Deployer Default] Unable to stop module tomcat-test.war: > DefaultDomain:service=Embed > dedTomcat > [J2EE Deployer Default] Stopping module tomcat-test.ear > [Container factory] > Undeploying:file:/C:/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default > /tomcat-test.ear > [Container factory] Undeployed application: > file:/C:/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/de > ploy/Default/tomcat-test.ear > [J2EE Deployer Default] unable to stop application tomcat-test.ear: > org.jboss.deployment.J > 2eeDeploymentException: Error(s) on stopping application > tomcat-test.ear: > Unable to stop module tomcat-test.war: fatal error while calling > :service=EmbeddedTomcat: > DefaultDomain:service=EmbeddedTomcat/n > [J2EE Deployer Default] Destroying application tomcat-test.ear > [Auto deploy] Deployment > failed:file:/C:/JBoss-2.2.2_Tomcat-3.2.2/jboss/deploy/tomcat-test > .ear > [Auto deploy] org.jboss.deployment.J2eeDeploymentException: application > contains war files > but no web container available > [Auto deploy] at > org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:42 > 2) > [Auto deploy] at > org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178) > [Auto deploy] at java.lang.reflect.Method.invoke(Native Method) > [Auto deploy] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628 > ) > ... > > > > TRACEY BRUNSTROM & HAMMOND PTY LTD ACN 008 444 700 > ABN 73 008 444 700 > PROJECT and STRATEGIC MANAGEMENT SERVICES > > 12TH FLOOR, 15 BLUE STREET > NORTH SYDNEY, N.S.W. 2060 > Telephone:+61 (2) 9922 2511 - 146 > Facsimile: +61 (2) 9959 4338 > > EMAIL TRANSMITTAL > CONFIDENTIALITY The information contained in these documents is > confidential and is intended for the exclusive use of the addressee > named above. It may also be subject to legal professional privilege. > If you are not the addressee, any disclosure, reproduction, > distribution, or other dissemination or use of this communication is > strictly prohibited. If you have received this transmission in error > please contact us immediately by telephone [+61 (2) 9922 2511]. > > VIRUSES The Company does not represent or warrant that files attached to > this email are free from computer viruses or other defects. These files > are provided, and may only be used, on the basis that the user assumes > all responsibility for any loss or damage arising out of the use of the > files. > > DISCLAIMER You may only rely on electronically transmitted advice or > documents when the advice or document is confirmed by letter signed by a > Director of the Company or his / her nominee. > > > > ___ > 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] Help with another one - ejbdoclet/jboss.dtd not found
hi folks, regarding ejbdoclet - thanks for your help so far. my other question is: on deployment of my beans, jboss is complaining about the jboss.dtd which can't be found: [Auto deploy] org.jboss.ejb.DeploymentException: Could not deploy file:/C:/development/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/CN_BS C3-0.0.1.ear, Cause:org.jboss.ejb.DeploymentException: File "http://www.jboss.org/j2ee/dtd/jboss.dtd"; not found., Cause:org.xml.sax.SAXParseException: File "http://www.jboss.org/j2ee/dtd/jboss.dtd"; not found. in jboss.xml: http://www.jboss.org/j2ee/dtd/jboss.dtd";> this was generated by ejbdoclet. is there a way to suppress the generation of this line? perhaps this is just another newbie error with ejbdoclet though, but a download from the above address fails - and i never used the dtd on other projects anyway. any suggestions? jan -- Jan Heise / Tel: +49-170-4803237 / E-Mail: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Problems deploying EARs with JSPs under JBoss/Jetty
H... OK - I'm getting an inkling of what the problem is I reckon you are deploying your ear BEFORE starting JBoss - am I right ??? If so, please try a JMX deployment, via 8082, or a hot-deploy AFTER Jboss starts and let me know if these work. If they do, I understand the problem. Thanks for your feedback, Jules --- Jonas Tehler <[EMAIL PROTECTED]> wrote: > > I did some testing and it seems like the only > problem is that the > webdefaults.xml file isn't found/used. If I put the > JSP mappings in my > web.xml file, it works fine. > > / Jonas > > Julian Gosnell wrote: > > > OK - I'll try to have a look at it tomorrow, guys. > > > > thanks for letting me know, > > > > > > Jules > > > > Jonas Tehler wrote: > > > > > >>Julian Gosnell wrote: > >> > >> > >>>OK, Bent, > >>> > >>>How big is the EAR ? > >>> > >>>if it is less than a couple of meg, mail it to me > and I will have a look. > >>> > >>>That's the best I can do ! > >>> > >>I think I have the same problem. I switched from > >>JBoss-2.2.1_Jetty3.1.RC4 to > >> > >>JBoss-2.2.2_Jetty-3.1.RC5-6 and suddenly the the > jsps in my .war doesn't > >>execute. > >> > >>/ Jonas > >> > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JNDI environment naming context
hi, Can any one give me a clear picture about JNDI environment naming context. like DataSource ds= (DataSource)jndiCntx.lookup("java:comp/env/jdbc/mySQLDB"); what does java:comp/env indicate? what is /jdbc/mySQLDB? How to put values into JNDI environment naming context? If my ejb is on some other machine how to get the object. Can i access the objects on internet through JNDI. I would be very thankful if some one can clear me up on these concepts. Rakesh Shringi ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] mysql-Jboss ConnectionPool
hi, I am trying to use the JBOSS connectionPool and i am getting the following error: [java] java.lang.ClassCastException: org.opentools.minerva.jdbc.xa.XAPoolDataSource What i have done is like this: Jboss.cfml org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl mySQLFlirtDS jdbc:mysql://baba9.websoft.com/flirtshow2 w3server ejb-jar.xml jdbc/mySQLFlirtDS javax.sql.DataSource Container jboss.xml jdbc/mySQLFlirtDS java:/mySQLFlirtDS in the bean: Context ctx = new InitialContext(); ConnectionPoolDataSource cpds = (ConnectionPoolDataSource)ctx.lookup("java:comp/env/jdbc/mySQLFlirtDS"); PooledConnection pc = cpds.getPooledConnection(); return pc.getConnection(); and it gives error: [java] java.lang.ClassCastException: org.opentools.minerva.jdbc.xa.XAPoolDataSource it runs fine if i use: Context jndiCntx=new InitialContext(); DataSource ds=(DataSource)jndiCntx.lookup("java:comp/env/jdbc/mySQLFlirtDS"); return ds.getConnection(); But why gives the following error when i use connection pool. Please reply. Thanks Rakesh Shringi ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Entity bean with special objects attributes?
Your Vector may contain Serializable objects. Object is the definition not the content. A Vector full of Serializables IS Serializable. (I never test it though...) > -Message d'origine- > De : [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]De la part de Peter Wone > Envoyé : mercredi 4 juillet 2001 11:14 > À : [EMAIL PROTECTED] > Objet : Re: [JBoss-user] Entity bean with special objects attributes? > > > It's just dawned on me; from the point of view of a Vector, each > element is > typed as Object. > > > > ___ > 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
Re: [JBoss-user] Entity bean with special objects attributes?
It's just dawned on me; from the point of view of a Vector, each element is typed as Object. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Entity bean with special objects attributes?
You may need to implement the serialisation methods yourself, especially with respect to non-primitive members. Have you ensured that all such members are themselves serializable and marked that way? A good book that may help you understand what's going on internally is Mastering RMI by Rickard Öberg, who often posts to this list. JBoss is basically a giant heavily automated RMI server, and Rickard contributed much to its development. - Original Message - From: "Jm Seigneur" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 04, 2001 7:42 AM Subject: [JBoss-user] Entity bean with special objects attributes? > Hello, > > I'd like to have a bean which can store persistently a vector of Parameter > objects: > import javax.ejb.EntityBean; > public class BlackBoxBean implements EntityBean > { String id; //primary key > Vector parameters; //vector of Parameter objects > > public String getId{ ... > > To make the Parameter class serializable, I did that: > import java.io.Serializable; > public class Parameter implements Serializable > {...} > > Nevertheless I get an exception saying Parameter isn't serializable. > > Is it possible to store that kind of objects in JBoss? > > Thanks, > > Jm > > > ___ > 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
Re: [JBoss-user] connection pooling JBOSS-mySQL
hi, i am using mysql with JBOSS. i figured out that i was connecting to hypersonic instead of connectiong to mysql. for that i changed DefaultDs to mysql database. but i want to know that is it required to change DefaultDS Why i am not being able to connect to mysql without going through default. This is the configuration and code i am using: This is what i have in my jboss.jcml file org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl mySQLFlirtDS jdbc:mysql://baba9.websoft.com/flirtshow2 w3server my Jboss.xml file contains: jdbc/mySQLDB mySQLDB ejb-jar.xml contains jdbc/mySQLDB javax.sql.DataSource Container And this is how i am getting the connection. Context jndiCntx=new InitialContext(); DataSource ds=(DataSource)jndiCntx.lookup("java:comp/env/jdbc/mySQLDB"); return ds.getConnection(); And I am using it in session Bean. so can some one tell me where i am going wrong. Thanks Rakesh Shringi ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] jboss-2.2.2_tomcat-3.2.2 & JSP
I need some help because i can't solve my problem alone. I've installed jboss-2.2.2_tomcat-3.2.2 for enterprise use. Well I can start this version without any problem. The "tomcat-test.ear" exemple deployes very well. Then I wan't to see these exemples at localhost:8080 exemples with servlets run very well but JSP exemples just don't !!! I always get this message : Error 500 Location:/examples/jsp/.../jsp Erreur interne de Servlet Cause racine I tried with an other test.ear and I got the same error. Anybody for help ? ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user