Re: [JBoss-user] calling ejbStore() too many times
Hi David, You wrote: I guess what you are aiming at here is commit option A,B,C,D right ?. Well I have tried to implement this option in jboss.xml but when I deploy the ear, JBoss throws a NPE. I must miss something in the xml. Do you have a snippet from jboss.xml that works with this option you could post here ?. About commit options: If I get the docs right these commit options only affects the way JBoss retrieves data from the underlying persistent datasource. That must IMHO mean that only the number of times ejbLoad() is called is different with commit option A vs. option B,C,D. Could you explain why this also affects ejbStore(). The container defaults at the moment to A. You wrote: Yes. The client executes only one call towards JBoss. All the data treatement is handled in JBoss. After treatement JBoss returns a dataSet to the client. You wrote Let me see if I get this right. In order to make the XA transaction work as it should, every data-resource called by the container, within the same transaction, must be a XA-resource ?, so combining xa and non-xa is a no-go in JBoss ? -Kris - Original Message - From: "David Jencks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 18, 2002 1:19 AM Subject: Re: [JBoss-user] calling ejbStore() too many times > On 2002.01.17 18:22:12 -0500 Kris Kristensen wrote: > > Just read through my own post and found a typo that might give more > > meaning to the "showstopper". WLS takes approx. 1- to 3+ SECONDS not > > minutes, for JBoss it is sadly enough correct with 3+ minutes. > > > > Any help will be very appreciated. > > > > -Kris > > - Original Message - > > From: Kris Kristensen > > To: Jboss-support > > Sent: Thursday, January 17, 2002 7:59 PM > > Subject: [JBoss-user] calling ejbStore() too many times > > > > > > Moving down the path of porting from WLS to JBoss, I came across this > > issue. > > > > We are using both XA and non-XA datasources/drivers in our application. > > > > I have a testprogram that calls a number of sessionbeans each of which > > calls a number of entity beans. These entity beans all use the non-xa > > driver. these entity beans collects a number of informations(definitions) > > that is used to call external databases to create dynamic SQL statements. > > The external databases all use XA-datasources. > > > > Doing this with WLS takes approx. 1- to 3+ minuts, depending on the > > amount of data being retrieved. Doing it in JBoss is something of a > > showstopper (3+ minuts). > > During executing, JBoss insists on calling ejbStore() contantly, where > > WLS just calls ejbStore() when the transaction is about to end. > > Without actually counting the number of times JBoss makes these calls, > > my best guess is more than 100!!, although the number a entity beans > > being accessed is around 10-15. > > > > Further info: > > We are using BMP for the entity beans. Every bean has its own record > > class the implements the Serializable interface. The record class acts as > > data-container between the server and client. > > Since you are using bmp, you are free to implement a dirty flag and avoid > accessing the db in ejbStore if nothing has changed. (with cmp, implement a > boolean isModified() method and JAWS will call it for advice). > > Some of the calls to ejbStore were added because if you don't do them more > or less immediately it's easy to get fk constraint violations when you are > removing rows, and you first set the reference to the removed row to null > (or something else). You might take a look at the commit option also. Is > everything executing within the same "transaction" as far as jboss is > concerned? (jboss does not argue with you if you access several non xa > resources within the same tx, it just tries to commit everything at once. > Of course if something fails, you're in trouble.) > > Hope this helps > > david jencks > > > > JBoss2.4.4_Tomcat4.0.1 > > > > -Kris > > > > > > > > > > > > > > > > > > Just read through my own post and found a > > typo that > > might give more meaning to the "showstopper". WLS takes approx. 1- > > to 3+ > > SECONDS not minutes, for JBoss it is sadly enough correct with 3+ > > minutes. > > > > Any help will be very > > appreciated. > > > > -Kris > > > style="BORDER-LEFT: #00 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: > > 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"> > > - Original Message - > >> style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: > > black">From: > > mailto:[EMAIL PROTECTED]"; > > [EMAIL PROTECTED]>Kris Kristensen > > To: > href="mailto:[EMAIL PROTECTED]"; > > [EMAIL PROTECTED]>Jboss-support > > Sent: Thursday, January 17, 2002 > > 7:59 > > PM > > Subject: [JBoss-user] calling > > ejbStore() > > too many times > > > > Moving down the path of porting from WLS > > to > > JBoss, I came across this issue. > > > > We are using both XA and n
Re: [JBoss-user] Which transaction attribute to use?
Since different db's have very different ideas about the relation between DDL and transactions, you are unlikely to find much support for db independent code or predictable results with DDL. For instance Firebird/interbase executes ddl immediately before the end of a transaction. You might try bmt and attempting to commit after each operation. Have you considered testing for the existence of the table you are dropping by examining db metadata? Or is this process so frequent that by the time you checked someone else either created or dropped it? david jencks On 2002.01.18 00:40:54 -0500 Jarecsni János wrote: > Hi, > > I have a simple method in an EJB which does (or more correctly: would do) > the following: > > 1. delete a table named aux0_tmp > 2. create a table named aux0_tmp > 3. delete a table named aux0 > 4. rename aux0_tmp to aux0 > > The problem is that step 1 will almost always throw an SQL exception, > since > that table will not exist normally. As a consequence, the whole thing > does > not commit. (I put step 1. in a separate try-catch, to be able to ignore > it, > so steps 2-4 are executed, but they have no result). > > On SunRI I changed the transaction attribute from "required" to > "supports" > and it worked afterwards. I deployed the same thing on JBoss (2.4.1) and > to > my surprise it did not work, I mean the changes did not commit. Shouldn't > such a basic feature (as transaction attributes) have the same effect on > two > J2EE servers? Or is there anything I miss here? > > /*I do it like this: > // this is in a separate try-catch to be able to ignore it > // I even tried recreating the statement object, and the connection in > the > catch branch, but nothing helped > stmt.execute("drop table..."); > > stmt.execute("create table aux0_tmp as select..."); > */ > > Cheers, > Janos > > -- > Jarecsni János > PGP Key Fingerprint: 846A C0CB 7F7D 28FD C82B 0F28 73BA 88DE 2BE7 31AD > Boycott Amazon: http://www.gnu.org/philosophy/amazon.html > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Which transaction attribute to use?
Hi, I have a simple method in an EJB which does (or more correctly: would do) the following: 1. delete a table named aux0_tmp 2. create a table named aux0_tmp 3. delete a table named aux0 4. rename aux0_tmp to aux0 The problem is that step 1 will almost always throw an SQL exception, since that table will not exist normally. As a consequence, the whole thing does not commit. (I put step 1. in a separate try-catch, to be able to ignore it, so steps 2-4 are executed, but they have no result). On SunRI I changed the transaction attribute from "required" to "supports" and it worked afterwards. I deployed the same thing on JBoss (2.4.1) and to my surprise it did not work, I mean the changes did not commit. Shouldn't such a basic feature (as transaction attributes) have the same effect on two J2EE servers? Or is there anything I miss here? /*I do it like this: // this is in a separate try-catch to be able to ignore it // I even tried recreating the statement object, and the connection in the catch branch, but nothing helped stmt.execute("drop table..."); stmt.execute("create table aux0_tmp as select..."); */ Cheers, Janos -- Jarecsni János PGP Key Fingerprint: 846A C0CB 7F7D 28FD C82B 0F28 73BA 88DE 2BE7 31AD Boycott Amazon: http://www.gnu.org/philosophy/amazon.html ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Question on referencing an EJB from another EJB via the local interface
Hi: Does anyone know whether jboss-2.4.4 support referencing an EJB from another EJB via the local interface or not? If yes, is it working for both Entity Bean and Session Bean? Thanks for advance _ Chat with friends online, try MSN Messenger: http://messenger.msn.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] mbean classpath
You don't mention what version you are using, so I'm guessing 2.4.x. The MBean jar itself should be specified in a classpath extension in jboss.conf (or you can put it into jboss/lib/ext, which I don't recommend.) Any other jar files that your MBean code itself needs can be place anywhere in the JBoss startup classpath. That would include jboss/lib/ext, which I still don't recommend, or you can add them to the JBOSS_CLASSPATH in run.bat or run.sh, which I prefer. - Original Message - From: "Anders Lindh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 17, 2002 6:17 PM Subject: [JBoss-user] mbean classpath > Hi, > > I want a mbean to use an utility jar, without including it in the system > classpath (my ejb's use the same utility jar also). Can this be done? > The mbean spec says that one can include many jar files in the archive > attribute of a mbean tag, separated by commas. This doesn't however seem > to work (Jboss didn't find my mbean if I moved it away from lib/ext, and > changed the codebase attribute). Any clues? > > Thanks, > > - Anders > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] java net BindException
It means that one of the ports you are trying to use is already in use by somebody else. Since you got this on EmbeddedCatalina, I"m guessing it's port 8080. Do you have a separate instance of Tomcat running on this same box? - Original Message - From: "Albretch Mueller" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 17, 2002 6:30 PM Subject: [JBoss-user] java net BindException > Hi, > > I am using jdk1.4, TOmcat 4.0.1 and JBoss JBoss-2.4.4. > > I was going through JBoss' starting log and even if I don't find JVM_Bind > when I run set, I found the following messages. > > [ERROR,EmbeddedCatalinaServiceSX] StoppedLifecycleException: null.open: > java.net.BindException: Address already in use: JVM_Bind > > [ERROR,ConfigurationService] Unexpected error LifecycleException: > null.open: java.net.BindException: Address already in use: JVM_Bind > > What does it mean? How do I fix this? > > Albretch > > > _ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Problem making Apache1.3.22 work with Jboss2.4.4-with-tomcat4.0.1
>FROM: Michael Schulz>DATE: 01/17/2002 07:18:06>SUBJECT: RE: [JBoss-user] Problem making Apache1.3.22 work with Jboss2.4.4-with-tomcat4.0.1 >I just did this using the same configuration you described and it worked for>me. The question I have is: why are you deploying the .html file as part of>your .war package? If you are using Apache, then wouldn't you want to create>an alias in your httpd.conf file for it? Did you use the mod_jk or>mod_webapp connector for Apache-Tomcat integration? I was not able to get>mod_webapp working, so I used mod_jk. I'll assume that you are using mod_jk>as well. Somewhere in your httpd.conf there is a "JkMount" directive that>looks something like this:>>JkMount /*.jsp ajp13>>That is why your .jsp page works as expected. I would guess that you don't>have a similar JkMount for your .html files -- and you shouldn't, because>that is why you are using Apache. So you should put your .html file>somewhere in a known structure -- like underneath C:/apache/htdocs - and>create an alias for your context in the httpd.conf file, such as this:>>Alias /jboss/ "C:/Apache/htdocs/jboss/".>>This tells Apache that if the request cannot be handled by mod_jk (or some>other connector) then resources (such as index.html) for this context>(jboss) can be found in the specified directory.>>Hope that helps.>>-Michael Schulz>Thank you very much for your directions. You are right, I am using mod_jk.dll as you said, and I also can't get mod_webapp working. I followed what you said: copied the index.html from tomcat-test.ear to /Apache/htdocs/jboss/ and created the alias in the httpd.conf file. Then I can open http://localhost/jboss now. But I can't run the example servlet/EJB in it, while http://localhost:8080/jboss works fine. It just gave me a HTTP 404 error. I am just starting to learn web application and J2EE. Now I think my problem is: how can I let the index.html link to the servlet/ejb in jboss-tomcat? Must I create a .jsp file in the web application to run the servlet/ejb and then let the index.html link to that .jsp file? Or some other ways? Expect your further directions. Thank you! Best regardsHubert Fu
[JBoss-user] Please help re: Client-side UserTransactions not commiting
I am hoping someone can help me solve a problem I'm having with JBoss 2.4.4 (using RedHat Linux 7.1 and PostgreSQL 7.0.2). My client application manipulates several entity beans. I know that a better design would be to use a session facade, but that's not an option in the short term. In any case -- I've introduced the use of UserTransaction from the client. I obtain a UserTransaction and call "begin". Then I manipulate my entity beans. Finally, I call "UserTransaction.commit()". My changes are being written to the database, but, they are not being commited. I know this because when my application tries to read the values back, the new values are shown. But another application, connecting directly to PostgreSQL, shows the old values. Lastly, when I restart JBoss or reload the EAR file, all the old values come back. My CMP beans are marked as "Requires" a transaction. Can anyone please help me deduce what's going wrong, and why my commit() calls don't seem to be doing anything? Thank you, Bryan ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss 2.4.4 - Tomcat 4.0.1 and webserver connectors
Title: JBoss 2.4.4 - Tomcat 4.0.1 and webserver connectors We are currently running Jboss 2.2.2 and Tomcat 3.2.2 using the ajp12 and ajp13 connectors to receive requests from an iplanet webserver. All of this works fine. I'm trying to upgrade to JBoss 2.4.4 Tomcat 4.0.1 but I can't get the connectors to work. I looked in the book and it shows to add something like this to the embedded Catalina mbean: ... I'm assuming that there are some typos in the above and mine looks like this: port="8009" minProcessors="5" maxProcessors="75" acceptCount="10" debug="5"/> Everything starts up fine but nothing binds to port 8009. Is what I'm trying to do still possible? == Leonard Crowe Development Team Lead Dairy.com http://www.dairy.com 9400 N. Central Expwy, Suite 1300 Dallas, TX 75231 Direct: (214) 360-0061 x157 Fax: (214) 360-0169
Re: [JBoss-user] calling ejbStore() too many times
On 2002.01.17 18:22:12 -0500 Kris Kristensen wrote: > Just read through my own post and found a typo that might give more > meaning to the "showstopper". WLS takes approx. 1- to 3+ SECONDS not > minutes, for JBoss it is sadly enough correct with 3+ minutes. > > Any help will be very appreciated. > > -Kris > - Original Message - > From: Kris Kristensen > To: Jboss-support > Sent: Thursday, January 17, 2002 7:59 PM > Subject: [JBoss-user] calling ejbStore() too many times > > > Moving down the path of porting from WLS to JBoss, I came across this > issue. > > We are using both XA and non-XA datasources/drivers in our application. > > I have a testprogram that calls a number of sessionbeans each of which > calls a number of entity beans. These entity beans all use the non-xa > driver. these entity beans collects a number of informations(definitions) > that is used to call external databases to create dynamic SQL statements. > The external databases all use XA-datasources. > > Doing this with WLS takes approx. 1- to 3+ minuts, depending on the > amount of data being retrieved. Doing it in JBoss is something of a > showstopper (3+ minuts). > During executing, JBoss insists on calling ejbStore() contantly, where > WLS just calls ejbStore() when the transaction is about to end. > Without actually counting the number of times JBoss makes these calls, > my best guess is more than 100!!, although the number a entity beans > being accessed is around 10-15. > > Further info: > We are using BMP for the entity beans. Every bean has its own record > class the implements the Serializable interface. The record class acts as > data-container between the server and client. Since you are using bmp, you are free to implement a dirty flag and avoid accessing the db in ejbStore if nothing has changed. (with cmp, implement a boolean isModified() method and JAWS will call it for advice). Some of the calls to ejbStore were added because if you don't do them more or less immediately it's easy to get fk constraint violations when you are removing rows, and you first set the reference to the removed row to null (or something else). You might take a look at the commit option also. Is everything executing within the same "transaction" as far as jboss is concerned? (jboss does not argue with you if you access several non xa resources within the same tx, it just tries to commit everything at once. Of course if something fails, you're in trouble.) Hope this helps david jencks > > JBoss2.4.4_Tomcat4.0.1 > > -Kris > > > > > > > > > Just read through my own post and found a > typo that > might give more meaning to the "showstopper". WLS takes approx. 1- > to 3+ > SECONDS not minutes, for JBoss it is sadly enough correct with 3+ > minutes. > > Any help will be very > appreciated. > > -Kris > style="BORDER-LEFT: #00 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: > 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"> > - Original Message - > style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: > black">From: > mailto:[EMAIL PROTECTED]"; > [EMAIL PROTECTED]>Kris Kristensen > To:href="mailto:[EMAIL PROTECTED]"; > [EMAIL PROTECTED]>Jboss-support > Sent: Thursday, January 17, 2002 > 7:59 > PM > Subject: [JBoss-user] calling > ejbStore() > too many times > > Moving down the path of porting from WLS > to > JBoss, I came across this issue. > > We are using both XA and non-XA > datasources/drivers in our application. > I have a > testprogram that calls a number of sessionbeans each of which calls a > number > of entity beans. These entity beans all use the non-xa driver. these > entity > beans collects a number of informations(definitions) that is used > to call > external databases to create dynamic SQL statements. The external > databases > all use XA-datasources. > > Doing this with WLS takes approx. 1- > to 3+ > minuts, depending on the amount of data being retrieved. Doing it in > JBoss is > something of a showstopper (3+ minuts). > During executing, JBoss insists on calling > > ejbStore() contantly, where WLS just calls ejbStore() when the > transaction is > about to end. > Without actually counting the number of > times > JBoss makes these calls, my best guess is more than 100!!, although the > number > a entity beans being accessed is around 10-15. > > Further info: > We are using BMP for the entity beans. > Every bean > has its own record class the implements the Serializable interface. The > record > class acts as data-container between the server and > client. > > JBoss2.4.4_Tomcat4.0.1 > > -Kris > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] calling ejbStore() too many times
Hmm... I'm not up on the newer config options (or BMP for that matter,) but have you tried adjusting the "commit-option" in your jboss config? I beleive this is good for BMP. See the container configuration doc page: http://www.jboss.org/online-manual/HTML/ch07s16.html. I understand what you mean, about not wanting to use container-specific features. What I like about "isModified" is that using it won't break your EJB for other app servers (though it might be useless to other app servers.) Additionally, many app servers (at least Orion, and I think WebLogic) also use "isModified" or at least have some equivalent. Good Luck, Mike - Original Message - From: Kris Kristensen To: Jboss-support ; Jara, Michael Sent: Thursday, January 17, 2002 5:06 PM Subject: Re: [JBoss-user] calling ejbStore() too many times Hi Michael You're almost right. JBoss just keeps on writing/storing (not reading/loading). My code does nothing to provoke these actions. As you can see from my post WLS agrees with that. No, I have not implemented the isModified flag because doing so would maybe solve the problem in a "wrong" way. I would prefer to figure out/learn if I have done anything wrong in some configuration files, or Another reason for not implementing the isModified flag is that although JBoss might be satisfied, WLS might not, and our application has to be compliant with both JBoss and WLS and other app-servers, so avoiding container specific implementations would be preferred (required). -Kris - Original Message - From: Michael Jara To: Kris Kristensen ; Jboss-support Sent: Friday, January 18, 2002 12:46 AM Subject: Re: [JBoss-user] calling ejbStore() too many times It sounds like you are just reading data from your entity beans throughout this transaction. Is that correct? If so, have you tried implementing "IsModified"? Mike - Original Message - From: Kris Kristensen To: Jboss-support ; Kris Kristensen Sent: Thursday, January 17, 2002 4:22 PM Subject: Re: [JBoss-user] calling ejbStore() too many times Just read through my own post and found a typo that might give more meaning to the "showstopper". WLS takes approx. 1- to 3+ SECONDS not minutes, for JBoss it is sadly enough correct with 3+ minutes. Any help will be very appreciated. -Kris - Original Message - From: Kris Kristensen To: Jboss-support Sent: Thursday, January 17, 2002 7:59 PM Subject: [JBoss-user] calling ejbStore() too many times Moving down the path of porting from WLS to JBoss, I came across this issue. We are using both XA and non-XA datasources/drivers in our application. I have a testprogram that calls a number of sessionbeans each of which calls a number of entity beans. These entity beans all use the non-xa driver. these entity beans collects a number of informations(definitions) that is used to call external databases to create dynamic SQL statements. The external databases all use XA-datasources. Doing this with WLS takes approx. 1- to 3+ minuts, depending on the amount of data being retrieved. Doing it in JBoss is something of a showstopper (3+ minuts). During executing, JBoss insists on calling ejbStore() contantly, where WLS just calls ejbStore() when the transaction is about to end. Without actually counting the number of times JBoss makes these calls, my best guess is more than 100!!, although the number a entity beans being accessed is around 10-15. Further info: We are using BMP for the entity beans. Every bean has its own record class the implements the Serializable interface. The record class acts as data-container between the server and client. JBoss2.4.4_Tomcat4.0.1 -Kris
[JBoss-user] JBossMQ durable configuration
I'm playing around with JBoss 2.4.4 durable subscriptions and I've also purchased the JBoss manual which has been really helpful. My question, is it possible to reference an already authenitcated user in jbossmq-state.xml. For example we use JBoss (I think it's called JAAS) security so that a user is already authenticated in JBoss by jboss/conf/xxx/users.properties and it seems repetitive to make them authenticate again when creating the TopicConnection (from the TopicConnectionFactory). There's a TopicConnectionFactory.createTopicConnection() method that doesn't require a username/password, that according to the JMS spec uses the default user (which I assume to mean the authenticated JBoss user). So I was wondering how I could specify the default user in jbossmq-state.xml so my users don't have to authenticate twice (and I don't have to maintain two password files). I tried leaving the password field out in jbossmq-state.xml but that causes a parse exception. Thanks for any help, Todd ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] calling ejbStore() too many times
Hi Michael You're almost right. JBoss just keeps on writing/storing (not reading/loading). My code does nothing to provoke these actions. As you can see from my post WLS agrees with that. No, I have not implemented the isModified flag because doing so would maybe solve the problem in a "wrong" way. I would prefer to figure out/learn if I have done anything wrong in some configuration files, or Another reason for not implementing the isModified flag is that although JBoss might be satisfied, WLS might not, and our application has to be compliant with both JBoss and WLS and other app-servers, so avoiding container specific implementations would be preferred (required). -Kris - Original Message - From: Michael Jara To: Kris Kristensen ; Jboss-support Sent: Friday, January 18, 2002 12:46 AM Subject: Re: [JBoss-user] calling ejbStore() too many times It sounds like you are just reading data from your entity beans throughout this transaction. Is that correct? If so, have you tried implementing "IsModified"? Mike - Original Message - From: Kris Kristensen To: Jboss-support ; Kris Kristensen Sent: Thursday, January 17, 2002 4:22 PM Subject: Re: [JBoss-user] calling ejbStore() too many times Just read through my own post and found a typo that might give more meaning to the "showstopper". WLS takes approx. 1- to 3+ SECONDS not minutes, for JBoss it is sadly enough correct with 3+ minutes. Any help will be very appreciated. -Kris - Original Message - From: Kris Kristensen To: Jboss-support Sent: Thursday, January 17, 2002 7:59 PM Subject: [JBoss-user] calling ejbStore() too many times Moving down the path of porting from WLS to JBoss, I came across this issue. We are using both XA and non-XA datasources/drivers in our application. I have a testprogram that calls a number of sessionbeans each of which calls a number of entity beans. These entity beans all use the non-xa driver. these entity beans collects a number of informations(definitions) that is used to call external databases to create dynamic SQL statements. The external databases all use XA-datasources. Doing this with WLS takes approx. 1- to 3+ minuts, depending on the amount of data being retrieved. Doing it in JBoss is something of a showstopper (3+ minuts). During executing, JBoss insists on calling ejbStore() contantly, where WLS just calls ejbStore() when the transaction is about to end. Without actually counting the number of times JBoss makes these calls, my best guess is more than 100!!, although the number a entity beans being accessed is around 10-15. Further info: We are using BMP for the entity beans. Every bean has its own record class the implements the Serializable interface. The record class acts as data-container between the server and client. JBoss2.4.4_Tomcat4.0.1 -Kris
Re: [JBoss-user] calling ejbStore() too many times
It sounds like you are just reading data from your entity beans throughout this transaction. Is that correct? If so, have you tried implementing "IsModified"? Mike - Original Message - From: Kris Kristensen To: Jboss-support ; Kris Kristensen Sent: Thursday, January 17, 2002 4:22 PM Subject: Re: [JBoss-user] calling ejbStore() too many times Just read through my own post and found a typo that might give more meaning to the "showstopper". WLS takes approx. 1- to 3+ SECONDS not minutes, for JBoss it is sadly enough correct with 3+ minutes. Any help will be very appreciated. -Kris - Original Message - From: Kris Kristensen To: Jboss-support Sent: Thursday, January 17, 2002 7:59 PM Subject: [JBoss-user] calling ejbStore() too many times Moving down the path of porting from WLS to JBoss, I came across this issue. We are using both XA and non-XA datasources/drivers in our application. I have a testprogram that calls a number of sessionbeans each of which calls a number of entity beans. These entity beans all use the non-xa driver. these entity beans collects a number of informations(definitions) that is used to call external databases to create dynamic SQL statements. The external databases all use XA-datasources. Doing this with WLS takes approx. 1- to 3+ minuts, depending on the amount of data being retrieved. Doing it in JBoss is something of a showstopper (3+ minuts). During executing, JBoss insists on calling ejbStore() contantly, where WLS just calls ejbStore() when the transaction is about to end. Without actually counting the number of times JBoss makes these calls, my best guess is more than 100!!, although the number a entity beans being accessed is around 10-15. Further info: We are using BMP for the entity beans. Every bean has its own record class the implements the Serializable interface. The record class acts as data-container between the server and client. JBoss2.4.4_Tomcat4.0.1 -Kris
[JBoss-user] java net BindException
Hi, I am using jdk1.4, TOmcat 4.0.1 and JBoss JBoss-2.4.4. I was going through JBoss' starting log and even if I don't find JVM_Bind when I run set, I found the following messages. [ERROR,EmbeddedCatalinaServiceSX] StoppedLifecycleException: null.open: java.net.BindException: Address already in use: JVM_Bind [ERROR,ConfigurationService] Unexpected error LifecycleException: null.open: java.net.BindException: Address already in use: JVM_Bind What does it mean? How do I fix this? Albretch _ Send and receive Hotmail on your mobile device: http://mobile.msn.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss naming service don't work on .....
Title: RE: [JBoss-user] JBoss naming service don't work on . I think you can wrap the directory with a double quote (e.g. c:\"Program Files"\). Although I would agree with Michael; install it somewhere else. John -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 17, 2002 12:25 PM To: Anthony Servito; Jboss-User@Lists. Sourceforge. Net (E-mail) Subject: RE: [JBoss-user] JBoss naming service don't work on . Perhaps you should just reinstall JBoss on a path that does not include spaces. I think you are just asking for trouble by using a path which contains spaces. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Anthony Servito Sent: Thursday, January 17, 2002 2:09 PM To: Jboss-User@Lists. Sourceforge. Net (E-mail) Subject: [JBoss-user] JBoss naming service don't work on . javax.naming.NamingException is thrown when JBoss is located on a directory that has space on its path. For example I place the JBoss on c:\program files\JBoss-2.4.3_Tomcat-3.2.3 directory. Notice that "program files" has space in between. Does anybody know what's causing this? Environment: Jboss & PetStore version = JBoss -> JBoss-2.4.3_Tomcat-3.2.3 Petstore ---> jps-1_1_2 JDK --> jdk1.3.1_01 = ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] calling ejbStore() too many times
Just read through my own post and found a typo that might give more meaning to the "showstopper". WLS takes approx. 1- to 3+ SECONDS not minutes, for JBoss it is sadly enough correct with 3+ minutes. Any help will be very appreciated. -Kris - Original Message - From: Kris Kristensen To: Jboss-support Sent: Thursday, January 17, 2002 7:59 PM Subject: [JBoss-user] calling ejbStore() too many times Moving down the path of porting from WLS to JBoss, I came across this issue. We are using both XA and non-XA datasources/drivers in our application. I have a testprogram that calls a number of sessionbeans each of which calls a number of entity beans. These entity beans all use the non-xa driver. these entity beans collects a number of informations(definitions) that is used to call external databases to create dynamic SQL statements. The external databases all use XA-datasources. Doing this with WLS takes approx. 1- to 3+ minuts, depending on the amount of data being retrieved. Doing it in JBoss is something of a showstopper (3+ minuts). During executing, JBoss insists on calling ejbStore() contantly, where WLS just calls ejbStore() when the transaction is about to end. Without actually counting the number of times JBoss makes these calls, my best guess is more than 100!!, although the number a entity beans being accessed is around 10-15. Further info: We are using BMP for the entity beans. Every bean has its own record class the implements the Serializable interface. The record class acts as data-container between the server and client. JBoss2.4.4_Tomcat4.0.1 -Kris
[JBoss-user] mbean classpath
Hi, I want a mbean to use an utility jar, without including it in the system classpath (my ejb's use the same utility jar also). Can this be done? The mbean spec says that one can include many jar files in the archive attribute of a mbean tag, separated by commas. This doesn't however seem to work (Jboss didn't find my mbean if I moved it away from lib/ext, and changed the codebase attribute). Any clues? Thanks, - Anders ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] jboss issues
I have recently began writing and using servlets with jboss, jedit, and java 1.3.0. I dowloaded JBoss from www.jboss.org the JBoss-2.4.4_Tomcat-4.0.1 and when I access the MS_DOS batch file run_with_catalina.bat it feeds me a large sum of information. I can find no exceptions but the closest thing I could find to what might be an error is that it says: [WARN,MinervaDS] Not setting config property 'Driver' [WARN,MinervaDS] Not setting config property 'Password' [WARN,MinervaDS] Not setting config property 'UserName' Wether or not this is an issue, I do not know. If there is anything that might be the issue or possible output that the cmd might display please inform me. Thank You Dustin GrabauDo You Yahoo!? Send FREE video emails in Yahoo! Mail.
RE: [JBoss-user] Weird Hashtable contens after bean passivation / activation
The $ProxyX classes are probably JDK1.3 dynamic proxy classes. Can you post the code and stacktrace? Paul > -Original Message- > From: Sternagel Annegret (PN-SYS/PE) > [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 17, 2002 8:26 AM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Weird Hashtable contens after bean passivation / > activation > > > Hello, > > I want to store references to stateful sessionbeans in a > Hashtable of a > stateful sessionbean. > I tried to store the beanhandle and got a weird behavior: > The classname of the stored objects has been > 'org.jboss.ejb.plugins.jrmp.interfaces.StatefulHandleImpl'. > When I get the object from the Hashtable normally the > classname is correct, > but when the bean has been passivated and activated the > classname has been > something like '$Proxy3' > and I get a ClassCastException on the cast to a Handle. > > I know the classname of the bean references in jboss is > somthing like $Proxy > (to see sometimes in Exception printStackTrace ...). It looks > like that > through passivation / activation the handles have been restored to the > remoteinterfaces of the beans > > What's going on here ? > How should I store bean references: as remoteinterface or handle ? > > Annegret > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Does someone help me...
Take a look at the org.jboss.logging.Logger code. You can browse cvs at: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/jboss/src/main/org/jbos s/logging/Logger.java?rev=1.17&content-type=text/vnd.viewcvs-markup > -Original Message- > From: Gianni Gottardi [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 17, 2002 8:26 AM > To: JBoss > Subject: [JBoss-user] Does someone help me... > > > Does someone post the sources of an example-ejb that deploys with > jboss-2.4.4 and uses log4j to log ? > Will be very appreciated. > Thanks > > Gianni > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Deployment dependencies / timing
The way we do startup is by taking advantage of the MBeanServer notification service. We have a StartupMBean that registers with the MBeanServerDelegate (see the javadocs) to get notification about when things are coming up. When it recieves notification that the required beans have been deployed, it calls loads up another EJB that takes care of the rest of the initialization. Let me know if this approach is initeresting and I can follow up on it on more detail... Paul > -Original Message- > From: Eric Anderson [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 17, 2002 12:22 PM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Deployment dependencies / timing > > > I have a question about how to specify or control deployment order in > JBoss. I have two EJB jar files, one containing a single MDB, and > another containing a collection of session/entity beans that the MDB > calls upon. As it so happens, the MDB is deployed ahead of > the bean jar > file. > > When I start JBoss, if the MDB queue contains data, then the MDB is > called *during* JBoss startup. When this happens, the MDB > cannot access > the beans from the other jar file, because it has not yet > been deployed! > I'm wondering if there's a way to either defer MDB > processing until all > code is deployed, or to specify a relationship between the > MDB and the > other beans such that the MDB will not be started until those > beans are > deployed. > > I think I could make this work if I packaged the MDB+the beans in one > jar file (or as components in a .ear file), but I would really prefer > not to do that, as the non-MDB beans are a resource that are shared > across applications. > > I'm probably asking a more general J2EE question here, but if it > matters, I'm currently using JBoss 2.4.3. > > Thanks, > Eric Anderson > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] How to capture authentication error
Hi, I'm using JBoss and Tomcat to develop my web application. I have a security domain and the user must authenticate itself to access the restricted area. I'm using the DatabaseServer login module and I have defined the necessary tables. I want to display an error page when the user is not allowed to access instead of the HTTP-403 error message. I've tried to add the following lines in the web.xml: 403 /error.jsp but I keep having the HTTP-403 message displaied. I've also tried to use the tag, but still have the problem What can I do? Should I add anything in the jboss-web.xml? Please help! Thanks in advance ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss 3.0.0alpha problem
Hi, When trying out my first CMP.20 bean on JBoss3.0.0 I get the error below - is the "TopicConnectionFactory" related to JMS & why is this error occuring when deploying an Entity Bean (with nothing to do with JMS). Kind Regards, Niall. Error: [2002-01-17 20:32:40,740,ContainerFactory,ERROR] Could not deploy file:/C:/jboss-3.0.0alpha/deploy/Default/reservations.jar javax.naming.NameNotFoundException: TopicConnectionFactory not bound at org.jnp.server.NamingServer.getBinding(NamingServer.java:495) at org.jnp.server.NamingServer.getBinding(NamingServer.java:503) at org.jnp.server.NamingServer.getObject(NamingServer.java:509) at org.jnp.server.NamingServer.lookup(NamingServer.java:282) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:365) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349) at javax.naming.InitialContext.lookup(InitialContext.java:350) at org.jboss.ejb.plugins.AbstractInstanceCache.init(AbstractInstanceCache.java: 347) at org.jboss.ejb.EntityContainer.init(EntityContainer.java:310) at org.jboss.ejb.Application.start(Application.java:201) at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:382) at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:308) at java.lang.reflect.Method.invoke(Native Method) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:467) at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:444) at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:215) at java.lang.reflect.Method.invoke(Native Method) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:654) at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:327) at java.lang.Thread.run(Thread.java:484) ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss naming service don't work on .....
The problem was this was not obvious. There was no exception, jboss boot up and petstore deployment seem to pass okay, except in the PetStore did not work. Regards Anthony -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 17, 2002 3:25 PM To: Anthony Servito; Jboss-User@Lists. Sourceforge. Net (E-mail) Subject: RE: [JBoss-user] JBoss naming service don't work on . Perhaps you should just reinstall JBoss on a path that does not include spaces. I think you are just asking for trouble by using a path which contains spaces. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Anthony Servito Sent: Thursday, January 17, 2002 2:09 PM To: Jboss-User@Lists. Sourceforge. Net (E-mail) Subject: [JBoss-user] JBoss naming service don't work on . javax.naming.NamingException is thrown when JBoss is located on a directory that has space on its path. For example I place the JBoss on c:\program files\JBoss-2.4.3_Tomcat-3.2.3 directory. Notice that "program files" has space in between. Does anybody know what's causing this? Environment: Jboss & PetStore version = JBoss -> JBoss-2.4.3_Tomcat-3.2.3 Petstore ---> jps-1_1_2 JDK --> jdk1.3.1_01 = ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss naming service don't work on .....
Perhaps you should just reinstall JBoss on a path that does not include spaces. I think you are just asking for trouble by using a path which contains spaces. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Anthony Servito Sent: Thursday, January 17, 2002 2:09 PM To: Jboss-User@Lists. Sourceforge. Net (E-mail) Subject: [JBoss-user] JBoss naming service don't work on . javax.naming.NamingException is thrown when JBoss is located on a directory that has space on its path. For example I place the JBoss on c:\program files\JBoss-2.4.3_Tomcat-3.2.3 directory. Notice that "program files" has space in between. Does anybody know what's causing this? Environment: Jboss & PetStore version = JBoss -> JBoss-2.4.3_Tomcat-3.2.3 Petstore ---> jps-1_1_2 JDK --> jdk1.3.1_01 = ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Deployment dependencies / timing
I have a question about how to specify or control deployment order in JBoss. I have two EJB jar files, one containing a single MDB, and another containing a collection of session/entity beans that the MDB calls upon. As it so happens, the MDB is deployed ahead of the bean jar file. When I start JBoss, if the MDB queue contains data, then the MDB is called *during* JBoss startup. When this happens, the MDB cannot access the beans from the other jar file, because it has not yet been deployed! I'm wondering if there's a way to either defer MDB processing until all code is deployed, or to specify a relationship between the MDB and the other beans such that the MDB will not be started until those beans are deployed. I think I could make this work if I packaged the MDB+the beans in one jar file (or as components in a .ear file), but I would really prefer not to do that, as the non-MDB beans are a resource that are shared across applications. I'm probably asking a more general J2EE question here, but if it matters, I'm currently using JBoss 2.4.3. Thanks, Eric Anderson ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss naming service don't work on .....
javax.naming.NamingException is thrown when JBoss is located on a directory that has space on its path. For example I place the JBoss on c:\program files\JBoss-2.4.3_Tomcat-3.2.3 directory. Notice that "program files" has space in between. Does anybody know what's causing this? Environment: Jboss & PetStore version = JBoss -> JBoss-2.4.3_Tomcat-3.2.3 Petstore ---> jps-1_1_2 JDK --> jdk1.3.1_01 = Here is the link to jboss = http://localhost:8080/estore/control/language?language=English = Here is the message thrown = Server Error null Oops! Your request cannot be completed. The server got the following error. com.sun.j2ee.blueprints.petstore.control.exceptions.GeneralFailureExcept ion at com.sun.j2ee.blueprints.petstore.control.web.ModelManager.getSCCEJB(Mode lManager.java:130) at com.sun.j2ee.blueprints.petstore.control.web.ShoppingClientControllerWeb Impl.(ShoppingClientControllerWebImpl.java:65) at com.sun.j2ee.blueprints.petstore.control.web.RequestProcessor.processReq uest(RequestProcessor.java:74) at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doProcess(MainS ervlet.java:111) at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServl et.java:98) 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.jav a:812) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H ttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416 ) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:50 1) at java.lang.Thread.run(Thread.java:484) Please notify the administrator. Thank you. = ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] PetStore don't work when JBoss is started with a -classic option.
Environment: JBoss. JBoss-2.4.3_Tomcat-3.2.3.zip Petstore jps-1_1_2.zip Jboss Petstore Patch = jps112-01 jdk1.3.1_01 Step: (1) From the main page, select Fish Problem the list of Fish product will not be shown.. Anybody knows the reason why this is happening? I need to use classic in order for me to debug faster. Regards Anthony ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] calling ejbStore() too many times
Moving down the path of porting from WLS to JBoss, I came across this issue. We are using both XA and non-XA datasources/drivers in our application. I have a testprogram that calls a number of sessionbeans each of which calls a number of entity beans. These entity beans all use the non-xa driver. these entity beans collects a number of informations(definitions) that is used to call external databases to create dynamic SQL statements. The external databases all use XA-datasources. Doing this with WLS takes approx. 1- to 3+ minuts, depending on the amount of data being retrieved. Doing it in JBoss is something of a showstopper (3+ minuts). During executing, JBoss insists on calling ejbStore() contantly, where WLS just calls ejbStore() when the transaction is about to end. Without actually counting the number of times JBoss makes these calls, my best guess is more than 100!!, although the number a entity beans being accessed is around 10-15. Further info: We are using BMP for the entity beans. Every bean has its own record class the implements the Serializable interface. The record class acts as data-container between the server and client. JBoss2.4.4_Tomcat4.0.1 -Kris
[JBoss-user] Training spots at Boston
Guys, we have 3 last minutes cancellations. We can still squeeze you in if any of you are interested in coming. Let us know marcf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] The corect way to set up XA-datasource
Hi David, Ok, so my assumption was right. We have a "true" XA-JDBC datasource, and using it with the XADataSourceLoader was successful. Thanks David -Kris btw My email client is set up to use plain text only but something must have slipped. I will check in the future when posting to this group. - Original Message - From: "David Jencks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 16, 2002 11:48 PM Subject: Re: [JBoss-user] The corect way to set up XA-datasource > On 2002.01.16 16:15:12 -0500 Kris Kristensen wrote: > > Could somebody please shed some light on the difference between these, > > and explain which one shold be used for XA > > > > ---JDBCDataSourceLoader > > No transaction control possible from jboss. Use only from e.g. servlets > where you are calling commit on your connections yourself. > > > ---RawXADataSourceLoader > Something added at some point to help with the xa jca wrapper I believe. I > don't know of any valid use, since you can specify the XADataSource class > directly now. > > > ---XADataSourceLoader.java > > MBean that you should use for setting up a usable DataSource that your > ejb's and JAWS can use in jboss 2.4.x. Most people appear to be using jdbc > 1 drivers that do not support xa transactions. In this case you wrap your > Driver class with the XADataSourceImpl.java, the driver to use being > determined by the jdbc url. (you still don't get xa semantics, but your > transactions are committed by jboss). If you have an XADataSource (such as > some Oracle drivers), you can use it directly in the XADataSourceLoader. > > The sharing semantics of jdbc 1 and xa connections/transactions are quite > different from one another and I have been unsuccessful in figuring out how > XADataSourceLoader deals with this. > > In jboss 3, all db access is via wrapping jdbc drivers and XADataSources in > jca resource adapters. All these mbeans are gone from 3.0. I think it's a > lot simpler. The different semantics for the different tx types are > clearly expressed in different code. > > david jencks > > > > > > -Kris > > > please lose the html > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] SecurityException after bean passivation
Post a bug to sourceforge with the code that demonstrates the issue. http://sourceforge.net/tracker/?group_id=22866&atid=376685 Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: "Sternagel Annegret (PN-SYS/PE)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 17, 2002 8:58 AM Subject: [JBoss-user] SecurityException after bean passivation > Hello, > > I asked this question already but still can't get it to work. So I'll try > again ... > > I have a secured Stateful SessionBean (Bean1) which accesses another secured > Stateful SessionBean (Bean2). I store the reference of the remoteinterface > of Bean2 in a Hastable attribute in Bean1. > It works fine as long as the securitycache is used. But when the security is > checked again and Bean1 and Bean2 have been passivated I get a > SecurityException > > [SubscriberSB] Authentication exception, principal=null > [SubscriberSB] TRANSACTION ROLLBACK EXCEPTION:checkSecurityAssociation; > nested exception is: > java.lang.SecurityException: Authentication exception, > principal=null; > ... > > When the reference of Bean2 has not been initialised it's working fine. > What's going on here ? > > When I store the bean Handle and try to restore the bean I get the > SecurityException every time calling handle.getEJBObject() and not only if > the bean has been passivated. > > Any help would be appreciated > > Annegret ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JB2.4.4 Client UserTransactions won't commit
Hi, I'm using JBoss 2.4.4. I have a set of CMP beans whose transaction attributes are all "Required". On the client side, I am obtaining a UserTransaction, calling begin(), making some CMP bean changes, and calling commit(). The changes do seem to make it to the database, since when I read the values back, they are changed. However, they never seem to be commited. Other processes which access my DB directly see the old data, and when I restart JBoss (or reload the ejb-jar file), all the database changes are lost. Is there something I might be doing wrong? I am certain I am calling UserTransaction.commit() at the end of my client processing, but it doesn't seem to be doing it. Thank you, Bryan
RE: [JBoss-user] deploying CMP local entity bean, datasource not found problem
Found it :) http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/manual/src/examples/resources/jca/mysql-service.xml You need version 1.1 for the binary 3.0a. v1.2 is for the latest cvs build. Steve >From: Frank Xia <[EMAIL PROTECTED]> >To: "'Steve Knight'" <[EMAIL PROTECTED]> >Subject: RE: [JBoss-user] deploying CMP local entity bean, datasource not >found problem >Date: Thu, 17 Jan 2002 11:52:47 -0500 > >Steve, > >Thanks for the information but I couldn't find the mysql-service.xml you >mentioned. Could you send me the URL? I really appreciated your time. > >Thanks a lot > >Frank > >-Original Message- >From: Steve Knight [mailto:[EMAIL PROTECTED]] >Sent: Thursday, January 17, 2002 10:41 AM >To: [EMAIL PROTECTED] >Subject: Re: [JBoss-user] deploying CMP local entity bean, datasource not >found problem > >Frank, >For 3.0, I think you need to deploy mysql-service.xml (i forget which >version you need for binary 3.0a, 1.1 I think) You can get this from >CVS...check the mail archives from the last 2 days as I was going through >the same problems. >Then you can make necessary changes to standardjbosscmp-jdbc.xml or include >your own jbosscmp-jdbc.xml in your jar file. This is if you are using EJB >2.0 beans...if you are using 1.1, I think you have to configure a jaws.xml >file rather than jbosscmp.xml. >I am not certain of this as I am still trying to figure most of it out >myself. >Hopefully, someone will make all this clear for us??? > >Steve Knight > > > >From: Frank Xia <[EMAIL PROTECTED]> > >To: "'[EMAIL PROTECTED]'" > ><[EMAIL PROTECTED]> > >Subject: [JBoss-user] deploying CMP local entity bean, datasource not >found > >problem > >Date: Thu, 17 Jan 2002 09:51:55 -0500 > > > >Hi, > > > >Has anyone seen the similar error message when you deploy a local entity > >bean (as CMP) that will access a MySQL database table in JBOSS >3.0.0alpha? > >I > >had successfully setup the same bean in the JBOSS 2.4.4 as a BMP. The >data > >source and JDBC connection were setup in the jboss.jcml xml file but > >couldn't find similar setting in the JBOSS 3.0.0alpha's setting xml >files. > > > >Any advice and suggestion are greatly appreciated. > > > >Frank > > > >= > > > >[09:43:13,521,ContainerFactory] Could not deploy > >file:/D:/java/jboss-3.0.0alpha/deploy/Default/mapservice.jar > >org.jboss.ejb.DeploymentException: Error: can't find data source: > >java:/MySQLDS > > at > >org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.init(JDBCStoreManager.java: >1 > >13) > > at > >org.jboss.ejb.plugins.CMPPersistenceManager.init(CMPPersistenceManager.java >: > >141) > > at org.jboss.ejb.EntityContainer.init(EntityContainer.java:313) > > at org.jboss.ejb.Application.start(Application.java:201) > > at > >org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:382) > > at > >org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:308) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > > > > > > >_ >Chat with friends online, try MSN Messenger: http://messenger.msn.com > > >___ >JBoss-user mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/jboss-user _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Help needed with transactions
I've had no problems with transactions, doing the type of thing that you describe, in earlier versions of JBoss and CMP... I haven't dealt much with BMP though, or JBoss versions past 2.4 beta, so maybe the issue is different. Have you trie posting your question on the forums? You're right, app exceptions do not automatically cause a rollback. I think the idea is that, if it's an app exception, the bean should be given the chance to recover from the error. You can force a rollback though, by calling SetRollbackOnly before you throw your app exception. (Another way would be to just throw an EJBException, but that would kill your bean instance... SetRollbackOnly + an app exception keeps your bean instance.) Good luck, Mike - Original Message - From: "Eric Kaplan" <[EMAIL PROTECTED]> To: "David Jencks" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, January 16, 2002 8:57 PM Subject: RE: [JBoss-user] Help needed with transactions > David > > Were there any more thoughts on this? I'm using declaritive transaction > management, both session and bmp entity beans have Required as their > transaction attribute, and the originating session bean throws an ejb > exception to the container when the insert fails. No luck on the integrity > of the transaction. > > Also, if it is that a bean throwing an application exception does not have > the transaction marked for rollback (is this correct?) can't i get myself in > trouble if i'm in the middle of a transaction and an application error > occurs? Or is it assumed that all application errors are generated before > any transactionality (ie beans are modified). > > Any help with this would be appreciated. > > Thanks > > Eric > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of David Jencks > Sent: Tuesday, January 15, 2002 4:42 PM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] Help needed with transactions > > > Do you catch the exception in your session bean and call setRollbackOnly? > > david jencks > > On 2002.01.15 15:58:02 -0500 Eric Kaplan wrote: > > I have two entity beans that need to be updated within a transaction. In > > my > > case, I have a session bean which updates bean A, then tries to create a > > new > > bean B. If the creation of bean B fails (in this case, I violate a > > unique > > index restriction on the db), then I would expect that the modification > > of A > > would be rolled back. In my ejb-jar.xml, I have transaction attribute > > "Required" for all session and entity methods. The jboss log prints out: > > > > [Default] prepare insert > > [PortfolioEJB] TRANSACTION ROLLBACK EXCEPTION:null > > Embedded Exception > > ORA-1: unique constraint (ABPDEV.NAME_INDEX) violated > > ; nested exception is: > > javax.ejb.EJBException: null > > Embedded Exception > > ORA-1: unique constraint (ABPDEV.NAME_INDEX) violated > > > > [PortfolioEJB] java.sql.SQLException: ORA-1: unique constraint > > (ABPDEV.NAME_ > > INDEX) violated > > [PortfolioEJB] > > [PortfolioEJB] at > > oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:1 > > 68) > > [PortfolioEJB] at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208) > > [PortfolioEJB] at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543) > > [PortfolioEJB] at > > oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405) > > > > [PortfolioEJB] at > > oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol. > > java:822) > > [PortfolioEJB] at > > oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStat > > ement.java:1446) > > [PortfolioEJB] at > > oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleState > > ment.java:1371) > > [PortfolioEJB] at > > oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(Oracl > > eStatement.java:1900) > > [PortfolioEJB] at > > oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(Orac > > lePreparedStatement.java:363) > > [PortfolioEJB] at > > com.armanta.ejb.SimpleJDBCAbstraction.insert(SimpleJDBCAbstra > > ction.java:39) > > [PortfolioEJB] at > > com.armanta.ejb.ValueContainerBean.create(ValueContainerBean. > > java:101) > > [PortfolioEJB] at > > com.armanta.ejb.portfolio.PortfolioBean.ejbCreate(PortfolioBe > > an.java:26) > > [PortfolioEJB] at java.lang.reflect.Method.invoke(Native Method) > > [PortfolioEJB] at > > org.jboss.ejb.plugins.BMPPersistenceManager.createEntity(BMPP > > ersistenceManager.java:136) > > [PortfolioEJB] at > > org.jboss.ejb.EntityContainer.createHome(EntityContainer.java > > :616) > > [PortfolioEJB] at java.lang.reflect.Method.invoke(Native Method) > > [PortfolioEJB] at > > org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome > > (EntityContainer.java:843) > > [PortfolioEJB] at > > org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke > > Home(EntitySynchronizationInterceptor.java:231) > > [PortfolioEJB] at > > org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(En > > tityInstanceIntercept
[JBoss-user] SecurityException after bean passivation
Hello, I asked this question already but still can't get it to work. So I'll try again ... I have a secured Stateful SessionBean (Bean1) which accesses another secured Stateful SessionBean (Bean2). I store the reference of the remoteinterface of Bean2 in a Hastable attribute in Bean1. It works fine as long as the securitycache is used. But when the security is checked again and Bean1 and Bean2 have been passivated I get a SecurityException [SubscriberSB] Authentication exception, principal=null [SubscriberSB] TRANSACTION ROLLBACK EXCEPTION:checkSecurityAssociation; nested exception is: java.lang.SecurityException: Authentication exception, principal=null; ... When the reference of Bean2 has not been initialised it's working fine. What's going on here ? When I store the bean Handle and try to restore the bean I get the SecurityException every time calling handle.getEJBObject() and not only if the bean has been passivated. Any help would be appreciated Annegret ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] CMR: FK part of primary key
How can I do a foreign-key that's part of a (Container Manager Entity) Bean's Primary Key? Here's the situation: ParentBean has 'name' and 'description' attributes. ChildBean has 'name' and 'description' attributes, and is dependent on ParentBean, ie, ParentBean.name should be part of the ChildBean primary key. DB schema: +-+ +-+ | Parent | | Child | --+ 1 n +-+ | pare_name |--| child_pare_name | | pare_desc | | child_name | +-| | child_desc | +-+ How can I achieve this using CMP? -- Ja ne, Pazu mailto: [EMAIL PROTECTED] Anime Gaiden: de fãs para fãs, sempre. signature.asc Description: This is a digitally signed message part
[JBoss-user] DatabaseServerLoginModule problem
Hi, I'm developing a J2EE application with JBoss and Tomcat I have a problem with authentication using the DataBaseServerLoginModule on SQLServer under the JNDI name SQLServerPool I have created the tables: PRINCIPALS : principalid varchar(64), password varchar(64), primary key(principalid) with the row ('guest','guest') and the row ('vincini','vincini') ROLES : principalid varchar(64), role varchar(64), rolegroup varchar(64), primary key (principalid), foreign key (principalid) references PRINCIPALS with the row ('guest','studente','studente') and the row ('vincini','docente','docente') I have put the following jboss-web.xml in the WEB-INF directory: java:/jaas/modulojdbc Then I have inserted these lines in the auth.conf file: modulojdbc { org.jboss.security.auth.spi.DatabaseServerLoginModule required dsJndiName="java:/SQLServerPool" principalsQuery="SELECT Password FROM PRINCIPALS WHERE principalid=?" rolesQuery="SELECT Role, RoleGroup FROM ROLES WHERE principalid=?"; }; Finally I have these lines in the web.xml file: /page.jsp DELETE GET POST PUT docente So the problem is that the server executes the authentication correctly 'cause I got the message: [Default] User 'vincini' authenticated. but it seems it can't recognize the user role 'cause I got a 403 error. What am I missing? Thanks in advance. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] HTTP 500 Context Error with JBoss 2.4.4 and Tomcat 4.0.1
The solution has been posted almost as many times as the problem (;>) Of course, with the forums down, you can't find those posts (:o) The tomcat-test.ear (which is automatically deployed with this configuration) does not use the root context -- it uses the "/jboss" context. Therefore, the request for http://localhost:8080 will return a 500. -Michael Schulz -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Steve Butcher Sent: Thursday, January 17, 2002 10:21 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] HTTP 500 Context Error with JBoss 2.4.4 and Tomcat 4.0.1 Dear List, I've seen discussion of and postings about this error with JBoss 2.4.4 and Tomcat 4.0.1 "right out of the zip" but I don't seem to be able to find a posted solution. In brief, when running this combination (including Windows 2000, JDK 1.3.1) using the batch file "run with catalina," it appears that Tomcat successfully starts but requests sent to http://localhost:8080/ result in an HTTP 500 - No Context Defined error being returned from Tomcat along with a long stacktrace of a null pointer exception (which you can see in some of the other messages) printing out in the JBoss DOS window. Otherwise, when Tomcat is run as a standalone, http://localhost:8080/ works and http://localhost:8080/jboss/index.html works when they are run together. Any suggestions would be appreciated. Sincerely, Steve ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Does someone help me...
Does someone post the sources of an example-ejb that deploys with jboss-2.4.4 and uses log4j to log ? Will be very appreciated. Thanks Gianni ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Weird Hashtable contens after bean passivation / activation
Hello, I want to store references to stateful sessionbeans in a Hashtable of a stateful sessionbean. I tried to store the beanhandle and got a weird behavior: The classname of the stored objects has been 'org.jboss.ejb.plugins.jrmp.interfaces.StatefulHandleImpl'. When I get the object from the Hashtable normally the classname is correct, but when the bean has been passivated and activated the classname has been something like '$Proxy3' and I get a ClassCastException on the cast to a Handle. I know the classname of the bean references in jboss is somthing like $Proxy (to see sometimes in Exception printStackTrace ...). It looks like that through passivation / activation the handles have been restored to the remoteinterfaces of the beans What's going on here ? How should I store bean references: as remoteinterface or handle ? Annegret ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] HTTP 500 Context Error with JBoss 2.4.4 and Tomcat 4.0.1
Dear List, I've seen discussion of and postings about this error with JBoss 2.4.4 and Tomcat 4.0.1 "right out of the zip" but I don't seem to be able to find a posted solution. In brief, when running this combination (including Windows 2000, JDK 1.3.1) using the batch file "run with catalina," it appears that Tomcat successfully starts but requests sent to http://localhost:8080/ result in an HTTP 500 - No Context Defined error being returned from Tomcat along with a long stacktrace of a null pointer exception (which you can see in some of the other messages) printing out in the JBoss DOS window. Otherwise, when Tomcat is run as a standalone, http://localhost:8080/ works and http://localhost:8080/jboss/index.html works when they are run together. Any suggestions would be appreciated. Sincerely, Steve ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] jboss 3 with external tomcat 4.0.1
hi, since i couldn't get jboss 3 with jetty d4 working together (i'm using the CVS src) with struts (http://jakarta.apache.org/struts/index.html). i think this relates to the classpath/scoping problem. my code (i.e. struts) works with calatina as long as it doesn't talk to jboss. i attempted to start calatina to use my external jboss. i did: i) start calatina with -nonaming ii) add jndi.properties in catalina's classpath (catalina/common/classes), having java.naming.provider.url= iii) copied jboss client and other JAR files in catalina's classpath (catalina/common/lib) iv) changed the jndinames for ejb lookup but that failed, when the EJB's create() is called. i wonder if there's a problem recognizing the stubs? can we config an external tomcat that reads jboss-web.xml. note that i can talk to my RMI object that runs within my jboss 3's JVM, and context.lookup() didn't throw an exception, so my jndi part should be fine. -- in addition, i tried to use the "JBoss-2.4.4_Tomcat-4.0.1.zip" package to run a catalina that knows jboss-web.xml. in this approach, i modified jndi.properties in (jboss/conf/catalina), and added some classes into jboss/lib/ext my WAR file has my EJB's interface (bean) classes, but i got javax.naming.CommunicationException. what do i miss in setting up a jboss 3 with an external tomcat? javax.servlet.ServletException: class esb.bean.SqlBean : javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.proxy.ejb.HomeProxy (no security manager: RMI class loader disabled)] at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:457) at org.apache.jsp.address$jsp._jspService(address$jsp.java:318) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:202) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:472) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106 ) at java.lang.Thread.run(Thread.java:484) ___ JBoss-user mailing list [EMAIL PROTECTE
RE: [JBoss-user] jboss.xml for CMP 2.0 beans
I would suggest buying the docs. If you don't want to spend the money your can read the jbosscmp-jdbc dtd, and use the test cases in the testsuite cvs module as an example. -dain > -Original Message- > From: Màris Orbidàns [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 17, 2002 5:26 AM > To: JBoss user list (E-mail) > Subject: [JBoss-user] jboss.xml for CMP 2.0 beans > > > > hi > > What should I write in subj. ? I tried to use the same file as for > EJB1.1, but > JBoss complained about abstract bean class. > > Maris Orbidans > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] set Context for jsp's in JBoss-2.4.4_Tomcat-4.0.1
My understanding is that you have to package the .jsp files in a .war (myexamples.war) file and deploy that to JBoss (per the Java Servlet spec V2.3). The name of the .war file is used for the name of the context used to access the files. -Michael Schulz -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Richard Chandler Sent: Wednesday, January 16, 2002 6:44 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] set Context for jsp's in JBoss-2.4.4_Tomcat-4.0.1 Hello, I have a directory in $JBOSS_DIST/catalina/webapps/myexamples where I've placed some jsp's I can start catalina with my context set in server.xml and the jsp's load fine (using $CATALINA_HOME/bin/startup.sh) But since server.xml is not used when catalina is embedded in jboss how do I set a context when I start tomcat with jboss 'run_with_catalina.sh'? Is this where I should expect to put jsp's? now I'm getting the expected: HTTP Status 500 - No Context configured to process this request Thanks - Rich ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Why not Tomcat 3.2.4 with JBoss 2.4.4?
A few weeks ago, there was a JBoss 2.4.4-Tomcat 3.2.4 Beta release. But the current JBoss 2.4.4 bundles Tomcat 3.2.3. Was there a reason for rolling back to the older Tomcat version? Jay
[JBoss-user] (no subject)
___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: RE: [JBoss-user] Does JBoss scale well when using stateful session beans....
Yep, that was my idea, no passivation or more correctly it will be set high because when time for passivation than the session should die cause client gone to bed :) /Lennart Den 2002-01-17 19:40:38 skrev "marc fleury" <[EMAIL PROTECTED]>: >the only thing is don't run in passivation (artificial limitation if you >remember the class) so test with passivation either dissabled or very high, >which is the way the default is done in 3.0 > >marcf > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] jboss examples accesses Bean classes from disk not from jboss
I've been trying to run Sun's J2EE tutorial simple Converter example within jboss with no success. I am also having a problem with the jboss example InterestClient. Digging into the problem I have found that following the web documentation and running ant with the build.xml file works fine. However, I found that the build.xml creates a classpath which includes the location of the classes for the InterestBean and InterestHome residing on disk as shown in bold below. Excerpt from on-line example doc http://www.jboss.org/online-manual/HTML/ch01s15.html : interest-client: [echo] Using client classpath: /tmp/JBoss-2.2.2/client/ejb.jar:/tmp/JBoss-2.2.2/client/jaas.jar:/tmp/JBoss-2.2.2/client/jbosssx-client.jar:/tmp/JBoss-2.2.2/client/jboss-client.jar:/tmp/JBoss-2.2.2/client/jnp-client.jar:/tmp/tomcat/lib/servlet.jar:/tmp/examples/build-examples/interest/classes:/tmp/examples/resources This shows that the classpath used to execute the client included a number of jars located in the JBoss client directory as well as the directory containing the compiled example classes and the directory containing the jndi.properties file. This implies that I cannot write an application that accesses jboss deployed beans without having the classes for the beans reside on disk in my classpath. I removed InterestClient from the same package as the EJB. If I rename the org ( to org- ) in this location (examples/build-examples/interest/classes)then the example does not run ( cannot find InterestHome ). I thought the idea was to retrieve the classes from jboss instead of from disk. I know I have succesfully deployed the EJB as interest/Interest from the jboss/log file shown below. Can somebody enlighten me as I have pounded on this for 2 days and am getting nowhere. Why are the classes being included in the build.xml for execution of the client? The jndi.properties file resides under the resources dir indicated at the tail end of the classpath above. ampere jec zen 151> ls /home/marconi/users/jec/java/jboss-examples/examples/build-examples/interest/classesInterestClient.class org- ampere jec zen 152> jbossRunClient InterestClient/home/marconi/users/jec/java/JBoss/JBoss-2.4.4_Tomcat-4.0.1/jboss/client/jboss-j2ee.jar:/home/marconi/users/jec/java/JBoss/JBoss-2.4.4_Tomcat-4.0.1/jboss/client/jaas.jar:/home/marconi/users/jec/java/JBoss/JBoss-2.4.4_Tomcat-4.0.1/jboss/client/jbosssx-client.jar:/home/marconi/users/jec/java/JBoss/JBoss-2.4.4_Tomcat-4.0.1/jboss/client/jboss-client.jar:/home/marconi/users/jec/java/JBoss/JBoss-2.4.4_Tomcat-4.0.1/jboss/client/jnp-client.jar:/home/marconi/users/jec/java/JBoss/JBoss-2.4.4_Tomcat-4.0.1/catalina/common/lib/servlet.jar:/home/marconi/users/jec/java/jboss-examples/examples/resources:/home/marconi/users/jec/java/jboss-examples/examples/build-examples/interest/classes:.Got contextjavax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.docs.interest.InterestHome] ampere jec zen 153> cd /home/marconi/users/jec/java/jboss-examples/examples/build-examples/interest/classesampere jec zen 154> mv org- orgampere jec zen 155> cd ~/java/jboss-examples/examples/org/jboss/docs/interest ampere jec zen 156> jbossRunClient InterestClient/home/marconi/users/jec/java/JBoss/JBoss-2.4.4_Tomcat-4.0.1/jboss/client/jboss-j2ee.jar:/home/marconi/users/jec/java/JBoss/JBoss-2.4.4_Tomcat-4.0.1/jboss/client/jaas.jar:/home/marconi/users/jec/java/JBoss/JBoss-2.4.4_Tomcat-4.0.1/jboss/client/jbosssx-client.jar:/home/marconi/users/jec/java/JBoss/JBoss-2.4.4_Tomcat-4.0.1/jboss/client/jboss-client.jar:/home/marconi/users/jec/java/JBoss/JBoss-2.4.4_Tomcat-4.0.1/jboss/client/jnp-client.jar:/home/marconi/users/jec/java/JBoss/JBoss-2.4.4_Tomcat-4.0.1/catalina/common/lib/servlet.jar:/home/marconi/users/jec/java/jboss-examples/examples/resources:/home/marconi/users/jec/java/jboss-examples/examples/build-examples/interest/classes:.Got contextGot referenceInterest on 1000 units, at 10% per period, compounded over 2 periods is:210.23ampere jec zen 157> [13:52:02,440,StatelessSessionContainer] Begin java:comp/env for EJB: Interest[13:52:02,441,StatelessSessionContainer] TCL: java.net.URLClassLoader@34f7c5[13:52:02,458,StatelessSessionContainer] End java:comp/env for EJB: Interest[13:52:02,458,StatelessSessionContainer] Mapped Container method remove HASH -1842617161[13:52:02,459,StatelessSessionContainer] Mapped Container method getEJBHome HASH -993218923[13:52:02,460,StatelessSessionContainer] Mapped Container method getHandle HASH 1182305581[13:52:02,460,StatelessSessionContainer] Mapped Container method getPrimaryKey HASH -131865408[13:52:02,461,StatelessSessionContainer] Mapped Container method isIdentical HASH 285457048[13:52:02,462,StatelessSessionContainer] Mapped calculateCompoundInterest 130738471to public double org.jboss.docs.interest.InterestBean.calculateCompoundInterest(double,double,double)[13:52:02,463,Statel
Re: [JBoss-user] deploying CMP local entity bean, datasource not found problem
Frank, For 3.0, I think you need to deploy mysql-service.xml (i forget which version you need for binary 3.0a, 1.1 I think) You can get this from CVS...check the mail archives from the last 2 days as I was going through the same problems. Then you can make necessary changes to standardjbosscmp-jdbc.xml or include your own jbosscmp-jdbc.xml in your jar file. This is if you are using EJB 2.0 beans...if you are using 1.1, I think you have to configure a jaws.xml file rather than jbosscmp.xml. I am not certain of this as I am still trying to figure most of it out myself. Hopefully, someone will make all this clear for us??? Steve Knight >From: Frank Xia <[EMAIL PROTECTED]> >To: "'[EMAIL PROTECTED]'" ><[EMAIL PROTECTED]> >Subject: [JBoss-user] deploying CMP local entity bean, datasource not found >problem >Date: Thu, 17 Jan 2002 09:51:55 -0500 > >Hi, > >Has anyone seen the similar error message when you deploy a local entity >bean (as CMP) that will access a MySQL database table in JBOSS 3.0.0alpha? >I >had successfully setup the same bean in the JBOSS 2.4.4 as a BMP. The data >source and JDBC connection were setup in the jboss.jcml xml file but >couldn't find similar setting in the JBOSS 3.0.0alpha's setting xml files. > >Any advice and suggestion are greatly appreciated. > >Frank > >= > >[09:43:13,521,ContainerFactory] Could not deploy >file:/D:/java/jboss-3.0.0alpha/deploy/Default/mapservice.jar >org.jboss.ejb.DeploymentException: Error: can't find data source: >java:/MySQLDS > at >org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.init(JDBCStoreManager.java:1 >13) > at >org.jboss.ejb.plugins.CMPPersistenceManager.init(CMPPersistenceManager.java: >141) > at org.jboss.ejb.EntityContainer.init(EntityContainer.java:313) > at org.jboss.ejb.Application.start(Application.java:201) > at >org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:382) > at >org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:308) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > _ Chat with friends online, try MSN Messenger: http://messenger.msn.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Does JBoss scale well when using stateful session beans....
the only thing is don't run in passivation (artificial limitation if you remember the class) so test with passivation either dissabled or very high, which is the way the default is done in 3.0 marcf |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]]On Behalf Of Lennart |Petersson |Sent: Thursday, January 17, 2002 7:24 AM |To: [EMAIL PROTECTED] |Subject: [JBoss-user] Does JBoss scale well when using stateful session |beans | | |I'm in the start of a major rewrite of our first EJB application |that so far has only used |stateless session beans as facade to CMP entity beans. Now i'm |thinking of using |a stateful session bean in a case more or less like a shopping cart. | |Trying to analyse future customers and what load there might be we |are guessing that 2500 |concurrent clients might be a top peak that we have to handle. |This is not primarly a web app, |only standalone remote Java clients. | |One reason is that there is a lot of things i would like to keep |alive during a clients session but not |permanantly store in database. Today this is kept on the client, |but i would prefer to move it to |the server: thinner client, more suitable for different kind of |clients (web, pda, cell...) etc... | |How well would JBoss, with right hardware, handle 2500 activly |used stateful session beans? |I understand that it will take some memory, i'm more concerned |about JBoss effectiveness and |stability with this load. Of course there is plenty of entity |beans and stateless session beans also. | |/L | |=== |Lennart Petersson | |www.benefit.se/english |[EMAIL PROTECTED] | | | |___ |JBoss-user mailing list |[EMAIL PROTECTED] |https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Does JBoss scale well when using stateful session beans....
I'm in the start of a major rewrite of our first EJB application that so far has only used stateless session beans as facade to CMP entity beans. Now i'm thinking of using a stateful session bean in a case more or less like a shopping cart. Trying to analyse future customers and what load there might be we are guessing that 2500 concurrent clients might be a top peak that we have to handle. This is not primarly a web app, only standalone remote Java clients. One reason is that there is a lot of things i would like to keep alive during a clients session but not permanantly store in database. Today this is kept on the client, but i would prefer to move it to the server: thinner client, more suitable for different kind of clients (web, pda, cell...) etc... How well would JBoss, with right hardware, handle 2500 activly used stateful session beans? I understand that it will take some memory, i'm more concerned about JBoss effectiveness and stability with this load. Of course there is plenty of entity beans and stateless session beans also. /L === Lennart Petersson www.benefit.se/english [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Problem making Apache1.3.22 work with Jboss2.4.4-with-tomcat4.0.1
I just did this using the same configuration you described and it worked for me. The question I have is: why are you deploying the .html file as part of your .war package? If you are using Apache, then wouldn't you want to create an alias in your httpd.conf file for it? Did you use the mod_jk or mod_webapp connector for Apache-Tomcat integration? I was not able to get mod_webapp working, so I used mod_jk. I'll assume that you are using mod_jk as well. Somewhere in your httpd.conf there is a "JkMount" directive that looks something like this: JkMount /*.jsp ajp13 That is why your .jsp page works as expected. I would guess that you don't have a similar JkMount for your .html files -- and you shouldn't, because that is why you are using Apache. So you should put your .html file somewhere in a known structure -- like underneath C:/apache/htdocs - and create an alias for your context in the httpd.conf file, such as this: Alias /jboss/ "C:/Apache/htdocs/jboss/". This tells Apache that if the request cannot be handled by mod_jk (or some other connector) then resources (such as index.html) for this context (jboss) can be found in the specified directory. Hope that helps. -Michael Schulz -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of ·ûÖ¾´Ï Sent: Thursday, January 17, 2002 4:30 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] Problem making Apache1.3.22 work with Jboss2.4.4-with-tomcat4.0.1 Dear All, I'm a newbie in jboss and I am trying to make Apache 1.3.22 work with Jboss-2.4.4-with-Tomcat4.0.1 on win2000. My jboss2.4.4-tomcat4.0.1 works fine and "http://localhost:8080/jboss/index.html"; runs the samples well. And I have already made apache work with tomcat when tomcat runs stand alone. Then I tried to make apache work with the embedded tomcat. I added the following snippet in jboss.jcml: Then I made a very simple jsp file that only displays "This is a test." and a simple WEB-INF/web.xml file: test.jsp WEB-INF/web.xml I packed them into a test.war file and put it in jboss/deploy directory. Jboss deployed it automatically and then I can access the test.jsp file by "http://localhost/test/test.jsp. At first I was very glad that it's quite simple to make it work. But when I tried a further test and made an index.html and packed it in the test.war and deployed it as above, I found I can't access "http://localhost/test/index.html";. It gave me a HTTP 404 error. I think that's because Apache can't find the index.html file in the jboss\tmp\deploy\Default\test.war\web100* directory and simply try to find it in its default \Apache\htdocs directory. The problem is: the web application deployed by jboss will be in an uncertain directory as "jboss\tmp\deploy\Default\test.war\web100*". It seems impossible to get apache work with the embedded tomcat by simply setting the directories in the httpd.conf file. Anything I did wrong? How can I get a URL as "http://localhost/jboss/index.html"; work? Anothor silly question: How can I search for a specify topic in the mailing list? I can't find any search box in the page. Thank you Best regards Hubert Fu -- ¹úÄÚÊÕ·ÑÓÊÏäË×îÇ¿£¬Ê×´ÎȨÍþÆÀ²â¼û·ÖÏþ http://news.21cn.com/domestic/21CN/2001-11-19/550568.html ÂòÆóÒµÓÊÏ䣬»ñÔùÓòÃû http://mail.21cn.com/corporation/010.html 21cn´øÄú×ß½øÄ¿±êÖ®Âã¬ÏíÊÜÉÌÂÃÀÖȤ http://travel.21cn.com/agency/aimtrip/aimtrip.html ÊÕ·ÑÓÊÏäÕæÄÜ´óÐÐÆäµÀ£¬¸øÎÒÒ»¸öÀíÓÉ http://mail.21cn.com/bijiao/index2-7.html ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Federated namespace with JBossNS
First I hope they get the old forums back soon...this is truely a pain... I need to have a federated namespace in the Jboss jndi tree...that is I need to be able to get RMI objects from an armi server through the jboss jndi tree. I have had some moderate sucess with the ExternalContext jmcl configuration: mailboxes mailbox.properties javax.naming.InitialContext true Only the javax.naming.InitialContext "InitialContext" attributre works. The other throw method not found exceptions (I think because they don't have no-arg contructors, but try to find the java docs for com.sun.jndi.rmi.registry.RegistryContext to find out what it does take!!!) Anyway, the mailbox.properites file is this: ava.naming.factory.initial=com.sun.jndi.rmi.registry.RegistryContextFactory java.naming.provider.url=rmi://localhost: The RMI server and jboss-2.4.4 (final relaease) are running on the same machine. When the RMI server is started, then jboss, my JNDIView looks like this: Global JNDI Namespace +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory) +- TopicConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef) +- mailboxes (class: javax.naming.Context) | +- KOMtoEVS (class: java.lang.Object) | +- EVStoKOM (class: java.lang.Object) | +- KPStoKOM (class: java.lang.Object) +- UserTransactionSessionFactory (class: org.jboss.tm.usertx. etc If I try to get a context like this: env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); env.put(Context.PROVIDER_URL, "127.0.0.1:1099"); System.out.println("Connecting for initial context..."); Context ctx=new InitialContext(env); System.out.println("looking up ctx..."); Object otherctx=ctx.lookup("mailboxes"); System.out.println("otherctx is "+otherctx.getClass().toString()); my output is this: Connecting for initial context... looking up ctx... otherctx is class javax.naming.Reference The lookup appears to be returning a javax.naming.Reference instead of a context (it seemed to work under 2.4.3 but that had other problems) if I change Object otherctx=ctx.lookup("mailboxes"); to Object otherctx=ctx.lookup("mailboxes/EVStoKOM"); I get the following error: Connecting for initial context... looking up ctx... javax.naming.NotContextException at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:399) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333) at javax.naming.InitialContext.lookup(InitialContext.java:350) at gc.cse.ccekms.kom.msglistener.KomMailboxInit.main(KomMailboxInit.java:70)cou ldn't bind mailbox So has any one been able to get an rmi-jndi federated namespace to work under 2.4.4? Am I missing something? Where exactily is the javadoc for the com.sun.jndi.rmi.* packages? ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] deploying CMP local entity bean, datasource not found problem
Hi, Has anyone seen the similar error message when you deploy a local entity bean (as CMP) that will access a MySQL database table in JBOSS 3.0.0alpha? I had successfully setup the same bean in the JBOSS 2.4.4 as a BMP. The data source and JDBC connection were setup in the jboss.jcml xml file but couldn’t find similar setting in the JBOSS 3.0.0alpha’s setting xml files. Any advice and suggestion are greatly appreciated. Frank = [09:43:13,521,ContainerFactory] Could not deploy file:/D:/java/jboss-3.0.0alpha/deploy/Default/mapservice.jar org.jboss.ejb.DeploymentException: Error: can't find data source: java:/MySQLDS at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.init(JDBCStoreManager.java:113) at org.jboss.ejb.plugins.CMPPersistenceManager.init(CMPPersistenceManager.java:141) at org.jboss.ejb.EntityContainer.init(EntityContainer.java:313) at org.jboss.ejb.Application.start(Application.java:201) at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:382) at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:308) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
RE: [JBoss-user] JBoss-2.4.4_Tomcat-4.0.1 default configuration
I saw this and tried it (as I have similar problems) but it did not work for me... I now get a parsing error in when jboss tries to start the EmbeddedCatalinaServiceSX (see below) It definitely appears to be associated with the Config and connection tags, as I can add a Port attribute with no problem. Is the parsing error in another file? or am I doing something way wrong? P.S. I have tried checking the XML with XML Spy and it checks out. Ian --8< jboss.jcml fragment -- 8090 --8< console output --- [INFO,ContainerFactory] Started [INFO,EmbeddedCatalinaServiceSX] Starting [INFO,EmbeddedCatalinaServiceSX] Starting EmbeddedCatalinaSX [INFO,EmbeddedCatalinaServiceSX] Building Http engine and connector [INFO,Default] PARSE error at line 1 column 1 [INFO,Default] org.xml.sax.SAXParseException: The markup in the document precedi ng the root element must be well-formed. [ERROR,EmbeddedCatalinaServiceSX] Stopped org.xml.sax.SAXParseException: The markup in the document preceding the root ele ment must be well-formed. at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1150 ) at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XM LDocumentScanner.java:626) at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.disp atch(XMLDocumentScanner.java:809) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS canner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1035) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at javax.xml.parsers.SAXParser.parse(SAXParser.java:143) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:275) at org.jboss.web.catalina.ConfigHandler.applyHostConfig(ConfigHandler.ja va:65) at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.initCatalina(Embedde dCatalinaServiceSX.java:327) at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.startService(Embedde dCatalinaServiceSX.java:244) at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103 ) at java.lang.reflect.Method.invoke(Native Method) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16 28) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15 23) at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(Conf igurationService.java:967) at $Proxy0.start(Unknown Source) at org.jboss.util.ServiceControl.start(ServiceControl.java:79) at java.lang.reflect.Method.invoke(Native Method) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16 28) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15 23) at org.jboss.Main.(Main.java:208) at org.jboss.Main$1.run(Main.java:110) at java.security.AccessController.doPrivileged(Native Method) at org.jboss.Main.main(Main.java:106) [ERROR,ConfigurationService] Unexpected error org.xml.sax.SAXParseException: The markup in the document preceding the root ele ment must be well-formed. at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1150 ) at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XM LDocumentScanner.java:626) at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.disp atch(XMLDocumentScanner.java:809) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS canner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1035) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at javax.xml.parsers.SAXParser.parse(SAXParser.java:143) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:275) at org.jboss.web.catalina.ConfigHandler.applyHostConfig(ConfigHandler.ja va:65) at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.initCatalina(Embedde dCatalinaServiceSX.java:327) at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.startService(Embedde dCatalinaServiceSX.java:244) at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103 ) at java.lang.reflect.Method.invoke(Native Method) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16 28) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15 23) at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(Conf igurationService.java:967) at $Proxy0.start(Unknown Source) at org.jboss
RE: [JBoss-user] JBoss 2.4.4 Tomcat 4.0.1 (run-as) parse error
Several of the elements in your web-app are NOT in the dtd. The error message is correct. The one that is immediately obvious is but at least one that you have commented out is also wrong. Also, I dont know what version 2.2.3 is but you've specified version 2.3. The actual 2.3 dtd that web.xml is verified against is in one of the jar files in JBoss, the one currently on the Sun site is actually wrong. -Original Message- From: Kapilesh Arekar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 5:20 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] JBoss 2.4.4 Tomcat 4.0.1 (run-as) parse error Hi It would be great if some one can help I am using JBoss2.4.4 Tomcat 4.0.1.I am trying to deploy my application using following web.xml.But i get error run-as element not defined in web.2.2.3 dtd,But it exists in the dtd.I have also given the correct path.I am also following a proper hierarchy Is there some one who can help Thanks Kapilesh Arekar WEB.XML http://java.sun.com/dtd/web-app_2_3.dtd";> ShowBrowser ShowBrowser initlogin MultiUserLogin web user chameleon BasicStart BasicStart Login InitialServlet AppServlet com.slmsoft.chameleon.server.AppServlet AppServlet /servlet/AppServlet wml text/vnd.wap.wml jnlp application/x-java-jnlp-file http://java.apache.org/tomcat/examples-taglib /WEB-INF/jsp/example-taglib.tld AppServlet /servlet/AppServlet chameleon tomcat Roles initlogin /servlet/initlogin splash /servlet/splash AllBalance /servlet/AllBalance SingleBalance /servlet/SingleBalance SingleBalance1 /servlet/SingleBalance1 chameleon BASIC ChameleonRealm ++ Error which i am getting == PARSE error at line 21 column 11 org.xml.sax.SAXParseException: Element type "run-as" must be declared. [Auto deploy] ContextConfig[] Parse error in application web.xml org.xml.sax.SAXParseException: Element type "run-as" must be declared. at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1067) at org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLErr or(XMLValidator.java:1645) at org.apache.xerces.validators.common.XMLValidator.validateElementAndAttri butes(XMLValidator.java:323 6) at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVal idator.java:1129) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatc h(XMLDocumentScanner.java:1 227) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScan ner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:952) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:350) at javax.xml.parsers.SAXParser.parse(SAXParser.java:140) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:275) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfi g.java:256) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:824) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j ava:224) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:155) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3334 ) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) at org.apache.ca
[JBoss-user] jboss.xml for CMP 2.0 beans
hi What should I write in subj. ? I tried to use the same file as for EJB1.1, but JBoss complained about abstract bean class. Maris Orbidans ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Passing Business Exception to Client
Em Qui, 2002-01-17 às 01:37, Dain Sundstrom escreveu: > It isn't that Entity beans are not designed to handle the error. The > problem that JDBC was not designed to handle this type of error. There is > only one exception in the java.sql package. There is no generic way to > determine the cause of a database error, so you will end up with database > specific code in your implementation. For example, you will catch a vendor > specific exception or parsing the exception message. This is why a > SQLException is considered catastrophic. There is something on the works on JDBC 3.0 to solve this catastrophic problem? If not, DB comunnity should start a movement to make Sun define more fine-grained exception on the JDBC spec. -- Ja ne, Pazu mailto: [EMAIL PROTECTED] Anime Gaiden: de fãs para fãs, sempre. signature.asc Description: This is a digitally signed message part
[JBoss-user] Problem making Apache1.3.22 work with Jboss2.4.4-with-tomcat4.0.1
Dear All, I'm a newbie in jboss and I am trying to make Apache 1.3.22 work with Jboss-2.4.4-with-Tomcat4.0.1 on win2000. My jboss2.4.4-tomcat4.0.1 works fine and "http://localhost:8080/jboss/index.html"; runs the samples well. And I have already made apache work with tomcat when tomcat runs stand alone. Then I tried to make apache work with the embedded tomcat. I added the following snippet in jboss.jcml: Then I made a very simple jsp file that only displays "This is a test." and a simple WEB-INF/web.xml file: test.jsp WEB-INF/web.xml I packed them into a test.war file and put it in jboss/deploy directory. Jboss deployed it automatically and then I can access the test.jsp file by "http://localhost/test/test.jsp. At first I was very glad that it's quite simple to make it work. But when I tried a further test and made an index.html and packed it in the test.war and deployed it as above, I found I can't access "http://localhost/test/index.html";. It gave me a HTTP 404 error. I think that's because Apache can't find the index.html file in the jboss\tmp\deploy\Default\test.war\web100* directory and simply try to find it in its default \Apache\htdocs directory. The problem is: the web application deployed by jboss will be in an uncertain directory as "jboss\tmp\deploy\Default\test.war\web100*". It seems impossible to get apache work with the embedded tomcat by simply setting the directories in the httpd.conf file. Anything I did wrong? How can I get a URL as "http://localhost/jboss/index.html"; work? Anothor silly question: How can I search for a specify topic in the mailing list? I can't find any search box in the page. Thank you Best regards Hubert Fu -- ¹úÄÚÊÕ·ÑÓÊÏäË×îÇ¿£¬Ê×´ÎȨÍþÆÀ²â¼û·ÖÏþ http://news.21cn.com/domestic/21CN/2001-11-19/550568.html ÂòÆóÒµÓÊÏ䣬»ñÔùÓòÃû http://mail.21cn.com/corporation/010.html 21cn´øÄú×ß½øÄ¿±êÖ®Âã¬ÏíÊÜÉÌÂÃÀÖȤ http://travel.21cn.com/agency/aimtrip/aimtrip.html ÊÕ·ÑÓÊÏäÕæÄÜ´óÐÐÆäµÀ£¬¸øÎÒÒ»¸öÀíÓÉ http://mail.21cn.com/bijiao/index2-7.html ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] ResourceAsStream file placement (more info)
> -Message d'origine- > It might eventually be possible to add a library/resource jar > in a WAR manifest Class-Path directive if it is supported, but > I've not idea if WAR specification allow that, and if catalina > accept it. I've found that note on http://www.jboss.org/developers/jboss-jetty.jsp, and this mean that you can set the Class-Path in the WAR manifest, and thus you should be able to refer a jar from the enclosing EAR. " Write your servlets/JSPs and package them in a war file. Add a Class-Path attribute to your war files MANIFEST.MF file to reference your beans package. For detailed information on that see: J2eeDeployment Howto. " ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Starting JBoss with JVM's correct options
We have a production application running with JBoss 2.4.3 in a Solaris 2.6 plataform with Sun´s JRE 1.3.1_02 JVM. Our application consists of 7 EJB session beans and 1 Entity BMP. We have observed that it runs better if we start JBoss without -server option of the JVM. It takes less time in our load test and it seems to manage better the used memory. Is it a question of our application, or should we use other options? We would appreciate any help. TIA Idoia Aguirre ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] ResourceAsStream file placement (more info)
finding resource should be the same as finding classes... at fires you couldput it in a subdirectory of a classpath entry (ie: in a package! ). you can even put them beside a class in a package directory and find then there, with Class.getResourceAsStream() instead of the ClassLoader.getResourceAsStream... beside this detail, you can normally change the class path and thus where you can find resources you should be able to find them in a jar included anywhere in the ear, and refered in the Class-Path: directive of the manifest of the EJB jar... to refer to it from a WAR, I've not tested, but you may be able to add a jar from the .ear in the Class-Path: directive in the manifest of a jar included in the WEB-INF/lib It might eventually be possible to add a library/resource jar in a WAR manifest Class-Path directive if it is supported, but I've not idea if WAR specification allow that, and if catalina accept it. note that I was not able to add library jar included into an EJB jar in this EJB class path... I had to refers to the EAR content... -Message d'origine- De: John Moore [mailto:[EMAIL PROTECTED]] Correction, this does work as an env-entry; just not when you make a stupid mistake. So the original question stands, is there a better place than the root of the jar to put the files to be referenced as resources? -Original Message- From: John Moore [mailto:[EMAIL PROTECTED]] I have files that are being loaded on both the web and ejb tier. I have moved all of the references in the web tier to WEB-INF/classes and am using getResourceAsStream() to get an InputStream for the parser. Now, on the ejb side, I currently have the files in the root of the jar that is included in the application ear. Is there a standard place that these should reside? The root of the jar works but I'm wondering if there is a standard that I should be following? Thanks, John Moore ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Problem making Apache1.3.22 work with Jboss2.4.4-with-tomcat4.0.1
Dear All, I'm a newbie and I am trying to make Apache 1.3.22 work with Jboss-2.4.4-with-Tomcat4.0.1 on win2000. My jboss2.4.4-tomcat4.0.1 works fine and "http://localhost:8080/jboss/index.html"; runs the samples well. And I have already made apache work with tomcat when tomcat runs stand alone. Then I tried to make apache work with the embedded tomcat. I added the following snippet in jboss.jcml: Then I made a very simple jsp file that only displays "This is a test." and a simple WEB-INF/web.xml file: test.jsp WEB-INF/web.xml I packed them into a test.war file and put it in jboss/deploy directory. Jboss deployed it automatically and then I can access the test.jsp file by "http://localhost/test/test.jsp. At first I was very glad that it's quite simple to make it work. But when I tried a further test and made an index.html and packed it in the test.war and deployed it as above, I found I can't access "http://localhost/test/index.html";. It gave me a HTTP 404 error. I think that's because Apache can't find the index.html file in the jboss\tmp\deploy\Default\test.war\web100* directory and simply try to find it in its default \Apache\htdocs directory. The problem is: the web application deployed by jboss will be in an uncertain directory as "jboss\tmp\deploy\Default\test.war\web100*". It seems impossible to get apache work with the embedded tomcat by simply setting the directories in the httpd.conf file. Anything I did wrong? How can I get a URL as "http://localhost/jboss/index.html"; work? Anothor silly question: How can I search for a specify topic in the mailing list? I can't find any search box in the page. Thank you Best regards Hubert Fu ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user