Re: [JBoss-user] Question on JMS log4j
Hello Mitchell, Monday, May 13, 2002, 9:55:56 PM, you wrote: MK When I try to run a JMS client to receive a message, I get following error message. Can anyone tell me what's going on? MK log4j:ERROR No appenders could be found for category (org.jboss.mq.SpyMessageConsumer). MK log4j:ERROR Please initialize the log4j system properly. The class SpyMessafgeConsumer does logging with log4j. So, you have to configure log4j properties for it. -- Best regards, Alex Loubyansky mailto:[EMAIL PROTECTED] ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re[2]: [JBoss-user] Primary Key inheritance problem
Hello Dain, Tuesday, May 14, 2002, 12:16:44 AM, you wrote: Here is hashCode function (the same in UserPK and ResourceOwnerPK): public int hashCode() { if( _hashCode == Integer.MIN_VALUE ) _hashCode += this.username.hashCode(); // line 59 return _hashCode; } DS this.username is null. Do you have this field in both classes, so you DS have a shadowed field. By the way, this is a dangerous hash function as DS when the pk is serialized the hashCode will be reset to 0 not DS Integer.MIN_VALUE assuming it is marked a transient. Yes, I have username in both ResourceOwnerPK and in UserPK classes and in ResourceOwnerPK I get shadowed field. It seems it causes the problem but I just can't understand why! and how? As to hashCode, you're rigth. It's generated by XDoclet and there is a bug for it. For now I just commented 'transient' key. DS Also check that you implemented equals correctly. You must check for an DS exact type match first. That is correct. I am sure. Dain, do you have some thoughts what causes the problem? I agree the code isn't smooth. It's generated :) TIA -- Best regards, Alex Loubyansky mailto:[EMAIL PROTECTED] ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Fwd: Bug when converting EJB QL boolean comparisons from true and false to 1 and 0
Dain, this is a quite obvious bug (if you ever tried to select on a boolean EB field backed by an Oracle table), so why are you so cool about it?? I have a EB with a mostRecent boolean field, and because of this bug there is no way to make a custom finder like select object(myEB) from MyEBTable where myEB.mostRecent = true work. Please don't get into the habit of thinking your users are idiots... --- five lines of additional rant suppressed -- Georg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Dain Sundstrom Sent: Tuesday, May 14, 2002 07:35 To: Stephen Coy Cc: jboss-user Subject: Re: [JBoss-user] Fwd: Bug when converting EJB QL boolean comparisons from true and false to 1 and 0 Cool, can you post a bug report, so I don't forget to make the change? Thanks, -dain Stephen Coy wrote: Sorry Dain, I was trying to point out that not all SQL implementations support the use of literal true and false values. Therefore, we need to get them mapped to 1 and 0 respectively in this situation. On Tuesday, May 14, 2002, at 02:53 PM, Dain Sundstrom wrote: This is like pulling teeth. Just tell me what you want and why, short and sweet. Think 72 words. I should true map to 1 and false to 0 in Oracle, SQLServer and MySQL? I add some more metadata for this. The short answer is yes. ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- x Dain Sundstrom Chief Architect, JBossCMP JBoss Group, LLC x ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Problem with BMP in JBOSS
Hello jaime1, Tuesday, May 14, 2002, 12:51:00 AM, you wrote: j People recently i stay make some change in Petstore 1.1.2 and its parch , j but i find problem when a work with BMP. I create an EJB BMP to access an j Table , but after 50 Tx. my JBoss out memory Since you use BMP, you open/close connections 'manually'. Be sure you handle them properly. If a connection remains openned after the transaction is complete it doesn't get back to the connection pool. As a result, with time you'll get out of memory exception. j I review the petstore but only have a few example of how update the j information a table. j I try to make an manager for an Table NEW_TABLE , but the problem exist. j I use how DB SAPDB j any people have an example of how create a new module in the petstore j Regards j Jaime j ___ j Have big pipes? SourceForge.net is looking for download mirrors. We supply j the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] j ___ j JBoss-user mailing list j [EMAIL PROTECTED] j https://lists.sourceforge.net/lists/listinfo/jboss-user -- Best regards, Alex Loubyansky mailto:[EMAIL PROTECTED] ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] some problems using Jboss with MS SQLSERVER
bonjour I have got a problem using jboss with MS SQLSERVER2000. I want to insert a row with my CMP bean BookBean , in my log file there is no failed . But in my BookBean table there in no row affected.(no result of my insert operation) . _ [10:06:48,668,JAWSPersistenceManager] Table BookBean created [10:06:48,678,JAWSPersistenceManager] Created table 'BookBean' successfully. [10:06:48,688,JAWSPersistenceManager] Primary key of table 'BookBean' is 'bibliotheque' [10:06:48,718,JRMPContainerInvoker] Bound BookBean to BookBean [10:06:48,718,EnterpriseContextCachePolicy$Scheduler] Cache policy scheduler started [10:19:12,810,JAWSPersistenceManager] Create, id is lille [10:19:12,810,JAWSPersistenceManager] Exists command executing: SELECT COUNT(*) FROM BookBean WHERE bibliotheque=? [10:19:12,860,JAWSPersistenceManager] Set parameter: idx=1, jdbcType=VARCHAR, value=lille [10:19:12,890,JAWSPersistenceManager] Create command executing: INSERT INTO BookBean (hostname,port,bibliotheque) VALUES (?,?,?) [10:19:12,890,JAWSPersistenceManager] Set parameter: idx=1, jdbcType=VARCHAR, value=127.0.0.1 [10:19:12,900,JAWSPersistenceManager] Set parameter: idx=2, jdbcType=VARCHAR, value=8189 [10:19:12,900,JAWSPersistenceManager] Set parameter: idx=3, jdbcType=VARCHAR, value=lille [10:19:12,900,JAWSPersistenceManager] Rows affected = 1 [10:19:12,990,JAWSPersistenceManager] Create, id is lyon [10:19:12,990,JAWSPersistenceManager] Exists command executing: SELECT COUNT(*) FROM BookBean WHERE bibliotheque=? [10:19:12,990,JAWSPersistenceManager] Set parameter: idx=1, jdbcType=VARCHAR, value=lyon [10:19:12,990,JAWSPersistenceManager] Create command executing: INSERT INTO BookBean (hostname,port,bibliotheque) VALUES (?,?,?) [10:19:12,990,JAWSPersistenceManager] Set parameter: idx=1, jdbcType=VARCHAR, value=127.0.0.1 [10:19:12,990,JAWSPersistenceManager] Set parameter: idx=2, jdbcType=VARCHAR, value=8182 [10:19:12,990,JAWSPersistenceManager] Set parameter: idx=3, jdbcType=VARCHAR, value=lyon [10:19:12,990,JAWSPersistenceManager] Rows affected = 1 __ Thanks for help _ Rejoignez le plus grand service de messagerie au monde avec MSN Hotmail. http://www.hotmail.com ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Postgresql URL mapping
When trying to store BLOBs into a postgres database, the CMP engine attempts to create tables with column types of oid. However, using the latest JDBC driver from the postgres site with Postgres 7.2.1 it appears to be impossible to store URLs (and I suspect other BLOBs though I've not tested) into the database. Manually changing the column type of the table from oid to bytea solves this problem. Is this a bug, or am I just not using either JBoss or Postgres right? Cheers, Simon -- I hooked up my accelerator pedal in my car to my brake lights. I hit the gas, people behind me stop, and I'm gone. -- Steven Wright ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Fwd: Bug when converting EJB QL boolean comparisons from true and false to 1 and 0
Being 'cool' about the issue meant Dain was fine in supporting the required behavior. There was no implication that the users were idiots. Try reading the mail a little more carefully before deciding you need to rant. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Georg Schmid [EMAIL PROTECTED] To: 'Dain Sundstrom' [EMAIL PROTECTED]; 'Stephen Coy' [EMAIL PROTECTED] Cc: 'jboss-user' [EMAIL PROTECTED] Sent: Monday, May 13, 2002 11:53 PM Subject: RE: [JBoss-user] Fwd: Bug when converting EJB QL boolean comparisons from true and false to 1 and 0 Dain, this is a quite obvious bug (if you ever tried to select on a boolean EB field backed by an Oracle table), so why are you so cool about it?? I have a EB with a mostRecent boolean field, and because of this bug there is no way to make a custom finder like select object(myEB) from MyEBTable where myEB.mostRecent = true work. Please don't get into the habit of thinking your users are idiots... --- five lines of additional rant suppressed -- Georg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Dain Sundstrom Sent: Tuesday, May 14, 2002 07:35 To: Stephen Coy Cc: jboss-user Subject: Re: [JBoss-user] Fwd: Bug when converting EJB QL boolean comparisons from true and false to 1 and 0 Cool, can you post a bug report, so I don't forget to make the change? Thanks, -dain Stephen Coy wrote: Sorry Dain, I was trying to point out that not all SQL implementations support the use of literal true and false values. Therefore, we need to get them mapped to 1 and 0 respectively in this situation. On Tuesday, May 14, 2002, at 02:53 PM, Dain Sundstrom wrote: This is like pulling teeth. Just tell me what you want and why, short and sweet. Think 72 words. I should true map to 1 and false to 0 in Oracle, SQLServer and MySQL? I add some more metadata for this. The short answer is yes. ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Fwd: Bug when converting EJB QL boolean comparisons from true and false to 1 and 0
Georg, You read my email wrong. All I wanted to know was that this is a problem for Oracle because it doesn't understand the SQL 92 keywords true and false, and I needed to know what to do about it. I simply can't handle reading 3 pages of text to tell me that we need a 0/1 mapping. I was in San Franscisco all of last week and spent yesterday reading over 1000 emails and postings, so cut me a little slack. Now that there is a but report, this is on my todo list, and I'll get to it when I can. If you want to write a patch, I will be more then happy to apply it. -dain Georg Schmid wrote: Dain, this is a quite obvious bug (if you ever tried to select on a boolean EB field backed by an Oracle table), so why are you so cool about it?? I have a EB with a mostRecent boolean field, and because of this bug there is no way to make a custom finder like select object(myEB) from MyEBTable where myEB.mostRecent = true work. Please don't get into the habit of thinking your users are idiots... --- five lines of additional rant suppressed -- Georg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Dain Sundstrom Sent: Tuesday, May 14, 2002 07:35 To: Stephen Coy Cc: jboss-user Subject: Re: [JBoss-user] Fwd: Bug when converting EJB QL boolean comparisons from true and false to 1 and 0 Cool, can you post a bug report, so I don't forget to make the change? Thanks, -dain Stephen Coy wrote: Sorry Dain, I was trying to point out that not all SQL implementations support the use of literal true and false values. Therefore, we need to get them mapped to 1 and 0 respectively in this situation. On Tuesday, May 14, 2002, at 02:53 PM, Dain Sundstrom wrote: This is like pulling teeth. Just tell me what you want and why, short and sweet. Think 72 words. I should true map to 1 and false to 0 in Oracle, SQLServer and MySQL? I add some more metadata for this. The short answer is yes. ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- x Dain Sundstrom Chief Architect, JBossCMP JBoss Group, LLC x ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Postgresql URL mapping
I don't know. Did postgres add a new type for blobs? I can create a new mapping for postgres 7.2. Can you do a little research into this? Thanks, -dain Simon Stewart wrote: When trying to store BLOBs into a postgres database, the CMP engine attempts to create tables with column types of oid. However, using the latest JDBC driver from the postgres site with Postgres 7.2.1 it appears to be impossible to store URLs (and I suspect other BLOBs though I've not tested) into the database. Manually changing the column type of the table from oid to bytea solves this problem. Is this a bug, or am I just not using either JBoss or Postgres right? Cheers, Simon -- x Dain Sundstrom Chief Architect, JBossCMP JBoss Group, LLC x ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Postgresql URL mapping
On Tue, May 14, 2002 at 03:00:12PM +0100, Simon Stewart wrote: When trying to store BLOBs into a postgres database, the CMP engine attempts to create tables with column types of oid. However, using the latest JDBC driver from the postgres site with Postgres 7.2.1 it appears to be impossible to store URLs (and I suspect other BLOBs though I've not tested) into the database. Manually changing the column type of the table from oid to bytea solves this problem. Is this a bug, or am I just not using either JBoss or Postgres right? Forgot all the important bits: JDK is Sun's 1.4.0 on Linux 2.4.x, JBoss 3RC2, Postgres is 7.2.1, and the JDBC driver is the latest development one available from jdbc.postgresql.org after the last stable release also showed the same problem. Cheers, Simon -- Now I've got peanut butter in my armpit. I'm wiping but it doesn't seem to be coming out. Do I take a shower or just fall asleep with peanut butter in there? -- Philip Kaplan ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Postgresql URL mapping
Dain Sundstrom wrote: I don't know. Did postgres add a new type for blobs? I can create a new mapping for postgres 7.2. Can you do a little research into this? The SQL type for blobs in postgres 7.2 is BYTEA (byte array I assume). I've already added a new mapping in the 3.0 branch and HEAD (both for JAWS and for jbosscmp-jdbc). I'll be porting that back to 2.4.x jaws soon. danch Thanks, -dain Simon Stewart wrote: When trying to store BLOBs into a postgres database, the CMP engine attempts to create tables with column types of oid. However, using the latest JDBC driver from the postgres site with Postgres 7.2.1 it appears to be impossible to store URLs (and I suspect other BLOBs though I've not tested) into the database. Manually changing the column type of the table from oid to bytea solves this problem. Is this a bug, or am I just not using either JBoss or Postgres right? Cheers, Simon ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] how to run JSPs in JBoss
Hi, Use any of the available embedded versions of JBoss (2.4.5+Tomcat, 2.4.5+Jetty, 3.0(which uses Jetty), 3.0+Tomcat), start them with the run_with_xxx.sh/bat script from the bin dir. Drop your web application in the deploy dir, access your app at http://localhost:8080/your-war--name-here/ or use the WEB-INF/web.xml to specify your own context. The JBoss+Tomcat distributions usually come with a tomcat-test.ear which can be accessed at http://localhost:8080/jboss/ (at least at my rather old 2.4.3 distro) Regards, Burkhard - Original Message - From: Yelamanchilli RamaKishore [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 13, 2002 1:11 PM Subject: [JBoss-user] how to run JSPs in JBoss Hello, Seeing the documentation, I figured out web server will be running on port 8082 by default. When I try http://localhost:8082/, I get an internal error(null pointer). I couldn't figure out what's the default directory from where JSPs will be picked up by the server. Can you please provide me a doc how I can run JSPs in JBoss? Thanks in advance. Thanks Kishore ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Fwd: Bug when converting EJB QL boolean comparisons from true and false to 1 and 0
Scott, Dain, sorry for having gotten this totally wrong. I was in a bad mood, because I had to change my code, not having the time to wait for a fix. The word 'cool' reminded me of an interview with Bill Gates, that was printed in a local IT magazine, where he answered to the question why so many users of software from Redmond complain about lots of problems: Because they think it's cool. You can go and tell your colleagues: Been there, done that. (from memory). I really appreciate your work and your product. It's a great achievement. Georg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Scott M Stark Sent: Tuesday, May 14, 2002 16:17 To: 'jboss-user' Subject: Re: [JBoss-user] Fwd: Bug when converting EJB QL boolean comparisons from true and false to 1 and 0 Being 'cool' about the issue meant Dain was fine in supporting the required behavior. There was no implication that the users were idiots. Try reading the mail a little more carefully before deciding you need to rant. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Georg Schmid [EMAIL PROTECTED] To: 'Dain Sundstrom' [EMAIL PROTECTED]; 'Stephen Coy' [EMAIL PROTECTED] Cc: 'jboss-user' [EMAIL PROTECTED] Sent: Monday, May 13, 2002 11:53 PM Subject: RE: [JBoss-user] Fwd: Bug when converting EJB QL boolean comparisons from true and false to 1 and 0 Dain, this is a quite obvious bug (if you ever tried to select on a boolean EB field backed by an Oracle table), so why are you so cool about it?? I have a EB with a mostRecent boolean field, and because of this bug there is no way to make a custom finder like select object(myEB) from MyEBTable where myEB.mostRecent = true work. Please don't get into the habit of thinking your users are idiots... --- five lines of additional rant suppressed -- Georg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Dain Sundstrom Sent: Tuesday, May 14, 2002 07:35 To: Stephen Coy Cc: jboss-user Subject: Re: [JBoss-user] Fwd: Bug when converting EJB QL boolean comparisons from true and false to 1 and 0 Cool, can you post a bug report, so I don't forget to make the change? Thanks, -dain Stephen Coy wrote: Sorry Dain, I was trying to point out that not all SQL implementations support the use of literal true and false values. Therefore, we need to get them mapped to 1 and 0 respectively in this situation. On Tuesday, May 14, 2002, at 02:53 PM, Dain Sundstrom wrote: This is like pulling teeth. Just tell me what you want and why, short and sweet. Think 72 words. I should true map to 1 and false to 0 in Oracle, SQLServer and MySQL? I add some more metadata for this. The short answer is yes. ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] how to run JSPs in JBoss
Ehh? Sorry, but my examples contain a whole bunch of jsp pages. Make a war (like a jar) from your jsp pages, copy it to the deploy directory of the JBoss server watch the server stack if everything runs fine, access your app as described below. If this does not help - go and read about how to code jsp pages. Regards, Burkhard - Original Message - From: Yelamanchilli RamaKishore [EMAIL PROTECTED] To: Burkhard Vogel [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, May 14, 2002 1:26 PM Subject: Re: [JBoss-user] how to run JSPs in JBoss Thanks for the response. I still don't understand how to run JSPs. Example, tomcat-test.ear explains how we can work with servlets and EJBs. Can you please explain me how we can run JSPs. Thanks Kishore At 08:59 PM 5/13/2002 -0500, Burkhard Vogel wrote: Hi, Use any of the available embedded versions of JBoss (2.4.5+Tomcat, 2.4.5+Jetty, 3.0(which uses Jetty), 3.0+Tomcat), start them with the run_with_xxx.sh/bat script from the bin dir. Drop your web application in the deploy dir, access your app at http://localhost:8080/your-war--name-here/ or use the WEB-INF/web.xml to specify your own context. The JBoss+Tomcat distributions usually come with a tomcat-test.ear which can be accessed at http://localhost:8080/jboss/ (at least at my rather old 2.4.3 distro) Regards, Burkhard - Original Message - From: Yelamanchilli RamaKishore [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 13, 2002 1:11 PM Subject: [JBoss-user] how to run JSPs in JBoss Hello, Seeing the documentation, I figured out web server will be running on port 8082 by default. When I try http://localhost:8082/, I get an internal error(null pointer). I couldn't figure out what's the default directory from where JSPs will be picked up by the server. Can you please provide me a doc how I can run JSPs in JBoss? Thanks in advance. Thanks Kishore ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re: CMP relationship across jars with local interfaces?
[EMAIL PROTECTED] (Lars Bjønnes) writes: Is it possible to define a relationship between two CMP beans across a jar using local interfaces? Sorry for this lame question. The answer is no, since the spec requires both entities taking part in a relationship to be declared in the same deployment descriptor, and thus in be in the same jar, AFAICS. -- Lars ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] how to run JSPs in JBoss
Bukhard, I created a war file with all the example JSPs that you have provided and placed it in the deploy folder of jboss. The deploy fails and gives an exception saying no deployment descriptor found. Do I need to create web.xml or/and application.xml put them in the war too. If so, how can I create one with the JSP info. I couldn't find this info anywhere in the JBoss doc. Can you please help me? Thanks Regards Kishore I created a war file with one sample jsp and placed it in the deploy folder. At 02:08 PM 5/14/2010 -0500, Burkhard Vogel wrote: Ehh? Sorry, but my examples contain a whole bunch of jsp pages. Make a war (like a jar) from your jsp pages, copy it to the deploy directory of the JBoss server watch the server stack if everything runs fine, access your app as described below. If this does not help - go and read about how to code jsp pages. Regards, Burkhard - Original Message - From: Yelamanchilli RamaKishore [EMAIL PROTECTED] To: Burkhard Vogel [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, May 14, 2002 1:26 PM Subject: Re: [JBoss-user] how to run JSPs in JBoss Thanks for the response. I still don't understand how to run JSPs. Example, tomcat-test.ear explains how we can work with servlets and EJBs. Can you please explain me how we can run JSPs. Thanks Kishore At 08:59 PM 5/13/2002 -0500, Burkhard Vogel wrote: Hi, Use any of the available embedded versions of JBoss (2.4.5+Tomcat, 2.4.5+Jetty, 3.0(which uses Jetty), 3.0+Tomcat), start them with the run_with_xxx.sh/bat script from the bin dir. Drop your web application in the deploy dir, access your app at http://localhost:8080/your-war--name-here/ or use the WEB-INF/web.xml to specify your own context. The JBoss+Tomcat distributions usually come with a tomcat-test.ear which can be accessed at http://localhost:8080/jboss/ (at least at my rather old 2.4.3 distro) Regards, Burkhard - Original Message - From: Yelamanchilli RamaKishore [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 13, 2002 1:11 PM Subject: [JBoss-user] how to run JSPs in JBoss Hello, Seeing the documentation, I figured out web server will be running on port 8082 by default. When I try http://localhost:8082/, I get an internal error(null pointer). I couldn't figure out what's the default directory from where JSPs will be picked up by the server. Can you please provide me a doc how I can run JSPs in JBoss? Thanks in advance. Thanks Kishore ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] how to run JSPs in JBoss
yes, you need to have WEB-INF directory at the top of your war containing a web.xml file. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Yelamanchilli RamaKishore Sent: Tuesday, May 14, 2002 3:53 PM To: Burkhard Vogel Cc: [EMAIL PROTECTED] Subject: Re: [JBoss-user] how to run JSPs in JBoss Bukhard, I created a war file with all the example JSPs that you have provided and placed it in the deploy folder of jboss. The deploy fails and gives an exception saying no deployment descriptor found. Do I need to create web.xml or/and application.xml put them in the war too. If so, how can I create one with the JSP info. I couldn't find this info anywhere in the JBoss doc. Can you please help me? Thanks Regards Kishore I created a war file with one sample jsp and placed it in the deploy folder. At 02:08 PM 5/14/2010 -0500, Burkhard Vogel wrote: Ehh? Sorry, but my examples contain a whole bunch of jsp pages. Make a war (like a jar) from your jsp pages, copy it to the deploy directory of the JBoss server watch the server stack if everything runs fine, access your app as described below. If this does not help - go and read about how to code jsp pages. Regards, Burkhard - Original Message - From: Yelamanchilli RamaKishore [EMAIL PROTECTED] To: Burkhard Vogel [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, May 14, 2002 1:26 PM Subject: Re: [JBoss-user] how to run JSPs in JBoss Thanks for the response. I still don't understand how to run JSPs. Example, tomcat-test.ear explains how we can work with servlets and EJBs. Can you please explain me how we can run JSPs. Thanks Kishore At 08:59 PM 5/13/2002 -0500, Burkhard Vogel wrote: Hi, Use any of the available embedded versions of JBoss (2.4.5+Tomcat, 2.4.5+Jetty, 3.0(which uses Jetty), 3.0+Tomcat), start them with the run_with_xxx.sh/bat script from the bin dir. Drop your web application in the deploy dir, access your app at http://localhost:8080/your-war--name-here/ or use the WEB-INF/web.xml to specify your own context. The JBoss+Tomcat distributions usually come with a tomcat-test.ear which can be accessed at http://localhost:8080/jboss/ (at least at my rather old 2.4.3 distro) Regards, Burkhard - Original Message - From: Yelamanchilli RamaKishore [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 13, 2002 1:11 PM Subject: [JBoss-user] how to run JSPs in JBoss Hello, Seeing the documentation, I figured out web server will be running on port 8082 by default. When I try http://localhost:8082/, I get an internal error(null pointer). I couldn't figure out what's the default directory from where JSPs will be picked up by the server. Can you please provide me a doc how I can run JSPs in JBoss? Thanks in advance. Thanks Kishore ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [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
Re: [JBoss-user] Tomcat standalone malformed URL to connect JBOSS
I see a couple things. First, you say you are trying to get to an EJB on a remote box, but then you are setting your provider.url to localhost. If you are on the default port (1099), you don't need to specify either it or jnp, since jnp is the default protocol. Lastly, you are updating the System properties, then you are creating an InitialContext with the same set of properties. You don't need to do both. If you are changing the system properties, it affects the whole JVM, so you don't need to set them for the initial context. - Original Message - From: Emerson Cargnin - MSA To: [EMAIL PROTECTED] Sent: Monday, May 13, 2002 3:15 PM Subject: [JBoss-user] Tomcat standalone malformed URL to connect JBOSS I'm trying to lookup EJB in a remote machine from tomcat and i'm getting the following error obs: i'm using jboss 3 RC2 and tomcat 4.0.1 in windows : Code: Properties newProps = System.getProperties(); newProps.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory"); newProps.put("java.naming.provider.url","jnp://localhost:1099/"); newProps.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces"); System.setProperties (newProps); InitialContext jndiContext = new InitialContext(newProps); Object ref = jndiContext.lookup("ejb/CobrancaFacade"); CobrancaFacadeHome home = (CobrancaFacadeHome) PortableRemoteObject.narrow(ref,CobrancaFacadeHome.class); cobrancaFacade = home.create(); Exception: javax.naming.CommunicationException. Root exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.net.MalformedURLException: no protocol: de at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292) at sun.rmi.transport.Transport$1.run(Transport.java:148) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:144) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) at java.lang.Thread.run(Thread.java:536) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133) at org.jnp.server.NamingServer_Stub.lookup(Unknown Source) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:368) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:352) at javax.naming.InitialContext.lookup(InitialContext.java:354) at br.com.sicredi.cobranca.cliente.bd.CobrancaBD.init(CobrancaBD.java:46) at br.com.sicredi.cobranca.cliente.web.PesquisaPracaAction.executa(PesquisaPracaAction.java:112) at br.com.sicredi.fw.cliente.web.TemplateAction.execute(TemplateAction.java:37) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:437) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:264) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
Re: [JBoss-user] how to run JSPs in JBoss
8082 is the JMX port. By default, 8083 is the default web server port. I don't run integrated Tomcat, so I don't know the effect of that combination. - Original Message - From: Yelamanchilli RamaKishore [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 13, 2002 2:11 PM Subject: [JBoss-user] how to run JSPs in JBoss Hello, Seeing the documentation, I figured out web server will be running on port 8082 by default. When I try http://localhost:8082/, I get an internal error(null pointer). I couldn't figure out what's the default directory from where JSPs will be picked up by the server. Can you please provide me a doc how I can run JSPs in JBoss? Thanks in advance. Thanks Kishore ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user