Re: [JBoss-user] Problem with CMR and Postgres

2002-11-08 Thread Alex Loubyansky
Judge has only remote interfaces. So, try with local ones. alex On 08 Nov 2002 18:01:38 -0500 Eric Klimas <[EMAIL PROTECTED]> wrote: Hi all, I'm trying to do an example program from the Wrox book Professional EJB and I'm running into some trouble with a 1-M (judges->cases) relationship. What a

Re: [JBoss-user] HttpInvoker and ssl.

2002-11-08 Thread Vincent Wong
when you say setup the client, do you mean changing the InitialContext properties to point at the https URL?  I did that before, although im not sure what the exception was.  Should I upgrade to the newer version, or does it work my version aswell. Thanks. >From: "Scott M Stark" <[EMAIL PROTECTE

RE: [JBoss-user] User Monitoring

2002-11-08 Thread Luttrell, Peter
I solved the problem.   For New Session and Removals, this works (although it's jetty specific):   public class JettyAuthenticationTracker implements HttpSessionAttributeListener {       public void attributeAdded( HttpSessionBindingEvent event ) {    if ( "org.mortbay.jetty.Auth".equ

Re: [JBoss-user] JAAS - getUserPrincipal returns null outside secure area

2002-11-08 Thread Scott M Stark
Its undefined how a principal from a secured context login should propagate to unsecure contexts. To ensure you have a principal you have to either secure all content or store the principal in a session. Scott Stark Chief Technology Officer JBoss Group, LLC xxx

RE: [JBoss-user] User Monitoring

2002-11-08 Thread Luttrell, Peter
Ah, a part of the servlet api i haven't yet explored. I tried it and it didn't quite work. I wonder if i have it correct.   Based on my sample code, when I first go to a page i see this:   18:11:44,875 INFO  [STDOUT] sessionCreated Called.18:11:44,890 INFO  [STDOUT] httpsessionevent=javax.s

[JBoss-user] strange error: console looping

2002-11-08 Thread Marcin Gryszkalis
Hello I just moved to jbos 3.0.4 + tom,cat 4.1 and realized that sometimes I get following error on console: ERROR: invalid console appender config detected, console stream is looping without \n at the end (!) I do some Sysytem.out.println() calls (I try to use log4j but for quick checks my fing

RE: [JBoss-user] User Monitoring

2002-11-08 Thread Jason Westra
HttpSessionBindingListener to be exact.    BTW: CurrentUsersMBean.java is not a Jboss or j2ee class either.  Hope this helps.   Jason -Original Message-From: Luttrell, Peter [mailto:[EMAIL PROTECTED]]Sent: Friday, November 08, 2002 4:14 PMTo: '[EMAIL PROTECTED]'; '[EMAIL P

RE: [JBoss-user] User Monitoring

2002-11-08 Thread Luttrell, Peter
This sounds interesting. Presumably I can get the UserPrincipal somehow right?   Where do i get more info on HttpBindingListener? It doesn't appear to be a Jboss class, nor a j2ee class.   Did you mean HttpSessionListener?   thanks. .peter -Original Message-From: Jason Westra

[JBoss-user] Problem with CMR and Postgres

2002-11-08 Thread Eric Klimas
Hi all, I'm trying to do an example program from the Wrox book Professional EJB and I'm running into some trouble with a 1-M (judges->cases) relationship. What appears to be happening is when I retrieve the Collection via the cmr call to my getAssignedCases() method, the container tries to receive

Re: [JBoss-user] Off topic: Never use Expedia

2002-11-08 Thread Dain Sundstrom
Ok maybe, I use a POTA (plain old travel agent). -dain Stephen Davidson wrote: Greetings. I can't tell you much about hotels.com, other than there head office is an Ex-Ericson building across the street from where I live, and that their HR and IT people are next to impossible to get a hold of

[JBoss-user] Re: resource-loading in .war

2002-11-08 Thread Storhaug, Henning
Case closed - the problem is in the tapestry library version 2.2. I browsed the wrong version. :p But why does getClass().getResource() fail? Is Thread.currentThread.getContextClassLoader() always the way to go? - Henning > Seems like you're right after all James, I just had to remove > the l

Re: [JBoss-user] Off topic: Never use Expedia

2002-11-08 Thread Stephen Davidson
Greetings. I can't tell you much about hotels.com, other than there head office is an Ex-Ericson building across the street from where I live, and that their HR and IT people are next to impossible to get a hold of... -Steve Dain Sundstrom wrote: I just thought I would warn everyone. At the J

Re: [JBoss-user] Hang in EntityLockInterceptor?

2002-11-08 Thread Dan A. Dickey
On Friday 08 November 2002 02:28 pm, David Jencks wrote: > Does the hang go away if you use local tx (using the jca local wrapper > instead of the xa wrapper)? If so this is probably due to problems with > the informix xa driver. Nope, the hang does not go away. It pretty much happens the exact

[JBoss-user] JAAS - getUserPrincipal returns null outside secure area

2002-11-08 Thread Felipe Oliveira
Hi! Even tough I am logged on, I always get "null" on request.getUserPrincipal() when I am on pages outside the secured area. Is that a feature or a bug? It seems to be happening on WebLogic so I am assuming it's a feature. Is there anyway I can work around this? so anything outside the /secure di

Re: [JBoss-user] Hang in EntityLockInterceptor?

2002-11-08 Thread David Jencks
Does the hang go away if you use local tx (using the jca local wrapper instead of the xa wrapper)? If so this is probably due to problems with the informix xa driver. In 3.2 and 4 you can specify "trackConnectionsByTx" which provides a similar usage pattern to the local wrapper while allowing xa

Re: [JBoss-user] HttpInvoker and ssl.

2002-11-08 Thread Scott M Stark
I just tested it for a new example in the 3.0.4 version of the admin-devel book and it works fine. You have to setup your client to enable https urls. What is the exact exception you are seeing?   Scott StarkChief Technology OfficerJBoss Group, LLC

Re: [JBoss-user] JNDI CommnicationException

2002-11-08 Thread Scott M Stark
This is a common problem with redhat systems that set the hostname to the localhost address in /etc/hosts. Check that your hostname does map to the 10.0.0.101 address. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message --

[JBoss-user] Re: ejbCreate violating database 'NOT NULL' constraints (foreign keys)

2002-11-08 Thread Spam
look for jboss-Patches-630707 (for JBoss 3.0.x) Check also for "Deffered constraint" (ensure constraints at commit instead of at each SQL order) if you are using Oracle. Its working fine for me. Spam "Alex Loubyansky" <[EMAIL PROTECTED]> a écrit dans le message news: [EMAIL PROTECTED] > Hello

[JBoss-user] Off topic: Never use Expedia

2002-11-08 Thread Dain Sundstrom
I just thought I would warn everyone. At the JBoss Group we do a lot of travel, and most of it we book through expedia.com. Recently expedia changed their site to prepaid hotels. They make that claim that they give you a special rate, but the rate is not special. The problem is if you need

RE: [JBoss-user] JNDI CommnicationException

2002-11-08 Thread JD Brennan
Title: RE: [JBoss-user] JNDI CommnicationException I think I've seen this before.  It does the JNDI lookup on port 1099 - that probably working fine.  Then it does the RMI lookup on a different port (and for some reason a different hostname).  So I think JNDI is telling the client to use host

[JBoss-user] JNDI CommnicationException

2002-11-08 Thread Damon Sicore
OK, I've searched for this answer long enough! Version: JBoss 3.0.3 OS: Linux, RedHat 7.2 both client and server Client side Trace: EJBServerInfo.getContext(): server.url=jnp://10.0.0.101:1099 EJBServerInfo.getContext(): context.factory=org.jnp.interfaces.NamingContextFactory EJBManager.getHome

[JBoss-user] Re: resource-loading in .war

2002-11-08 Thread Storhaug, Henning
Seems like you're right after all James, I just had to remove the leading "/" in the resource path. :) I've done some research, and found something strange: If I bundled my war inside an ear, I was able to load the resource using the following lines of code: ClassLoader cl = Thread.curren

[JBoss-user] Hang in EntityLockInterceptor?

2002-11-08 Thread Dan A. Dickey
Has anyone seen a hang in EntityLockInterceptor? We are stress testing our application, and can repeatedly get this hang when transaction attributes are Required. A RequiresNew transaction attribute makes the hang disappear and performance goes down the tube. This is with version 3.0.2 of JBoss.

[JBoss-user] Re: resource-loading in .war

2002-11-08 Thread Storhaug, Henning
Thanks James, I tried your recipe but no progress. I've put the war inside an ear with no luck. I'm using Tapestry (web-framework), and it cannot locate the application specification in web-inf/classes. I'm trying to look it up manually (rationale - strange bug in tapestry?), but still the same.

AW: [JBoss-user] jboss-net under jboss-3.0.3_tomcat-4.0.x

2002-11-08 Thread Jung , Dr. Christoph
Bruce, I just come from a one week stay at a US conference and I am just heading for three weeks of holiday. I plan to update 3.2 up to head to axis release 1.0 over the weekend, but cannot promise that I will manage to do so. Cu then, CGJ -Ursprüngliche Nachricht- Von: Bruce Scharlau [

[JBoss-user] HttpInvoker and ssl.

2002-11-08 Thread Vincent Wong
My current setup is jboss 3.0.2 and tomcat 4.04 bundle. I have it configured use both SSL and no SSL. on the client side program Im using the HttpInvoker because my jboss server is behind a firewall. Everything works fine. Im wondering if I can use the HttpInvoker with SSL. I tried to change the

Re: [JBoss-user] What is the proper way to name a datasource?

2002-11-08 Thread Dan Christopherson
use "java:comp/env/jdbc/OracleDS" with a in your deployment descriptor, then map the server-specific name to that name. -danch Jon Haugsand wrote: We have an application that we are trying out on several application servers, i.e. Borland, Weblogic and of course JBoss. This application uses CMP

Re: [JBoss-user] What is the proper way to name a datasource?

2002-11-08 Thread Scott M Stark
This is what resource-ref elements in the ejb-jar.xml descriptor are for. They enable the following code that is portable across all servers: Context ctx = new InitialContext(); DataSource pool = (DataSource)ctx.lookup("java:comp/env/jdbc/OracleDS"); return p

Re: [JBoss-user] Entity Bean Performance Tuning Help

2002-11-08 Thread Dain Sundstrom
That is a super cool idea. This could easily fit into the 4.0 architecture. Do you want to work on proposing a grammar for insert, update, and delete? Once we have a grammar the conversation to sql is simple, and we can easily throw in cache updating logic. -dain Michael Bartmann wrote: Da

Re: [JBoss-user] ejbCreate violating database 'NOT NULL' constraints(foreign keys)

2002-11-08 Thread Dain Sundstrom
There is a patch that supposedly fixes this, but I have not looked at it yet. -dain Alex Loubyansky wrote: Hello Michael, MAL> How can I avoid violating NOT NULL constraints on foreign keys that are MAL> mapped to cmr-fields? there is no way for now. MAL> I know that we're not suppose to set

[JBoss-user] What is the proper way to name a datasource?

2002-11-08 Thread Jon Haugsand
We have an application that we are trying out on several application servers, i.e. Borland, Weblogic and of course JBoss. This application uses CMP, but we also need to do some JDBC calls directly, and consequently we need to get the name of the datasource from the application server. We do it li

Re: [JBoss-user] CMR Performance: Weblogic7 Much Faster Then JBoss

2002-11-08 Thread Dain Sundstrom
Christian, Thanks for spending the time on this. -dain Christian Riege wrote: Peter, there are lies, damn lies and benchmarks. First of all, thanks for the supplied test and sources. Second, I've run the tests on my machine (1GHz AMD, .5GB RAM, Linux Kernel 2.4.18, JVM 1.4.0_02). I know that

[JBoss-user] Re: JBoss 3.0.* with Resin 2.1.*

2002-11-08 Thread Mike Savage
http://www.practicalprogramming.com/plugin.html J. Michael Savage Datastream Development Date: Wed, 6 Nov 2002 01:15:19 -0500 To: [EMAIL PROTECTED] From: otisg <[EMAIL PROTECTED]> Subject: [JBoss-user] JBoss 3.0.* with Resin 2.1.* Reply-To: [EMAIL PROTECTED]

RE: [JBoss-user] CMR Performance: Weblogic7 Much Faster Then JBoss

2002-11-08 Thread Luttrell, Peter
The comparison does become apples to oranges once you swap the os and hardware. My tests were all on w2k p41.7ghz 512mbs RDRam, jdk1.4.1_01. Weblogic I think uses it's own copy of the jre which i think is something like 1.3.1. You are correct, i am using a completely unmodified jboss3.0.4 install

RE: [JBoss-user] Multiple instances

2002-11-08 Thread Finn, Michael
Actually that's as of 3.0.1. -Original Message-From: Finn, Michael [mailto:[EMAIL PROTECTED]]Sent: Friday, November 08, 2002 7:21 AMTo: '[EMAIL PROTECTED]'Subject: RE: [JBoss-user] Multiple instances Sure. There are two ways to do this: 1) Run two instance on the sa

[JBoss-user] jboss-net under jboss-3.0.3_tomcat-4.0.x

2002-11-08 Thread Bruce Scharlau
Christoph, quick question for you: which version of axis is used to build the jboss-3.0.x versions? I found that you can get jboss-net to work with tomcat under this version with a few changes: 1) go to server/all/deploy and rename jboss-net.sar to jboss-net-temp.sar 2) create new directory ca

RE: [JBoss-user] Multiple instances

2002-11-08 Thread Finn, Michael
Sure. There are two ways to do this: 1) Run two instance on the same 'net interface/IP address. You'll need to change the ports for all listener services (http, jndi/jnp, rmi, hsql, web, and html-jmx adaptor if 2.4). 2) Run multiple net interfaces (either virtual or physical), and configure

[JBoss-user] JBoss with WebLogic

2002-11-08 Thread Kazandjian Erik
Hi,   I have to use some Entity EJB's that are deployed on a BEA Weblogic 6.1 server. Has anyone any expierence with this. With jar files should I have on the Jboss 3.0.2  side in order to communicate with the EntityBean on WebLogic. Do I need the complete weblogic.jar (26 MB) on the JBoss s

Re: [JBoss-user] resource-loading in .war

2002-11-08 Thread James Cleary
Hope this helps.. an example i think i grabbed from JBoss example dir: //web page -> marconi jec zen 142> grep MailerServlet war/home.html //compile classes to build dir -> marconi jec zen 144> ls build/classes/cae/javamail/ Mailer.class MailerHome.class MailerLocalHome.cla

Re: [JBoss-user] ejbCreate violating database 'NOT NULL' constraints (foreignkeys) - Workaround

2002-11-08 Thread Jonathan . O'Connor
As Alex Lobansky has already said, you can't. But, here's what we do to work around the problem. 1. Add cmp fields for all the non-null foreign keys. 2. In the ejbCreate, call "setNonNullFKCmpField( fkObj.getPrimaryKey())". 3. Remove any call to "setNonNullFKCMRField( fkObj)", as you've already d

[JBoss-user] resource-loading in .war

2002-11-08 Thread Storhaug, Henning
I'm running JBoss 3.0.4 w/Jetty. My servlets / JSPs cannot find resources located under WEB-INF/classes. Am I missing something? Isn't WEB-INF/classes the 'default' root directory for servlets loading resources? - Henning --- This sf.net email

Re: [JBoss-user] entityHome.create() returning null EJBObject

2002-11-08 Thread Rene Palad
Thanks Alex, I think this is what I'm missing. :) Regards, Rene > Hello Rene, > > if you want auto-increment support, you need > JBoss-3.2 > at a > minimum. > Then in jbosscmp-jdbc.xml for the autoincremented > field: > > > id > ID > INTEGER >

Re: [JBoss-user] ejbCreate violating database 'NOT NULL' constraints (foreign keys)

2002-11-08 Thread Alex Loubyansky
Hello Michael, MAL> How can I avoid violating NOT NULL constraints on foreign keys that are MAL> mapped to cmr-fields? there is no way for now. MAL> I know that we're not suppose to set cmr fields during the ejbCreate method MAL> of an entity bean. However, it seems that the call to "insert in

Re: [JBoss-user] entityHome.create() returning null EJBObject

2002-11-08 Thread Alex Loubyansky
Hello Rene, if you want auto-increment support, you need JBoss-3.2 at a minimum. Then in jbosscmp-jdbc.xml for the autoincremented field: id ID INTEGER INTEGER(11) alex Friday, November 08, 2002, 11:52:41

Re: [JBoss-user] CMR Performance: Weblogic7 Much Faster Then JBoss

2002-11-08 Thread Christian Riege
Peter, there are lies, damn lies and benchmarks. First of all, thanks for the supplied test and sources. Second, I've run the tests on my machine (1GHz AMD, .5GB RAM, Linux Kernel 2.4.18, JVM 1.4.0_02). I know that any comparisons to your systems are probably apples and oranges (you're on a Wind

[JBoss-user] ejbCreate violating database 'NOT NULL' constraints (foreign keys)

2002-11-08 Thread Michael Angelo Libio
How can I avoid violating NOT NULL constraints on foreign keys that are mapped to cmr-fields? I know that we're not suppose to set cmr fields during the ejbCreate method of an entity bean. However, it seems that the call to "insert into" is executed before the cmr fields are set (ejbPostCreate

[JBoss-user] Multiple instances

2002-11-08 Thread Javier Cano
How can I have running multiple instances of JBoss  in the same machine?     Thank you

[JBoss-user] entityHome.create() returning null EJBObject

2002-11-08 Thread Rene Palad
Hi, I get a NULL EJBObject with the below expression. I'm using java.lang.Integer as my primary key and MySQL auto-increment feature for my primary key generator. Based on the SQL log file, the data was inserted in the DB, but I get a NULL reference. Please advice what's wrong with my deploymen

[JBoss-user] Activation Failure after beanLocal.remove()

2002-11-08 Thread Ricardo Escalon
Okay for those of you interested in the work around to my problem (listed below).   I think the servlet init method only gets called once no matter how many instances of the servlet exist. Hence, when you remove the ejb there is nothin re-creating it.   Solution: before calling the bean make