Re: [JBoss-user] Transfer-Encoding: chunked ???

2004-02-03 Thread Guy Rouillier
On Thu, 15 Jan 2004 11:03:19 -
Matthew Oatham [EMAIL PROTECTED] wrote:

 Hi,
 
 Does anyone know what the following means:
 
  0 HTTP/1.1 200 OK Transfer-Encoding: chunked Date: Thu, 15 Jan 2004
 10:56:44 GMT Content-Type: text/html;ISO-8859-1 Server: Apache
 Tomcat/4.0.5(HTTP/1.1 Connector) Set-Cookie:
 JSESSIONID=E3B8B60D1C67C6FE8A0C3E55F3AB032D;Path=/ 177c
 
 I get this when my jsp pages are served from Jboss to Mozilla - I
 don't get it when they are served to an IE web browser!!!

Matthew, don't know if you ever resolved it, but I had the same problem
and fixed it by upgrading to Tomcat 5 (still using mod_jk).

 
 Cheers,
 
 Matt
 
 
 ---
 This SF.net email is sponsored by: Perforce Software.
 Perforce is the Fast Software Configuration Management System offering
 advanced branching capabilities and atomic changes on 50+ platforms.
 Free Eval! http://www.perforce.com/perforce/loadprog.html
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user


-- 
Guy Rouillier



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] RMI OVER HTTPS

2003-12-09 Thread Guy Rouillier
Jeremy Rempel wrote:
Hi,

I've asked this before a few months ago but no one knew. I'm gonna ask
again because possibly someone will know. I cannot find it in the 
pay-for-docs.

Which ports does jboss RMI use? Can I force it to use certain ports?

I've tried using netstat to monitor ports but JBOSS keeps using random
ports. Even when I open all the random ports I still cannot get it to
work through the firewall.
I've opened 1099, 8083, 8443, 8080, .

I'm using JBOSS 3.2.1. I cannot upgrade to anything else at the moment.

Thanks!
RMI negotiates ports as necessary, which is why it appears as if it is 
using random ports.  This is an RMI thing, not an EJB or JBoss thing. 
There have been several discussions over the past year on using JBoss in 
a firewalled environment.  Basically, you need to switch to the http 
invoker.  Search the archives for firewall.  If you want to stick with 
RMI, then you'll need to write your own socket factory.  I did that 
years ago in a pure RMI environment, not an EJB environment, but I would 
think the process would be similar.  I know the various config files 
have entries identifying socket factories, but I haven't pursued it. 
Good luck.

--
Guy Rouillier


---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Installing as a windows service

2003-10-15 Thread Guy Rouillier
NTService in the contrib module works fine, and is configurable via a 
properties file.

Brian McSweeney wrote:
Hi all,

 

I know that this has come up before. And I know that its on the forums 
to use Alexander soft to install windows as a service. However Im 
getting problems running jboss as a service if its other than the 
default service.

 

Could anyone tell me if there is any other way to install jboss as a 
windows service, or give me their experience with it.

 

Thanks very much,

Brian

--
Guy Rouillier


---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Multiple JBoss Server in JBoss-v3.2.1

2003-10-14 Thread Guy Rouillier
sun zheng wrote:
Hi all,

I use JBoss-v3.2.1. Besides JBOSS_HOME/server/default, I create 
additional folder and expect to create the second JBoss instance.. 
JBOSS_HOME/server/test01.. and hopefully in the future I could create 
more and more JBoss instance for testing demand. for the 2nd instance, I 
already configured all ports number and log file location of 
conf/jboss-service.xml, conf/log4j.xml and 
deploy/jbossweb-tomcat.sar/Meta-inf/jboss-service.xml. However i can not 
startup it at all.. in the forum i saw something of binding service xml 
which i can not find out from my jboss.. but i found it in 
JBoss-v3.0.5.. weird...
What happens when you try to start up the second instance?  You must be 
getting some errors reported.  Those error messages will help you figure 
out why the second instance is not coming up cleanly.  The typical 
reason for this is ports already in use.

My question is, may I install multiple JBoss server instance in 
JBoss-v3.2.1 ? If yes, what should I do.. which file should I configure 
or create.. and where should I put the file.. otherwise, which version 
of JBoss could support the multiple instance well ? I mean the version 
should be newer than JBoss-v3.2.1.
You are on the right path, create additional server directories.  How 
are you starting up the 2nd instance?  Are you specifying that the 2nd 
instance use a different server using something like run -c test01?

with best wishes

Zheng Sun

_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus



---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


--
Guy Rouillier


---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Java Preferences

2003-10-08 Thread Guy Rouillier
Brian Wallis wrote:
I need to store and retrieve some application preference data, both on a per 
logged in user (web interface) and system basis. The 
java.util.prefs.Preferences interface seems to provide what I need, but not 
quite. What I need is a jboss version that 
- Stores the preferences within the jboss server directory tree (a prefs
  directory next to log, deploy, conf, ...)
- Uses the callers security context to get the current user name (principal) 
  rather than the property user.name as java.util.prefs.FileSystemPreferences
  does.

Is there anything like this for use in jboss or are other suggestions for easy 
storage/retrival of preference values?
Have you looked at JConfig?  You can use that to serialize arbitrary 
configuration values to any datastore you like - XML file, database, etc.

thanks, brian...



---
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


--
Guy Rouillier


---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] 3.2.1 classloading questions

2003-09-30 Thread Guy Rouillier
Scott, I managed to put together a sample demonstrating this issue.  See 
bug 815493.

Guy Rouillier wrote:

I'll try to work on a small sample this week.  Stack trace below.

Scott M Stark wrote:

Show the full stack trace into the JBoss codebase.

2003-09-29 13:04:29,514 INFO  [org.jboss.deployment.MainDeployer] 
Starting deployment of package: 
file:/C:/jboss-3.2.1/server/default/deploy/nems_activation_mbean.sar
2003-09-29 13:04:29,655 INFO  [org.jboss.deployment.SARDeployer] nested 
deployment: 
file:/C:/jboss-3.2.1/server/default/tmp/deploy/server/default/deploy/nems_activation_mbean.sar/31.nems_activation_mbean.sar-contents/NEMS.jar 

2003-09-29 13:04:29,701 INFO  [org.jboss.deployment.SARDeployer] nested 
deployment: 
file:/C:/jboss-3.2.1/server/default/tmp/deploy/server/default/deploy/nems_activation_mbean.sar/31.nems_activation_mbean.sar-contents/nems_activation_mbean.jar 

2003-09-29 13:04:30,092 INFO  [org.jboss.ejb.EjbModule] Creating
2003-09-29 13:04:30,108 INFO  [org.jboss.ejb.EjbModule] Deploying 
com.masergy.ejb.NEMS.NEMS
2003-09-29 13:04:30,123 INFO  [org.jboss.ejb.StatelessSessionContainer] 
Creating
2003-09-29 13:04:30,123 WARN  [org.jboss.system.ServiceController] 
Problem creating service 
jboss.j2ee:jndiName=com/masergy/ejb/NEMS/NEMS,service=EJB
java.lang.NoClassDefFoundError: 
com/masergy/exception/MsInvalidDataException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:1647)
at java.lang.Class.privateGetPublicMethods(Class.java:1770)
at java.lang.Class.getMethods(Class.java:824)
at 
org.jboss.ejb.StatelessSessionContainer.setupBeanMapping(StatelessSessionContainer.java:535) 

at 
org.jboss.ejb.StatelessSessionContainer.createService(StatelessSessionContainer.java:135) 

at 
org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

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:549)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966) 

at $Proxy11.create(Unknown Source)
at 
org.jboss.system.ServiceController.create(ServiceController.java:310)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

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:549)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy34.create(Unknown Source)
at org.jboss.ejb.EjbModule.createService(EjbModule.java:299)
at 
org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

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:549)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966) 

at $Proxy11.create(Unknown Source)
at 
org.jboss.system.ServiceController.create(ServiceController.java:310)
at 
org.jboss.system.ServiceController.create(ServiceController.java:243)
at sun.reflect.GeneratedMethodAccessor2.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:549)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy20.create(Unknown Source)
at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:519)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:784)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:776)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
at sun.reflect.GeneratedMethodAccessor16.invoke

Re: [JBoss-user] 3.2.1 classloading questions

2003-09-29 Thread Guy Rouillier
)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
	at $Proxy7.deploy(Unknown Source)
	at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
	at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
	at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:200)
	at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:211)
	at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:190)
2003-09-29 13:04:30,139 INFO  [org.jboss.ejb.EjbModule] Created
2003-09-29 13:04:30,795 INFO 
[com.masergy.nems.activation.ActivationServer] Creating
2003-09-29 13:04:30,795 INFO 
[com.masergy.nems.activation.ActivationServer] Created
2003-09-29 13:04:30,795 INFO  [org.jboss.ejb.EjbModule] Starting
2003-09-29 13:04:30,795 INFO  [org.jboss.ejb.EjbModule] Started
2003-09-29 13:04:30,795 INFO  [org.jboss.ejb.EJBDeployer] Deployed: 
file:/C:/jboss-3.2.1/server/default/tmp/deploy/server/default/deploy/nems_activation_mbean.sar/31.nems_activation_mbean.sar-contents/NEMS.jar
2003-09-29 13:04:30,795 INFO 
[com.masergy.nems.activation.ActivationServer] Starting
2003-09-29 13:04:30,811 INFO 
[com.masergy.nems.activation.ActivationServer] Started
2003-09-29 13:04:30,826 INFO  [org.jboss.deployment.MainDeployer] 
Deployed package: 
file:/C:/jboss-3.2.1/server/default/deploy/nems_activation_mbean.sar

--
Guy Rouillier


---
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


Re: [JBoss-user] 3.2.1 classloading questions

2003-09-22 Thread Guy Rouillier
Scott M Stark wrote:
Then we need a bug report with an example. If you have an example you 
can submit please do so else I'll have to try to reproduce the described 
setup. It just sounds like some component in the ejb deployer is not 
using the class loader associated with the ejb jar and so cannot see 
classes coming from the sar. What is the exception for the case of the 
verifier being disabled?

Same as before (see below.)  I'll try to whittle down a small sample 
from our code so I don't have to send all our JARs.  This will probably 
take me a week since we currently don't have power on the East coast. 
Thanks.

15:56:56,958 INFO  [MainDeployer] Starting deployment of package: 
file:/C:/jboss-3.2.1/server/default/deploy/nems_activation_mbean.sar
15:56:57,083 INFO  [SARDeployer] nested deployment: 
file:/C:/jboss-3.2.1/server/default/tmp/deploy/server/default/deploy/nems_activation_mbean.sar/31.nems_activation_mbean.sar-contents/NEMS.jar
15:56:57,114 INFO  [SARDeployer] nested deployment: 
file:/C:/jboss-3.2.1/server/default/tmp/deploy/server/default/deploy/nems_activation_mbean.sar/31.nems_activation_mbean.sar-contents/nems_activation
_mbean.jar
15:56:57,505 INFO  [EjbModule] Creating
15:56:57,505 INFO  [EjbModule] Deploying com.masergy.ejb.NEMS.NEMS
15:56:57,520 INFO  [StatelessSessionContainer] Creating
15:56:57,536 WARN  [ServiceController] Problem creating service 
jboss.j2ee:jndiName=com/masergy/ejb/NEMS/NEMS,service=EJB
java.lang.NoClassDefFoundError: com/masergy/exception/MsInvalidDataException
at java.lang.Class.getDeclaredMethods0(Native Method)

--
Guy Rouillier


---
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


Re: [JBoss-user] 3.2.1 classloading questions

2003-09-17 Thread Guy Rouillier
Scott M Stark wrote:

The EJB is going to have to be in the sar, or use the same scoped 
repository or
it won't be able to see the sar deployment classes. Scoped means 
visibility is
limited to deployments within the scoped loader repository.

Run the attached ListJar program against the sar in question so I can 
see the
explicit structure of the sar.
Scott, thanks for looking at this, and I apologize for taking so long to 
get back with this info.  As a reminder, I have a scoped SAR that 
includes an EJB JAR that utilizes the MBean.  Both the MBean and the EJB 
methods through custom exceptions that are defined in a separate JAR 
outside the SAR.  I'm trying to keep this exception JAR outside the 
JBoss directory tree, along with all our other private JARs.  When I 
deploy this SAR, I get an deployment exception on the EJB JAR that it is 
unable to locate the exception classes; the MBean deployment seems to 
find them though.  If I copy our exception JAR into server/default/lib, 
everything deploys fine.

Below is the output from ListJar, the contents of jboss-service.xml and 
the part of the log showing the deployment exception.  As I was copying 
and pasting the files below, I realized that the only place the 
classpath is defined is in jboss-service.xml.  I may have just 
discovered the problem - that classpath isn't being used for the EJB 
JAR, is it?

ListJar output
--
\jboss-3.2.1\NEMSSar\sar\nems_activation_mbean.sar
+- META-INF/MANIFEST.MF
+- META-INF/jboss-service.xml
+- NEMS.jar (archive)
|  +- META-INF/MANIFEST.MF
|  +- client.policy
|  +- com/masergy/ejb/NEMS/ClassOfService.class
|  +- com/masergy/ejb/NEMS/Debug.class
|  +- com/masergy/ejb/NEMS/NEMS.class
|  +- com/masergy/ejb/NEMS/NEMSBean.class
|  +- com/masergy/ejb/NEMS/NEMSHome.class
|  +- jndi.properties
|  +- META-INF/ejb-jar.xml
|  +- META-INF/jboss.xml
+- nems_activation_mbean.jar (archive)
|  +- META-INF/MANIFEST.MF
|  +- com/masergy/nems/activation/ActivationServer$JobsThread.class
|  +- com/masergy/nems/activation/ActivationServer.class
|  +- com/masergy/nems/activation/ActivationServerMBean.class
Done
jboss-service.xml
-
?xml version=1.0 encoding=UTF-8?
server

loader-repositorynems.masergy.com:loader=nems_activation_mbean.sar/loader-repository
  classpath codebase=file:/apache/aslib archives=*/
  mbean code=com.masergy.nems.activation.ActivationServer
 name=:service=ActivationServer
!-- Bind the RMIAdaptor to JNDI name jmx/rmi/RMIAdaptor --
attribute 
name=JndiNamecom/masergy/nems/activation/ActivationServer/attribute
  /mbean

/server

server.log

2003-09-17 12:32:55,125 INFO  [org.jboss.deployment.MainDeployer] 
Starting deployment of package: 
file:/C:/jboss-3.2.1/server/default/deploy/nems_activation_mbean.sar
2003-09-17 12:32:55,156 INFO  [org.jboss.deployment.SARDeployer] nested 
deployment: 
file:/C:/jboss-3.2.1/server/default/tmp/deploy/server/default/deploy/nems_activation_mbean.sar/31.nems_activation_mbean.sar-contents/NEMS.jar
2003-09-17 12:32:55,172 INFO  [org.jboss.deployment.SARDeployer] nested 
deployment: 
file:/C:/jboss-3.2.1/server/default/tmp/deploy/server/default/deploy/nems_activation_mbean.sar/31.nems_activation_mbean.sar-contents/nems_activation_mbean.jar
2003-09-17 12:32:55,578 WARN  [org.jboss.ejb.EJBDeployer] Verify failed; 
continuing
java.lang.NoClassDefFoundError: com/masergy/exception/MsInvalidDataException
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Class.java:1647)
	at java.lang.Class.privateGetPublicMethods(Class.java:1770)

--
Guy Rouillier


---
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] 3.2.1 classloading questions

2003-09-04 Thread Guy Rouillier
I've been digging into the classloader for the last two days, and have 
refined my classloading questions from my big one on recursive 
invocation to several smaller ones.  I'm using a scoped SAR to deploy an 
MBean.  My SAR has a classpath entry pointing to file://myDir; I do not 
have a classpath entry for the server lib directory.  Suppose I have the 
following JARs:

/jboss/server/default/lib

myThread.jar
myException.jar
bsh2.jar
/myDir

bsh1.jar
(1) I'm using the Debug class to explore classloading.  From one of the 
top-level methods in my MBean, I display both 
getClass().getClassLoader() and 
Thread.currentThread().getContextClassLoader().  The first shows my SAR, 
as I would expect.  However, the second shows null, meaning the 
bootstrap classloader.  I didn't expect that - thought they would be the 
same.  Why are they different?

(2) My MBean method instantiates an extends-Thread class from 
myThread.jar.  I notice myThreadObj uses the startup classloader and not 
my SAR classloader.  I'm guessing this is because myThread.jar is in 
server/default/lib, which is not scoped by my SAR, correct?

(3) After the MBean instantiates myThreadObj, it does 
myThreadObj.setContextClassLoader(getClass().getClassLoader()) - see (1) 
above.  I verified that myThreadObj, in the run() method, does indeed 
have the SAR's classloader by printing out 
Thread.currentThread().getContextClassLoader().  However, in that run() 
method, when I instantiate a bsh object, it's using the startup 
classloader and not my SAR classloader.  I end up with a bsh2 object 
instead of the bsh1 object I need.  I didn't expect that at all.  Again, 
I'm thinking this is because, per (3) above, since myThreadObj uses the 
startup classloader, when it needs to instantiate an object, it checks 
its own classloader and finds bsh2.jar there. Correct?  If so, then when 
does the context classloader get used?

(4) I moved myThread.jar into /myDir, and I'm now picking up bsh1.jar. 
The last problem I encountered was that since I was moving all my jars, 
I went ahead and moved myException.jar to /myDir also.  myException.jar 
contains the exceptions that the MBean methods throw.  When I started up 
JBoss and deployed my SAR, JBoss complained that it couldn't find the 
exception classes.  So I had to put myException.jar back into 
server/default/lib, and now everything works.  But why did this happen? 
 Since the exception classes are only thrown by my MBean, shouldn't the 
deployer have been able to find them in /myDir?  I guess I'm unclear 
about which classloader the deployer is using.  It seems to be picking 
up all the other classes used by the MBean from /myDir, so why not the 
exception classes?

--
Guy Rouillier




---
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] jboss-service.xml classpath entry whitespace sensitive?

2003-09-04 Thread Guy Rouillier
Running 3.2.1.  In the jboss-service.xml file for my SAR, I have the 
following:

loader-repositorynems.masergy.com:loader=nems_activation_mbean.sar/loader-repository
  classpath codebase=file:/apache/aslib archives=*/
  classpath codebase=file:/apache/nemslib 
archives=nems_activation.jar,nems_server.jar/

The second classpath statement is all on one line.  This works fine as 
is.  However, if I introduce any whitespace into the archives clause in 
the 2nd classpath, I get a class not found for classes in the 2nd jar. 
Simply putting a single space after the comma causes the failure.  Yet I 
see many examples in the default/deploy that have whitespace, though 
none with a codebase using file-based URL.

Am I doing something wrong, or should I submit a bug report?
--
Guy Rouillier


---
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


Re: [JBoss-user] 3.2.1 classloading questions

2003-09-04 Thread Guy Rouillier
Scott M Stark wrote:

Guy Rouillier wrote:

(4) I moved myThread.jar into /myDir, and I'm now picking up bsh1.jar. 
The last problem I encountered was that since I was moving all my 
jars, I went ahead and moved myException.jar to /myDir also.  
myException.jar contains the exceptions that the MBean methods throw.  
When I started up JBoss and deployed my SAR, JBoss complained that it 
couldn't find the exception classes.  So I had to put myException.jar 
back into server/default/lib, and now everything works.  But why did 
this happen?  Since the exception classes are only thrown by my MBean, 
shouldn't the deployer have been able to find them in /myDir?  I guess 
I'm unclear about which classloader the deployer is using.  It seems 
to be picking up all the other classes used by the MBean from /myDir, 
so why not the exception classes?

Show the CNFE stacktrace for the exception case.

Scott, thanks as always for the assistance you provide - I'm slowly 
getting a grip on classloaders.  Turns out my MBean was not causing this 
error, but the EJB I packaged in the same SAR to access the MBean.  A 
brief history:  I'm using a scoped SAR so I can use a different bsh jar. 
 After I deployed this SAR, though, my independently deployed EJB could 
no longer find the MBean:

2003-09-04 19:41:12,664 ERROR [org.jboss.ejb.plugins.LogInterceptor] 
Unexpected Error:
java.lang.NoClassDefFoundError: com/masergy/nems/activation/ActivationServer
	at com.masergy.ejb.NEMS.NEMSBean.runActivationScript(NEMSBean.java:1311)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

So to get things working, I just put the EJB JAR into the SAR.  This may 
not be exactly kosher, but everything seems to work.  I verified with 
Debug that the EJB gets the same classloader as the MBean.  The EJB is 
able to find all the classes on the classpath I specify for the SAR, 
EXCEPT for the exception classes in myExceptions.jar.  I'm confused by 
this because it is able to find many other classes in other jars in the 
same directory as myExceptions.jar.

I've attached a zip of the stack trace I get when I deploy this SAR. 
Note that an MBean method is defined to throw an exception stored in the 
same exception jar, and deploys without issue - here's the prototype:

   public int addJob(ActivateJob oJob) throws MsSystemException;

--
Guy Rouillier


faileddeploy.zip
Description: Zip compressed data


Re: [JBoss-user] url string for connecting jboss to oracle

2003-09-03 Thread Guy Rouillier
Amit Ashok wrote:
Hi ,
I am trying for the last 2 days to connect jboss 3.2.1 to oracle 9i 
using OCI client as thin client is not giving me the required output .
 
I have modified oracle-ds.xml
 
datasources
  local-tx-datasource
jndi-nameCLKS1/jndi-name
 
connection-urljdbc:oracle:oci:@172.17.24.11:1521:CLKS1/connection-url
 
!--

connection-urljdbc:oracle:thin:@172.17.24.172:1521:clks1/connection-url
 
  --
driver-classoracle.jdbc.driver.OracleDriver/driver-class
user-namejb/user-name
passwordjb/password

exception-sorter-class-nameorg.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter/exception-sorter-class-name
  /local-tx-datasource
 
/datasources
I have tried oci , oci8 ,oci9 but in all the cases I have been denied 
connection . in case of oci8 with oracle 8i server I got the following 
error message
 

at java.lang.Thread.run(Thread.java:479)
org.jboss.util.NestedSQLException: Could not create connection; - nested 
throwable: (java.sql.SQLException: Error w
hile trying to retrieve text for error ORA-06401
); - nested throwable: (org.jboss.resource.JBossResourceException: Could 
not create connection; - nested throwable:
 (java.sql.SQLException: Error while trying to retrieve text for error 
ORA-06401
))
 
while with oracle 9i and 9i drivers I keep getting
 
 
 
com.niit.cliks.control.common.GeneralFailureException: null; 
CausedByException is:
Could not create connection; - nested throwable: 
(java.sql.SQLException: ORA-06401: NETCMN: invalid driver
designator
); - nested throwable: (org.jboss.resource.JBossResourceException: Could 
not create connection; - nested throwable:
 (java.sql.SQLException: ORA-06401: NETCMN: invalid driver designator
))
 
 
my url string was 
connection-urljdbc:oracle:oci:@172.17.24.172:1521:CLKS1/connection-url
 
 
 
then i changed the url string to
connection-urljdbc:oracle:oci9:@172.17.24.172:1521:CLKS1/connection-url
the exception changed to 
 
com.niit.cliks.control.common.GeneralFailureException: null; 
CausedByException is:
Apparently wrong driver class specified for URL: class: 
oracle.jdbc.driver.OracleDriver, url: jdbc:oracle:o
ci9:@172.17.24.172:1521:CLKS1; - nested throwable: 
(org.jboss.resource.JBossResourceException: Apparently wrong dri
ver class specified for URL: class: oracle.jdbc.driver.OracleDriver, 
url: jdbc:oracle:oci9:@172.17.24.172:1521:CLKS
1)
 
can some one help me .
Look in the Oracle documentation.  For the OCI driver, your URL should 
look like this:

jdbc:oracle:oci:@mytnsname

where mytnsname is defined in your tnsnames file.  The host and port are 
obtained from there.  The documentation specifically states that a URL 
with a hostname and port is for the thin client only.

--
Guy Rouillier


---
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


Re: [JBoss-user] Packaging EJBs/classes for restricted access.

2003-09-03 Thread Guy Rouillier
Rahul Ganjoo wrote:
Hi All!
 
How do I package my ejbs/class files such that only one application can access it?
If I put my class files in the lib folder, all other app ejbs can access it.  I want to package some utility classes such that only a specific application should access them.
Not clear what you are trying to accomplish, but if all you want is some 
utility classes for use by a single EJB, then just package those classes 
into your EJB JAR.  You are not limited to just the EJB classes in that 
JAR.  Are are you wanting to limit access to the EJB by only a specific 
application?  In that case, read up on the security sections in the 
documentation.

 
TIA,
Rahul Ganjoo.


--
Guy Rouillier


---
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


Re: [JBoss-user] Re: Configuration for JBoss Startup

2003-09-02 Thread Guy Rouillier
Sheldon Hearn wrote:

On (2003/09/02 10:41), Weiqi Gao wrote:


How about writing a servlet that calls the SLSB and make the servlet 
load on deploy?


Or, as has been suggested before, use an MBean to warm up the required
information.
I think there's some pretty serious misunderstanding going on here.
What good is warming up a _stateless_ session bean?  The moment the
thing is released, you're going to have to warm up its replacement.
Sounds like what's needed here is an entity bean or MBean.

Of course, the misunderstanding could be on my end. :-)
Session beans are pooled and reused.  However, there is a reason they 
are called stateless.  The container is free to do with them as it 
wishes, including discarding them, so you shouldn't implement any logic 
that depends on a pooled behavior.

Ciao,
Sheldon.
---
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


--
Guy Rouillier


---
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] Classloading with MBean in a SAR

2003-09-02 Thread Guy Rouillier
With JBoss 3.2.1, we have an MBean that requires an older version of 
BeanShell, so I am struggling (unsuccessfully, apparently) to understand 
scoped deployments with SARs.  I've purchased the annual doc 
subscription and read the 3.2.1 docs on scoped deployment, so I've done 
some work before posting.  I've got the older bean shell jar here:

/data/java/lib/bsh-1.01.jar

In my SAR META-INF/jboss-service.xml file, I've got this:

loader-repositorynems.masergy.com:loader=nems_activation_mbean.sar/loader-repository
classpath codebase=file:/data/java/lib archives=*/
(I also tried this by putting the jar into directory aslib under 
server/default with codebase=aslib - same results.)

After running the code, I look in the repositories (default and mine) 
and I see no bsh files loaded into my repository - they are all loaded 
into the default one, which of course will be the version of the 
BeanShell jar shipped with JBoss.  No bsh classes are loaded into my own 
repository (my MBean class is, so I know the repository is being created 
and used.)

Finally, my question:  Am I interpreting the SAR jboss-service.xml file 
correctly?  Can I specify both a loader-repository **and** a classpath? 
 If so, will jars I specify in the classpath entry get loaded into my 
repository, ahead of the default one?  Or am I supposed to actually 
stick the old beanshell jar inside my SAR to get it loaded into my 
repository?  The thing that is confusing me is that if I specify 
classpath **without** a repository, JBoss tells me I have duplicate bsh 
class definitions.  So that clearly tells me it is trying to load the 
bsh jar into the default repository.  If I specify a repository, I don't 
get those duplicate messages, but the bsh classes don't appear to be 
getting loaded into my repository either.

As always, all help is appreciated.

--
Guy Rouillier


---
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


Re: [JBoss-user] Recursive EJB call gets class not found on home

2003-08-22 Thread Guy Rouillier
Ok, I'm working too many hours, can't see the proverbial forest.  In my 
discussion below, I noticed after posting that jarB is added to the 
JBoss startup classpath, so that test was not valid.  My question then 
is simpler:

In JBoss 2.4.3, any threads started by an MBean don't appear to have the 
classes in the MBean jar available to them.  From the MBean, after I've 
created the thread object, I've tried setting it's classloader equal to 
the MBean's classloader using setContextClassLoader.  The result was the 
same: classes in the MBean jar are not available to the thread.

Any way to make this work?  I don't want to put the classes in the JBoss 
startup classpath, since they include the home and remote interfaces for 
an EJB, which would break hot deploy for that EJB.  Thanks for any 
suggestions.

Guy Rouillier wrote:
I figured out a solution, though I still don't understand what is going 
on.  Basically, we have class A in jarA starting up a thread, running 
class B in jarB.  class B is where I'm trying to do the narrow that is 
failing.  What I found was that putting myEJBHome.class into jarA didn't 
help.  Putting it into jarB fixed the problem.  As a reminder, jarA 
contains an MBean.  Does this mean that when I start up a secondary 
thread, the only classes that thread can see are those in its own jar, 
plus any that we put in the JBoss classpath at startup time?  This 
doesn't make sense to me.  If it matters, jarA is added as a 
ClassPathExtension. What is the difference between a jar added to the 
startup JBoss classpath and one added as a ClassPathExtension?

Guy Rouillier wrote:

We are still using JBoss 2.4.3 (moving quickly as possible to 3.2.1) 
on JDK 1.4.2.  We have an EJB that invokes an MBean.  For the sake of 
discussion, call the classes myEJB, myEJBHome and myMBean.  myEJB does 
a lookup of myMBean and then invokes a method there.  Under some 
circumstances, myMBean will start up a new thread and on that new 
thread, do a lookup on myEJB, narrow the reference to myEJBHome, then 
invoke a method on myEJB.

This all works fine if we put myEJBHome into a jar file that is put in 
the JBoss classpath at startup time.  However, we've switched to not 
doing that so we have properly packaged EJBs that redeploy properly 
etc.   So now, myEJBHome is only in myEJB.jar, and I've added it to 
myMBean.jar  (and a different client jar that is not part of this 
discussion.)  Now, the second thread appears to get a reference to 
myEJB, but when it tries to narrow that to myEJBHome, it gets a class 
not found.

I don't understand how it cannot be finding this class if I've put it 
into myMBean.jar.  I'm sure the answer is in the black hole of 
classloaders, but unfortunately I haven't mastered that art yet.  I 
did print out System.getProperty(java.class.path) just before the 
lookup in the 2nd thread, and it has the myMBean.jar file in it.  But 
I guess that thread must not be using the system class path.

Any idea what is going on here?  Do I need to explicitly set the 
classloader for the 2nd thread?  The API documentation says that if I 
don't specify it, I'll get the one used by the creator of the thread. 
How can I find out what class path the 2nd thread is using?  I looked 
at the ClassLoader class and I don't see any way to get the classpath 
from it (I suppose since class loaders are not limited to classpaths.) 
Appreciate any pointers.





--
Guy Rouillier


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Recursive EJB call gets class not found on home

2003-08-21 Thread Guy Rouillier
I figured out a solution, though I still don't understand what is going 
on.  Basically, we have class A in jarA starting up a thread, running 
class B in jarB.  class B is where I'm trying to do the narrow that is 
failing.  What I found was that putting myEJBHome.class into jarA didn't 
help.  Putting it into jarB fixed the problem.  As a reminder, jarA 
contains an MBean.  Does this mean that when I start up a secondary 
thread, the only classes that thread can see are those in its own jar, 
plus any that we put in the JBoss classpath at startup time?  This 
doesn't make sense to me.  If it matters, jarA is added as a 
ClassPathExtension. What is the difference between a jar added to the 
startup JBoss classpath and one added as a ClassPathExtension?

Guy Rouillier wrote:
We are still using JBoss 2.4.3 (moving quickly as possible to 3.2.1) on 
JDK 1.4.2.  We have an EJB that invokes an MBean.  For the sake of 
discussion, call the classes myEJB, myEJBHome and myMBean.  myEJB does a 
lookup of myMBean and then invokes a method there.  Under some 
circumstances, myMBean will start up a new thread and on that new 
thread, do a lookup on myEJB, narrow the reference to myEJBHome, then 
invoke a method on myEJB.

This all works fine if we put myEJBHome into a jar file that is put in 
the JBoss classpath at startup time.  However, we've switched to not 
doing that so we have properly packaged EJBs that redeploy properly etc. 
  So now, myEJBHome is only in myEJB.jar, and I've added it to 
myMBean.jar  (and a different client jar that is not part of this 
discussion.)  Now, the second thread appears to get a reference to 
myEJB, but when it tries to narrow that to myEJBHome, it gets a class 
not found.

I don't understand how it cannot be finding this class if I've put it 
into myMBean.jar.  I'm sure the answer is in the black hole of 
classloaders, but unfortunately I haven't mastered that art yet.  I did 
print out System.getProperty(java.class.path) just before the lookup 
in the 2nd thread, and it has the myMBean.jar file in it.  But I guess 
that thread must not be using the system class path.

Any idea what is going on here?  Do I need to explicitly set the 
classloader for the 2nd thread?  The API documentation says that if I 
don't specify it, I'll get the one used by the creator of the thread. 
How can I find out what class path the 2nd thread is using?  I looked at 
the ClassLoader class and I don't see any way to get the classpath from 
it (I suppose since class loaders are not limited to classpaths.) 
Appreciate any pointers.



--
Guy Rouillier


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Recursive EJB call gets class not found on home

2003-08-19 Thread Guy Rouillier
We are still using JBoss 2.4.3 (moving quickly as possible to 3.2.1) on 
JDK 1.4.2.  We have an EJB that invokes an MBean.  For the sake of 
discussion, call the classes myEJB, myEJBHome and myMBean.  myEJB does a 
lookup of myMBean and then invokes a method there.  Under some 
circumstances, myMBean will start up a new thread and on that new 
thread, do a lookup on myEJB, narrow the reference to myEJBHome, then 
invoke a method on myEJB.

This all works fine if we put myEJBHome into a jar file that is put in 
the JBoss classpath at startup time.  However, we've switched to not 
doing that so we have properly packaged EJBs that redeploy properly etc. 
  So now, myEJBHome is only in myEJB.jar, and I've added it to 
myMBean.jar  (and a different client jar that is not part of this 
discussion.)  Now, the second thread appears to get a reference to 
myEJB, but when it tries to narrow that to myEJBHome, it gets a class 
not found.

I don't understand how it cannot be finding this class if I've put it 
into myMBean.jar.  I'm sure the answer is in the black hole of 
classloaders, but unfortunately I haven't mastered that art yet.  I did 
print out System.getProperty(java.class.path) just before the lookup 
in the 2nd thread, and it has the myMBean.jar file in it.  But I guess 
that thread must not be using the system class path.

Any idea what is going on here?  Do I need to explicitly set the 
classloader for the 2nd thread?  The API documentation says that if I 
don't specify it, I'll get the one used by the creator of the thread. 
How can I find out what class path the 2nd thread is using?  I looked at 
the ClassLoader class and I don't see any way to get the classpath from 
it (I suppose since class loaders are not limited to classpaths.) 
Appreciate any pointers.

--
Guy Rouillier


---
This SF.net email is sponsored by Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code=104
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] DB Connection Validation in 2.4.x

2003-07-28 Thread Guy Rouillier
TULK, Daniel, FM wrote:
Hi,

I have a couple of questions about connection pooling in 2.4.x:

How and when are the connections in the pool tested?
How is the connection testing behaviour configured?
This feature is not implemented in the 2.4 series.  It is available in 
3.2.x.

By connection testing I mean verifying the validity of the connection: like
ping to testing DB connectivity
Cheers

Dan

***
This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.
The Royal Bank of Scotland plc is registered in Scotland No 90312
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB
 Regulated by the Financial Services Authority
Visit our website at http://www.rbs.co.uk/CBFM/
***


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
--
Guy Rouillier


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Database JNDI Name Not Found

2003-07-22 Thread Guy Rouillier
Rod Macpherson wrote:

On 3.0.7 my oracle-service.xml file specifies OracleDSX as the JNDI name 
and everything runs fine. Switched to 3.2 and it cannot find JNDI name 
java:/OracleDSX. I tried putting in the java:/ prefix for grins but it 
fails. Something change in 3.2?
 
TIA,
 
Rod
What is the exact error you are getting?  Is it comp not bound?  I got 
this for two reasons:

(1) forgot to add classes12.jar to the classpath (doh!)
(2) jndi.properties for the ejb must now contain this:
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
Notice the new org.jboss.naming: on the front.

--
Guy Rouillier


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Database JNDI Name Not Found

2003-07-22 Thread Guy Rouillier
Rod Macpherson wrote:
Had the jar so must be an incompatibility with the JNDI properties as
you suggest. Here is what we have now:
properties.put(java.naming.factory.initial,
org.jnp.interfaces.NamingContextFactory);
properties.put(java.naming.provider.url, localhost:1099);
properties.put(java.naming.factory.url.pkgs,
org.jboss.naming);
How does item number (2) in your solution list blend with the above?
properties.put(java.naming.factory.url.pkgs,
org.jboss.naming:org.jnp.interfaces);
But always follow Scott's advice before looking at mine gr.  BTW, what 
does your lookup look like?

Thx,

Rod



-Original Message-
From: Guy Rouillier [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 22, 2003 3:44 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Database JNDI Name Not Found

Rod Macpherson wrote:


On 3.0.7 my oracle-service.xml file specifies OracleDSX as the JNDI 
name
and everything runs fine. Switched to 3.2 and it cannot find JNDI name


java:/OracleDSX. I tried putting in the java:/ prefix for grins but
it 

fails. Something change in 3.2?

TIA,

Rod


What is the exact error you are getting?  Is it comp not bound?  I got

this for two reasons:

(1) forgot to add classes12.jar to the classpath (doh!)
(2) jndi.properties for the ejb must now contain this:
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
Notice the new org.jboss.naming: on the front.



--
Guy Rouillier


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Services Binding Management

2003-07-09 Thread Guy Rouillier
Have you thought of using something like jConfig at 
http://www.jconfig.org?  Philosophically like the Windows registry - you 
can keep your setting separately from your JAR/EAR/SAR etc.  With 
jConfig, you can choose your data source - XML file, database, etc.

Brian Wallis wrote:

(JBoss 3.0.7)

Almost does what I want. But I want to configure other things apart 
from service bindings, ie: JCA deployments. I have a -service.xml 
file that defines the connection properties for a JCA that connects 
to an external system. I'd like to package this all together with 
the app into an ear but I also need to configure both the connection 
to the external system (and it involves more that a host/port) and 
the connection pool parameters. I also need to be able to change
these in the field without pulling apart various ears/sars/etc and
editing various deployment config files.

I don't think I can achieve this with the Services Binding Management. 

What I really want is 'vars' in the service file as shown in the config
file below. Is there something like this available, can I use/expand
system properties in the deployment config files? 

thanks, brian wallis...

mbean code=org.jboss.resource.connectionmanager.NoTxConnectionManager 
   name=jboss.jca:service=NoTxCM,name=OpenCIConnection
  dependsjboss.jca:service=RARDeployer/depends
  depends optional-attribute-name=ManagedConnectionFactoryName
mbean code=org.jboss.resource.connectionmanager.RARDeployment 
   name=jboss.jca:service=NoTxFS,name=OpenCIConnection
  depends optional-attribute-name=OldRarDeployment jboss.jca:service=RARDeployment,name=OpenCIConnection /depends
  attribute name=ManagedConnectionFactoryProperties
properties
  config-property name=LocatorHost 
   type=java.lang.String${OPENCI.HOST}/config-property
  config-property name=LocatorPort 
   type=java.lang.Integer${OPENCI.PORT}/config-property
  config-property name=SystemName 
   type=java.lang.String${OPENCI.SYSTEM}/config-property
  config-property name=Username 
   type=java.lang.String${OPENCI.USER}/config-property
  config-property name=Password 
   type=java.lang.String${OPENCI.PASSWORD}/config-property
/properties
  /attribute
  attribute name=JndiNameOpenCI/Connection/attribute
/mbean
  /depends
  depends optional-attribute-name=ManagedConnectionPool
mbean code=org.jboss.resource.connectionmanager.JBossManagedConnectionPool name=jboss.jca:service=NoTxPool,name=OpenCIConnection
  attribute name=MinSize0/attribute
  attribute name=MaxSize${OPENCI.MAXCONS}/attribute
  attribute name=BlockingTimeoutMillis5000/attribute
  attribute name=IdleTimeoutMinutes1/attribute
  attribute name=CriteriaByApplication/attribute
/mbean
  /depends
  depends optional-attribute-name=CachedConnectionManager jboss.jca:service=CachedConnectionManager /depends
  depends optional-attribute-name=JaasSecurityManagerService jboss.security:service=JaasSecurityManager /depends
/mbean

---
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing  more.
Download  eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


--
Guy Rouillier


---
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing  more.
Download  eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JBoss 3.2.1/Firebird Issue

2003-07-05 Thread Guy Rouillier
Can you post the contents of the -ds.xml file for the Firebird database? 
 You don't mention what is in the .tgz, and I don't open unannounced 
attachments these days.

Stephen Davidson wrote:

Greetings.

I am trying to get XPetstore running on JBoss 3.2.1, against a Firebird 
database.

I am running into some trouble.  Specifially, it appears that the 
ManagedConnectionFactory, jboss.jca.xpetstoreDS is not configured.  As a 
result, it is trying to connect to the Firebird Database using the 
username of the account that started the Jboss instance.  And this is 
causing bad things to happen when you try to access anything other than 
the main page.

Suggestions/corrections would be appreciated.

Thanks,
Steve
JDK = 1.4.x (I can be more specific if I have to, but there a couple of 
machines involved, with different JDKs).
OS = SuSE Linux 8.2
JBoss = 3.2.1



--
Guy Rouillier


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Datasource Problems

2003-07-03 Thread Guy Rouillier
Edgar Silva wrote:
Roullier...

I Can understand you, but you agree to me that is strange?
Not really, seems to me to be an apples to oranges comparison.  Sure, at 
a basic level we are all talking about data sources, but the runtime 
semantics are very different.

I don't wanna also get into a protracted discussion here... =)
I am Brazilian, then almost all days I am happy...=)
But, the enviroment of my application is:

WebServices

Which I am using Apache Axis, Then I can to use JBoss with TomCat,
And uses DBCP from this guy.  But, besides this, I will use
DataSource to use CMP's.
By this trouble, I am asking you about some special configuration using
JBoss DataSources, in transaction-services.xml, or something inside
dabase-ds.xml, Do you know?
Sorry, I don't understand the question.

Imagine one Application using a big amount of StoredProcedures,
So I could not use EntityBeans, the major possibility is to
Use SessionBeans. However , I am worried with this problem.
Do  You can guarantee me that whether always I close my connections, the
Pool will work fine?
I doubt you will find any open source project that will guarantee 
anything.  However, I will point out that datasources are one of the 
most heavily used components in JBoss.  If there was a basic connection 
leak, many people would have encountered it by now (and thus it would 
have been fixed.)

Best Regards

Edgar
- Original Message -
From: Guy Rouillier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 12:28 AM
Subject: Re: [JBoss-user] Datasource Problems


Edgar, I haven't used Common-DBCP, but I just downloaded it and quickly
read some documentation.  I don't want to get into a protracted
discussion here, but there are many reasons why a Tomcat-based
implementation might not exhibit exhausted connections when JBoss does.
 For example, JBoss works in a persistent environment.  That is, JBoss
run continuously, and your client makes intermittent use of the services
it provides.  Between those uses, things like database pools continue to
exist.  Things you do in Tomcat, on the other hand, typically have
shorter lifetimes.  Much of the time, variables exist only for the
duration of a request, so once a request is finished, everything gets
cleaned up (assuming things are working properly.)  There are other
options, of course; you can choose to give things session or application
lifetimes.  One of the difficulties in database pooling in a JSP
environment is that there is no place to put a shared pool.
At any rate, I provided one suggestion in my last message which may
allow you to determine in a JBoss environment if you are indeed leaking
connections.
Edgar Silva wrote:

Hi Roullier, this behavior of the JBoss's DataSource is very strange,
because I solved this trouble changing the Datasource from JBoss to
TomCat.

I Know that TomCat uses Jakarta Commons DBCP, and with this Container I
solved all my troubles, when JBoss arrives in a number of connection
greater

than 200 ,Then JBoss Crashes. This number was defined in XML
Configuration.

The right behavior from a DataSouce that I Believe is: Make the
Connections

and after client uses it, this object will be consumed by other client.
When I made the deploy of the same application, changing only lookup
statement to TomCat Requirements, The Application is working fine  now,
And

in each test I had only of 2 to 6 Connections established. Then I am in
doubts about JBoss's Datasources to provide Connection Pool.
But, I know that can be my technical problem, however I had been using
several other J2EE Containers like  Borland, BEA and IBM , And I do not
remember of  fails like this.
I will buy the JBoss Documentation, then who knows I will can understand
it

better.
Because is like a friend talks: The software is free, however the work
is

not slave.
And I hope solve many problems after read some Chapters in JBoss's
Documentation.
I like too much JBoss, in addition to this I am trying to migrate many
projects to JBoss. Because  is free, and I Believe in the Project.
If you know some article or resource talking about Connection Pooling of
Datasouces in JBoss would be cool.
I am using JBoss 3.2, Oracle 9.i, in a RedHat 7.2 .

Thanks by help friend ...

Edgar

- Original Message -
From: Guy Rouillier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 01, 2003 6:08 PM
Subject: Re: [JBoss-user] Datasource Problems



Edgar, please identify what version you are using.  I'm not saying what
you are seeing isn't true, but as you know from these forums, inevitably
when a runaway connection problem appears, it is because of the
application not closing connections somewhere.  That somewhere is not
always easy to find.  We've been using Oracle 9i for quite some time now
(at least a year) and some of our EJBs have been running for 150 days
without exhausting connections.
Perhaps one easy place to start is to turn on tracing for a particular
datasource this is happening

Re: [JBoss-user] Standalone lookup - StreamCorruptedException

2003-07-02 Thread Guy Rouillier
What JDK is your client running on? When I've seen this error, it was 
because the client was on an old JDK.  The minimum supported JDK for 
JBoss is currently 1.3.1, I believe.

Magesh Prabhu wrote:

Hi Guys,

I'm doing a JNDI lookup from my Standalone Client to an Session Bean deployed on 
JBoss. I have the following files in standalone clients classpath:
jboss-common-client.jar
jboss-j2ee.jar
jnp-client.jar
I see the following stack.. Could any body please suggest me. Thanks in advance,
Magesh
Environment : jboss-3.2.1_tomcat-4.1.24 on Jdk1.4.1

---

[INFO] - got [EMAIL PROTECTED] from environment 
[{java.naming.provider.url=localhost:11099, 
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, 
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces:com.sun.enterprise.naming}]
[INFO] - performing lookup for IPManager's RequestReceiverBean on 
[ipmanager/RequestReceiver]
[ERROR] - javax.naming.CommunicationException. Root exception is 
java.io.StreamCorruptedException:
Type code out of range, is 125
at java.io.ObjectInputStream.peekCode(ObjectInputStream.java:1280)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:282)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:232)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:978)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:232)
at java.rmi.MarshalledObject.get(MarshalledObject.java:142)
at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:30)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
at javax.naming.InitialContext.lookup(InitialContext.java:354)
---
Please Node that I've configured my JBoss to run on 11099 instead of default 1099.



**
This email and its attachments are intended for the above 
named only and may be confidential.  If they have come to 
you in error, you must take no action based on them, nor 
must you copy or show them to anyone; please reply to this 
email and highlight the error.
Security Warning: Please note that this email has been 
created in the knowledge that the internet email is not a 
100% secure communications medium.  We advise that you 
understand and observe this lack of security when emailing us.
Viruses:  Although we have taken steps to ensure that this 
email and attachments are free from any virus, we advise 
that in keeping with good computing practice the recipient 
should ensure they are actually virus free.
If you have received this email in error please notify:
[EMAIL PROTECTED]
**



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


--
Guy Rouillier


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] javax.naming.NameNotFoundException after some redeploys

2003-07-01 Thread Guy Rouillier
Davide Pozza wrote:

As the subject says, it happens that after some redeploys, a
javax.naming.NameNotFoundException is thrown when on my web client I try
to lookup the first Stateless session bean remote interface.
At this point to have my app. working, I have to to restart jboss.
Any suggestion?
We'll need some additional information to help.  First, what version of 
JBoss and web client (Tomcat?) are you using?  I actually had something 
similar to this recently.  When this happens, please cut and paste the 
actual set of log statements, so we can see *what* name is not being 
found.  Also, when this happens, locate the immediately preceeding EJB 
deployment in your JBoss logs, post that as well.  Finally, just to 
humor me, please post the contents of the the jndi.properties file 
included inside your EJB jar.

Thanks

Davide


--
Guy Rouillier


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] EXCEPTION: configuration 'IIOP Stateless SessionBean'not found in JBoss 3.0.7

2003-07-01 Thread Guy Rouillier
(Replying to both your messages...)  Look in the 3.2.x source, 
testsuite\src\main and testsuite\src\resources at the helloiiop example. 
  The message you include below seems pretty clear - you are asking to 
use the IIOP Stateless SessionBean container configuration, and there 
is no such configuration defined.  I've never used IIOP, but the 
helloiiop example seems pretty straightforward.

Surajit Bhattacharjee wrote:
Hi!

I have a requirement whereby an external CORBA client should be able to
invoke methods on my Session Bean's remote interface. I have put the
following in the jboss.xml:
...
session
ejb-nameClusteredSLSB/ejb-name
jndi-nameejb/ClusteredSLSB/jndi-name
clusteredTrue/clustered
cluster-config
partition-nameDefaultPartition/partition-name
home-load-balance-policyorg.jboss.ha.framework.interfaces.RoundRobin/home
-load-balance-policy
bean-load-balance-policyorg.jboss.ha.framework.interfaces.RoundRobin/bean
-load-balance-policy
/cluster-config
configuration-nameIIOP Stateless
SessionBean/configuration-name
/session
...
On deploying the jar, I get the following exception. Will appreciate any
solution to this!!!
Thanks,
Surajit
16:11:47,665 ERROR [XmlFileLoader] failed to load jboss.xml.  There could be
a syntax error.
org.jboss.deployment.DeploymentException: Error in jboss.xml for Bean
ClusteredSLSB: configuration 'IIOP Stateless SessionBean' not found in
standardjboss.xml or jboss.xml
at
org.jboss.metadata.ApplicationMetaData.importJbossXml(ApplicationMetaData.ja
va:751)
at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:174)
at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:438)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:784)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
at sun.reflect.GeneratedMethodAccessor23.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(ReflectedMBeanDispat
cher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy7.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanne
r.java:280)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.
java:407)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(
AbstractDeploymentScanner.java:200)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(Ab
stractDeploymentScanner.java:211)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(Abs
tractDeploymentScanner.java:190)
16:11:47,674 ERROR [MainDeployer] could not create deployment:
file:/home/surajit/jboss/jboss-3.2.0_tomcat-4.1.24/server/all/deploy/cluster
edapp.jar


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


--
Guy Rouillier


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Datasource Problems

2003-07-01 Thread Guy Rouillier
Edgar, please identify what version you are using.  I'm not saying what 
you are seeing isn't true, but as you know from these forums, inevitably 
when a runaway connection problem appears, it is because of the 
application not closing connections somewhere.  That somewhere is not 
always easy to find.  We've been using Oracle 9i for quite some time now 
(at least a year) and some of our EJBs have been running for 150 days 
without exhausting connections.

Perhaps one easy place to start is to turn on tracing for a particular 
datasource this is happening with.  You should be able to watch the logs 
and do a count of connections obtained from the pool and returned to the 
pool.  These 2 numbers should obviously stay the same.

Edgar Silva wrote:

Hi All...

My friends, I spent almost 3 weeks with a big problem
with JBoss's DataSource.


I am using Oracle, and I am sure of to close the connections
after my events. However, seem never  JBoss closes these
connections... Then this fact happens every time , until to explode
the number of connections, causing JBoss's restart.
In more details: The number of connections grow from:
3-12-20-26-30-46...214 Then the service fails.
This Application is WebService providing searches against a DataBase,
with some services with EJB and JMS. The only problem is  above,
with connections about DataSource.
I am using Oracle 9i and the newest jdbc driver

Any Idea?

Since now Thanks 

Edgar



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


--
Guy Rouillier


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Datasource Problems

2003-07-01 Thread Guy Rouillier
Edgar, I haven't used Common-DBCP, but I just downloaded it and quickly 
read some documentation.  I don't want to get into a protracted 
discussion here, but there are many reasons why a Tomcat-based 
implementation might not exhibit exhausted connections when JBoss does. 
 For example, JBoss works in a persistent environment.  That is, JBoss 
run continuously, and your client makes intermittent use of the services 
it provides.  Between those uses, things like database pools continue to 
exist.  Things you do in Tomcat, on the other hand, typically have 
shorter lifetimes.  Much of the time, variables exist only for the 
duration of a request, so once a request is finished, everything gets 
cleaned up (assuming things are working properly.)  There are other 
options, of course; you can choose to give things session or application 
lifetimes.  One of the difficulties in database pooling in a JSP 
environment is that there is no place to put a shared pool.

At any rate, I provided one suggestion in my last message which may 
allow you to determine in a JBoss environment if you are indeed leaking 
connections.

Edgar Silva wrote:
Hi Roullier, this behavior of the JBoss's DataSource is very strange,
because I solved this trouble changing the Datasource from JBoss to TomCat.
I Know that TomCat uses Jakarta Commons DBCP, and with this Container I
solved all my troubles, when JBoss arrives in a number of connection greater
than 200 ,Then JBoss Crashes. This number was defined in XML Configuration.
The right behavior from a DataSouce that I Believe is: Make the Connections
and after client uses it, this object will be consumed by other client.
When I made the deploy of the same application, changing only lookup
statement to TomCat Requirements, The Application is working fine  now, And
in each test I had only of 2 to 6 Connections established. Then I am in
doubts about JBoss's Datasources to provide Connection Pool.
But, I know that can be my technical problem, however I had been using
several other J2EE Containers like  Borland, BEA and IBM , And I do not
remember of  fails like this.
I will buy the JBoss Documentation, then who knows I will can understand it
better.
Because is like a friend talks: The software is free, however the work is
not slave.
And I hope solve many problems after read some Chapters in JBoss's
Documentation.
I like too much JBoss, in addition to this I am trying to migrate many
projects to JBoss. Because  is free, and I Believe in the Project.
If you know some article or resource talking about Connection Pooling of
Datasouces in JBoss would be cool.
I am using JBoss 3.2, Oracle 9.i, in a RedHat 7.2 .

Thanks by help friend ...

Edgar

- Original Message -
From: Guy Rouillier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 01, 2003 6:08 PM
Subject: Re: [JBoss-user] Datasource Problems


Edgar, please identify what version you are using.  I'm not saying what
you are seeing isn't true, but as you know from these forums, inevitably
when a runaway connection problem appears, it is because of the
application not closing connections somewhere.  That somewhere is not
always easy to find.  We've been using Oracle 9i for quite some time now
(at least a year) and some of our EJBs have been running for 150 days
without exhausting connections.
Perhaps one easy place to start is to turn on tracing for a particular
datasource this is happening with.  You should be able to watch the logs
and do a count of connections obtained from the pool and returned to the
pool.  These 2 numbers should obviously stay the same.
Edgar Silva wrote:


Hi All...

My friends, I spent almost 3 weeks with a big problem
with JBoss's DataSource.


I am using Oracle, and I am sure of to close the connections
after my events. However, seem never  JBoss closes these
connections... Then this fact happens every time , until to explode
the number of connections, causing JBoss's restart.
In more details: The number of connections grow from:
3-12-20-26-30-46...214 Then the service fails.
This Application is WebService providing searches against a DataBase,
with some services with EJB and JMS. The only problem is  above,
with connections about DataSource.
I am using Oracle 9i and the newest jdbc driver

Any Idea?

Since now Thanks

Edgar



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


--
Guy Rouillier


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums

Re: [JBoss-user] Hello ! The problem of JNDI again !

2003-06-30 Thread Guy Rouillier
See here: 
http://www.jboss.org/index.html?module=htmlop=userdisplayid=docs/index

I'd recommend the annual subscription, since it is not much more than 
the individual documentation.  I'm not sure, however, that any of the 
documentation describes what each jar is for.  You can find out which 
jar contains a particular class by just going to either the client or 
server/servername/lib directory, and issuing a command like this:

unzip -l *.jar org/jboss/logging/Log.class

jonathan wong wrote:
Dear Guy ,
 Hello ! Thank you for your nice help ! I can call JBoss's EJB in my 
standalone Tomcat now ! Many many many 
... Thanks ! Therefore , I know what 
it work now ( hehe .. , just the JNDI service ) .
 Also , where can I obtain the documentation about all JBoss's services 
and *.jar ? As I think that it is helpful for me ( and other JBoss's 
users ) . The free official documentation is seem that not enough . 
Thank you !

*/Guy Rouillier [EMAIL PROTECTED]/* wrote:

jonathan wong wrote:

  Dear all ,
 
  Hello ! I am using JBoss-3.2.1 and a standalone Tomcat . I try to
  connect an EJB in Jboss's through JSP in Tomcat . Thank you for some
  people's nice help . Now , the JSP is as follow :
 
  %@ page
  session=false
  isThreadSafe=true
  isErrorPage=false
  import=javax.naming.*, com.sample.*,
javax.rmi.PortableRemoteObject,
  java.util.*, java.io.*, javax.net.*
  %
 
test

 

test



 

%
  try {
  Hashtable env = new Hashtable();
  env.put(java.naming.factory.initial,
  org.jnp.interfaces.NamingContextFactory);
  env.put(java.naming.factory.url.pkgs, org.jboss.naming;);
  // The bulk of our EJBs run here.
  env.put(java.naming.provider.url, jnp://localhost:1099);
  Object ref = new InitialContext(env).lookup(HelloWorld);
  HelloWorldHome lHome = (HelloWorldHome)
  PortableRemoteObject.narrow(ref, HelloWorldHome.class);
  HelloWorld lSession = lHome.create();
  String fromEJB = lSession.hello();
  out.println(  + fromEJB);
  }
  catch( Exception e ) {
  out.println( Caugth exception:  + e.getMessage() );
  e.printStackTrace();
  }
  %
 
  I can lookup the EJB's name (HelloWorld) in JBoss's Global JNDI
  Namespace . However , when I run the JSP , Tomcat says :
 
  Caugth exception: null
 
  And in the Dos :
 
  javax.naming.CommunicationException. Root exception is
  java.rmi.UnmarshalExcept
  ion: error unmarshalling return; nested exception is:
  java.lang.ClassNotFoundException:
  org.jnp.interfaces.MarshalledValuePair
 
  Therefore , what futher configuration should I have . Thank you !
 
I see MarshalledValuePair.class in the following jars in
jboss-3.2.1/client:
jnp-client.jar
jbossjmx-ant.jar
jbossall-client.jar
Do you have either the first or the third in the classpath you are
using
for Tomcat? Post your Tomcat classpath - it should show up in your
Tomcat console when you startup Tomcat.


-- 
Guy Rouillier



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Jonathan
(Wong Yat Sing)
Jonathan Studio http://www.jonathan-studio.net/
M.P (852) - 91235947
NetMeeting : [EMAIL PROTECTED] 
callto:ils.microsoft.com/[EMAIL PROTECTED]
ICQ# 57646152


Do you Yahoo!?
SBC Yahoo! DSL 
http://pa.yahoo.com/*http://rd.yahoo.com/evt=1207/*http://promo.yahoo.com/sbc/ 
- Now only $29.95 per month!


--
Guy Rouillier


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Hello ! The problem of JNDI again !

2003-06-29 Thread Guy Rouillier
jonathan wong wrote:

Dear all ,
 
 Hello ! I am using JBoss-3.2.1 and a standalone Tomcat . I try to 
connect an EJB in Jboss's through JSP in Tomcat . Thank you for some 
people's nice help . Now , the JSP is as follow :
 
%@ page
   session=false
   isThreadSafe=true
   isErrorPage=false
   import=javax.naming.*, com.sample.*, javax.rmi.PortableRemoteObject, 
java.util.*, java.io.*, javax.net.*
%
h4test/h4
ptest/pbrbr
p%
try {
  Hashtable env = new Hashtable();
  env.put(java.naming.factory.initial, 
org.jnp.interfaces.NamingContextFactory);
  env.put(java.naming.factory.url.pkgs, org.jboss.naming;);
  // The bulk of our EJBs run here.
  env.put(java.naming.provider.url, jnp://localhost:1099);
  Object ref = new InitialContext(env).lookup(HelloWorld);
  HelloWorldHome lHome = (HelloWorldHome) 
PortableRemoteObject.narrow(ref, HelloWorldHome.class);
  HelloWorld lSession = lHome.create();
   String fromEJB = lSession.hello();
  out.println(  +  fromEJB);
   }
   catch( Exception e ) {
  out.println( Caugth exception:  + e.getMessage() );
  e.printStackTrace();
   }
%/p
 
 I can lookup the EJB's name (HelloWorld) in JBoss's Global JNDI 
Namespace . However , when I run the JSP , Tomcat says :

Caugth exception: null

 And in the Dos :

javax.naming.CommunicationException.  Root exception is 
java.rmi.UnmarshalExcept
ion: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: 
org.jnp.interfaces.MarshalledValuePair

 Therefore , what futher configuration should I have . Thank you !

I see MarshalledValuePair.class in the following jars in jboss-3.2.1/client:

jnp-client.jar
jbossjmx-ant.jar
jbossall-client.jar
Do you have either the first or the third in the classpath you are using 
for Tomcat?  Post your Tomcat classpath - it should show up in your 
Tomcat console when you startup Tomcat.



--
Guy Rouillier


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Hello ! The problem of JNDI !

2003-06-29 Thread Guy Rouillier
jonathan wong wrote:

Dear Guy ,
 Hello ! Thank you for your help ! However , I want to ask which is the 
jndiNamingProviderURL if my separated Tomcat is http://localhost 
(127.0.0.1) and JBoss is http://localhost:8080 ? Thank you !

Either localhost or localhost:1099 should work.  You need the JNDI 
lookup address, which by default is 1099.  Because you are most likely 
using the default, you don't need to specify 1099, though it won't hurt 
if you do.  BTW, JBoss is really on 8080.  That is the address for the 
Jetty or Tomcat servlet engine bundled with JBoss.  Likewise, 1099 is 
the default address for JNDI running under JBoss.  JBoss has many 
services running on many different ports.

*/Guy Rouillier [EMAIL PROTECTED]/* wrote:

You say that you are doing this from Tomcat running separately from
JBoss, i.e., in a separate JVM. If that is true, you should not be
using lContext.lookup(java:comp/env/jb/HelloWorldHome);, as the
java:comp namespace is only for use in the same JVM. Also, rather than
relying on jndi.properties, you might want to consider putting your
lookup setting into an include file, then using either the hashtable or
properties method of creating a context. Here is some working code from
our JSPs:
java.util.Hashtable env = new java.util.Hashtable();
env.put(java.naming.factory.initial,
org.jnp.interfaces.NamingContextFactory);
env.put(java.naming.factory.url.pkgs, org.jboss.naming;);
// The bulk of our EJBs run here.
env.put(java.naming.provider.url, jndiNamingProviderUrl);
Object ref = new InitialContext(env).lookup(xxx/yyy);

jonathan wong wrote:
  Dear all ,
 
  Hello ! Thank for all of your help . However , I still can't
lookup my
  EJB in JBoss through JSP in Tomcat (saperated) . I place a
  jndi.properties file in WEB-INF\classes and have a JSP as follow :
 
  %@ page
  session=false
  isThreadSafe=true
  isErrorPage=false
  import=javax.naming.*, com.sample.*,
javax.rmi.PortableRemoteObject,
  java.util.*, java.io.*, javax.net.*
  %
 
test

 

test



 

%
  try {
  ClassLoader loader = getClass().getClassLoader();
  InputStream is = loader.getResourceAsStream(jndi.properties);
  Properties properties = new Properties();
  properties.load(is);
 
  Context lContext = new InitialContext(properties);
  Object objref = lContext.lookup(java:comp/env/jb/HelloWorldHome);
  HelloWorldHome lHome = (HelloWorldHome)
  PortableRemoteObject.narrow(objref, HelloWorldHome.class);
  HelloWorld lSession = lHome.create();
  String fromEJB = lSession.hello();
  out.println(  + fromEJB);
  }
  catch( Exception e ) {
  out.println( Caugth exception:  + e.getMessage() );
  e.printStackTrace();
  }
 
  %
 
  I can see the following information in JBoss's Global JNDI
Namespace :
  jb (class: org.jnp.interfaces.NamingContext)
  HelloWorldHome (proxy: $Proxy25 implements interface
  com.sample.HelloWorldHome,interface javax.ejb.Handle)
  Also , in my jboss.xml :
 
 
   PUBLIC -//JBoss//DTD Web Application 2.3//EN
  http://www.jboss.org/j2ee/dtds/jboss-web_3_0.dtd;
 
 
 
  HelloWorld
  jb/HelloWorldHome
 
 
 
 
  The ejb-jar.xml :
 
 
 
 
  JBoss Hello World Application
  Hello World EJB
 
 
  HelloWorld
  com.sample.HelloWorldHome
  com.sample.HelloWorld
  com.sample.HelloWorldBean
  Stateless
  Container
 
 
 
 
  However , the Tomcat says :
 
  Caugth exception: jnp
 
  And the Dos says :
 
  javax.naming.ServiceUnavailableException: jnp. Root exception is
  java.net.UnknowHostException: jnp
  ..
 
  Therefore , do I need to place / create any new file in Tomcat ?
What
  futher configuration should I have ? Or who can kindly send me a
sample
  application which can run in Tomcat and lookup to JBoss's EJB
  successfully (as a reference) ? Many Thanks !
 
 
 

  Do you Yahoo!?
  SBC Yahoo! DSL
 
  - Now only $29.95 per month!
-- 
Guy Rouillier



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Jonathan
(Wong Yat Sing)
Jonathan Studio http://www.jonathan-studio.net/
M.P (852) - 91235947

Re: [JBoss-user] Converting to 3.2.1 - javax.naming.NameNotFoundException:comp not bound

2003-06-29 Thread Guy Rouillier
Scott M Stark wrote:

The significance of the ordering of the java.naming.factory.url.pkgs is 
that this defines the order of packages from which url context factories 
are found, which includes the java: context. This must be the 
org.jboss.naming.java.javaURLContextFactory to select the server local 
java: context.

Scott, sorry, one more time if I may.  I switched from using this in 2.4.3:

java.naming.factory.url.pkgs=org.jnp.interfaces

to using this (from testsuite) in 3.2.1:

java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

The second one is working, as I reported in my last message.  Are you 
saying that instead of the second one, I should instead be using:

java.naming.factory.url.pkgs=org.jboss.naming.java.javaURLContextFactory

What is the difference between this last one and the second one?  As 
always, thanks for your time.

--
Guy Rouillier


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Hello ! The problem of JNDI !

2003-06-28 Thread Guy Rouillier
You say that you are doing this from Tomcat running separately from 
JBoss, i.e., in a separate JVM.  If that is true, you should not be 
using lContext.lookup(java:comp/env/jb/HelloWorldHome);, as the 
java:comp namespace is only for use in the same JVM.  Also, rather than 
relying on jndi.properties, you might want to consider putting your 
lookup setting into an include file, then using either the hashtable or 
properties method of creating a context.  Here is some working code from 
our JSPs:

   java.util.Hashtable env = new java.util.Hashtable();
   env.put(java.naming.factory.initial, 
org.jnp.interfaces.NamingContextFactory);
   env.put(java.naming.factory.url.pkgs, org.jboss.naming;);

   // The bulk of our EJBs run here.
   env.put(java.naming.provider.url, jndiNamingProviderUrl);
   Object ref = new InitialContext(env).lookup(xxx/yyy);

jonathan wong wrote:
Dear all ,
 
 Hello ! Thank for all of your help . However , I still can't lookup my 
EJB in JBoss through JSP in Tomcat (saperated) . I place a 
jndi.properties file in WEB-INF\classes and have a JSP as follow :
 
%@ page
   session=false
   isThreadSafe=true
   isErrorPage=false
   import=javax.naming.*, com.sample.*, javax.rmi.PortableRemoteObject, 
java.util.*, java.io.*, javax.net.*
%
h4test/h4
ptest/pbrbr
p%
try {
   ClassLoader loader = getClass().getClassLoader();
  InputStream is = loader.getResourceAsStream(jndi.properties);
  Properties properties = new Properties();
   properties.load(is);
   
   Context lContext = new InitialContext(properties);
   Object objref = lContext.lookup(java:comp/env/jb/HelloWorldHome);
  HelloWorldHome lHome = (HelloWorldHome) 
PortableRemoteObject.narrow(objref, HelloWorldHome.class);
  HelloWorld lSession = lHome.create();
   String fromEJB = lSession.hello();
  out.println(  +  fromEJB);
   }
   catch( Exception e ) {
  out.println( Caugth exception:  + e.getMessage() );
  e.printStackTrace();
   }
 
%/p
 
 I can see the following information in JBoss's Global JNDI Namespace :
jb (class: org.jnp.interfaces.NamingContext)
HelloWorldHome (proxy: $Proxy25 implements interface 
com.sample.HelloWorldHome,interface javax.ejb.Handle)
 Also , in my jboss.xml :
 
?xml version=1.0 encoding=UTF-8?
!DOCTYPE jboss-web
PUBLIC -//JBoss//DTD Web Application 2.3//EN
http://www.jboss.org/j2ee/dtds/jboss-web_3_0.dtd;
jboss
enterprise-beans
session
ejb-nameHelloWorld/ejb-name
jndi-namejb/HelloWorldHome/jndi-name
/session
/enterprise-beans
/jboss
 
 The ejb-jar.xml :
 
?xml version=1.0 encoding=UTF-8?
!DOCTYPE ejb-jar PUBLIC -//Sun Microsystems, Inc.//DTD Enterprise 
JavaBeans 2.0//EN http://java.sun.com/dtd/ejb-jar_2_0.dtd;
ejb-jar
descriptionJBoss Hello World Application/description
display-nameHello World EJB/display-name
enterprise-beans
session
ejb-nameHelloWorld/ejb-name
homecom.sample.HelloWorldHome/home
remotecom.sample.HelloWorld/remote
ejb-classcom.sample.HelloWorldBean/ejb-class
session-typeStateless/session-type
transaction-typeContainer/transaction-type
/session
/enterprise-beans
/ejb-jar
 
However , the Tomcat says :
 
Caugth exception: jnp
 
And the Dos says :
 
javax.naming.ServiceUnavailableException: jnp. Root exception is 
java.net.UnknowHostException: jnp
..
 
 Therefore , do I need to place / create any new file in Tomcat ? What 
futher configuration should I have ? Or who can kindly send me a sample 
application which can run in Tomcat and lookup to JBoss's EJB 
successfully (as a reference) ? Many Thanks !
 


Do you Yahoo!?
SBC Yahoo! DSL 
http://pa.yahoo.com/*http://rd.yahoo.com/evt=1207/*http://promo.yahoo.com/sbc/ 
- Now only $29.95 per month!


--
Guy Rouillier


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Converting to 3.2.1 - javax.naming.NameNotFoundException:comp not bound

2003-06-28 Thread Guy Rouillier
Scott M Stark wrote:

I would say you have a jndi.properties file in one of the jars that is 
interfering with the java:comp context setup.

Scott, thanks for the reply.  I spent a half hour constructing a 
follow-up. Just as I was about to hit the send key, I noticed that in my 
jndi.properties (copied from my 2.4.3 implementation), I had

java.naming.factory.url.pkgs=org.jnp.interfaces

I noticed that in the testsuite jndi.properties file, it had

java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

Sure enough, when I changed mine to this, the problem went away.  Thanks 
for steering me in that direction. What is the semantic significance of 
putting org.jboss.naming: on the front?  And any guess as to why this 
worked if I deployed/undeployed enough times?

--
Guy Rouillier


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Converting to 3.2.1 - javax.naming.NameNotFoundException: comp notbound

2003-06-27 Thread Guy Rouillier
I've initiated the process of converting our 2.4.3 systems to 3.2.1, 
using JDK 1.3.1 on Win2k SP2.  The first one I tried is a simple EJB 
that uses a single Oracle database.  To try this quickly, I put 
classes12.jar and a standard jar of ours (containing exception classes) 
into server/servername/lib.  Here is the -ds.xml file for it:
=
datasources

  local-tx-datasource
jndi-nameordermanagementDB/jndi-name
connection-urljdbc:oracle:thin:@servername.company.com:1521:sidname/connection-url
driver-classoracle.jdbc.driver.OracleDriver/driver-class
user-nameuserid/user-name
passwordpassword/password
exception-sorter-class-nameorg.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter/exception-sorter-class-name
  /local-tx-datasource
/datasources

Using jmx-console, I can see that this datasource is successfully 
started.  When I deploy an EJB that does a lookup on this datasource, I 
get the subject exception (partial stack at end of message).  However, 
if I then delete the JAR file and immediately copy it back (without 
shutting down JBoss), this time it will be deployed successfully!??? 
I've verified that the EJB and the db connection work fine once the EJB 
is successfully deployed.  This is a best case scenario.  Tonight, 
preparing to write this message, I tried deleting and copying the JAR 
five times, and got the subject error each time.  I had to shut down 
JBoss, restart it, deploy the EJB, watch it fail, delete it then deploy 
it a second time.  Finally, I got a successful deployment.

This is a binary JBoss 3.2.1 installation, not from source, and the same 
thing is happening to a co-worker on completely different hardware 
(Linux).  This has me baffled - what am I doing wrong?

Here is a partial stack trace:

2003-06-27 23:01:24,562 DEBUG [org.jboss.ejb.StatelessSessionContainer] 
Begin java:comp/env for EJB: com.masergy.ejb.OrderManagement.OrderManagement
2003-06-27 23:01:24,562 DEBUG [org.jboss.ejb.StatelessSessionContainer] 
TCL: [EMAIL PROTECTED]
2003-06-27 23:01:24,640 ERROR [org.jboss.ejb.StatelessSessionContainer] 
Starting failed
javax.naming.NameNotFoundException: comp not bound
	at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
	at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
	at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
	at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:492)
	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
	at javax.naming.InitialContext.lookup(InitialContext.java:350)
	at org.jboss.ejb.Container.setupEnvironment(Container.java:734)
	at org.jboss.ejb.Container.startService(Container.java:568)

--
Guy Rouillier




---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Shutdown JBoss programmatically

2003-06-24 Thread Guy Rouillier
Magesh Prabhu wrote:
Guys,

I do some initialization stuff on a startup Servlet. If some services fail during this initialization, I want to shutdown JBoss. Is there a programmatical way of doing it. Can any body suggest please.
You don't mention what version of JBoss you are working with.  There is 
a shutdown.bat and shutdown.jar in the bin directory of 3.2.x.  You 
could probably execute the same code that it is using.  shutdown.bat 
would obviously run in a separate JVM, so I don't know what kind of 
problems you are going to get trying to shut down the JVM you are 
running in.

Thanks in advance,
Magesh


**
This email and its attachments are intended for the above 
named only and may be confidential.  If they have come to 
you in error, you must take no action based on them, nor 
must you copy or show them to anyone; please reply to this 
email and highlight the error.
Security Warning: Please note that this email has been 
created in the knowledge that the internet email is not a 
100% secure communications medium.  We advise that you 
understand and observe this lack of security when emailing us.
Viruses:  Although we have taken steps to ensure that this 
email and attachments are free from any virus, we advise 
that in keeping with good computing practice the recipient 
should ensure they are actually virus free.
If you have received this email in error please notify:
[EMAIL PROTECTED]
**



---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


--
Guy Rouillier


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] java.util.logging

2003-06-24 Thread Guy Rouillier
Snell Nguyen wrote:

I  have wrote a Java Server. I used java.util.logging package to log
message. I integrated it into JBoss. How to configure to log message? Please
help me.
Thanks
Snell Nguyen
Did you read the Java Logging Overview here:
http://java.sun.com/j2se/1.4.1/docs/guide/util/logging/overview.html#1.2
It discusses configuration files, etc.

BTW, are you aware that JBoss comes configured with a full-featured 
logging mechanism, log4j?  Very easy to use.  What features are you 
looking for that log4j does not provide?

--
Guy Rouillier


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Who is using JBoss in production?

2003-06-17 Thread Guy Rouillier
This question pops up here regularly - did you search the archives? 
JBoss is used widely in production - we use it in all our apps for a 
telecom company (not running the actual network, but all the systems 
that run the company.)

[EMAIL PROTECTED] wrote:

Hi all,

I went to the Sun JavaOne conference in the Netherlands yesterday.

I talked to a lot of people, and noticed that not many people are using 
JBoss in a production environment.

I was wondering? How many of you are actually running production systems 
on JBoss?

Grtz,

Harm de Laat
Informatiefabriek
The Netherlands


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


--
Guy Rouillier


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Lookup failing in JBoss3.0.4(with attachment)

2003-06-14 Thread Guy Rouillier
)
at 
com.cisco.nm.qpm.server.util.HomeReferencesManager.getHome(HomeReferencesManager.java:100)
at 
com.cisco.nm.qpm.server.inventory.ejb.Query.execute(Query.java:1728)
at 
com.cisco.nm.qpm.web.util.grid.DataGrid.work(DataGrid.java:189)
at 
com.cisco.nm.qpm.web.util.grid.DataGrid.init(DataGrid.java:103)
at 
policy.group.NetworkElementSelection_1._jspService(NetworkElementSelection_1.java:909)
at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at 
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at 
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at 
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Interceptor.java:341)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Unknown Source)
ERROR 10/Jun/2003 13:49:13 [Thread-34] (Query.java:1748): ejb.Query - 
com.cisco.nm.qpm.server.util.HomeReferencesManagerException: 
javax.naming.NoInitialContextException: Cannot instantiate class: 
org.jnp.interfaces.NamingContextFactory [Root exception is 
java.lang.ClassNotFoundException: 
org.jnp.interfaces.NamingContextFactory]
at 
com.cisco.nm.qpm.server.util.HomeReferencesManager.getHome(HomeReferencesManager.java:107)
at 
com.cisco.nm.qpm.server.inventory.ejb.Query.execute(Query.java:1728)
at 
com.cisco.nm.qpm.web.util.grid.DataGrid.work(DataGrid.java:189)
at 
com.cisco.nm.qpm.web.util.grid.DataGrid.init(DataGrid.java:103)
at 
policy.group.NetworkElementSelection_1._jspService(NetworkElementSelection_1.java:909)
at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at 
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at 
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at 
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Interceptor.java:341)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Unknown Source)


--
Guy Rouillier


---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com 
http://www.etnus.com/.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


--
Guy Rouillier


---
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] HOWTO: Call an EJB from an Oracle Java Stored Procedure

2003-06-14 Thread Guy Rouillier
Sure, I'd be willing to help with this, since I'm benefiting from it. 
Two additional thoughts came to mind after I sent my last message:

(1)  Your steps said to load the EJB into Oracle.  Technically, you just 
want to load the home and remote interfaces, and not the bean class. 
With versions 2.x of JBoss, having the bean class in the client 
classpath would make hot deploy appear not to work.  Don't know if that 
is still true in 3.x.

(2)  The Oracle JVM has IIOP support built-in.  I'm wondering if we 
switch to IIOP instead of defaulting to JRMP, if we can eliminate having 
to load a bunch of protocol classes into Oracle.  As an aside, I 
happened to notice reading through some Oracle JVM documentation that 
they specifically say not to do RMI inside Java stored procedures.  It 
said that RMI starts up its own threads, and starting threads in stored 
procs is discouraged since it makes Oracle's session management flaky. 
Oh, well, we'll have to ignore this rule since without RMI we'd be done 
before we started.

Nicholas wrote:

I wrote the OracleLoadJava task. I just have not got
around to submitting it. 

I wanted to write a whole set of PL/SQL-JBoss services
so I figured I would just load the whole JBoss client
dir, but I also noticed a large number of invalid
classes.
I think we just have to ramp up the complexity of the
calls and track what's needed where and for what. I
will start docuemnting what you have here and we
should compare notes periodically, and I'll put them
on a wiki somewhere.
Agreed ?

//Nicholas



--- Guy Rouillier [EMAIL PROTECTED] wrote:

Nicholas, I finally got around to trying this, and
it works - thanks!  I 
struggled with this for about 6 months and got
nowhere (including 
working with someone inside Oracle!)  I had to go
through several 
iterations and fix missing permissions identified in
udump.  I really 
should delete all Java permissions and start from
scratch to identify 
exactly what is needed; I have a bunch already in
there from when I 
tried the last time.  A couple of points/questions:

(1) Where did you find the OracleLoadJava task for
Ant?
(2) I loaded all JBoss-3.2.1/client jars *except*
jbossall-client.jar 
(figuring it was redundant).  Again, I'll probably
start from scratch to 
see if I can pare down what is needed.  After
recompiling the INVALID 
classes, I'm still showing 488 classes that are
marked INVALID.  Many of 
them look pretty fundamental (i.e., necessary), so
I'm wondering once we 
move beyond a trivial example if this will continue
to work.

(3) Your steps say to recompile these INVALID
classes.  I found that the 
following accomplishes the same thing, and gets done
much faster:

- First, load all the jar files without resolving. 
Don't know how to do 
this in Ant, but from a command line you can do it
like this:

   call loadjava -user GUYR/[EMAIL PROTECTED]
concurrent.jar
- Then make a second pass through all the jars, this
time invoking the 
resolver.  This looks like this:

  call loadjava -resolve -resolver ((* GUYR)
(* PUBLIC)) -user 
GUYR/[EMAIL PROTECTED] concurrent.jar

Nicholas wrote:

I went back to reproducs this, and the process was
this using 
Windows XP Professional
JBoss jboss-3.2.0_tomcat-4.1.24
Oracle Enterprise Version 9.2.0.1.0

1. LoadJava the entire JBoss Client Jar collection
into  SCOTT.
project name=OracleLoadJavaExample
default=all

basedir=.
taskdef name=OracleLoadJava

classname=org.apache.tools.ant.taskdefs.optional.oraclejava.OracleLoadJava/

/target
target name=all
patternset id=all.jars
include name=**/*.jar/
/patternset
OracleLoadJava oci=on user=SCOTT/[EMAIL PROTECTED]
resolve=on debug=on force=no noverify=on
verbose=on noserverside=on schema=scott
synonym=on time=on
fileset
dir=C:/jboss-3.2.0_tomcat-4.1.24/client

patternset refid=all.jars/
/fileset
/OracleLoadJava
/target
/project
2. Recompile all the invalid classes. To do this,
generate a script with this SQL logged in as
SCOTT:

select 'ALTER JAVA CLASS SCOTT.' || object_name
|| '

COMPILE;' from USER_OBJECTS where object_type in
('JAVA CLASS', 'JAVA SOURCE') and status =
'INVALID'

Run the script that is generated.

3. Grant the following rights to SCOTT:

dbms_java.grant_permission( 'SCOTT',
'SYS:java.net.SocketPermission', 'IP
ADDRESS:1024-',

'listen,resolve' ); 
dbms_java.grant_permission( 'SCOTT',
'SYS:java.net.SocketPermission', 'IP
ADDRESS:3495',

'connect,accept,resolve' );
   dbms_java.grant_permission(

'SCOTT','SYS:java.lang.RuntimePermission','org.jboss.security.SecurityAssociation.getPrincipalInfo',

'' );
   dbms_java.grant_permission(
'SCOTT','SYS:java.io.SerializablePermission',
'enableSubstitution', '' );
   dbms_java.grant_permission( 'SCOTT',
'SYS:java.net.SocketPermission','IP
ADDRESS:8093',

'connect,resolve

Re: [JBoss-user] HOWTO: Call an EJB from an Oracle Java Stored Procedure

2003-06-12 Thread Guy Rouillier
(Exception: + ex);
  ex.printStackTrace();
  return null;
}
  }
  public static Context getJBossContext() throws
Exception {
Properties p = new Properties();
p.put(Context.PROVIDER_URL, localhost:1099);
   
p.put(Context.INITIAL_CONTEXT_FACTORY,org.jnp.interfaces.NamingContextFactory);
return new InitialContext(p);
  }

4. Recompiled invalid Java Classes again.

5. Created test SQL Script  (testreverse.sql):

connect scott/[EMAIL PROTECTED]
SET SERVEROUTPUT ON
DECLARE
AA VARCHAR2(30) := 'NULL';
BEGIN
dbms_java.set_output(1);
AA := REVERSE('StringLib', 'Calling JBoss From
PLSQL');
dbms_output.put_line('Reversed ='|| AA);
END;
/
exit
/
6. Created test command file (reverse.cmd):

@echo off
cls
sqlplus /NOLOG @testreverse.sql
7. Ran the command file:

C:\testreverse

SQL*Plus: Release 9.2.0.1.0 - Production on Mon Jun 9
06:07:03 2003
Copyright (c) 1982, 2002, Oracle Corporation.  All
rights reserved.
Connected.
reverse(StringLib,Calling JBoss From PLSQL);
Aha! Connnected To :localhost:1099
Looking Up:StringLib
Found Object Ref:StringLibHome
Cast to Home
StringLib.reverse Result:LQSLP morF ssoBJ gnillaC
Reversed =LQSLP morF ssoBJ gnillaC
PL/SQL procedure successfully completed.

Disconnected from Oracle9i Enterprise Edition Release
9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining
options
JServer Release 9.2.0.1.0 - Production


I found Oracle to be a little unstable when testing
this, but once it is loaded and all the classes are
fully compiled in Oracle, it is pretty snappy.
//Nicholas



--- Guy Rouillier [EMAIL PROTECTED] wrote:

Nicholas and Stephano, I've tried to get this
working numerous times in 
the past, but I'm still not there.  You can find my
previous posts on 
this by searching the archives.

Nicholas, I can load the JBoss classes into the
Oracle JVM using 
loadjava.  But whenever I try to run the simplest
EJB invocation, I get 
all kinds of errors.  Have you successfully invoked
a method on an EJB 
running under JBoss from within an Oracle stored
procedure?  If so, I 
would very much like details on how you did this. 
Would make a great 
HOWTO for this group.  Thanks.

Nicholas wrote:

Stefano;

I have had some luck loading classes using a
custom

Ant task.  It is really just a wrapper for
LoadJava

but easier to use if you are Ant inclined. It
looks

like this:
patternset id=oracle.load.classes
include name=jbossall-client.jar/
/patternset
target name=LoadJBossToOracle
OracleLoadJava oci=on
user=SCOTT/[EMAIL PROTECTED]

resolve=on debug=on force=on noverify=on
verbose=on noserverside=on schema=scott
synonym=on time=on
fileset
dir=C:/jboss-3.2.0_tomcat-4.1.24/client

patternset refid=oracle.load.classes/
/fileset
grant name=scott/
/OracleLoadJava 
/target
The keys are the following:

1. Defer resolution until the second pass. (set
resolve=on)
2. Recompile all classes when you are done. You
can

generate a script to do this as follows:

select 'ALTER JAVA CLASS USER NAME.' ||
object_name

|| ' COMPILE;' from ALL_OBJECTS where object_type
in

('JAVA CLASS', 'JAVA SOURCE') and OWNER = 'USER
NAME'
Run the output as a SQL script. It will take quite
a

long time...

Anyways, email me off line and I'll send you the
Ant

tasks, examples and doc.

//Nicholas

--- Stefano Maestri [EMAIL PROTECTED]
wrote:

We are trying to write a java Stored procedure for
oracle that call a session 
bean. We are experiencing some troble because when
we set the InitialContext 
we get an error because
org.jnp.interfaces.NamingContextFactory is not 
present in Aurora. We tryied to load it (extracted

from jbossall-client.jar), 

but Oracle failed to resolve that class. We tryied
also to load all 
jbossall-client.jar with a lot of resolving error.
Ideas? Domeone had already did something like
that.

We are using Jboss-3.2.1 
for the bean (and for the jabossall-client.jar)
and

Oracle 9.2 on HP-UX for 
the DB.
Thanks a lot for the attention.

P.S.: We had not also javax.ejb in Aurora, but it
load correctly.
--
--- all work and no play makes Jack a
dull boy --- 
bye Stefano 
	[EMAIL PROTECTED]
	www.javalinux.it
  	MSN messanger: [EMAIL PROTECTED] 
  	ICQ uin: 122192578
  	Jabber: canezen
	Yahoo MSN: canezen
  	#jedit IRC channel as maeste 





---

This SF.net email is sponsored by:  Etnus, makers
of

TotalView, The best
thread debugger on the planet. Designed with
thread

debugging features
you've never dreamed of, try TotalView 6 free at
www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]


https://lists.sourceforge.net/lists/listinfo/jboss-user

=
Nicholas Whitehead
Home: (973) 377 9335
Cell: (201) 615 2716
[EMAIL PROTECTED]
Get Your News

Re: [JBoss-user] Retrieving a mail session object from Jboss [3.2.1]

2003-06-11 Thread Guy Rouillier
When you say Tomcat running as a separate bundle, I'm taking that to 
mean in a different JVM.  If so, I don't think you can just look it up. 
 The Mail service is an MBean, not an EJB.  You might be able to get a 
handle to the MBeanServer, and locate the MBean that way.

Marco Tedone wrote:

I tried with your code, Guy. Anyway, I'm trying to getting a Jboss Mail
Session from a class running under Tomcat (running as separate bundle),
therefore I don't bind the resource-ref element to any session or entity
bean. What I would like is just to retrieve a Mail Session Object from JBoss
and to use it, instead of implementing (as I've done) it on my own.
I tried your code, but I obtain the following exception (the first part is
customized):
NamingException while getting the Jboss Mail Session: Mail not bound

The InitialContext object has been set correctly, as I manage entity and
session bean successfully.
If you don't have time to follow this issue, just leave it, I'm happy with
the service I implemented under Tomcat right now, but if I could use Jboss I
would be happier.
Marco

- Original Message - 
From: Guy Rouillier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 5:07 AM
Subject: Re: [JBoss-user] Retrieving a mail session object from Jboss
[3.2.1]



Here is what I did under 2.4.3.  The same thing should work in 3.2.1, as
I see mail-service.xml is in the default server.  Check your server
(either the logs or jmx-console) to make sure the mail service has
started properly.
Source:
Session session = ((Session) new
InitialContext().lookup(java:comp/env/mail/Mail));
ejb-jar.xml:

resource-ref
   descriptionA mail session for the Email bean/description
   res-ref-namemail/Mail/res-ref-name
   res-typejavax.mail.Session/res-type
   res-authContainer/res-auth
/resource-ref
jboss.xml:

resource-managers
   resource-manager
   res-jndi-namejava:/Mail/res-jndi-name
   res-namemail/Mail/res-name
   /resource-manager
/resource-managers


Marco Tedone wrote:

Hi, I would like to retrieve a javax.mail.Session object from within a
class

running under Tomcat.

I would like to user the javax.mail.Session provided by Jboss. In the
jmx-console, I can see that under the java Namespace there is the 'Mail'
name; however, from within my class, when I do the following:
//setJbossProperties() returns a Properties object set for Jboss. It
works

as another class uses it and my entity/session
//beans work greatly
InitialContext context = new
InitialContext(JbossService.newInstance().setJbossProperties());
//jndiName contains java:comp/env/Mail
Object node = context.lookup(jndiName);
session = (Session)PortableRemoteObject.narrow(node, Session.class);
I receive the following exception:

ERROR 09 Jun 2003 22:37:41,859 framework.MailService -- NamingException
while creating a JavaMail Session: comp not bound
or, if I set jndiName with java:/Mail

ERROR 09 Jun 2003 22:37:41,859 framework.MailService -- NamingException
while creating a JavaMail Session: Mail not bound
I also tried simply with the following:

InitialContext context = new
InitialContext(JbossService.newInstance().setJbossProperties());
session = (Session)context.lookup(jndiName);
Two questions:

1) Is it possible from an external class (let's say under Tomcat) to
retrieve a Session object by simply lookup the Jboss JNDI namespace?
2) Is the source I wrote correct?

Thanks for any help,

Marco





---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


--
Guy Rouillier


---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user






---
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


--
Guy Rouillier


---
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Lookup failing in JBoss3.0.4(with attachment)

2003-06-10 Thread Guy Rouillier
]
at 
com.cisco.nm.qpm.server.util.HomeReferencesManager.getHome(HomeReferencesManager.java:107)
at com.cisco.nm.qpm.server.inventory.ejb.Query.execute(Query.java:1728)
at com.cisco.nm.qpm.web.util.grid.DataGrid.work(DataGrid.java:189)
at com.cisco.nm.qpm.web.util.grid.DataGrid.init(DataGrid.java:103)
at 
policy.group.NetworkElementSelection_1._jspService(NetworkElementSelection_1.java:909)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at 
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Interceptor.java:341)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Unknown Source)


--
Guy Rouillier


---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Retrieving a mail session object from Jboss [3.2.1]

2003-06-09 Thread Guy Rouillier
Here is what I did under 2.4.3.  The same thing should work in 3.2.1, as 
I see mail-service.xml is in the default server.  Check your server 
(either the logs or jmx-console) to make sure the mail service has 
started properly.

Source:
Session session = ((Session) new 
InitialContext().lookup(java:comp/env/mail/Mail));

ejb-jar.xml:

resource-ref
   descriptionA mail session for the Email bean/description
   res-ref-namemail/Mail/res-ref-name
   res-typejavax.mail.Session/res-type
   res-authContainer/res-auth
/resource-ref
jboss.xml:

resource-managers
   resource-manager
   res-jndi-namejava:/Mail/res-jndi-name
   res-namemail/Mail/res-name
   /resource-manager
/resource-managers


Marco Tedone wrote:
Hi, I would like to retrieve a javax.mail.Session object from within a class
running under Tomcat.
I would like to user the javax.mail.Session provided by Jboss. In the
jmx-console, I can see that under the java Namespace there is the 'Mail'
name; however, from within my class, when I do the following:
//setJbossProperties() returns a Properties object set for Jboss. It works
as another class uses it and my entity/session
//beans work greatly
InitialContext context = new
InitialContext(JbossService.newInstance().setJbossProperties());
//jndiName contains java:comp/env/Mail
Object node = context.lookup(jndiName);
session = (Session)PortableRemoteObject.narrow(node, Session.class);
I receive the following exception:

ERROR 09 Jun 2003 22:37:41,859 framework.MailService -- NamingException
while creating a JavaMail Session: comp not bound
or, if I set jndiName with java:/Mail

ERROR 09 Jun 2003 22:37:41,859 framework.MailService -- NamingException
while creating a JavaMail Session: Mail not bound
I also tried simply with the following:

InitialContext context = new
InitialContext(JbossService.newInstance().setJbossProperties());
session = (Session)context.lookup(jndiName);
Two questions:

1) Is it possible from an external class (let's say under Tomcat) to
retrieve a Session object by simply lookup the Jboss JNDI namespace?
2) Is the source I wrote correct?

Thanks for any help,

Marco





---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


--
Guy Rouillier


---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Problems with JBoss on JNDI Data Source Connection

2003-06-08 Thread Guy Rouillier
Well, your suggestion will work but it is not the preferred way of doing 
the lookup.  Your lookup should look something like this (taken from 
some production code):

connection = ((DataSource)(new 
InitialContext()).lookup(java:comp/env/jdbc/ordermanagementDB)).getConnection();

ejb-jar.xml would contain something like this:

resource-ref
   descriptionA jdbc connection to the order management Oracle 
DB/description
   res-ref-namejdbc/ordermanagementDB/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
/resource-ref

and finally jboss.xml would contain something like this:

  resource-managers
resource-manager
  res-jndi-namejava:/ordermanagementDB/res-jndi-name
  res-namejdbc/ordermanagementDB/res-name
/resource-manager
  /resource-managers
The idea is to provide a logical resource name inside your Java code, 
then map the logical name to a physical name in the deployment 
descriptor.  This allows you to change physical resources at deployment 
time without having to edit or recompile code.

Edgar Silva wrote:
Try the Lookup this way:
 
 
   DataSource ds = (DataSource) jndiContext.lookup(java:/dbnrhdes);
 
I had been using DataSources in JBoss and everything is ok
 
I hope help you
 
Edgar Silva

- Original Message -
*From:* Paulo Francesco Pacheco mailto:[EMAIL PROTECTED]
*To:* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
*Sent:* Thursday, June 05, 2003 9:53 PM
*Subject:* [JBoss-user] Problems with JBoss on JNDI Data Source
Connection
Hi...
 
I have taken some exceptions with my JBoss...jboss-3.0.6_tomcat-4.1.18
...the client classpath is ok...
my jdk version is jdk1.3.1 and it´s ok...
 
I wrote a simple test code...
 
package com.ccibm.wiredsys.xclient;
 
import java.beans.Beans;
import java.io.IOException;
import java.io.Serializable;
import java.sql.Connection;
import java.util.Properties;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.sql.DataSource;
 
public class SQLJndiConnectionTest extends Beans implements
Serializable {
 
 public SQLJndiConnectionTest() {
 }
 
 public static void main(String[] args)
  throws IOException, NamingException {
 
  try {
   
   Properties props = new Properties();
   
   props.put(java.naming.factory.initial,org.jnp.interfaces.NamingContextFactory);
   props.put(java.naming.factory.url.pkgs,org.jboss.naming:org.jnp.interfaces);
   props.put(java.naming.provider.url,jnp://localhost:1099);
 
   InitialContext jndiContext = new InitialContext(props);
   DataSource ds = (DataSource)
jndiContext.lookup(java:/jdbc/dbnrhdes);
   Connection conn = ds.getConnection();
 
   if (conn != null || conn.isClosed() == false) {
System.out.println(
 Connection --  + (int) conn.toString().hashCode());
conn.close();
ds = null;
jndiContext = null;
   } else {
System.out.println(No active connections !!!);
   }
  } catch (Exception e) {
   System.out.println(No active connections !!!);
   e.printStackTrace();
   throw new NamingException(e.getMessage());
  }
 }
}
 
and the exit message is the same all time...
 
No active connections !!!
javax.naming.NameNotFoundException: jdbc not bound
 at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
 at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
 at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
 at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:484)
 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:463)
 at javax.naming.InitialContext.lookup(InitialContext.java:350)
 at
com.ccibm.wiredsys.xclient.SQLJndiConnectionTest.main(SQLJndiConnectionTest.java:29)
javax.naming.NamingException: jdbc not bound
 at
com.ccibm.wiredsys.xclient.SQLJndiConnectionTest.main(SQLJndiConnectionTest.java:44)
Exception in thread main
 
someone can help me please !!!

 


--
Guy Rouillier


---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Hello ! The problem of deployment !

2003-06-08 Thread Guy Rouillier
There should be no difference between accessing a standalone Tomcat vs 
one bundled with JBoss.  Bundling of Tomcat with JBoss is done to gain 
the benefit of running both in a single JVM, but aside from that, Tomcat 
is still Tomcat.

jonathan wong wrote:

Dear all ,
 Hello ! I am a beginner of JBoss . I encounter a problem of deployment 
. I deployed a a.jar file in JBoss 3.x with Tomcat ( 
E:\jboss\server\default\deploy\a.jar ) . How can the JSPs or Servlets in 
the JBoss's Tomcat can invoke the deployed in JBoss ? Thank you !
 Also , there is the other simple ( but confusing me ) problem . I 
can browse the defult page of Tomcat in JBoss if it runs as standalone 
server . However , I don't know how to access to the specified file in 
Tomcat if it is start with the JBoss . Thank you !
 

Jonathan
(Wong Yat Sing)
Jonathan Studio http://www.jonathan-studio.net/
M.P (852) - 91235947
NetMeeting : [EMAIL PROTECTED] 
callto:ils.microsoft.com/[EMAIL PROTECTED]
ICQ# 57646152


Do you Yahoo!?
Free online calendar 
http://us.rd.yahoo.com/mail_us/tag/*http://calendar.yahoo.com with 
sync to Outlook(TM).


--
Guy Rouillier


---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Call an EJB from an Oracle Java Stored Procedure

2003-06-07 Thread Guy Rouillier
Nicholas and Stephano, I've tried to get this working numerous times in 
the past, but I'm still not there.  You can find my previous posts on 
this by searching the archives.

Nicholas, I can load the JBoss classes into the Oracle JVM using 
loadjava.  But whenever I try to run the simplest EJB invocation, I get 
all kinds of errors.  Have you successfully invoked a method on an EJB 
running under JBoss from within an Oracle stored procedure?  If so, I 
would very much like details on how you did this.  Would make a great 
HOWTO for this group.  Thanks.

Nicholas wrote:
Stefano;

I have had some luck loading classes using a custom
Ant task.  It is really just a wrapper for LoadJava
but easier to use if you are Ant inclined. It looks
like this:
patternset id=oracle.load.classes
include name=jbossall-client.jar/
/patternset
target name=LoadJBossToOracle
OracleLoadJava oci=on user=SCOTT/[EMAIL PROTECTED]
resolve=on debug=on force=on noverify=on
verbose=on noserverside=on schema=scott
synonym=on time=on
fileset dir=C:/jboss-3.2.0_tomcat-4.1.24/client
patternset refid=oracle.load.classes/
/fileset
grant name=scott/
/OracleLoadJava 
/target
The keys are the following:

1. Defer resolution until the second pass. (set
resolve=on)
2. Recompile all classes when you are done. You can
generate a script to do this as follows:
select 'ALTER JAVA CLASS USER NAME.' || object_name
|| ' COMPILE;' from ALL_OBJECTS where object_type in
('JAVA CLASS', 'JAVA SOURCE') and OWNER = 'USER
NAME'
Run the output as a SQL script. It will take quite a
long time...
Anyways, email me off line and I'll send you the Ant
tasks, examples and doc.
//Nicholas

--- Stefano Maestri [EMAIL PROTECTED]
wrote:
We are trying to write a java Stored procedure for
oracle that call a session 
bean. We are experiencing some troble because when
we set the InitialContext 
we get an error because
org.jnp.interfaces.NamingContextFactory is not 
present in Aurora. We tryied to load it (extracted
from jbossall-client.jar), 
but Oracle failed to resolve that class. We tryied
also to load all 
jbossall-client.jar with a lot of resolving error.
Ideas? Domeone had already did something like that.
We are using Jboss-3.2.1 
for the bean (and for the jabossall-client.jar) and
Oracle 9.2 on HP-UX for 
the DB.
Thanks a lot for the attention.

P.S.: We had not also javax.ejb in Aurora, but it
load correctly.
--
--- all work and no play makes Jack a
dull boy --- 
bye Stefano 
	[EMAIL PROTECTED]
	www.javalinux.it
   	MSN messanger: [EMAIL PROTECTED] 
   	ICQ uin: 122192578
   	Jabber: canezen
	Yahoo MSN: canezen
   	#jedit IRC channel as maeste 



---

This SF.net email is sponsored by:  Etnus, makers of
TotalView, The best
thread debugger on the planet. Designed with thread
debugging features
you've never dreamed of, try TotalView 6 free at
www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

=
Nicholas Whitehead
Home: (973) 377 9335
Cell: (201) 615 2716
[EMAIL PROTECTED]
Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/
---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


--
Guy Rouillier


---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JBoss 3.2.1 and MBeans

2003-06-07 Thread Guy Rouillier
The QuickStart documentation explains how to code up an EJB, showing a
reference to an MBean.  The testsuite has many examples of MBeans. 

On Sat, 2003-06-07 at 15:11, Sreedhar Kumar Morangapally wrote:
 How to access an already existing MBean or register a new MBean.
 Plz give a sample java code for MBean and steps to deploy it...
 ___
 Get email that means BUSINESS! me @ mycompany.com.
 Just Rs.1499/year.
 To start, click http://www.rediffmailpro.com
 
 
 
 ---
 This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
 thread debugger on the planet. Designed with thread debugging features
 you've never dreamed of, try TotalView 6 free at www.etnus.com.
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
Guy Rouillier [EMAIL PROTECTED]



---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: HA: [JBoss-user] Oracle XA error on 3.2.1

2003-06-05 Thread Guy Rouillier
Sasidharan, Manoj wrote:
Hello,

Did you run initjvm script on the Oracle database?
That would set up the JVM inside the Oracle database.  I don't see how 
that is relevant to the current discussion.

rgds
MS
-Original Message-
From: Marco Tedone [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 4:30 PM
To: [EMAIL PROTECTED]
Subject: Re: HA: [JBoss-user] Oracle XA error on 3.2.1
Have you set pad=true in transaction-service.xml file? I'm using Oracle9i
with Jboss 3.2.1 and an XA datasource, and everything is working great.
Regards,

Marco
- Original Message - 
From: Stefano Maestri [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 2:03 PM
Subject: Re: HA: [JBoss-user] Oracle XA error on 3.2.1

Hi,
sorry for late response, but I have some health trouble in last days :(
I took a look to udump and I didn't find anything that seems releated to XA.
I
was a DBA, and I think I looked everywhere a dump could be. Probably I'm
taking mistake on what I search and not where. Did you have idea how the
dump
I'm looking for could appear?
If you wnat and if you give a suggestion from where to start I could patch
my
self the exception formatter to print XA_HEU* exception if havenn't time
Thanks a lot

Stefano.

On Saturday 24 May 2003 16:39, Igor Fedorenko wrote:

Sorry for long response Stefano.

I really do not know what's going on. For some reason Oracle throws
generic

XAException which does not contain any additional information. Given the
stack trace I believe that oracle heuristically rolled back its
transaction

branch what caused rollback of the entire transaction. Unfortunately,
JBoss

does not log XA_HEU* exceptions so it is difficult to say more. I will fix
logging of XA_HEU* exceptions in CVS in next couple of hours. In the mean
time you could check oracle server logs in admin/$ORACLE_SID/udump.

-Original Message-
From: Stefano Maestri [mailto:[EMAIL PROTECTED]
Sent: Friday, May 23, 2003 3:27 AM
To: [EMAIL PROTECTED]
Subject: Re: HA: [JBoss-user] Oracle XA error on 3.2.1
On Friday 23 May 2003 03:11, Igor Fedorenko wrote:

Stefano,

Do you see oracle specific error message that looks like

example
2003-05-14 08:00:01,169 WARN [org.jboss.tm.TransactionImpl]
xa error: -4


(The XID is not valid.); oracle error: 24756; oracle sql error: 0;
/example
The much similar error I see is at the end of this message,
but it dont like
what you are asking. There isn't ant oracle error.

If you don't, are you sure that
jboss.jca:service=OracleXAExceptionFormatter mbean is
registered and its


state is Started?
Yes, I verified also with webconsole and it is deployed and Started.
Thanks for your time. There is the exception mentioned before:
2003-05-22 12:23:23,689 WARN  [org.jboss.tm.TransactionImpl]
XAException:
tx=TransactionImpl:XidImpl
[FormatId=257, GlobalId=poseidone//57289, BranchQual=]
errorCode=XAER_RMERR
javax.transaction.xa.XAException
   at
oracle.jdbc.xa.OracleXAResource.disallowLocalTxnMode(OracleXAR
esource.java:1045)
   at
oracle.jdbc.xa.OracleXAResource.suspendStacked(OracleXAResourc
e.java:227)
   at
oracle.jdbc.xa.client.OracleXAResource.rollback(OracleXAResour
ce.java:920)
   at
org.jboss.resource.adapter.jdbc.xa.XAManagedConnection.rollbac
k(XAManagedConnection.java:1
85)
   at
org.jboss.tm.TransactionImpl.rollbackResources(TransactionImpl
.java:1648)
   at
org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:394)
   at
org.jboss.ejb.plugins.TxInterceptorCMT.endTransaction(TxInterc
eptorCMT.java:369)
   at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxI
nterceptorCMT.java:253)
   at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT
.java:104)
NHYX'n7+h~V
./Z(ujejj]jjv
9
Z J0q,x%,+-by+b+-w6z




--
Guy Rouillier


---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Exceptions when running JBoss-3.2.1-tomcat4.1.24on a desktop machine

2003-06-03 Thread Guy Rouillier
You're running Oracle, and it has a server at 8080.  That's where the 
XDB is coming from.  The easiest solution I found was to switch to 
another port.  To find all the places where this port us used, use grep.

[EMAIL PROTECTED] wrote:

hi all,
i have downloaded jboss3.2.1_tomcat4.1.24 on my laptop machine,
deployed one web app and everything worked fine.
when, however, i downloaded the same version of jboss on my desktop  machine
and deployed exactly the same web application, when i started jboss i got
following exception:
java.net.BindException: Address already in use: JVM_Bind:8080
   at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoi
nt.java:280)
   at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
   at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.
java:1117)
   at org.apache.catalina.startup.Embedded.start(Embedded.java:999)
   at org.jboss.web.catalina.EmbeddedCatalinaService41.startService(Embedde
dCatalinaService41.java:214)
   at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
92)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
   at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:966)
   at $Proxy11.start(Unknown Source)
   at org.jboss.system.ServiceController.start(ServiceController.java:392)
   at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
   at $Proxy5.start(Unknown Source)
   at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
   at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
   at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
   at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
   at $Proxy7.deploy(Unknown Source)
   at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
tScanner.java:302)
   at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
canner.java:476)
   at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
doScan(AbstractDeploymentScanner.java:200)
   at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
bstractDeploymentScanner.java:273)
   at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
92)
   at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
   at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:966)
   at $Proxy0.start(Unknown Source)
   at org.jboss.system.ServiceController.start(ServiceController.java:392)
   at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
   at $Proxy5.start(Unknown Source)
   at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
   

[JBoss-user] 3.2.1 No ClassNotFound for datasource missing required jar

2003-06-01 Thread Guy Rouillier
We are still running 2.4.3 at work, and I'm starting to prepare for the 
transition to 3.2.x.  In my first test conversion, I created an Oracle 
datasource and deployed it.  I forgot to copy classes12.jar into 
server\myserver\lib.  But looking through the boot.log and server.log, 
I can find no message informing me that it could not find class 
oracle.jdbc.driver.OracleDriver.  Instead, when I attempted to deploy an 
EJB which uses this datasource, I got the following messages:

2003-05-23 17:27:18,682 DEBUG [org.jboss.ejb.StatelessSessionContainer] 
Begin java:comp/env for EJB: com.masergy.ejb.OrderManagement.OrderManagement
2003-05-23 17:27:18,682 DEBUG [org.jboss.ejb.StatelessSessionContainer] 
TCL: [EMAIL PROTECTED]
2003-05-23 17:27:18,772 ERROR [org.jboss.ejb.StatelessSessionContainer] 
Starting failed
javax.naming.NameNotFoundException: comp not bound
	at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)

Needless to say, this message is not very helpful.  I eventually figured 
out my setup problem and was then able to deploy the EJB.  (As a side 
note, the only change I had to make to deploy my EJB from 2.4.3 was to 
add the doctype to ejb-jar.xml.  Great job, JBoss authors!)  Why didn't 
I get a ClassNotFound exception when the Oracle datasource was deployed?



---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JSP compilation requires $JAVA_HOME/lib/tools.jaron your JBOSS_CLASSPATH

2003-05-27 Thread Guy Rouillier
Scott M Stark wrote:
This is an invalid warning due to the fact that the check used by Jetty to determine
if the javac compiler is visable does not apply to the 1.4.2 tools.jar.
Thanks, Scott.


Scott Stark
Chief Technology Officer
JBoss Group, LLC

- Original Message - 
From: Guy Rouillier [EMAIL PROTECTED]
To: JBoss User [EMAIL PROTECTED]
Sent: Saturday, May 24, 2003 10:20 PM
Subject: [JBoss-user] JSP compilation requires $JAVA_HOME/lib/tools.jar on your JBOSS_CLASSPATH



I just pulled jboss-3.2 out of CVS and compiled it on Mandrake Linux 9.1
with JDK 1.4.2Beta without issue.  It built to directory
jboss-3.2.2beta.  When I run it, it says:
WARN  [jbossweb] JSP compilation requires $JAVA_HOME/lib/tools.jar
on your JBOSS_CLASSPATH
However, by redirecting console output to a file, I see this a the very
top:
CLASSPATH: /home/guyr/jboss/bin/run.jar:/usr/java/lib/tools.jar

I looked in run.sh, and the value being printed here is indeed
JBOSS_CLASSPATH. So I'm confused by the warning.  If it already **has**
tools.jar, why is it warning me that it needs it?
--
Guy Rouillier [EMAIL PROTECTED]




---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Help needed for running client EJB

2003-04-04 Thread Guy Rouillier
You need to include the jars in the client subdirectory in your compile 
and run time classpath.  You don't actually need them all, but start 
with all of them just to get rolling.

Anukampa Malhi wrote:
I m trying to solve interest EJB example provided with Jboss documentation.
This is wht i m getting when i run interest client
Buildfile: build.xml
 
validate-servlet:
 
validate-jboss:
 
fail_if_not_valid:
 
init:
 [echo] Using JBoss directory=C:\jboss
 [echo] Using base 
classpath=C:\jboss\client\jboss-j2ee.jar;C:\jboss\client\jaas.jar;C:\jboss\client\jbosssx-client.jar;C:\jboss\client\jboss-client.jar;C:\jboss\client\jnp-client.jar;C:\jboss\examples\COULD_NOT_FIND_SERVLET_JAR
 [echo] Using Source directory=C:\jboss\examples
 [echo] Using Build directory=C:\jboss\examples/build-examples
 
intro-interest-client:
 
compile:
 
interest-client:
 [java] java.lang.NoClassDefFoundError: org/jboss/logging/Logger
 [java]  at 
org.jnp.interfaces.NamingContext.clinit(NamingContext.java:95)
 [java]  at 
org.jnp.interfaces.NamingContextFactory.getInitialContext(NamingContextFactory.java:42)
 [java]  at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
 [java]  at 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
 [java]  at javax.naming.InitialContext.init(InitialContext.java:219)
 [java]  at javax.naming.InitialContext.init(InitialContext.java:175)
 [java]  at 
org.jboss.docs.interest.InterestClient.main(InterestClient.java:27)
 [java] Exception in thread main
 [java] Java Result: 1
 
BUILD SUCCESSFUL
 
Pls help !!
 
Tx
Anukampa




---
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Is there a logger service available - To Guy Rouillier

2003-04-01 Thread Guy Rouillier
Here is some actual working code.  First, put a line like this at the 
top of your class definition:

   private final Category log = Category.getInstance(getClass().getName());

Some will (rightly) point out that this is slightly inefficient as you 
could accomplish the same thing with a static, but that requires you to 
type in the name of your class explicitly.  This code can be cut and 
pasted as is.

Then anywhere in your code, all you need to do is put statements like 
this wherever you wish to log:

  if (log.isInfoEnabled())
 log.info(ejbCreate() called);
You don't need the isInfoEnabled() conditional; it's just an 
optimization.  That's it!  All the log4j plumbing is already provided 
for you by JBoss.  As to your question, Category is a standard log4j 
mechanism for grouping together related messages.  Frequently, 
categories are just named after the class in which the log statements 
appear.

Marco Tedone wrote:
Sorry, I'm just coming from a quite complex log4j implementation with
Struts, and I'm using EJBs just as business components to query the
database, so I am not an EJB expert. What do you mean with category? Could
you please provide an example?
Thanks,

Marco


--__--__--

Message: 3
Date: Mon, 31 Mar 2003 16:22:06 -0500
From: Guy Rouillier [EMAIL PROTECTED]
To:  [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Is there a logger service available 
from Jboss?
Reply-To: [EMAIL PROTECTED]

Marco Tedone wrote:

Hi, I know that Jboss uses log4j; is there any service 
available which 

I could call from one of my Session Bean instead of 
implementing all 

the logger architecture [something like Log logger = 
(Log)context.lookUp(java:/Logger); ]

What architecture?  All you have to do to use log4j in an EJB 
is define the category (1 line of code) and then log.error(), log.info(),
etc. 

---
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Is there a logger service available from Jboss?

2003-03-31 Thread Guy Rouillier
Marco Tedone wrote:
Hi, I know that Jboss uses log4j; is there any service available which I
could call from one of my Session Bean instead of implementing all the
logger architecture [something like Log logger =
(Log)context.lookUp(java:/Logger); ]
What architecture?  All you have to do to use log4j in an EJB is define 
the category (1 line of code) and then log.error(), log.info(), etc.



---
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] is there Global Context in Enterprise Beans..

2003-03-31 Thread Guy Rouillier
Magesh Prabhu wrote:
Hi guys,

Is there a global context in Enterprise beans where I can store a HashTable which can be shared by all the enterprise beans.

Basically, what I'm looking for is a in memory Object which can be accessed from many enterprise beans.

Please tell me some suggestions to do this.
Not sure what you mean by global context, but you can do put the hash 
table whereever you choose in your JNDI tree, and any EJBs can look it 
up in that location, just like they look up anything else.  Write an 
MBean that puts the hash table into JNDI using bind.  I did this by 
looking at the example MBean.  Another option to consider, however, 
rather than have the EJBs access the hashtable directly and perhaps 
encounter write collisions, is to provice access functions in the MBean, 
and have the EJBs call those access functions.  Then the MBean can take 
care or synchronization as necessary.



---
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] java.exe errors

2003-03-28 Thread Guy Rouillier
Eric J Kaplan wrote:
I know this is a little off topic, but we see java.exe errors 
occasionally in various modules, including jboss.  Just curious if 
others are seeing same (win2k, jdk1.4) and if anyone knows the cause.  
Cant send bug report to sun because they want loads of details we dont 
have, and google didnt turn up much of anything.
Well, your message doesn't provide much to go on.  One of the first 
things you should do is make sure you aren't using the brain-damaged 
java.exe shipped with Win2K.  which java should tell you which one you 
are using (assuming you have a which utility).  If the one in 
\winnt\system32, rename that one to java.bak and try again.



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] scheduler service

2003-03-27 Thread Guy Rouillier
Karri Niemel wrote:
We are trying to use the scheduler service with jboss (3.0.4). It works ok, but we have the following problem:

This scheduled task is bit time consuming, it takes about 5 min's to complete. When this scheduled task is started, jboss isnt completing any other tasks, although incoming ejb calls etc are accepted(but not performed). After this scheduled task is finished, queued calls are performed. 

So the question is, is this typical behaviour? Is it possible somehow to get this working in paraller?

It's been awhile since I dug into the scheduler.  I do remember the 2.4 
series being single-threaded.  I looked briefly at 3.2, and that one 
appears to run from a pool of threads, which should solve the problem 
you are seeing.  What are you running when the timer expires, an EJB or 
an MBean?  If the latter, you can start up another thread to do the 5 
minute processing, and return from the timer call immediately.  You're 
not supposed to start your own threads in an EJB, so if you are invoking 
 an EJB method from your timer, perhaps you can change that EJB method 
to invoke an MBean, and address as above.



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Latest CVS version

2003-03-26 Thread Guy Rouillier
Ugh, sorry, ignore this.  Right after I sent it, I saw that SourceForge 
dosn't have nightly builds.  My apologies.

Guy Rouillier wrote:
Sure, go here and click the download link for 3.2.0: 
http://sourceforge.net/projects/jboss/

Simone Milani wrote:

Thanks,

Tried that as well, but still have the problem that my proxy servers
here do not allow HTTP Tunnelling.  Is there a nightly tarball for the 
3.2.0
branch?

Simone
- Original Message -
From: Guy Rouillier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 5:21 AM
Subject: Re: [JBoss-user] Latest CVS version


Simone Milani wrote:

Hi Heiko,

   Thanks, I am trying to setup an SSH tunnell on my NT machine to use


with

CVS but no luck.  Did you ever managed to do it?


Simone, have you tried PUTTY?  I'm using that under Win2K with WinCvs at
home to ssh into a remote CVS, and it's been working fine for over a
year.  Just go to google and search for putty.  Post here if you have
any configuration questions.


---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Latest CVS version

2003-03-26 Thread Guy Rouillier
Sure, go here and click the download link for 3.2.0: 
http://sourceforge.net/projects/jboss/

Simone Milani wrote:
Thanks,

Tried that as well, but still have the problem that my proxy servers
here do not allow HTTP Tunnelling.  Is there a nightly tarball for the 3.2.0
branch?
Simone
- Original Message -
From: Guy Rouillier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 5:21 AM
Subject: Re: [JBoss-user] Latest CVS version


Simone Milani wrote:

Hi Heiko,

   Thanks, I am trying to setup an SSH tunnell on my NT machine to use
with

CVS but no luck.  Did you ever managed to do it?
Simone, have you tried PUTTY?  I'm using that under Win2K with WinCvs at
home to ssh into a remote CVS, and it's been working fine for over a
year.  Just go to google and search for putty.  Post here if you have
any configuration questions.


---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Latest CVS version

2003-03-25 Thread Guy Rouillier


Simone Milani wrote:
Hi Heiko,

Thanks, I am trying to setup an SSH tunnell on my NT machine to use with
CVS but no luck.  Did you ever managed to do it?
Simone, have you tried PUTTY?  I'm using that under Win2K with WinCvs at 
home to ssh into a remote CVS, and it's been working fine for over a 
year.  Just go to google and search for putty.  Post here if you have 
any configuration questions.



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] default JNDI location for entity beans

2003-03-23 Thread Guy Rouillier


Matthew Hixson wrote:
On Friday, March 21, 2003, at 07:11 PM, Guy Rouillier wrote:

Note I changed your subject - don't use the digest as the subject for  
a particular question, many people may skip it.


And I've changed it back to the original because I almost skipped this  
one.

Well, no you didn't, the original one (which I have since deleted and 
hence can't quote exactly) was something like JBoss User Digest 
some-date.  Anyway, I was just trying to help your post get more 
attention by suggesting you provide a subject indicative of your 
question.  Don't know why that suggestion would bother you, but anyway...


I do things the old fashioned way, with deployment descriptors.  But  
your context isn't being properly constructed.  You don't do a lookup  
to establish a context.


Here's my code again since the original got mangled.

 try{
_context = (Context) new  
InitialContext().lookup(java:comp/env/ejb);
_messageLocalHome = (MessageLocalHome) 
_context.lookup(Message);
}catch(NamingException ned){
_systemLogger.error(Couldn't initialize all of the 
business  objects:  +
 
ned.getMessage());
}

The above code is currently working with Resin.  I'm trying to make it  
work with JBoss, but don't know if Resin is doing something  
non-standard or not.  I think maybe Resin is doing something that is  
allowing me to skip the PortableRemoteObject.narrow() call.  Do I need  
to do that when using JBoss?
  Thanks,
-M@
Ok, I tried a quick test with a simple EJB I had hanging around.  Here 
was my original code:

FlipHome home = (FlipHome) new InitialContext().lookup(guyr/Flip);

I replaced it with this, which also works:

Context _context = (Context) new InitialContext().lookup(guyr);
FlipHome home = (FlipHome) _context.lookup(Flip);
I realize you are not doing this from a client, but instead from within 
an EJB (right?), but it looks like it should work.  Let me know if this 
is still not working, and I'll try the same thing inside an EJB instead 
of a client.





---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JBoss behind firewalls

2003-03-21 Thread Guy Rouillier
Sacha Labourey wrote:
No, I guess that is the problem. The proxy embeeds the ip address of the
server (to be able to remotly contact it) AS SEEN by the server, not the
client. As both IP are different, it fails.
One solution would be to set the java.rmi.server.hostname property to a
HOSTNAME (and NOT an IP address) on the JBoss server and have this hostname
resolve correctly to an IP address on both the local net and the remote net
(each net has its own resolution protocol).
Local machine may resolve MyServer to 192.168.1.1 and remote machine may
resolve MyServer to 194.35.94.34
Sacha, we are still using 2.4.3, so the story may have changed.  But 
aren't the ports defined in the various config files just used to do 
lookups and establish a connection?  We found that when a client 
actually invokes a method on an EJB, that happens on a per-instance 
defined high-numbered port, like 32436.  This makes it almost impossible 
to firewall, since all high-numbered ports have to be open.  To my 
knowledge (which admittedly isn't that great in this area), I thought 
RMI worked like many TCP protocols: you contact me on this well known 
port, and I'll let you know the random port number over which we will 
converse henceforth.



---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] RE: context.lookup failing

2003-03-21 Thread Guy Rouillier
Note I changed your subject - don't use the digest as the subject for a 
particular question, many people may skip it.  Also note the funky ASCII 
characters embedded in your messages.  Answers below...

Marco Tedone wrote:
--__--__--

Message: 8
Date: Fri, 21 Mar 2003 10:15:17 -0800
From: Matthew Hixson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Have you configured properly the jndi.properties file?
Marco

Subject: [JBoss-user] default JNDI location for entity beans
Reply-To: [EMAIL PROTECTED]
I have a service locator class that tries to find my Message entity=20
bean. (Note the name of this bean is 'Message', but it really is an=20
entity bean, not a Message Driven Bean.  It will store email messages.)
try{
_context =3D (Context) new=20
InitialContext().lookup(java:comp/env/ejb);
_messageLocalHome =3D (MessageLocalHome) =
_context.lookup(Message);
}catch(NamingException ned){
_systemLogger.error(Couldn't initialize all of =
the business=20
objects:  +
=20
ned.getMessage());
}=00
On the console I see this:

  09:41:03,404 ERROR [system] Couldn't initialize all of the business=20
objects: ejb not bound
Is there anything special I have to do to place my bean at a certain=20
place in JNDI?  
I do things the old fashioned way, with deployment descriptors.  But 
your context isn't being properly constructed.  You don't do a lookup to 
establish a context.  Here is an example from some code I wrote; this 
would get the params to construct the context from the jndi.properties file:

Object metricsRef = new 
InitialContext().lookup(com/masergy/ejb/NetworkMetrics/NetworkMetrics);
NetworkMetricsHome metricsHome = (NetworkMetricsHome)
PortableRemoteObject.narrow(metricsRef, 
NetworkMetricsHome.class);
metrics = metricsHome.create();

If you want to specify explicit properties to your context, you can do 
something like this:

   java.util.Hashtable env = new java.util.Hashtable();
   env.put(java.naming.factory.initial, 
org.jnp.interfaces.NamingContextFactory);
   env.put(java.naming.factory.url.pkgs, org.jboss.naming;);
   env.put(java.naming.provider.url, jndiNamingProviderUrl);

  Object ref = new InitialContext(env).lookup(com/masergy/ejb/NCC/NCC);
  NCCHome home = (NCCHome) PortableRemoteObject.narrow(ref, NCCHome.class);
  ncc = home.create();


---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] (no subject)

2003-03-18 Thread Guy Rouillier
You don't mention what version and server you are using, but look in 
server/default/deploy/jbossweb.sar.

[EMAIL PROTECTED] wrote:
Hi folks,

 Could anyone tell me where I could find the org.jboss.jbossweb 
class? I cant seem to locate it yet it comes up in the server.log file.

 

Thanks,

Mark.

 





---
This SF.net email is sponsored by: Does your code think in ink? 
You could win a Tablet PC. Get a free Tablet PC hat just for playing. 
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: AW: [JBoss-user] get environment entries

2003-03-18 Thread Guy Rouillier
Just an idea, I haven't tried it, but how about putting your environment 
entries down a level in the hierarchy, and looping there?  So instead of

env-entry-nameTicket Server Name/env-entry-name

try this:

env-entry-namemyEnv/Ticket Server Name/env-entry-name

And then loop over java:/com/env/myEnv.

Post a note here how it turns out.

Stefan Groschupf wrote:
Hi Guy.

thanks for you hint.
Is there a chance to loop about all entries?
In my use case my ejb does not know whats the key name of the entry.
When I loop over the java:comp/env  I get much more bindings then only my
environment entries. Is there  a chance to get only the environment entries?
Thanks
Stefan






---
This SF.net email is sponsored by: Does your code think in ink? 
You could win a Tablet PC. Get a free Tablet PC hat just for playing. 
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email is sponsored by: Does your code think in ink? 
You could win a Tablet PC. Get a free Tablet PC hat just for playing. 
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] get environment entries

2003-03-17 Thread Guy Rouillier
Here is an example from some working code.  In the bean, use this:

Context initial = new InitialContext();
Context environment = (Context) initial.lookup(java:comp/env);
setServerName((String)  environment.lookup(Ticket Server Name));

In ejb-jar.xml, use this:

env-entry
  env-entry-nameTicket Server Name/env-entry-name
  env-entry-typejava.lang.String/env-entry-type
  env-entry-value192.168.7.123/env-entry-value
/env-entry


Stefan Groschupf wrote:
Hello,

My bean needs some custom configurationvalues. Described in the book
mastering enterprise java beanspage 244, I want to put these values in a
ejb-jar file and query the values via jndi.
My problem is I can't access the values like described in the book, I get a
not bound exception.
Anyone know how to access environment entries by an ejb in jboss?
Someone know a other way to access custom values in a xml file?
Thanks for any hints
Stefan






---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Proper way to shutdown

2003-03-17 Thread Guy Rouillier
What version?  Have you tried the shutdown.sh or shutdown.bat script in 
the bin directory?

[EMAIL PROTECTED] wrote:
HI folks,

 Up until now Ive been shutting down jboss using crtl+c but 
then in the output as the server starts up it has

 

19:57:57,009 INFO  [STDOUT] Use SHUTDOWN to close normally. Use 
[Ctrl]+[C] to abort abruptly

 

Have I been shutting it down incorrectly or harmfully?

 

Whats the best way to get a graceful shutdown?

 

Thanks,

Mark.

 





---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Feature idea

2003-03-03 Thread Guy Rouillier

- Original Message -
From: Rick LaBanca [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 03, 2003 7:53 AM
Subject: Re: [JBoss-user] Feature idea


 Jetty is separate but the jboss folks seem to want to treat it as the
 official jsp portion of the suite (I agree). I think of jboss as the
 controller over all its components so specifying some kind of wait
page or
 other logic should be at this top level somehow I think.

Jetty is **currently** the default JSP engine used by JBoss.  Not too
long ago, Tomcat was the default.  I don't think either of them is
official, sine they are independent products and JBoss just picks one.
At this point, I prefer Tomcat.  So if anyone chooses to address this
issue, I sincerely hope they do so in an agnostic manner.  JBoss has
been very good up to now about making all things pluggable, so I'm
assuming they would in this case also.  I definitely don't want to
anything that is Jetty-specific.



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Feature idea

2003-03-02 Thread Guy Rouillier
- Original Message -
From: Rod Macpherson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 01, 2003 2:51 AM
Subject: Re: [JBoss-user] Feature idea


  JBoss is an EJB engine.  What kind of page are you talking about?
I
  think you are actually talking about a web app bundled up into a war
  with other stuff and deployed on a jboss-jetty or jboss-tomcat
  combination.  But JBoss itself doesn't have anything to do with
pages.

 Guy,

 I for one appreciate that David distilled web app bundled up into a
war
 with other stuff and deployed on a jboss-jetty or jboss-tomcat
combination
 to pages since the abbreviated reference was both unambiguous and
correct.
 JBoss is now an umbrella label for the complete J2EE stack including
JMS,
 JCA, JSP and so on.

Well, I'm just a user of JBoss, not part of JBoss Group, so I'll let
them draw the line.  My understanding is that Jetty is still a
separately maintained product - it is **optionally** bundled with JBoss
as a convenience and to gain the performance advantage (if you so
choose) of running them both in a single JVM.  But I'd prefer not to
obfuscate the terminology.  I choose to run JBoss and Tomcat
independently, on different servers.  Does it make sense in that context
to speak of JBoss serving pages, and if so, what pages would that be
referring to?  And while it may seem I'm being too picky about
terminology, it helps in isolating problems to understand which
component is responsible for what.  For example, in David's example,
Jetty would have to put up the temp page, since it is the piece that is
rendering JSP pages.

David, if I came across as abrupt, I apologize.  We've been in a crunch
at work and I haven't been sleeping enough.  Perhaps I should just lurk.




---
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


Re: [JBoss-user] Feature idea

2003-02-28 Thread Guy Rouillier

- Original Message -
From: David Corbin [EMAIL PROTECTED]
To: JBoss User [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 8:02 AM
Subject: [JBoss-user] Feature idea


 The one thing I'd like to see jboss provide.  When I an application is
 redeployed, I'd like to see JBoss accept requests for the context of
the
 application, and return a page that says Please try again in a few
 moments.

JBoss is an EJB engine.  What kind of page are you talking about?  I
think you are actually talking about a web app bundled up into a war
with other stuff and deployed on a jboss-jetty or jboss-tomcat
combination.  But JBoss itself doesn't have anything to do with pages.





---
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


Re: [JBoss-user] Form based authentication

2003-02-25 Thread Guy Rouillier
I can share what we do using form-based authentication.  We've rolled
our own authentication mechanism, and have JBoss and Tomcat on different
servers.  This may be what you mean by login form on each page - I'm
not clear.  At any rate, at the top of each page, the developer has

%@ include file=/common/html/authenheader.jsp %

and at the bottom is

%@ include file=/common/html/authentrailer.jsp %

The header opens a try block.  In there, it checks the session to see if
the user is logged on.  If not, it stores request.getRequestURI in the
session and redirects to login_form.jsp.  In login_hdlr.jsp, if the
userid and password validate, the session is updated and a redirect to
the stored target is executed.  authentrailer closes the try block and
handles exceptions.

- Original Message -
From: Silvester van der Bijl [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 24, 2003 8:22 PM
Subject: Re: [JBoss-user] Form based authentication


David,

Thanks for the suggestion. I do have a login form on each page (that is
until the user logs in :-) ).  I did think of something like you're
describing, but I just figured there had to be a better way.

I found some more information on that AuthenticationInterceptor, but as
far I can figure, you can't tell JBoss/Jetty to use a different
interceptor for this.

Besides, it seems kind of overkill to write a custom class just to allow
direct requests to a login page

Any other thoughts ?

Silvester

citaat van=David Ward
 Silvester,

 I'll share what I do.  I have a single servlet that is a central
 controller that delegates processing and dispatches requests to jp's
 (based on pathInfo).  However, *I have 2 servlet mappings to it*.

 /myapp/web/pathInfo - myapp is the context, web is the servlet,
pathInfo
 (and request params) tell me how to process and where to request
 dispatch to.

 /myapp/sweb/pathInfo - same as above except sweb (notice the s) is a
 different mapping *to the same servlet*, except it also is a web
 protected resource.

 I have a dynamic login/logout link on each page (based on principal in
 request), which simply links back to itself except replacing web
with
 sweb.  After the user logs in, he/she ends up visually back to where
 he/she started, though the path in the url is a bit different.

 Now, it sounds like you have an actual login form on each of your
pages.
  I've not done that, but I'm guessing you could do the same thing as
me,
 except just pass along the username and password to a dummy login with
 no display that onLoad (JavaScript) simply submits for you.  But 1)
that
 seems hokey, and 2) you would want to make sure you're using SSL
 otherwise your username and password are plain-text'ing over the net.
 What do other people do in this circumstance?

 David

 --

 Mensaje citado por Silvester van der Bijl
[EMAIL PROTECTED]:

 Hi there,

 We've got a web application which on each page displays a login box
if
 the user isn't authenticated, or otherwise his personal menu, etc...

 The problem is, that after succesfully authenticating a user
 (j_security_check target), jetty doesn't know where to redirect the
 user to since I made a direct request to the login page (sort of).

 Shouldn't there be an additional property for j_security_check, like
 j_onsuccess_redirect_to ?

 Does anyone know of a workaround for this problem ? I've read about
 using a custom AuthenticationInterceptor, only I can't find where
this
 interceptor is configured ?

 Please help.
 Silvester


 ---
 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





---
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



---
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


Re: [JBoss-user] JBOSS Application Logging

2003-02-25 Thread Guy Rouillier
Please stop sending your email in HTML format.  Switch to plain text.

Many here use log4j for application message logging.  I do it very
easily with Tomcat and JBoss running independently.  Are you running one
of the combined packages?  There was a protracted discussion here over
the last week talking about how to do that.  Take a look at recent
archives.
- Original Message -
From: Corbin, James
To: [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 4:08 PM
Subject: [JBoss-user] JBOSS Application Logging


Is anyone out there in the JBOSS user community using Log4J as their
application logging facility and configuring it with their own config
file independent of JBOSS's log4J configuration.

If so, I'd like to talk to you about how you managed it?

Thanks,
J.D.
This electronic message transmission contains information from the
Company that may be proprietary, confidential and/or privileged.
The information is intended only for the use of the individual(s) or
entity named above.  If you are not the intended recipient, be
aware that any disclosure, copying or distribution or use of the
contents of this information is prohibited.  If you have received
this electronic transmission in error, please notify the sender
immediately by replying to the address listed in the From: field.




---
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Form based authentication

2003-02-25 Thread Guy Rouillier
- Original Message -
From: Silvester van der Bijl [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 8:45 PM
Subject: Re: [JBoss-user] Form based authentication


Hello,

You're doing exactly what I want to do, only I want to use container
managed security. If I understand you correctly you don't use container
managed security (web.xml) and you verify usernames and password against
e.g. a dabase yourself ?

Yes.





---
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Form based authentication

2003-02-25 Thread Guy Rouillier
- Original Message -
From: Silvester van der Bijl [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 8:45 PM
Subject: Re: [JBoss-user] Form based authentication


 You're doing exactly what I want to do, only I want to use container
managed security. If I understand you correctly you don't use container
managed security (web.xml) and you verify usernames and password against
e.g. a dabase yourself ?

The reason why I want to do this, is because the web application is just
one of the applications talking to session beans (all protected or using
roles from a custom login module).

Yes, we've not addressed that issue at the moment.  What happens if a
command-line Java application attempts to invoke one of your EJBs?






---
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Re: JBoss getting stuck on Windows (was: no subject)

2003-02-20 Thread Guy Rouillier
RE: [JBoss-user] (no subject)Replying to two messages in one.

- Original Message -
From: Bill Burke
To: [EMAIL PROTECTED]
Sent: Wednesday, February 19, 2003 8:52 PM
Subject: RE: [JBoss-user] (no subject)


 Winblows.  What I also love is when the console is puking a lot of
output it takes you forever to switch to another window

This should only happen with Windows 9x.  I've been using WinNT/Win2000
seemingly forever, and it has multiple input queues so this should never
happen.  I've never seen it happen.  Unix, on the other hand - geesh,
when I ssh into that, I can't even **find** another window to switch to
gr.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of JD Brennan
Sent: Wednesday, February 19, 2003 7:16 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] (no subject)


 Sounds familar.  I think this is a known problem with
 Windows Command prompt pausing the process when it can't
 output all it's output.  Using the service wrapper
 or redirecting standard output to a file should get
 around it.

Again, I'm not here to be a defender of Windows, but I've never seen
that happen, and I'm in Windows 2000 about 10-12 hrs a day, and I'm a
command line junkie.   I don't even know what it means that a process
can't output all its output.  Why can't it - who is stopping it?   Now
one thing that *might* be happening is the console window is in Quick
Edit mode (pull down the system menu, click Properties and look at the
Options tab); in this state, clicking with the mouse inside the window
will put it into Select mode, i.e., select a block for the purposes of
copying to the clipboard.  This definitely **will** stop all output to
the window so you have a static set of text to copy.  It wasn't clear to
me from the original appender if a person is interacting with the box
running JBoss.  But the safest thing to do is to uncheck Quick Edit mode
, then this will never happen.  I don't use Quick Edit mode specifically
because of this.  Make sure you change the property of the originating
link, and not just that of the current window.




---
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Remote RMI (jndi)

2003-02-20 Thread Guy Rouillier

- Original Message -
From: Jeremy Rempel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 19, 2003 3:09 PM
Subject: [JBoss-user] Remote RMI (jndi)


 I am trying to access a ejb remotley though JNDI. It compiles perfect
 and it works when it is on the same machine and I update my
 jndi.properties. When I try and move it to and access it remotley it
 returns null.

 jndiContext = new InitialContext();
 ref = jndiContext.lookup(RouteListSessionEJB); // returns null

 When I change jndi.properties to a host w/o JBOSS running it gives a
 connection error on InitialContext(), so that is not the case. Port
1099
 is open.

 Any help is greatly appreciated.

You need to show us the output from your execution of the client when
this happens.  Any number of issues could be coming into play.  For
example, do you have the necessary Java permissions to connect to the
remote host?  Show us:

(1) the actual lookup from the source (cut and paste)
(2) your jndi.properties contents when you are trying to connect to the
remote host
(3) the definition of your EJB in your deployment descriptors
(4) the output from your attempted execution of the client when it fails
(5) Also tell us what type of client this is - a simple standalone
command-line Java program?


 Thanks, Jeremy




---
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Is 4.0 new or evolution of 3.2?

2003-02-20 Thread Guy Rouillier
- Original Message -
From: Bill Burke [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 19, 2003 9:49 AM
Subject: RE: [JBoss-user] Is 4.0 new or evolution of 3.2?


 Why not create an MBean with this information?  Or another EJB that
holds
 application configuration information?

I've thought of doing this. I could generalize this approach and make a
single MBean that can hand out config data to any app.  Hmmm, maybe I'll
call it Registry gr.


 Besides this, JBoss 3.x has the concept of pluggable deployers.  The
 deployer's job is to read xml files and register and startup the
component
 in jboss.  We have deployers for EJBs, WARS, EARS, and SARs(MBeans)
and in
 4.0 AOPs.  There's no reason you couldn't write a specialized EJB
deployer
 that got configuration information from a database.  Of course this
would be
 proprietary.


Thanks.  I'm looking to move our company up to a more current release
(3.2).  I'll take a look at the pluggable EJB deployer.  I should be
able to put the configuration data specific to a platform in an xml file
for that platform?  That would be a great solution; then I can just
remove the env settings from the deployment descriptor.

 Bill

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Guy
  Rouillier
  Sent: Tuesday, February 18, 2003 11:10 PM
  To: [EMAIL PROTECTED]
  Subject: Re: [JBoss-user] Is 4.0 new or evolution of 3.2?
 
 
  Bill, thank you for taking the time to explain in depth the major
  architectural changes for 4.0.  This would be great material for a
white
  paper.  I'm very interested in the changes you are making regarding
  configuration changes.  One significant annoyance (with the spec,
not
  JBoss) is the bundling of the deployment descriptors with EJB
executable
  code (remember we are still using 2.4.3.)  For example, our trouble
  ticketing was not really designed for ticket creation via APIs, so
we
  have to invoke a URL to create tickets (http post.)  Each platform
(dev,
  test, prod) has a different server and port to connect to.  I've
wrapped
  the trouble ticket functionality in an EJB, and put the server and
port
  values into env values in the deployment descriptor.  I don't want
our
  ops people to have to know about the workings of EJBs - our
promotion
  process consists solely of moving files around.  So I've had to
create 3
  different instances of the JARs for this EJB, and put them into
separate
  directories for each platform.  This process would be greatly
simplified
  if configuration values were stored externally to the EJB jars, for
  example if the EJB could ask the container for these values.  Will
the
  changes you are making for 4.0 configuration address this issue?
  Personally, I think the deployment descriptor design is flawed.
 
  - Original Message -
  From: Bill Burke [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, February 18, 2003 5:31 PM
  Subject: RE: [JBoss-user] Is 4.0 new or evolution of 3.2?
 
 
   In 4.0 we will be finalizing JMX as our lightweight component
model.
  One of
   the problems with the 3.x series though is that cool features like
  client
   and server side interceptors and detached Invokers (aka pluggable
   transports) were written around EJBs and the EJB container.  In
4.0,
  we want
   to generalize interceptor technology and detached invocations so
that
  any
   type of object or any plain old Java Class can leverage these
  technologies.
   We want to bring J2EE services transparently and implicitly to
plain
  old
   java objects and classes and truly isolate business logic from
   infrastructure.
  
   Another thing that we really want to change is how components get
  configured
   and how JBoss components locate their configurations.  We want to
  enable app
   developers at runtime to be able to change a configuration setting
at
   runtime for only the duration of an invocation.  For example,
let's
  say for
   a particular finder call, you want the result set page size to be
100
  when
   the default is 1000.  We would provide generic APIs for you to do
  this.
   Also, we want the ability to define default configurations
  cluster-wide,
   JVM-wide, and application-wide.  The way we'll implement this is
what
  I like
   to call MetaData Repository Chains.  IMHO, this new architecture
for
   configuration will allow JBoss to be a truly dynamically
configurable
   application server.
  
   Yet another thing we want to be able to do is ease the burden of
ISVs
  and
   tool integrators that want to plug-in and extend JBoss with their
   proprietary technologies.  In 3.0, client and server side
interceptors
  were
   a great start for this.  4.0 will bring in the Metadata Repository
  Chains
   that I just talked about to ease configuration.  What you'll also
be
  able to
   do is to define and plug-in proprietary APIs that you want your
  MBeans,
   EJBs, plain java classes, all through configuration

[JBoss-user] Is 4.0 new or evolution of 3.2?

2003-02-18 Thread Guy Rouillier
I skipped over a recent email proclaiming 4.0 to be a ground-up
rearchitecture for the 21st century (or some such fluff.)  I just
deleted it at the time, but last night it got me to thinking.  I'm the
lead architect at our small telecom startup, and I introduced JBoss
there.  We are still on 2.4.3 because, well, it has done what we need.
But I've been looking at an upgrade to 3.2 to meet some new
requirements.  Not trying to be provocative, but 3.0 was a complete
rearchitecture that was supposed to position the code base for future
needs.  So finally my question.  Is 4.0 really another complete
rearchitecture, or is it an evolution of 3.2?  If it is completely new,
why?  Were there things not foreseen in the 3.0 redesign?  I'm just
wondering when and where I should plan an upgrade of our infrastructure.
Thanks.




---
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



Re: [JBoss-user] Is 4.0 new or evolution of 3.2?

2003-02-18 Thread Guy Rouillier
Bill, thank you for taking the time to explain in depth the major
architectural changes for 4.0.  This would be great material for a white
paper.  I'm very interested in the changes you are making regarding
configuration changes.  One significant annoyance (with the spec, not
JBoss) is the bundling of the deployment descriptors with EJB executable
code (remember we are still using 2.4.3.)  For example, our trouble
ticketing was not really designed for ticket creation via APIs, so we
have to invoke a URL to create tickets (http post.)  Each platform (dev,
test, prod) has a different server and port to connect to.  I've wrapped
the trouble ticket functionality in an EJB, and put the server and port
values into env values in the deployment descriptor.  I don't want our
ops people to have to know about the workings of EJBs - our promotion
process consists solely of moving files around.  So I've had to create 3
different instances of the JARs for this EJB, and put them into separate
directories for each platform.  This process would be greatly simplified
if configuration values were stored externally to the EJB jars, for
example if the EJB could ask the container for these values.  Will the
changes you are making for 4.0 configuration address this issue?
Personally, I think the deployment descriptor design is flawed.

- Original Message -
From: Bill Burke [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 18, 2003 5:31 PM
Subject: RE: [JBoss-user] Is 4.0 new or evolution of 3.2?


 In 4.0 we will be finalizing JMX as our lightweight component model.
One of
 the problems with the 3.x series though is that cool features like
client
 and server side interceptors and detached Invokers (aka pluggable
 transports) were written around EJBs and the EJB container.  In 4.0,
we want
 to generalize interceptor technology and detached invocations so that
any
 type of object or any plain old Java Class can leverage these
technologies.
 We want to bring J2EE services transparently and implicitly to plain
old
 java objects and classes and truly isolate business logic from
 infrastructure.

 Another thing that we really want to change is how components get
configured
 and how JBoss components locate their configurations.  We want to
enable app
 developers at runtime to be able to change a configuration setting at
 runtime for only the duration of an invocation.  For example, let's
say for
 a particular finder call, you want the result set page size to be 100
when
 the default is 1000.  We would provide generic APIs for you to do
this.
 Also, we want the ability to define default configurations
cluster-wide,
 JVM-wide, and application-wide.  The way we'll implement this is what
I like
 to call MetaData Repository Chains.  IMHO, this new architecture for
 configuration will allow JBoss to be a truly dynamically configurable
 application server.

 Yet another thing we want to be able to do is ease the burden of ISVs
and
 tool integrators that want to plug-in and extend JBoss with their
 proprietary technologies.  In 3.0, client and server side interceptors
were
 a great start for this.  4.0 will bring in the Metadata Repository
Chains
 that I just talked about to ease configuration.  What you'll also be
able to
 do is to define and plug-in proprietary APIs that you want your
MBeans,
 EJBs, plain java classes, all through configuration.  For example,
let's say
 Gemstone, our distributed caching partner, wants to extend EJBs with a
 proprietary API.  They'll be able to do this just by hot-deploying a
new
 component and in your application code you'll be able to typecast the
 component to the new API.

 MyEJB ejb = ...;
 GemstoneCachedObject cached = (GemstoneCachedObject)ejb;
 cached.flushCache();

 So the goals of 4.0 are as follows:
 1. Finalize JMX as our lightweight component model
 2. Bring J2EE services to plain old java classes through our AOP
framework
 3. Generalize configuration through MetaData Repository Chains
 4. Make it even easier to integrate and extend JBoss.

 Ok, that the generalized vision for JBoss 4.0.  I'm sure each lead
developer
 of each JBoss subproject will want to give you other reasons why we're
 re-architecting other parts of JBoss.

 Best regards,
 
 Bill Burke
 Chief Architect
 JBoss Group, LLC
 


  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Guy
  Rouillier
  Sent: Tuesday, February 18, 2003 12:27 PM
  To: JBoss User
  Subject: [JBoss-user] Is 4.0 new or evolution of 3.2?
 
 
  I skipped over a recent email proclaiming 4.0 to be a ground-up
  rearchitecture for the 21st century (or some such fluff.)  I just
  deleted it at the time, but last night it got me to thinking.  I'm
the
  lead architect at our small telecom startup, and I introduced JBoss
  there.  We are still on 2.4.3 because, well, it has done what we
need.
  But I've been looking at an upgrade to 3.2 to meet some new
  requirements

Re: [JBoss-user] JMS persistence manager for Oracle8

2003-02-15 Thread Guy Rouillier
How is your datasource configured to connect to Oracle: oci or thin?
I've never stored BLOBs in Oracle - don't believe in it.  But I've read
on this list repeatedly that using the thin driver to store blobs won't
work, you need the oci driver.

- Original Message -
From: Marek Lange [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, February 15, 2003 6:20 AM
Subject: [JBoss-user] JMS persistence manager for Oracle8


 Hi,

 I just can't get the JBossMQ persistence manager to work with an
Oracle8
 data source. The tables JMS_TRANSACTIONS and JMS_MESSAGES are
 successfully created (using BLOB_TYPE=BLOB and the sql statement

 CREATE_MESSAGE_TABLE = CREATE TABLE JMS_MESSAGES ( MESSAGEID INTEGER
NOT
 NULL, \
 DESTINATION VARCHAR(255) NOT NULL, TXID INTEGER, TXOP CHAR(1), \
 MESSAGEBLOB BLOB, PRIMARY KEY (MESSAGEID, DESTINATION) )

 from jbossmq-service.xml.

 When a message should be inserted, it fails throwing this SQL
Exception:

 An exception occured while sending message to the jms queue:
 org.jboss.mq.SpyJMSException: Could not store message: 4 msg=1 hard
 NOT_STORED PERSISTENT queue=QUEUE.smsMessageQueue priority=4
 hashCode=11632138; - nested throwable: (java.sql.SQLException: invalid
 column type)

 I think the problem is related to the oracle BLOB type. Is there a
 solution for this?

 Thanks,

 -marek



 ---
 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





---
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



Re: [JBoss-user] EJB Timer Service

2003-02-15 Thread Guy Rouillier
Sorry, don't remember if I replied to this or not.  JBoss has had a
timer service in it for as long as I've been using it, since 2.2.  For
3.2, take a look at

server\default\deploy\schedule-manager-service.xml
server\default\deploy\scheduler-service.xml

for examples of two different implementations available.

- Original Message -
From: Marek Lange [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 13, 2003 5:17 AM
Subject: [JBoss-user] EJB Timer Service


 Hi all,

 after going through the forums and the archives I am still not sure
 about this: is it possible to use a timer service in jboss 3.2? If
yes,
 is it possible to define scheduled tasks similar to cronjobs in Unix?
 So, can I say the ejb should run at 1 am every night?

 Or, is there a way to implement this fuctionality with the JMX
scheduler
 service?

 Thanks,

 marek



 ---
 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






---
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



Re: [JBoss-user] jboss backup management: howto?

2003-02-14 Thread Guy Rouillier
David, I like the idea of only testing when a client calls.  Saves
testing all the connections every n minutes when a client may not call
for hours.  I foresee the issue of a bunch of dead connections hanging
around in the pool for all those hours, and worse, going through each
one testing for a good connection with a client waiting by.  Maybe a
compromise is to test every timeout_minutes to detect dead connections,
then test each time before handing out to a client.  Maybe put a
last-used timestamp on each connection.  If a connection was just used
two seconds ago, testing is probably unnecessary.  All databases I know
will only close idle connections, not actively used ones.

- Original Message -
From: David Jencks [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 14, 2003 12:08 PM
Subject: RE: [JBoss-user] jboss backup management: howto?


 When exactly does the Ping happen?  I implemented something in jb4
that
 pings after taking a connection out of the pool before giving it to an
 application.  This will be in 3.0 and 3.2 shortly.  Is there a good
reason
 to have the pings timed?  We already discard old connections.

 david jencks


 On 2003.02.14 10:17 James Higginbotham wrote:
   How does WebLogic handle a database taken down (as the
   original appender posited)?  Obviously, simply requesting a
   new connection because it's connection-testing SQL failed is
   not a great idea.  If the database is taken out of service
   for 2 hrs for maintenance, a simplistic approach will be
   hammering away to no avail.  Is it smart enough to try 2 or 3
   times, then give up for 5 minutes and then try again?
 
  I can handle this one, as I used to be a large weblogic developer..
  Weblogic accepts a ping query as part of its configuration. For
  Oracle, this would be something like SELECT * FROM DUAL. The pool
will
  use this ping query to verify that the connection is alive.
Otherwise,
  it will go into a dead pool, and try to reconnect any lost
connections
  found in the dead pool. This allows a more generic approach to
detecting
  lost connections for any number of reasons.
 
  HTH,
  James
 
 
  ---
  This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
  are you planning your Web Server Security? Click here to get a FREE
  Thawte SSL guide and find the answers to all your  SSL security
issues.
  http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 


 ---
 This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
 are you planning your Web Server Security? Click here to get a FREE
 Thawte SSL guide and find the answers to all your  SSL security
issues.
 http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user






---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] jboss backup management: howto?

2003-02-14 Thread Guy Rouillier
James, thanks for the reply.  How frequently does it test connections in
the dead pool?  Does it have a concept of Geez, I've tried a half dozen
times to reconnect this connection in the last 5 minutes, there must be
something fundamentally wrong with it, let me just get rid of it?  Who
knows, maybe a memory hiccup changed that password in the connection
data structure.

- Original Message -
From: James Higginbotham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 14, 2003 10:17 AM
Subject: RE: [JBoss-user] jboss backup management: howto?


 How does WebLogic handle a database taken down (as the
 original appender posited)?  Obviously, simply requesting a
 new connection because it's connection-testing SQL failed is
 not a great idea.  If the database is taken out of service
 for 2 hrs for maintenance, a simplistic approach will be
 hammering away to no avail.  Is it smart enough to try 2 or 3
 times, then give up for 5 minutes and then try again?

I can handle this one, as I used to be a large weblogic developer..
Weblogic accepts a ping query as part of its configuration. For
Oracle, this would be something like SELECT * FROM DUAL. The pool will
use this ping query to verify that the connection is alive. Otherwise,
it will go into a dead pool, and try to reconnect any lost connections
found in the dead pool. This allows a more generic approach to detecting
lost connections for any number of reasons.

HTH,
James


---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user






---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] jboss backup management: howto?

2003-02-13 Thread Guy Rouillier
Ok, finally made the time to look into this.  You are correct.  I
started a simple bean with a database connection, then shut down Oracle
and restarted.  The original connection got

[2003-02-14 00:56:49,203][guyr.DbTester][DbTesterBean]
java.sql.SQLException: Io exception: Connection reset by peer: socket
write error

Then of course a whole stack of additional errors.   The client got
this:

javax.transaction.TransactionRolledbackException: Io exception:
Connection reset by peer: socket write error; nested exception is:

I ran the client again and it ran successfully, but I see this, as you
said:

[2003-02-14 00:57:28,062][guyr.DbTester][homeDB] Pool homeDB [1/2/10]
returned object org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@37ae22
to the pool.

So it does indeed seem to be holding onto the object for the
non-existent connection.  Note that it is not really holding onto a dead
connection.  The connection itself obviously doesn't exist.  It is
holding the object that wrapped the connection.  Not great either, but
it is a definite distinction.

This is Oracle's way of reporting the error  - I'm sure every DBMS
returns a different kind of error.  Will be difficult to handle in a
generic way, though I would think if the pool manager knows enough to go
get another connection, it must know the one it has is no good and so
should get rid of the object for it.  I ran this test on the 2.4
codebase - I wonder if 3.2 is doing things differently.  I know the
whole connection architecture is rewritten.  Probably not worth going
into the 2.4 code at this late date (though I see JBoss is still
releasing 2.4 releases.)

How does WebLogic handle a database taken down (as the original appender
posited)?  Obviously, simply requesting a new connection because it's
connection-testing SQL failed is not a great idea.  If the database is
taken out of service for 2 hrs for maintenance, a simplistic approach
will be hammering away to no avail.  Is it smart enough to try 2 or 3
times, then give up for 5 minutes and then try again?

- Original Message -
From: Rod Macpherson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 07, 2003 12:09 AM
Subject: Re: [JBoss-user] jboss backup management: howto?


 If a dead connection is used an exception will be thrown and caught.
When
 the dead connection is discovered by the watchdog it will be replaced
with a
 new one. What happens now is that dead connections stay dead until you
 bounce the appserver. I will take the non-fool-proof  solution over
that any
 day!

 - Original Message -
 From: Guy Rouillier [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, February 06, 2003 8:00 PM
 Subject: Re: [JBoss-user] jboss backup management: howto?


 
  - Original Message -
  From: Rod Macpherson [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, February 06, 2003 10:37 AM
  Subject: Re: [JBoss-user] jboss backup management: howto?
 
 
  Noticed the same thing. WebLogic has a watch-dog that does a
SELECT *
  FROM
  FOO where you supply the table name (e.g., DUAL) and if it fails the
  connection is re-established. This is a critical feature for
databases
  that
  tear down connections prior to backup.
 
  Unfortunately, that approach is not fool-proof.  The connection can
drop
  at any time, i.e., in the time between when the watchdog last
verified
  it and the time when you want to use it.  As far as I know, there is
no
  way to guarantee that your next SQL will make it to the database.
 
 
 
 
 
  ---
  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



 ---
 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





---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Run Client Using RMI

2003-02-12 Thread Guy Rouillier
- Original Message -
From: Hanson, Matthew [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 12, 2003 1:14 PM
Subject: RE: [JBoss-user] Run Client Using RMI


hey - changed the server jndi.properties from localhost to my machine
IP,
and a client on the _same_ machine can connect with the server using the
ip...  before, i could only connect to localhost.

i still catch the following rmi exception on the hp machine, trying to
call
remotely to the ip of the server win machine:

Did you specify sufficient Java security to allow you client to access
this particular remote host?  If this is a test machine, start by
changing your security to AllPermission.  If that works, then change it
back an figure out what specific permissions you need to get this to
work.  I think all you'll need is socket permission, but I'm not sure.






---
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



Re: [JBoss-user] jboss backup management: howto?

2003-02-06 Thread Guy Rouillier

- Original Message -
From: Rod Macpherson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 06, 2003 10:37 AM
Subject: Re: [JBoss-user] jboss backup management: howto?


Noticed the same thing. WebLogic has a watch-dog that does a SELECT *
FROM
FOO where you supply the table name (e.g., DUAL) and if it fails the
connection is re-established. This is a critical feature for databases
that
tear down connections prior to backup.

Unfortunately, that approach is not fool-proof.  The connection can drop
at any time, i.e., in the time between when the watchdog last verified
it and the time when you want to use it.  As far as I know, there is no
way to guarantee that your next SQL will make it to the database.





---
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] Advice: how to periodically scan a database table

2003-02-06 Thread Guy Rouillier
I haven't thought this through completely, but have you researched using
a timer to periodically invoke an EJB, thus dispensing with the MBean
entirely?

- Original Message -
From: Demyanovich, Craig - Apogent [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 06, 2003 1:22 PM
Subject: [JBoss-user] Advice: how to periodically scan a database table


 Greetings,

 We're using JBoss 2.4.10.  One of my colleagues has implemented an
MBean
 that spawns a thread to periodically poll a database table for new
rows
 based on criteria that we control.  I see two disadvantages:  one,
when we
 hot redeploy our EAR, the MBean can no longer communicate with
components in
 it; two, we can't deploy the MBean with our EAR, i.e., we don't have a
 single distributable package.  I would appreciate any advice for
solving our
 problem such that we could have a single distributable package that we
can
 hot deploy as many times as we like.  If such a solution is possible
only on
 JBoss 3.x, that's fine, as I've been investigating our migration path
to
 3.x.

 Thanks for your time,
 Craig


 ---
 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





---
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] javax.management location in 3.0.4

2003-02-04 Thread Guy Rouillier

- Original Message -
From: G.L. Grobe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 04, 2003 6:19 PM
Subject: Re: [JBoss-user] javax.management location in 3.0.4


 Sorry, I need to clarify that last ... I'm looking for the package
 where MBeanServer got moved to.

A little trick I use:

cd /jboss-/lib
unzip -l *.jar javax/management/MBeanServer.class

reveals that in 3.2, this class is in jboss-jmx.jar.  If you don't know
the full name of the class, you can find it with this:

unzip -l *.jar | grep MBeanServer.class




---
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] Say No to NetBeans

2003-02-03 Thread Guy Rouillier

- Original Message -
From: Tony Tortallini [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 03, 2003 4:28 AM
Subject: Re: [JBoss-user] Say No to NetBeans


 Blah blah blah ... but you still never rebutted my point about
NetBeans
 screwing up Java IDE revenue models. Thanks for reminding me that
JBoss and
 NetBeans are both open source. As for open source app servers, we
already
 got one. It's called the Sun ONE app server. It's certified. Put that
in
 your JBoss pipe 'n smoke it.

 http://www.oetrends.com/cgi-bin/page_display.cgi?77


What point are you trying to make by repeating what McNealy said?




---
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] Sending and receiving Emails

2003-02-03 Thread Guy Rouillier
Please format your mail as plain text, not HTML.  See other messages
inline.

- Original Message -
From: Brian McSweeney
To: [EMAIL PROTECTED] ;
[EMAIL PROTECTED]
Sent: Monday, February 03, 2003 11:46 AM
Subject: [JBoss-user] Sending and receiving Emails


Hi guys,
general computer science/Email/J2EE question.

In sending an email we use an implementation of the javax.mail.Session
class. In JBoss this is tied to java:/Mail

Could someone tell me how this works. Does the Session implementation
have to be setup somehow?

As far as I know, In SMTP there are 3 components.

1) User-Agents - normal email clients like outlook, eudora etc.
2) Transfer-Agents - which must know where a DNS is in order to know
to which Delivery Agent to give the mail.
3) Delivery-Agents - to send the mail to the individual client or wait
for a
given amount of time until the client comes back.

I think that sendmail is actually both a Transfer-Agent and a
Delivery-Agent.

So my questions:
a) Where does the javax.mail.Session class fit into this? It seems
logical that it
should be just a User-Agent. But not sure if this is correct.
b) Does it have to be setup to know about a Transfer-Agent?
==
Here is working code fragment:

 Session session =
((Session) new
InitialContext().lookup(java:comp/env/mail/Mail));

 // Construct The Message
 MimeMessage message = new MimeMessage(session);

 // Set The from Address
 Address addressFrom = new InternetAddress(sFrom);
 message.setFrom(addressFrom);

 // Set The to Address(es)
 Address[] addressArrayTo = InternetAddress.parse(sTo);
 message.setRecipients(Message.RecipientType.TO,
addressArrayTo);

 // Set The subject  text
 message.setSubject(sSubject);
 message.setSentDate(new Date());

 // message.setText(sText);
 message.setContent(sText, sContentType);

 // Set The cc  bcc Address(es) If Relevant

 if ( sCC != null )
{
Address[] addressArrayCC = InternetAddress.parse(sCC);
message.setRecipients(Message.RecipientType.CC,
addressArrayCC);
}

 if (sBcc != null )
{
Address[] addressArrayBCC = InternetAddress.parse(sBcc);
message.setRecipients(Message.RecipientType.BCC,
addressArrayBCC);
}

 // Send It!
 Transport.send(message);
==

Also, this is fine for sending emails, but how is receipt of emails
generally handled
in J2EE. I've read a good article on the server side about J2EE 1.4 and
how it can use
the JCA to plug into SMTP servers and essentially get callbacks when
mails arrive, but
I'm not sure if this is implemented yet etc
The article link is:
http://www.theserverside.com/resources/articles/J2EE1_4/article.html

==
I'm no expert on email, but from my experience, SMTP is used for
sending.  POP is usually used for receiving.  Receiving, as you alluded,
is more complicated.  I've never had occasion to tackle it.
==

thanks for your time and answers,
Brian




---
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] Help! ClassNotFoundException: org.jboss.ejb.plugins.local.LocalHomeProxy

2003-01-17 Thread Guy Rouillier

- Original Message -
From: Matthew Van Horn [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 17, 2003 1:48 AM
Subject: [JBoss-user] Help! ClassNotFoundException:
org.jboss.ejb.plugins.local.LocalHomeProxy


 Anyone know what might lead to this error?

 javax.naming.CommunicationException [Root exception is
 java.lang.ClassNotFoundException:
 org.jboss.ejb.plugins.local.LocalHomeProxy (no security manager: RMI

no security manager.  Add jbossx.jar to your client classpath and run
with a security manager.

java -Djava.security.manager




---
This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will
allow you to extend the highest allowed 128 bit encryption to all your 
clients even if they use browsers that are limited to 40 bit encryption. 
Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Nature of Tomcat / JBoss integration

2003-01-16 Thread Guy Rouillier

- Original Message -
From: HORTON,NOAH (HP-FtCollins,ex1) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 16, 2003 11:16 AM
Subject: [JBoss-user] Nature of Tomcat / JBoss integration


 Hi!
   I am helping to evaluate using JBoss in a project and have some
questions
 about how Tomcat and JBoss are integrated.  Does Tomcat run in the
same JVM
 with JBoss?

It can, such a configuration is available, already built, on the JBoss
website.

 If not, what sort of communication is used between the two
 JVMs?

You can also run them separately.  We do that on our site (including in
production).  The default communication is JRMP, though I'm not sure
that is what you are asking.

  If they run in one JVM, do you think it is possible to get them
 interoperating from separate JVM's without insane amounts of work?

Getting separate instances communicating is trivial.  All you have to do
is tell Tomcat the IP address where to find the JBoss naming service.

I ask
 because we face a potential situation where our product would need to
 interoperate with another application that has embedded Tomcat and we
would
 like to use one web container if possible.

 Thanks!
 -Noah Horton


 ---
 This SF.NET email is sponsored by: Thawte.com
 Understand how to protect your customers personal information by
implementing
 SSL on your Apache Web Server. Click here to get our FREE Thawte
Apache
 Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache 
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Nature of Tomcat / JBoss integration

2003-01-16 Thread Guy Rouillier

- Original Message -
From: João Clemente [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 16, 2003 8:11 PM
Subject: Re: [JBoss-user] Nature of Tomcat / JBoss integration


I did not completely undertood the scenario you described. Let me put
some question that maybe will clear things up:

We can have tomcat+Jboss in one VM, or separated (just like
jetty+jboss, as far as I know)

If separated, you said they communicate over JRMP (is this some sort of
RMI?).
Yes.

If in the same VM, how do they communicate? Shared memory? Pipes? What?
Sorry, don't really know.




---
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache 
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] anyone have a checkout right now? (need javants.exe)

2003-01-15 Thread Guy Rouillier
Sent to your email address.

- Original Message - 
From: Rob Helmer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 2:14 AM
Subject: [JBoss-user] anyone have a checkout right now? (need javants.exe)


 Hello,
 
 
 Sourceforge appears to have disabled anonymous CVS until at least
 tomorrow, is there any way someone with a checkout can send me
 a copy of the javants.exe in contrib/ntservice? :)
 
 I could really use it for a project.
 
 
 
 
 Thanks,
 Rob Helmer
 
 
 ---
 This SF.NET email is sponsored by: Take your first step towards giving 
 your online business a competitive advantage. Test-drive a Thawte SSL 
 certificate - our easy online guide will show you how. Click here to get 
 started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 




---
This SF.NET email is sponsored by: A Thawte Code Signing Certificate 
is essential in establishing user confidence by providing assurance of 
authenticity and code integrity. Download our Free Code Signing guide:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Store large pdfs with JBoss

2003-01-10 Thread Guy Rouillier
I've not read Sun's argument, but I've never understood the rationale for
storing large invariant data in an RDBMS.  Or course the RDBMS vendor wants
you to do it - they want the whole world stored under their product.  And
the DASD vendors love it. But what does it buy you, the user who implements
such a solution?  Say in the example below you have 20 GB of PDFs.  Every
time you do a full database backup, you are going to be backing up that
same, **unchanged** 20 GB of PDFs!  What is the point in that?  Just store a
reference to a location in the filesystem, and keep the binary files in the
filesystem.  You can back up your filesystem as easily as you can back up
your Oracle logs.

- Original Message -
From: Daniel Bruce Lynes [EMAIL PROTECTED]
To: JBoss Users [EMAIL PROTECTED]
Sent: Friday, January 10, 2003 8:03 PM
Subject: Re: [JBoss-user] Store large pdfs with JBoss


On Saturday 04 January 2003 04:48, Pete Beck wrote:

 I agree with Sun 100% on this.  Using the file-system is bad news for
 maintenance, scalability and as the article says security.
 I've seen the chaos that using the filesystem can cause in clustered
 environments and I would say avoid it if you can.

 Of course, the problem is Oracle seems to have totally pathetic support
 for large objects from Java.  However I am using Postgres and it works
 like a charm.





---
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] DatabaseServerLoginModule is caching Roles Info...how to deactivate?

2003-01-07 Thread Guy Rouillier
See Re: [JBoss-user] problem with DatabaseServerLoginModule  from Laurent
Belmont from Monday January 06, 2003.

- Original Message -
From: Victor Batista [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 07, 2003 11:06 AM
Subject: [JBoss-user] DatabaseServerLoginModule is caching Roles Info...how
to deactivate?


 Hello!
 My JBoss is caching the user's roles info. How can I deactivate this
 caching mechanism?
 Suppose I am logged with a User with Roles A and B. If this user changes
 his roles (Administrator :-)), and adds Role C, the user wan't have this
 permission until JBoss is restarted. If I change the roles of a user who
has
 already loggen in any time, I get the same problem.
 Is it possible to deactivate this caching mechanism, and force JBoss to
 read data from the database every time?

 Any help would be welcome.

 Thanks in advance,
 Victor Batista

 PS - I am using JBoss 3.0.4 with bundled Tomcat 4.0.6. I am using
 DatabaseServerLoginModule




 ---
 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




---
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] Asking about Schedular Servlet in JBoss

2003-01-01 Thread Guy Rouillier



JBoss has scheduler (two, actually). They 
will both work for this application. Don't understand why you are calling 
a URL to send an email. JBoss has a mail service, why not just invoke that 
to send the email? What is the URL doing for you?

  - Original Message - 
  From: 
  Thaer 
  Hani Al-Ibaisi 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, December 30, 2002 3:48 
  AM
  Subject: [JBoss-user] Asking about 
  Schedular Servlet in JBoss
  
  Hi 
  all,
  
  I was deploying my 
  application under JRun 3.1 Web server, and I was using the 
  "allaire.jrun.scheduler.CronService" servlet class that comes with JRun 
  library, this servlet works as a schedular to call a URL every part of time 
  that you specify, (I was using it, to control sending a Batch email 
  functionality every two hours).
  
  So, any one know a 
  substitute in JBoss that could help me to get the same functionality as JRun 
  servlet class.
  
  Quick help is very 
  thanked.
  
  
  
  


  1   2   3   4   >