[JBoss-user] StackOverflow on 3.2.1 with UnifiedClassLoader3

2003-05-30 Thread Matthew Baird
I have a problem where if I put too many jars (potentially classes?) in the 
\server\default\lib directory my server will not startup

I put the trace level logging on for the bootloader and found this out:

13:40:30,118 TRACE [UnifiedClassLoader3] release(1) for :[EMAIL PROTECTED] 
url=file:/C:/jboss-3.2.1_tomcat-4.1.24/server/default/tmp/deploy/server/default/conf/jboss-service.xml/1.jboss-service.xml
 ,addedOrder=2}
13:40:30,118 TRACE [UnifiedClassLoader3] released, holds: 0
13:40:30,118 TRACE [UnifiedClassLoader3] Unexpected error during load 
of:org.jboss.logging.Log4jService
java.lang.StackOverflowError
at java.util.Collections$SynchronizedMap.get(Collections.java:1938)
at 
org.jboss.net.protocol.URLStreamHandlerFactory.createURLStreamHandler(URLStreamHandlerFactory.java:110)
at java.net.URL.getURLStreamHandler(URL.java:1057)
at java.net.URL.init(URL.java:405)
at java.net.URL.init(URL.java:329)
at java.net.URL.init(URL.java:321)
at sun.misc.URLClassPath$JarLoader.init(URLClassPath.java:540)
at sun.misc.URLClassPath$3.run(URLClassPath.java:319)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:308)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:285)
at sun.misc.URLClassPath.findResource(URLClassPath.java:136)
at java.net.URLClassLoader$2.run(URLClassLoader.java:351)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findResource(URLClassLoader.java:348)
at java.lang.ClassLoader.getResource(ClassLoader.java:780)
at 
org.jboss.mx.loading.UnifiedClassLoader.getResourceLocally(UnifiedClassLoader.java:250)
at 
org.jboss.mx.loading.UnifiedLoaderRepository3.getResourceFromClassLoader(UnifiedLoaderRepository3.java:333)
at 
org.jboss.mx.loading.UnifiedLoaderRepository3.getResource(UnifiedLoaderRepository3.java:243)
at 
org.jboss.mx.loading.UnifiedClassLoader3.getResource(UnifiedClassLoader3.java:228)
at 
org.jboss.net.protocol.URLStreamHandlerFactory.createURLStreamHandler(URLStreamHandlerFactory.java:146)
at java.net.URL.getURLStreamHandler(URL.java:1057)
at java.net.URL.init(URL.java:405)
at java.net.URL.init(URL.java:329)
at java.net.URL.init(URL.java:321)
at sun.misc.URLClassPath$JarLoader.init(URLClassPath.java:540)
at sun.misc.URLClassPath$3.run(URLClassPath.java:319)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:308)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:285)
at sun.misc.URLClassPath.findResource(URLClassPath.java:136)
at java.net.URLClassLoader$2.run(URLClassLoader.java:351)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findResource(URLClassLoader.java:348)
at java.lang.ClassLoader.getResource(ClassLoader.java:780)
at 
org.jboss.mx.loading.UnifiedClassLoader.getResourceLocally(UnifiedClassLoader.java:250)
at 
org.jboss.mx.loading.UnifiedLoaderRepository3.getResourceFromClassLoader(UnifiedLoaderRepository3.java:333)
at 
org.jboss.mx.loading.UnifiedLoaderRepository3.getResource(UnifiedLoaderRepository3.java:243)
at 
org.jboss.mx.loading.UnifiedClassLoader3.getResource(UnifiedClassLoader3.java:228)
at 
org.jboss.net.protocol.URLStreamHandlerFactory.createURLStreamHandler(URLStreamHandlerFactory.java:146)
at java.net.URL.getURLStreamHandler(URL.java:1057)
at java.net.URL.init(URL.java:405)
at java.net.URL.init(URL.java:329)
at java.net.URL.init(URL.java:321)
at sun.misc.URLClassPath$JarLoader.init(URLClassPath.java:540)
at sun.misc.URLClassPath$3.run(URLClassPath.java:319)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:308)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:285)
at sun.misc.URLClassPath.findResource(URLClassPath.java:136)
at java.net.URLClassLoader$2.run(URLClassLoader.java:351)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findResource(URLClassLoader.java:348)
at java.lang.ClassLoader.getResource(ClassLoader.java:780)
at 
org.jboss.mx.loading.UnifiedClassLoader.getResourceLocally(UnifiedClassLoader.java:250)
at 
org.jboss.mx.loading.UnifiedLoaderRepository3.getResourceFromClassLoader(UnifiedLoaderRepository3.java:333)
at 
org.jboss.mx.loading.UnifiedLoaderRepository3.getResource(UnifiedLoaderRepository3.java:243)
at 
org.jboss.mx.loading.UnifiedClassLoader3.getResource(UnifiedClassLoader3.java:228)
at 

RE: [JBoss-user] Hibernate revisited

2003-01-24 Thread Matthew Baird
we do this in real life. We support multiple persistence engines in our app.

-Original Message-
From: Anders Engström [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 24, 2003 8:03 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Hibernate revisited


On Fri, Jan 24, 2003 at 03:32:18PM +, Pete Beck wrote:
 Recently we had an interesting thread about the realtive qualities of
 Hibernate and CMP.
 
[snip]
 The Facade would abstract the jobs of finding, creating and deleting
 instances of persistant objects.
 
 Does anyone else think this type of pattern would be useful? Or does it
 sound like science fiction?
 
 

Correct me if I'm dead wrong - but this sounds like DAO.

http://java.sun.com/blueprints/patterns/DAO.html

//Anders


-- 
|===|
|Anders Engström|
|[EMAIL PROTECTED]|
|http://www.gnejs.net   |
|===|
|Your mind is like an umbrella. |
|It doesn't work unless you open it.|
|  /Frank Zappa |
|===|





---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Cmp vs hibernate

2003-01-09 Thread Matthew Baird
so you are promoting using what?
 
Do you have an example of:
 
Your code - datastore
 
thanks,
Matthew

-Original Message- 
From: Pete Beck [mailto:[EMAIL PROTECTED]] 
Sent: Thu 1/9/2003 1:35 AM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: RE: [JBoss-user] Cmp vs hibernate



On Wed, 2003-01-08 at 22:45, Matthew Baird wrote:
 I disagree with your statement of

 Let's face it, O/R mappings will never be very efficient. 
 
 Both OJB (to which I contribute) and Hibernate (which I watch closely)
 approximate raw JDBC performance in most cases, and can exceed it in many 
others.
 Go check out the performance target in OJB, and Hibernate documentation
 goes over performance extensively. Both are GREAT projects, but neither is 
CMP.


Yes, but here you are making the assumption that JDBC is efficient,
which it isn't.

JDBC is an abstraction layer itself, as it the SQL (which must generally
be parsed and compiled) that it executes.

If you think about the big picture, you will notice how much extra work
is being done just to make the relational model fit the object model.

O/R mapping layers:

Your code - O/R mapping layer - JDBC - SQL - datastore.

That's quite a lot of repackaging before you finally access the
information in the database.  The above will *never* be as efficient as
this:

Your code - datastore.

But even this could be an improvement:

Your code - CMP layer - datastore.

Additionally, relational databases are usually separate processes, so
JDBC also loses out because of the IPC/RPC and the marshalling and
unmarshalling of data.

Performance would be dramatically improved if the datastore was in the
same process and had a minimal amount of marshalling to do.

--
Peter Beck BEng (hons)  - Managing Director, Electrostrata Ltd.
http://www.electrostrata.com  --+-+--  Experts in e-business and e-commerce



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



winmail.dat

RE: [JBoss-user] Cmp vs hibernate

2003-01-08 Thread Matthew Baird
I disagree with your statement of Let's face it, O/R mappings will never be very 
efficient. 
 
Both OJB (to which I contribute) and Hibernate (which I watch closely) approximate raw 
JDBC performance in most cases, and can exceed it in many others. Go check out the 
performance target in OJB, and Hibernate documentation goes over performance 
extensively. Both are GREAT projects, but neither is CMP.
 
cheers,
Matthew
 
-Original Message- 
From: Pete Beck [mailto:[EMAIL PROTECTED]] 
Sent: Wed 1/8/2003 12:04 PM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: Re: [JBoss-user] Cmp vs hibernate



A common usage for CMP entity beans seems to be for persistent objects
using an O/R mapping.

Although entity beans can generally act that way, that is by no means
all they amount to.

In fact Sun have a more light-weight spec for this purpose (JDO).  I
can't help feeling that hybernate is nearer to JDO than to EJB.

IMHO, CMP beans are more like abstract components (or black boxes if you
like) than persistent objects.  This is why they have all the
interfaces.  They were designed to be accessed over RMI and act more as
service providers than as discrete objects.

An entity bean abstraction can be very complex and span many objects.
The are designed to be scalable so that if they are very complex, they
do not need to reside permanently in memory although give their clients
the illusion that they are.
Of course, these principles were developed when memory was a lot more of
a problem than it is today.

The CMP part is actually an implementation detail and the O/R mapping
even more so. 

Hence performance issues can never be blamed on CMP, but rather on their
implementations. 

Let's face it, O/R mappings will never be very efficient.  For CMP to
realise its full potential there needs to be a new feature rich database
technology developed that is optimised specifically for EJB, and
provides CMP functionality natively.

In fact that sounds like it would be a pretty cool project. :-)

On Wed, 2003-01-08 at 18:24, [EMAIL PROTECTED] wrote:
 We are missing support for SUM and COUNT sql-function as well as
 subqueries in CMP, which hibernate have. This has forced us into using
 pure sql for this part to get it reasonable fast.

 Also you don't need all dataobjects and interfaces in hibernate, so we
 should try it soon, nut it would be nice too see a performance comparison 
with CMP, hibernate, JDO and OJB. We are not satisfied with whe performance of CMP and 
only pure SQL had probably have been faster (although jboss is supposed to have 
cache).
--
Peter Beck BEng (hons)  - Managing Director, Electrostrata Ltd.
http://www.electrostrata.com  --+-+--  Experts in e-business and e-commerce



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



winmail.dat

[JBoss-user] Any plans for a 2.4.10/Tomcat4.1.12EOM?

2002-10-22 Thread Matthew Baird


---
This sf.net emial is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ad.doubleclick.net/clk;4699841;7576301;v?http://www.sun.com/javavote
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] JBoss only using 1 of 8 cpu's

2002-10-11 Thread Matthew Baird
we've had our 4 cpu sparc box use all CPU's when doing MDB stuff.

m

-Original Message-
From: Alwyn Schoeman [mailto:alwyn;smart.com.ph]
Sent: Thursday, October 10, 2002 9:06 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] JBoss only using 1 of 8 cpu's


Hi,

I'm running JBoss 3.0.3 on a Sun Fire 880 with 8 cpu's.  Even though I
have about 450 threads going it uses only 1 cpu and not very well at
that.  I have tried all the JVM options for 1.4.1, but no difference.

Anyone have any ideas?

-- 
Alwyn Schoeman
SMART Money Inc.

The clock on the wall keeps moving, time stands still...
 No matter how the dice may fall, someone else always gets to call the
number...


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] problem with war in JBOSS3.0.3/Tomcat4.1.12

2002-10-01 Thread Matthew Baird

If I stick my .war file in the deploy directory, then startup jboss everything is 
fine. If I stop jboss and restart, I get an exception NoSuchMethodException: No such 
accessible method: addDefaultContext() on object: 
org.apache.catalina.core.StandardHost.

if I delete the tmp/deploy directory, I can restart JBoss/Tomcat perfectly and use the 
web-app.

I am on windows 2000 fwiw.

To reproduce:
1. put the examples.war (ships with some tomcats) in the deploy dir.
2. start Jboss
3. repeat if necessary :)

you should get the addDefaultContext problem about 8% of the time. I can't figure out 
why it doesn't crash all the time. I believe this also occurs with unpacked wars. 
Certainly it's NOT happening every time, but I still think this is probably a pretty 

anyone else seeing this error? I'm dl'ing the jboss code right now and will look into 
it, but at first glance I'm guessing someone is calling the addDefaultContext method 
reflectively and that's why this isn't failing at compile-time.

regards,
Matthew

stack
14:46:18,595 INFO  [EmbeddedCatalinaService41] Creating
14:46:18,605 INFO  [EmbeddedCatalinaService41] Created
14:46:18,605 INFO  [EmbeddedCatalinaService41] Starting
14:46:19,736 ERROR [Digester] End event threw exception
java.lang.NoSuchMethodException: No such accessible method: addDefaultContext() on 
object: org.apache.catalina.core.Stan
dardHost
at 
org.apache.commons.beanutils.MethodUtils.invokeExactMethod(MethodUtils.java:334)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:170)
at org.apache.commons.digester.Digester.endElement(Digester.java:829)
at org.jboss.web.catalina.LoggedXmlMapper.endElement(LoggedXmlMapper.java:65)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1047)
at org.apache.xml.utils.TreeWalker.endNode(TreeWalker.java:447)
at org.apache.xml.utils.TreeWalker.traverse(TreeWalker.java:173)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:325)
at org.jboss.web.catalina.ConfigHandler.applyHostConfig(ConfigHandler.java:132)
at 
org.jboss.web.catalina.EmbeddedCatalinaService41.initCatalina(EmbeddedCatalinaService41.java:348)
at 
org.jboss.web.catalina.EmbeddedCatalinaService41.startService(EmbeddedCatalinaService41.java:249)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:164)
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
at $Proxy5.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:397)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy3.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:249)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:802)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy4.deploy(Unknown Source)
at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:427)
at 
org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:648)
at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:499)
at 
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:261)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:164)
at 

RE: [JBoss-user] problem with war in JBOSS3.0.3/Tomcat4.1.12

2002-10-01 Thread Matthew Baird

ugg. Turned out to be a copy of commons-digester.jar put in jboss server/default/lib 
conflicting with the one in tomcat/server/lib, 4.1 has this jar, while the older 
tomcat didn't.

Strange that it didn't happen on every startup, and the error message wasn't very 
helpful. I should have done a jar-by-jar compare before I deployed.

m

-Original Message-
From: Matthew Baird 
Sent: Tuesday, October 01, 2002 3:45 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] problem with war in JBOSS3.0.3/Tomcat4.1.12


If I stick my .war file in the deploy directory, then startup jboss everything is 
fine. If I stop jboss and restart, I get an exception NoSuchMethodException: No such 
accessible method: addDefaultContext() on object: 
org.apache.catalina.core.StandardHost.

if I delete the tmp/deploy directory, I can restart JBoss/Tomcat perfectly and use the 
web-app.

I am on windows 2000 fwiw.

To reproduce:
1. put the examples.war (ships with some tomcats) in the deploy dir.
2. start Jboss
3. repeat if necessary :)

you should get the addDefaultContext problem about 8% of the time. I can't figure out 
why it doesn't crash all the time. I believe this also occurs with unpacked wars. 
Certainly it's NOT happening every time, but I still think this is probably a pretty 

anyone else seeing this error? I'm dl'ing the jboss code right now and will look into 
it, but at first glance I'm guessing someone is calling the addDefaultContext method 
reflectively and that's why this isn't failing at compile-time.

regards,
Matthew

stack
14:46:18,595 INFO  [EmbeddedCatalinaService41] Creating
14:46:18,605 INFO  [EmbeddedCatalinaService41] Created
14:46:18,605 INFO  [EmbeddedCatalinaService41] Starting
14:46:19,736 ERROR [Digester] End event threw exception
java.lang.NoSuchMethodException: No such accessible method: addDefaultContext() on 
object: org.apache.catalina.core.Stan
dardHost
at 
org.apache.commons.beanutils.MethodUtils.invokeExactMethod(MethodUtils.java:334)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:170)
at org.apache.commons.digester.Digester.endElement(Digester.java:829)
at org.jboss.web.catalina.LoggedXmlMapper.endElement(LoggedXmlMapper.java:65)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1047)
at org.apache.xml.utils.TreeWalker.endNode(TreeWalker.java:447)
at org.apache.xml.utils.TreeWalker.traverse(TreeWalker.java:173)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:325)
at org.jboss.web.catalina.ConfigHandler.applyHostConfig(ConfigHandler.java:132)
at 
org.jboss.web.catalina.EmbeddedCatalinaService41.initCatalina(EmbeddedCatalinaService41.java:348)
at 
org.jboss.web.catalina.EmbeddedCatalinaService41.startService(EmbeddedCatalinaService41.java:249)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:164)
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
at $Proxy5.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:397)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy3.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:249)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:802)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy4.deploy(Unknown Source

RE: [JBoss-user] bundled tomcat version of 3.0.2

2002-09-11 Thread Matthew Baird

no not speaking for jboss group at all, just saying the questions been brought up and 
hte only response has been to build it yourself. I know JBoss group favors the 
jboss/jetty over jboss/tomcat bundling.

m

-Original Message-
From: Emerson Cargnin - SICREDI Serviços
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 2:39 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] bundled tomcat version of 3.0.2




Matthew Baird wrote:
 this has been asked a bunch of times. I think the answer is no one is working on it 
(support dropped, I don't know). Instructions exist to do the integration yourself 
which I'm looking through. From what I can tell it's not trivial, but do-able.
 

you mean there won't be any other future versions of jboss-tomcat bundle??

my worry is that we use a multi-developer machine with n instances of 
jboss. setting bindaddress tag of jboss and tomcat xml's i can redirect 
the ip to a virtual ip, allowing concurrent instances of jboss. the 
problem is that i couldn't find a way to configure jetty to bind to 
another address. discontinuing jboss-tomcat woul'd be very bad... if it 
will really happen (i was wainting for jboss-tomcat 3.0.2 version) 
pelase someone help me to find a way to redirect jetty to another ip 
address.

Thanks in advance

Emerson

 m
 
 -Original Message-
 From: Anthony Geoghegan [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 11, 2002 8:35 AM
 To: [EMAIL PROTECTED]
 Subject: [JBoss-user] bundled tomcat version of 3.0.2
 
 
 There doesn't seem to be a Tomcat bundled version of JBoss 3.0.2 available
 on the sourceforge file download list yet.
 Is there any issue with deploying it?
 
 Best Regards,
 Anthony Geoghegan.
 J2EE Developer
 CPS Ireland Ltd.
 
 
 
 ---
 In remembrance
 www.osdn.com/911/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 ---
 In remembrance
 www.osdn.com/911/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 


-- 
Emerson Cargnin
SICREDI - Tel : 3358-4860



---
In remembrance
www.osdn.com/911/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
In remembrance
www.osdn.com/911/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] bundled tomcat version of 3.0.2

2002-09-11 Thread Matthew Baird

if I finish before he has a chance to look at it, should I post it to someone? Thanks 
for this insight, btw.

-Original Message-
From: David Jencks [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 3:20 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] bundled tomcat version of 3.0.2


We plan to continue to support jboss-tomcat, it's just that we all only
have so much time and Scott in particular who has done the previous
integrations has been extremely busy lately.

david jencks

On 2002.09.11 17:56:42 -0400 Matthew Baird wrote:
 no not speaking for jboss group at all, just saying the questions been
 brought up and hte only response has been to build it yourself. I know
 JBoss group favors the jboss/jetty over jboss/tomcat bundling.
 
 m
 
 -Original Message-
 From: Emerson Cargnin - SICREDI Serviços
 [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 11, 2002 2:39 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] bundled tomcat version of 3.0.2
 
 
 
 
 Matthew Baird wrote:
  this has been asked a bunch of times. I think the answer is no one is
 working on it (support dropped, I don't know). Instructions exist to do
 the integration yourself which I'm looking through. From what I can tell
 it's not trivial, but do-able.
  
 
 you mean there won't be any other future versions of jboss-tomcat
 bundle??
 
 my worry is that we use a multi-developer machine with n instances of 
 jboss. setting bindaddress tag of jboss and tomcat xml's i can redirect 
 the ip to a virtual ip, allowing concurrent instances of jboss. the 
 problem is that i couldn't find a way to configure jetty to bind to 
 another address. discontinuing jboss-tomcat woul'd be very bad... if it 
 will really happen (i was wainting for jboss-tomcat 3.0.2 version) 
 pelase someone help me to find a way to redirect jetty to another ip 
 address.
 
 Thanks in advance
 
 Emerson
 
  m
  
  -Original Message-
  From: Anthony Geoghegan [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, September 11, 2002 8:35 AM
  To: [EMAIL PROTECTED]
  Subject: [JBoss-user] bundled tomcat version of 3.0.2
  
  
  There doesn't seem to be a Tomcat bundled version of JBoss 3.0.2
 available
  on the sourceforge file download list yet.
  Is there any issue with deploying it?
  
  Best Regards,
  Anthony Geoghegan.
  J2EE Developer
  CPS Ireland Ltd.
  
  
  
  ---
  In remembrance
  www.osdn.com/911/
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
  
  
  ---
  In remembrance
  www.osdn.com/911/
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
  
 
 
 -- 
 Emerson Cargnin
 SICREDI - Tel : 3358-4860
 
 
 
 ---
 In remembrance
 www.osdn.com/911/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 ---
 In remembrance
 www.osdn.com/911/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 


---
In remembrance
www.osdn.com/911/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
In remembrance
www.osdn.com/911/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Integrate JBOSS with Tomcat 4.1.0 - single VM?

2002-09-10 Thread Matthew Baird

thanks sacha, I did try it, but I ran into some problems and figured 4.1 line of 
Tomcat must have changed. I'll put some more time into it.

-Original Message-
From: Sacha Labourey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 10, 2002 9:01 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Integrate JBOSS with Tomcat 4.1.0 - single VM?


Hello,

 If the process for producing this
 particular configuration for JBoss were either documented, or at least
 more explicitly stated, people might choose to prepare their own
 distribution or to tweak an existing JBoss build to include tomcat.

I think this is indeed explicitely stated in the JBoss 3.0 administration
guide.

Cheers,


Sacha



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Integrate JBOSS with Tomcat 4.1.0 - single VM?

2002-09-09 Thread Matthew Baird



Are 
there any docs available as a starting point to this integration, or is it all a 
matter of reading the source for prior integrations? I'm interested in the 
performance of this combinationn as well, but I know the refactoring of tomcat 
changed some api's that maybe jboss relies on (?)

thanks,
Matthew

  -Original Message-From: Thomas T. Veldhouse 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, September 09, 2002 4:56 
  AMTo: [EMAIL PROTECTED]Subject: 
  [JBoss-user] Integrate JBOSS with Tomcat 4.1.0 - single 
  VM?
  I am looking to integrated Tomcat 4.1.0 with 
  JBOSS 3.0.2 using a single VM (like is done with Jetty for 3.0.2). I am 
  trying to test many different configurations and this one seem 
  promising.
  
  Any help would be greatly 
  appreciated.
  
  Thanks in advance,
  
  Tom 
Veldhouse


RE: [JBoss-user] Connection -- Not a Castor problem

2002-09-06 Thread Matthew Baird

David is right. I had the same problem when I was embedding OJB inside JBoss via an 
MBean (same strategy as Castor). I had the same problems, found the offending source 
and fixed it.

Keep looking in Castor, that's where the problem is.
 
Cheers,
Matthew

-Original Message- 
From: Arijit Ghosh [mailto:[EMAIL PROTECTED]] 
Sent: Fri 9/6/2002 2:48 AM 
To: JBoss User 
Cc: 
Subject: [JBoss-user] Connection -- Not a Castor problem



Actually, David, I did put in log statements both before and after
connection.close() and both the statements are being printed. So
connection.close() is definitely being called. So which means that
Castor correctly calls the close statement. In fact, if I make a second
database call without doing getDatabase(), then Jboss throws Database
closed error. In such a case, connection should be back in the pool but
is NOT. So maybe I need to set some other configurations in  Jboss.

Have been stuck with this problem for quite sometime. It doesn't seem to
be a castor problem.

Can you suggest something ?

Regards,
  Arijit

---
I've tried to indicate this in most of my previous messages on this
subject.

Castor needs to close the connection handle in order for jboss to put
the
connection back in the pool.  Please look at the Castor code and find
out
if this is taking place.  I suggest you find every place
connection.close()
is called and put noisy log statements before and after them.  Then run
your app and see whether any of them are getting called.

 I did not write either the Castor code nor the Castor plugin code and
don't know how it works.

david jencks

On 2002.09.06 00:38:07 -0400 Arijit Ghosh wrote:
 Hi,

 I am doing something similar to the code that you have mentioned. I am

 using Jboss 3.0 along with Castor. I have a simple stateless sesison
 bean.

 I am binding a dataobject using jdo-service.xml.

 In my code, I am doing a lookup for the dataobject, dobj.

 Then I am getting the database using
 db = dobj.getDatabase();

 I assume that if it is Container Managed then I do NOT need to perform

 db.begin() Neither do I have to perforn ut.begin() as the transaction
is
 being handled by Jboss.

 After updating and retrieving data from the database, I perform
 db.close() within the FINALLY block. I am sure that db.close() is
always
 called at the end of the method.

 But the connections never go back to the connection pool managed by
 JBOSS. As a result, Jboss is hitting the MAX connection limit and is
 throwing No Managed Connection problem.

 What am I doing wrong ?

 Castor internally performs, db.commit() and transfers all data to the
 database. I find that the database actually gets updated.

 According to my understanding, database is supposed to get updated
after
 the transaction (within which multiple database connections can be
 opened and closed) gets over. Since the database gets updated, so the
 transaction is supposed to be over.

 However, when I check the database connections, I find all the
 connections existing in an INACTIVE status and are NOT sent back to
the
 connection pool for reuse.

 How do I tell Jboss to reuse the connection pools ??

 Please help ?


 Regards,
   Arijit



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



winmail.dat

[JBoss-user] Is there a Tomcat4.1/Jboss3.0.2 release planned? EOM

2002-09-06 Thread Matthew Baird



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Is the server library URL in the classpath?

2002-08-14 Thread Matthew Baird

Hey Ryan,

Maybe I don't understand what you are trying to do, but I didn't have to do any of 
this to get OJB up inside JBoss 3.

Lemme know what you are trying to do that is different than what I'm doing.

m

-Original Message-
From: Ryan Marsh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 2:16 PM
To: [EMAIL PROTECTED]
Cc: Stuart Halloway
Subject: RE: [JBoss-user] Is the server library URL in the classpath?


OJB requires it. I know, yuck. This is being solved but until then I
want my stuff to work. If I'm understanding your test properly, the only
directory that is in the root of the classpath is jboss/bin?

-ryan

On Wed, 2002-08-14 at 15:37, Stuart Halloway wrote:
 Hi Ryan,
 
 Tests and output to answer your question below. Cheers!
 
 Stuart Halloway
 DevelopMentor
 http://staff.develop.com/halloway
 
 PS. Why do you need to be at the root of the classpath? That seems like an
 odd (dangerous) requirement.
 
 
   public void testIterateClassLoaders() {
 ClassLoader cl = getClass().getClassLoader();
 while (cl != null) {
   listLoaderURLS(cl);
   cl = cl.getParent();
 }
   }
   private void listLoaderURLS(ClassLoader cl) {
 System.out.println(Loader  + cl);
 if (cl instanceof URLClassLoader)
 {
   URLClassLoader loader = (URLClassLoader) cl;
   URL[] urls = loader.getURLs();
   for (int n=0; nurls.length; n++) {
 System.out.println(\t + urls[n]);
   }
 }
   }
 
 
 Loader org.jboss.mx.loading.UnifiedClassLoader@40832
 5{
 url=file:/E:/java/jboss/jboss-3.0.0/server/default/tmp/deploy/server/default
 /
 deploy/dm-asset-mgr.jar/67.dm-asset-mgr.jar }
 
 Loader java.net.URLClassLoader@fc4bec
   file:/E:/java/jboss/jboss-3.0.0/lib/crimson.jar
   file:/E:/java/jboss/jboss-3.0.0/lib/jboss-jmx.jar
   file:/E:/java/jboss/jboss-3.0.0/lib/concurrent.jar
   file:/E:/java/jboss/jboss-3.0.0/lib/jaxp.jar
   file:/E:/java/jboss/jboss-3.0.0/lib/log4j-boot.jar
   file:/E:/java/jboss/jboss-3.0.0/lib/jboss-common.jar
   file:/E:/java/jboss/jboss-3.0.0/lib/jboss-system.jar
 
 Loader sun.misc.Launcher$AppClassLoader@bac748
   file:/E:/java/jboss/jboss-3.0.0/bin/
   file:/E:/java/jdk1.4.0/lib/tools.jar
   file:/E:/java/jboss/jboss-3.0.0/bin/run.jar
 
 Loader sun.misc.Launcher$ExtClassLoader@7172ea
   file:/E:/java/jdk1.4.0/jre/lib/ext/dnsns.jar
   file:/E:/java/jdk1.4.0/jre/lib/ext/ldapsec.jar
   file:/E:/java/jdk1.4.0/jre/lib/ext/localedata.jar
   file:/E:/java/jdk1.4.0/jre/lib/ext/sunjce_provider.jar
 
  I need some files to bee in the *root* of the classpath. I'd prefer to
  deploy these files in server/default/conf or server/defaul/lib. Are
  either of these paths added to the classpath?
 
  -ryan
 
 
 
 ---
 This sf.net email is sponsored by: Dice - The leading online job board
 for high-tech professionals. Search and apply for tech jobs today!
 http://seeker.dice.com/seeker.epl?rel_code=31
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
Humans are the unfortunate result of a local maximum in the
fitness landscape.

www.ryanmarsh.com




---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code1
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] No resource manager found for OJB

2002-08-13 Thread Matthew Baird

the jca connector isn't current. The current connector is being replaced in favor of 
new OTM stuff.

sorry for the delay. Use MBEAN to integrate. I use OJB in jboss3.0

Regards,
Matthew

-Original Message-
From: Ryan Marsh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 2:24 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] No resource manager found for OJB


I've got a little ojb-service.xml file for my OJB factory. In the
service xml file I set the attribute jndiName to be OJB. Now when I
deploy session beans, I get the following:

16:06:33,728 WARN  [StatelessSessionContainer] No resource manager found
for OJB

How exactly to I properly specify a reference to this component from a
Session bean. 

Apparently sometimes some things are given ENC and sometimes things
aren't. Some things in the JNDI tree are accessible outside of the vm,
some aren't (although everyhing here is in-vm). I find this all very
confusing. 

Help!
-ryan
-- 
Humans are the unfortunate result of a local maximum in the
fitness landscape.

www.ryanmarsh.com




---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code1
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] jboss-catalina 4.1 line

2002-07-09 Thread Matthew Baird

There was a major performance increase in the 4.1 line of Tomcat, and I wondered if 
the JBoss gang was going to create a jboss 3.1/tomcat4.1 package any time now. That 
would be one killer stack.

regards,
Matthew


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] forums dead again? EOM

2002-07-05 Thread Matthew Baird




---
This sf.net email is sponsored by:ThinkGeek
Bringing you mounds of caffeinated joy.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Bug in JBoss JAAS implementation with XMLLoginConfig

2002-06-10 Thread Matthew Baird

Summary:

every login module in the XMLLoginConfig will be required. sufficient, requisite and 
optional flags will be ignored.

In sun JAAS LoginModuleControlFlag class, the toString method returns 
LoginModuleControlFlag: then the flag so

LoginModuleControlFlag: required
LoginModuleControlFlag: sufficient
LoginModuleControlFlag: requisite
LoginModuleControlFlag: optional

public static class LoginModuleControlFlag
{

public String toString()
{
return (LoginModuleControlFlag:  + controlFlag;
}

In JBoss XMLLoginConfig class parseModule the code will check the toString for 
equality on just the controlFlag portion:

private void parseModule(Element module, ArrayList entries) throws Exception
   {
  LoginModuleControlFlag controlFlag = LoginModuleControlFlag.REQUIRED;
  String className = module.getAttribute(code);
  String flag = module.getAttribute(flag);
  if( flag != null )
  {
 if( flag.equals(LoginModuleControlFlag.REQUIRED.toString()) )
controlFlag = LoginModuleControlFlag.REQUIRED;
 else if( flag.equals(LoginModuleControlFlag.REQUISITE.toString()) )
controlFlag = LoginModuleControlFlag.REQUISITE;
 else if( flag.equals(LoginModuleControlFlag.SUFFICIENT.toString()) )
controlFlag = LoginModuleControlFlag.SUFFICIENT;
 else if( flag.equals(LoginModuleControlFlag.OPTIONAL.toString()) )
controlFlag = LoginModuleControlFlag.OPTIONAL;
  }
  NodeList opts = module.getElementsByTagName(module-option);
  HashMap options = new HashMap();
  for(int n = 0; n  opts.getLength(); n ++)
  {
 Element opt = (Element) opts.item(n);
 String name = opt.getAttribute(name);
 String value = getContent(opt, );
 options.put(name, value);
  }
  AppConfigurationEntry entry = new AppConfigurationEntry(className, controlFlag, 
options);
  entries.add(entry);
   }

Since jboss will be comparing required to LoginModuleControlFlag: required and so 
on, none of the checks will evaluate to true, and thus parseModule will use the 
default (LoginModuleControlFlag.REQUIRED).

Solution
either make the comparison a contains(flag) type of call, or build the flag string 
the same way SUN does in their jaas package.

regards,
Matthew


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Updating CastorJDO plugin for 2.4.4

2002-01-08 Thread Matthew Baird

any plans on using JCA to connect Castor JDO into JBoss?

-Original Message-
From: David Jencks [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 08, 2002 4:05 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Updating CastorJDO plugin for 2.4.4


I think cvsroot/jboss/contrib/castorjdo never got tagged with Branch_2_4_4
when Jason did the reorganization of the build system.  I suspect it should
be, there are other changes likely to happen in
cvsroot/jboss/contrib/varia.  Jason is probably the only one to know for
sure...

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] JBoss 2.4 and Castor 0.9.3 - ] javax.naming.NameNotFoundException: myJDOimpl not bound

2001-09-13 Thread Matthew Baird

check to make sure an older castor jar file is not in lib/ext

m

-Original Message-
From: Paul McLachlan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 12:21 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] JBoss 2.4 and Castor 0.9.3 - ]
javax.naming.NameNotFoundException: myJDOimpl not bound


Hi,

I was successful in getting a project to run inside JBoss 2.2/Castor
0.9.3 however I have had to move to JBoss 2.4 for another reason and now
my castor development does not work.
I have placed the follwoing jars in $JBOSS/lib/ext; castor0.9.3.jar,
jboss-castorjdo.jar, xerces.jar (and also ejxjboss.jar?? It had a
reference to castor in one of it's classes).

I have based my project on the Rooms example hence I am using Objects
such as CastorHelper.

When JBoss starts I get the following reference to  Castor but none to
say my jdo object castorworkorder is bound?

[CastorJDOImpl] Initializing
[CastorJDOImpl] Initialized

I must have missed out on some piece of configuration because I am
getting a NameNotFoundException when in CastorHelper trying to lookup my
WorkOrderJDO object as follows:

public CastorHelper() {
  try{
InitialContext ic = new InitialContext();
_jdo = (DataObjects)
ic.lookup(java:comp/env/jdo/WorkOrderJDO);  EXCEPTION GENERATED
HERE
} catch(Exception e){
  System.out.println(e.getMessage());
  e.printStackTrace();
  }

Stack trace:

[Default] castorworkorder not bound
[Default] javax.naming.NameNotFoundException: castorworkorder not bound
[Default]   at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRem
oteCall.java:245)

The jboss.jmcl definition of my MBean is as follows:

  mbean code=org.jboss.jdo.castor.CastorJDOImpl
name=DefaultDomain:service=JDO,name=castorworkorder
attribute
name=Configurationfile:../conf/default/database.xml/attribute
attribute name=JndiNamecastorworkorder/attribute
attribute name=LockTimeout1/attribute
attribute name=LoggingEnabledtrue/attribute
attribute name=CommonClassPathfalse/attribute
  /mbean


The jboss.xml file is as follows:

?xml version=1.0 encoding=Cp1252?

jboss
 securefalse/secure
 resource-managers

   resource-manager
res-class=org.jboss.ejb.deployment.CastorJDOResource
res-nameCastorWorkOrderJDO/res-name
res-jndi-namecastorworkorder/res-jndi-name
   /resource-manager

 /resource-managers

 enterprise-beans

  session
   ejb-nameWorkOrderService/ejb-name
   jndi-nameWorkOrderService/jndi-name
   resource-ref
 res-ref-namejdo/WorkOrderJDO/res-ref-name
 resource-nameCastorWorkOrderJDO/resource-name
   /resource-ref
  /session

 /enterprise-beans
/jboss

The ejb-jar.xml is as follows:

?xml version=1.0 encoding=Cp1252?

ejb-jar

descriptionEJBs for WorkOrderService/description

enterprise-beans

   session
   ejb-nameWorkOrderService/ejb-name
   homemflim.ejb.WorkOrderServiceHome/home
   remotemflim.ejb.WorkOrderService/remote
   ejb-classmflim.ejb.WorkOrderServiceBean/ejb-class
   session-typeStateless/session-type
   transaction-typeContainer/transaction-type
   resource-ref
 descriptionCastor DataObjects factory/description
 res-ref-namejdo/WorkOrderJDO/res-ref-name
 res-typeorg.exolab.castor.jdo.DataObjects/res-type
 res-authContainer/res-auth
   /resource-ref
   /session

 /enterprise-beans


 assembly-descriptor
   container-transaction
   method
  ejb-nameWorkOrderService/ejb-name
  method-name*/method-name
   /method
   trans-attributeRequired/trans-attribute
   /container-transaction
 /assembly-descriptor

/ejb-jar

Thanks a lot,
Paul.

___
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] JBOSS stops working

2001-09-13 Thread Matthew Baird



we've 
also seen this error, fwiw. No solution here other than to comment out refs to 
hypersonic

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of 
  A.L.Sent: Wednesday, September 05, 2001 8:53 AMTo: 
  [EMAIL PROTECTED]Subject: [JBoss-user] JBOSS stops 
  working
  I have been running JBOSS for a month now, and all of a sudden it 
  stops working. This problem happened before, so I reinstalled it. 
  Any help would be much appreciated. When trying to start the 
  tomact-Jboss program the command line shows the following and then stops: 
  [Hypersonic] Server.run/init: java.sql.SQLException: Wrong database file 
  version 
  [Hypersonic] java.sql.SQLException: Wrong database file 
  version[Hypersonic] at 
  org.hsql.Trace.getError(Trace.java:124)[Hypersonic] at 
  org.hsql.Trace.getError(Trace.java:115)[Hypersonic] at 
  org.hsql.Trace.check(Trace.java:149)[Hypersonic] at 
  org.hsql.Trace.check(Trace.java:145)[Hypersonic] at 
  org.hsql.Log.open(Log.java:100)[Hypersonic] at 
  org.hsql.Database.init(Database.java:47)[Hypersonic] 
  at org.hsql.Server.run(Server.java:69)[InstantDB] XA Connection pool 
  InstantDB bound to java:/InstantDB[Hypersonic] at 
  org.hsql.Server.main(Server.java:33)[Hypersonic] at 
  org.jboss.jdbc.HypersonicDatabase$1.run(HypersonicDatabase.ja


[JBoss-user] JAAS login module classpath

2001-06-19 Thread Matthew Baird

Hi,

Simple Question (I hope!)

If I write a JAAS login module that needs to use my application classes
(because it looks up an EJB to do authentication against) how do I make
those application classes available to the login module?

Scott Stark - have you tried to do this before? As a simple example, write
a session bean that does authentication and try to get it to work with the
JAAS loginmodule.

Thanks,
Matthew


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Custom LoginModule

2001-06-07 Thread Matthew Baird

Hi All,

I wrote a custom loginmodule to use our security api's to log people into
our application. I used the UserLoginModule included with jboss as an
example. The login module I wrote looks up a session EJB in jboss and uses
that bean to authenticate the user. Everything looks good, and I've tested
the session bean outside of the login module. However when I try to use the
custom login module i get classnotfound exceptions, and when i try and make
those classes available by putting them in the classpath i get other errors.
I've tried this code with jboss 2.2.1 and jboss 2.2.2 with integrated
Tomcat, and without integrated Tomcat.

Here's the stack:

java.lang.NoClassDefFoundError:
com/againtech/framework/jndi/JNDIServiceException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:195)
at
javax.security.auth.login.LoginContext.invoke(LoginContext.java:558)
at
javax.security.auth.login.LoginContext.access$000(LoginContext.java:125)
at
javax.security.auth.login.LoginContext$3.run(LoginContext.java:531)
at java.security.AccessController.doPrivileged(Native Method)
at
javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:528)
at
javax.security.auth.login.LoginContext.login(LoginContext.java:449)
at
com.againtech.ce.security.jboss.JBossClientSecurityImpl.login(JBossClientSec
urityImpl.java:69)

This exception is being thrown in Tomcat, so I figure the security stuff has
a different classloader and the forName call can't find the classes I've
exposed to Tomcat. These classes ARE available in the web-inf/classes
directory of the web application they are being called from.

Does anyone know where the classpath the JAAS security stuff is using lives?
If not, does anyone know how to get this to work? Otherwise, can anyone give
me pointers on debugging these classloader type problems?

regards,
Matthew


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Unable to find LoginModule class Exception

2001-05-17 Thread Matthew Baird

you have to add it to your classpath explicitly. I set it in the run.bat in
jboss/bin.

However, I'm still having no luck finding an example of the following:

1. User logs into web application via Tomcat or other servlet engine.
2. Subsequent calls from webtier (servlet engine) to the application server
(JBOSS) pass whatever they need so that I can get the principal from the
context within my beans.

It seems like this is something a whole lot of people would need to do.
Currently I am using the sample JAAS ejb's provided by scott stark, and the
SessionClient will authenticate against jboss and call the beans, but the
following code:
%
  String args[] = {scott,echoman};
  SessionClient.main(args);
%

in a JSP will authenticate but then die on the home.create call:
[JAASSecurity] User 'scott' authenticated.
[EmbeddedTomcat] Found StatelessSessionHome
[StatelessSession] Authentication exception, principal=null
[EmbeddedTomcat] java.rmi.RemoteException: checkSecurityAssociation; nested
exception is:
java.lang.SecurityException: Authentication exception
[EmbeddedTomcat] java.lang.SecurityException: Authentication exception
[EmbeddedTomcat]at
org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityI
nterceptor.java:2
12)
[EmbeddedTomcat]at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav
a:144)
[EmbeddedTomcat]at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106)
[EmbeddedTomcat]at
org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionContainer
.java:253)
[EmbeddedTomcat]at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContai
nerInvoker.java:4
36)
[EmbeddedTomcat]at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:212)
[EmbeddedTomcat]at $Proxy52.create(Unknown Source)
[EmbeddedTomcat]at
com.againtech.ce.security.SessionClient.main(SessionClient.java:75)
[EmbeddedTomcat]at
jsp._0002fjsp_0002ftestLoginContext_0002ejsptestLoginContext_jsp_2._jspServi
ce(_0002fjsp_0002
ftestLoginContext_0002ejsptestLoginContext_jsp_2.java:88)
[EmbeddedTomcat]at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
[EmbeddedTomcat]at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[EmbeddedTomcat]at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
[EmbeddedTomcat]at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
[EmbeddedTomcat]at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
[EmbeddedTomcat]at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[EmbeddedTomcat]at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
[EmbeddedTomcat]at
org.apache.tomcat.core.Handler.service(Handler.java:286)
[EmbeddedTomcat]at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
[EmbeddedTomcat]at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
[EmbeddedTomcat]at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
[EmbeddedTomcat]at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.
java:210)
[EmbeddedTomcat]at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
[EmbeddedTomcat]at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
[EmbeddedTomcat]at java.lang.Thread.run(Thread.java:484)

Has anyone implemented JAAS security in a servletengine as client mode?

thanks,
Matthew

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Wei Ma
Sent: Thursday, May 17, 2001 12:38 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Unable to find LoginModule class Exception


I have the similar problem, Does any one know the solution?
Thanks
Wei

Matthew Baird wrote:

 Hello,

 I've implemented my own LoginModule (authenticate via Castor) and I'm not
 sure where to make this class available to jboss so it can find it.
 Currently I'm getting the following exception:

 [StatelessSession] javax.security.auth.login.LoginException: unable to
find
 LoginModule class: com.againtech.ce.security.CastorLoginModule
 [StatelessSession]  at
 javax.security.auth.login.LoginContext.invoke(LoginContext.java:631)
 [StatelessSession]  at
 javax.security.auth.login.LoginContext.access$000(LoginContext.java:125)
 [StatelessSession]  at
 javax.security.auth.login.LoginContext$3.run(LoginContext.java:531)
 [StatelessSession]  at
 java.security.AccessController.doPrivileged(Native Method)
 [StatelessSession]  at
 javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:528)
 [StatelessSession]  at
 javax.security.auth.login.LoginContext.login(LoginContext.java:449)
 {etc}

 My auth.conf in /conf

[JBoss-user] Unable to find LoginModule class Exception

2001-05-16 Thread Matthew Baird

Hello,

I've implemented my own LoginModule (authenticate via Castor) and I'm not
sure where to make this class available to jboss so it can find it.
Currently I'm getting the following exception:

[StatelessSession] javax.security.auth.login.LoginException: unable to find
LoginModule class: com.againtech.ce.security.CastorLoginModule
[StatelessSession]  at
javax.security.auth.login.LoginContext.invoke(LoginContext.java:631)
[StatelessSession]  at
javax.security.auth.login.LoginContext.access$000(LoginContext.java:125)
[StatelessSession]  at
javax.security.auth.login.LoginContext$3.run(LoginContext.java:531)
[StatelessSession]  at
java.security.AccessController.doPrivileged(Native Method)
[StatelessSession]  at
javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:528)
[StatelessSession]  at
javax.security.auth.login.LoginContext.login(LoginContext.java:449)
{etc}

My auth.conf in /conf/default looks like this:
// Put login modules providing authentication and realm mappings
// for specific beans here, for example:
// mybean {
//   org.jboss.security.plugins.DatabaseServerLoginModule required
db=jdbc/DbJndiName table=UserTable name=UserNameColumn
password=UserPswColumn;
//   com.mycompany.MyRealmMappingLoginModule required param1=value1
param2=value2;
// };

simple {
// Very simple login module:
// any user name is accepted.
// password should either coincide with user name or be null,
// all users have role guest,
// users with non-null password also have role user
org.jboss.security.plugins.samples.SimpleServerLoginModule required;
};

// The default server login module
other
{
//   The castor login module.
com.againtech.ce.security.CastorLoginModule required;
};


i've jar'd up the class (com.againtech.ce.security.CastorLoginModule) and
put it in lib and in lib/ext

Is there a setting in .jcml or .conf files I have to tweak to let jboss no
where this class is?



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss and Rules Engine

2001-05-10 Thread Matthew Baird

I read the following on jboss news:

Rule Engine: David Jencks posts a Rule Engine integration prototype. 

Does anyone know where to look for this prototype? Is it even available?

regards,
Matthew

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user