[JBoss-user] [EJB/JBoss] - log4jservice unable to turn off logging

2005-12-22 Thread nobel
Hi! I frequently turn on logging for the org.jboss.ejb.plugins.cmp category. That works fine without shutting down JBoss, however trying to turn off cmp logging wont work without shutting down JBoss. I can see that the log4j.xml file has been reread after commenting out the category but the

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - ora-01403

2005-12-20 Thread nobel
Hi! Im occasionally getting a FinderException from a multi-object finder that I've never seen before. I guess this is really an Oracle question but maybe someone has a clue to why it happens. Thanx, Niklas. javax.ejb.FinderException: Find failed: java.sql.SQLException: ORA-01403: no data found

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: commit-option B read-only without cache

2005-10-13 Thread nobel
In a situation where you dont own the database and need to see changes in realtime, you are forced to use commit-option b or c. The problem is that the standard container configuration for entity beans leads to heavy locking if simultaneous transactions uses the same entity bean. To avoid heavy

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - commit-option B read-only without cache

2005-10-04 Thread nobel
Hi! Im currently working with a system dependant upon jboss-3.0.4. Entity beans are using commit-option B and getters are declared read-only to avoid unneccesary locking. The problem is that the instance cache is then being used for those getters (actually the case even with commit-option C).

[JBoss-user] [Management, JMX/JBoss] - Re: Broken XMBean persistence with 1.5 and org.jboss.mx.pers

2005-06-13 Thread nobel
well, i have tried to patch jboss-3.2.7/lib/jboss-common.jar as suggested. starting up jboss from the command line using jdk1.5.0_02. jboss won't start. stacktrace below. something wrong with the jar file? /nobel Caused by: java.lang.reflect.UndeclaredThrowableException

[JBoss-user] [Management, JMX/JBoss] - Re: Broken XMBean persistence with 1.5 and org.jboss.mx.pers

2005-06-13 Thread nobel
here we go. /nobel C:\jboss-3.2.7\binrun -c tsp === . JBoss Bootstrap Environment . JBOSS_HOME: C:\jboss-3.2.7\bin\\.. . JAVA: c:\jdk1.5.0_02\bin\java . JAVA_OPTS: -Dprogram.name=run.bat

[JBoss-user] [Management, JMX/JBoss] - Re: Broken XMBean persistence with 1.5 and org.jboss.mx.pers

2005-06-13 Thread nobel
stacktrace when starting jboss from inside eclipse 3.1.M6/jboss ide 141/jdk1.5.0_02 WITHOUT patch. stacktrace below belongs to one XMBean. /nobel 2005-06-13 16:42:03,823 WARN [XMLAttributePersistenceManager] main store 335 Cannot persist AttributeList to: [EMAIL PROTECTED]@[EMAIL PROTECTED

[JBoss-user] [Management, JMX/JBoss] - Re: Broken XMBean persistence with 1.5 and org.jboss.mx.pers

2005-06-02 Thread nobel
if I run jboss from inside eclipse 3.0 using the jboss ide 141, jdk1.5.0_02 and jboss 327 i get a number of XMBean related FileNotFoundExceptions. however if i fire up jboss 327 with jdk1.5.0_02 from the command line instead it works. /nobel View the original post : http://www.jboss.org

[JBoss-user] [HTTPD, Servlets JSP] - precompile JSP jmx-console

2005-04-19 Thread nobel
Hello all, Today I use an ant build target to precompile all JSPs for a web application. I wonder if that isnt possible to do from the jmx-console or web-console? Or is it possible to set a property somewhere so that the servlet engine compiles all JSPs ASAP if they are not already

[JBoss-user] [Management, JMX/JBoss] - Re: classloading of properties file

2005-03-10 Thread nobel
After having had a closer look at the log I see that the properties file is loaded into the URL3. Thus there will be only one version of the properties file shared by both webapps. How come both webapps seem to use their own version? Taking a look at the Struts code I see that the properties

[JBoss-user] [Management, JMX/JBoss] - classloading of properties file

2005-03-08 Thread nobel
Hello! I have something that works which I didnt expect it would :-) Using jboss326, I have 2 ears that each contain a war. Both wars are identical with the exception of the content in a x.properties file. The x.properties file is loaded with a class

[JBoss-user] [HTTPD, Servlets JSP] - Re: FormAuthValve

2005-02-05 Thread nobel
most likely you will have to patch JBOSS_HOME/server/instance/deploy/jbossweb-tomcat50.sar/catalina.jar with a patched Authenticators.properties to point out the new FormAuthenticator subclass. I dislike the idea of overriding the FormAuthenticator class, much nicer to hook into the request

[JBoss-user] [HTTPD, Servlets JSP] - Re: FormAuthValve

2005-02-04 Thread nobel
The FormAuthValve does exactly what you suggest - puts a message (a Throwable) in the session that the error page may render. The problem is that the error page is processed before the Throwable has been put in the session. If I put a link on the error-page to an error-info-page and if the

[JBoss-user] [HTTPD, Servlets JSP] - FormAuthValve

2005-02-03 Thread nobel
Hi! Im using FORM-BASED authentication and I would like to give the user an explanation to why his login attempt failed. Today my form-error-page just states login failed - please try again... :-( On the wiki I found an interesting piece of code that just about does it. It is a valve,

[JBoss-user] [Clustering/JBoss] - Re: cacheing homeinterfaces in a clustered environment

2004-06-24 Thread nobel
from the trace below i draw the conclusion that cacheing homeiterfaces (or remote interfaces) in a clustered environment is not a good idea. the JRMPInvokerProxyHA keeps a list of available targets that will be exhausted if you shut down jboss instances in the right order. in the example i use

[JBoss-user] [Clustering/JBoss] - Re: cacheing homeinterfaces in a clustered environment

2004-06-23 Thread nobel
all my remote SLSB are configured as shown in the jboss.xml snippet below session | ejb-nameServiceFacadeBean/ejb-name | jndi-nameejb/ServiceFacadeRemote/jndi-name | clusteredTrue/clustered | ... | the client sets java.naming.provider.url= and thus

[JBoss-user] [Clustering/JBoss] - cacheing homeinterfaces in a clustered environment

2004-06-22 Thread nobel
running jboss-3.2.3 and a copy of the all config and a remote clustered stateless session bean deployed on two jboss instances. a client in another jvm does a lookup on the home interface, assuming the home interface isnt cached, and upon successful lookup puts the home proxy in a cache.

[JBoss-user] [HTTPD, Servlets JSP] - Re: session NOT sticky when switching from http to https

2004-06-17 Thread nobel
if apache deals with ssl and both the http connector as well as the https connector is commented in jboss-service for the embedded tomcat then loadbalancing/failover using apache2/mod_jk2 works fine. i guess having tomcat dealing with https request whilst not dealing with http request would

[JBoss-user] [HTTPD, Servlets JSP] - session NOT sticky when switching from http to https

2004-06-11 Thread nobel
using jboss-3.2.3, apache2(without ssl) and mod_jk2 on rh73. i have a copy of the all instance, called jboss0 on the same host as i run apache/mod-jk2 on and another instance called jboss1 on another host. both jvmRoute set in jboss-service.xml for tomcat. if the jboss0 host is targetted then