[JBoss-user] [EJB 3.0] - Re: My first SFSB barfed...

2006-03-27 Thread amayingenta
The problem is that you are creating a SFSB when you perform the JNDI lookup, and then your call to checkout() is causing it to be removed because of the @Remove annotation. After that point you can no longer use that cart instance, so it fails the second time around your for loop. The error y

[JBoss-user] [Security & JAAS/JBoss] - Re: Confused by Client login

2006-03-22 Thread amayingenta
When I turned on client logging as you suggested it became clear that I was doing something unbelivably stupid in my client - logging out in my factory class before any of the business methods were called. Thanks for the suggestion - I'd pretty much given up. View the original post : http://ww

[JBoss-user] [Security & JAAS/JBoss] - Re: Confused by Client login

2006-03-22 Thread amayingenta
This is what I see in the log: 2006-03-22 09:10:21,009 TRACE [org.jboss.security.SecurityAssociation] getPrincipal, principal=null 2006-03-22 09:10:21,015 TRACE [org.jboss.security.plugins.JaasSecurityManager.identity] Begin isValid, principal:null, cache info: null 2006-03-22 09:10:21,015 TRAC

[JBoss-user] [Security & JAAS/JBoss] - Confused by Client login

2006-03-17 Thread amayingenta
Hi, I'm having problems with authentication for a remote EJB client. As I understand it, my client should use the ClientLoginModule to collect username/password, and then the server should be configured to use a login module that will read the username/password passed from the client. I believe

[JBoss-user] [EJB 3.0] - Re: AroundInvoke for Inherited business methods

2006-03-09 Thread amayingenta
I meant to say that this is with JBoss4.0.4RC1 - which I believe includes EJB3 RC5 PFD. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3929132#3929132 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3929132

[JBoss-user] [EJB 3.0] - AroundInvoke for Inherited business methods

2006-03-09 Thread amayingenta
I am having a problem with an @AroundInvoke interceptor not running for methods that are implemented in a superclass of a Stateless session bean: | public interface A | { |public String getMessage(); | } | | public interface B extends A | { |String getOtherMessage(); |

[JBoss-user] [EJB 3.0] - OneToMany and composite primary key containing foreign key

2006-02-28 Thread amayingenta
Perhaps I'm being dumb, but none of the replies in similar threads have helped me get my head around this... I'm using JBoss 4.0.4RC1. I want to have a parent-child relationship where the child PK is a composite PK where the first part is the parent id. I want to avoid having a join table, or a

[JBoss-user] [Clustering/JBoss] - MDBs with durable subscription to Topic in cluster

2005-03-09 Thread amayingenta
Hi, sorry if this has been answered before, but in searching the forums I've found plenty of related threads, but most of them have different suggestions and I'm just confused at this point. I am trying to cluster an application that sends events on a Topic that is listened to by a couple of MD

[JBoss-user] [Installation & Configuration] - Re: JNDI serialization problem

2004-12-02 Thread amayingenta
Thanks for your reply. I'd accidentally included the jndi.properties intended for test clients in the jar of classes inside my EAR. Everything now works as expected. Thanks again, Andrew View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857229#3857229 Reply t

[JBoss-user] [Installation & Configuration] - JNDI serialization problem

2004-12-02 Thread amayingenta
Hi, I'm using JBoss 4.0.0 and I'm having some problems with JBoss apparently ignoring the CallByValue=false attribute of the NamingService in my custom JBoss configuration. I have a custom server configuration containing those services I need deployed. It is based upon the standard configuratio

[JBoss-user] [Persistence & CMP/JBoss] - Compound PK containing FK

2004-08-31 Thread amayingenta
Hi, I know there's been a lot of posts about this before, but I wanted to check that I was doing this right, and I've not been able to find any official documentation... I've got a series of entities with attached properties - e.g. identity and identityproperty. The main entity has an id, and th

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: UIL2 loadtesting and threads

2004-07-23 Thread amayingenta
The connection gets closed after the loop finishes - when I'm running this test with a single thread there's only ever one connection open. The duration of the test is usually a minute - in which time it can send and receive about 2000 messages. And each time it sends/receives a message over the

[JBoss-user] [Messaging, JMS & JBossMQ] - UIL2 loadtesting and threads

2004-07-21 Thread amayingenta
Hi, I've been trying to run some load tests against a remote server, and I'm finding that JBoss is using a lot of threads (and eventually can't create any more). I have a MDB that's listening on a local queue, and replying to messages via the destination I'm setting as the JMSReplyTo on the Mess

[JBoss-user] [Installation & Configuration] - Re: browsing CVS web interface?

2004-04-16 Thread amayingenta
The structure of the jboss-3.2 module is quite different from how the files are organised in CVS. If you look in CVSROOT/modules you can see how jboss-3.2 is built up from a list of aliases (I think that's the right term). You can use this to work out where to find things in CVS web. Alternati

[JBoss-user] [HTTPD, Servlets & JSP] - Re: DNS caching

2004-04-15 Thread amayingenta
It's the JVM that caches DNS entries forever by default - which is an annoying thing for it to do. You can change the settings in two ways: 1) Set "sun.net.inetaddr.ttl" system property e.g. -Dsun.net.inetaddr.ttl=30 in JAVA_OPTS when starting JBoss to limit the caching to 30 seconds 2) Set "n

[JBoss-user] [HTTPD, Servlets & JSP] - Re: and Internet Explorer

2004-04-15 Thread amayingenta
I think I've read that if you make your error page longer than a certain number of bytes it will appear instead of IE's "friendly error message". So you could try adding a quantity of whitespace to your error page and see if that works. Hope that helps. View the original post : http://www.jbo

[JBoss-user] [Performance Tuning] - Re: JBoss and Rarional quantify problem

2004-04-14 Thread amayingenta
The jars in server/.../lib are not picked up immediately - for something like this you need to add the location of your jar to the JBOSS_CLASSPATH before calling run.bat, and I'd suggest putting it somewhere else (e.g. $JBOSS_HOME/lib). View the original post : http://www.jboss.org/index.html?m

[JBoss-user] [Beginners Corner] - Re: InvokeStats under JMX MBean View

2004-04-05 Thread amayingenta
Err, how about: count: number of times method called minTime: minimum amount of time a call took to complete (usually in ms) maxTime: maximum amount of time a call took to complete totalTime: total time for all calls. You can get the average call time by dividing the total by the count. It's act

[JBoss-user] [Management, JMX/JBoss] - Re: 3.2.4RC1: inspectMBean.jsp compilation error

2004-04-01 Thread amayingenta
Sorry about that. Not sure why the search page finds the release announcement when you search for "inspectMBean.jsp", but not when you search for "inspectMBean". View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828523#3828523 Reply to the post : http://www.j

[JBoss-user] [Persistence & CMP/JBoss] - Re: Impact of using read-only on CMR getter?

2004-04-01 Thread amayingenta
We've been using this for quite a while without any problems for both CMP fields and CMR getters. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828521#3828521 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828521 --

[JBoss-user] [Management, JMX/JBoss] - 3.2.4RC1: inspectMBean.jsp compilation error

2004-04-01 Thread amayingenta
Haven't seen this reported (sorry if it's a dupe), but the jmx-console is not working in 3.2.4RC1 because inspectMBean.jsp doesn't compile. This appears to be because it uses org.jdom.output.XMLOutputter, but jdom.jar seems to have been replaced with dom4j.jar in $JBOSS_HOME/lib. (it works OK w

[JBoss-user] [Installation & Configuration] - Re: Apache+Jboss-Tomcat with mod_jk2

2004-03-10 Thread amayingenta
You'll have to build mod_jk2 from source. You can download the source from here: http://jakarta.apache.org/site/sourceindex.cgi http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3825035#3825035";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=382

[JBoss-user] [J2EE Compliance] - Re: Reference Argument

2004-03-10 Thread amayingenta
Because the RMI call is within the same VM it's being optimized by JBoss. So the arguments aren't serialized and pass-by-value becomes pass-by-reference. When we used to use WebLogic it used to do the same thing, so I don't think it's an unusual optimization. You can make the RMI calls behave a

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Jbossweb threads

2004-03-09 Thread amayingenta
When Jetty runs out of threads you should do a Thread Dump on the JVM to see what your threads are doing. It's quite possible that some of your threads are deadlocked in your application or database and are sat waiting for something. This sometimes happens to us when we have database problems -

[JBoss-user] [Persistence & CMP/JBoss] - Re: CMP on a View?

2004-03-05 Thread amayingenta
We're using CMP with views (Oracle 8.1.7.4 I think) and we're able to update them. However, our views are really just hidding certain things from the entities (e.g. there are lastupdated dates and things like that which aren't included in the view). If you've got a column which is derived in the

[JBoss-user] [Datasource Configuration] - Re: Connection pool leak if transaction marked for rollback?

2004-03-02 Thread amayingenta
We had this problem with 3.2.1 (with a LocalTx Datasource). Most of the problem turned out to be our application doing something dumb :) but there also appears to be a bug in the connection pooling. See http://www.mail-archive.com/[EMAIL PROTECTED]/msg30247.html I'm afraid I never raised a bug

[JBoss-user] [Installation & Configuration] - Re: Parse error when deploying WAR file

2004-03-02 Thread amayingenta
Are you familiar with XML and DTDs? The error is telling you that your XML does not match the DTD. Looking at what you've posted I can see that you're doing something like this: declare servlet declare servlet-mapping declare servlet declare servlet-mapping ... This is not correct - if you look

[JBoss-user] [Installation & Configuration] - Re: JMX-Console: Can't compile JSPs

2004-02-27 Thread amayingenta
You might want to try using the Search facility built into the forums. Hint, search for "OpResultInfo" in all forums. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3823232#3823232 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Trouble importing library in JbuilderX for servlet.

2004-02-27 Thread amayingenta
You not have seem Rod Macpherson's reply because it went to the mailing list only: anonymous wrote : To get you going you could toss classes12.jar in your | /jboss*/server/some-config/lib directory and leave it out of your | webapp. | | OT: Have you considered using Ant in combination wit

[JBoss-user] [Installation & Configuration] - Re: Jboss performance

2004-02-27 Thread amayingenta
You might want to check the JDBC calls that the CMP engine (turn on DEBUG logging for the CMP engine in conf/log4j.xml - there should be examples of how to do this elsewhere in the forums). It's possible that JBoss is not making the same calls as WebLogic was, and you may need to tune the querie

[JBoss-user] [Management, JMX/JBoss] - Re: JMX-console problem in JBoss 3.2.3

2004-02-26 Thread amayingenta
Are you using Tomcat 5? We had the same problem. The fix (which just adds a no argument constructor) is checked into CVS and will be in JBoss 3.2.4. You could do what I did and fix it in a copy of the 3.2.3 source and just update the class in jmx-console.war. Seems like Jasper has changed how i

[JBoss-user] [Installation & Configuration] - Re: what's the reason behind 3.2.3 not bundling Jetty anymor

2004-02-25 Thread amayingenta
Tomcat is now the default servlet engine, but there is still a version of JBoss 3.2.3 that is bundled with Jetty: http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=16943 You can also get jbossweb-jetty.sar's from the Jetty project directly if you want to upgrade Jetty seper

[JBoss-user] [HTTPD, Servlets & JSP] - Re: JSTL 2.0

2004-02-25 Thread amayingenta
We use JSTL 1.1 with JBoss 3.2.3 using Jetty 5.0beta2 as the servlet container. In order to deploy webapps using the 2.4 schema (and therefore get JSP2 & JSTL 1.1 to work) we had to upgrade xercesImpl.jar (in $JBOSS_HOME/lib) to a version that handles schemas properly. We used the version that w

[JBoss-user] [HTTPD, Servlets & JSP] - Re: General Architecture Question

2004-02-25 Thread amayingenta
I would recommend option 1. Whilst I don't have figures to back this up, I would say that the overhead of communicating between Apache and the servlet engine on a different machine using JK2 is going to be much less that the overhead of communicating between machines using RMI. Also I think it'

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Standard taglib with jboss 3.2.3, tomcat 5

2004-02-25 Thread amayingenta
We're using JSTL 1.1 with JBoss 3.2.3 and Jetty 5 beta2 with no problems. We have jstl.jar in the server/default/lib directory and standard.jar in the WEB-INF/lib directory of each of our webapps. We used a similar configuration for JSTL 1.0 with Jetty 4. Servlet 2.4 containers (i.e. Jetty 5 & T

[JBoss-user] [Beginners Corner] - Re: error under jboss jmx-console running with tomcat 5

2004-02-24 Thread amayingenta
Alternatively you can do what I did last week which is to get the 3.2.3 source and build the fix yourself. The change is to simply add a no-argument constructor to /varia/src/main/org/jboss/jmx/adaptor/control/OpResultInfo.java After you've built it you can then update the class in deploy/jmx-