Re: [JBoss-user] How can I use a background process with JBoss

2002-02-14 Thread Ivan Bolcina










Hi.



Interesting question...



How about that you write a entry in database table after order processing with
status. Now every struts action should check it and if order id matches order
id of current user, it can notify him. This is server-pull, since you pull data
from server and its only checked on clicks. You can
simulate server push, in this way that client constanty checks throug .do -
ejb- db for order processing status. After status is ok, it writes
javascript message or redirects or something. For this you need frame or iframe
and there javascript which every 15 seconds or something refreshes itself - to
.do action of course.



What do you think?








[JBoss-user] File RAR (was: How can I use a background process with JBoss)

2002-02-14 Thread Edward Q. Bridges


can this be both possible and useful?

as far as i can tell from reading a tutorial on JCA, when the server 
starts up it spawns several connections to a resource via the 
ManagedConnectionFactory.  then the client requests one of these 
connections via a ConnectionFactory.

the connections are (apparently) made anonymously to a datasource 
configured in a config file that the server reads in at startup.

in this regard, how useful is this really when considering files.  in 
this context how is it possible to create connections to arbitrary files 
or network connections?   (IMHO this would be the the truly useful aspect 
of such a service). the most useful application of this would be to 
create a tempfile service that provides a connection to an anonymous 
file on the filesystem.



On Wed, 13 Feb 2002 16:00:46 -0500, David Jencks wrote:

I think the only useful thing you can impelement with a file system
connector is serialization: keep connections from accessing the same 
file
at the same time. Transactions without versioning would be very 
difficult. 
I don't really see any place for security.

If you are interested in an example that is only a little more 
complicated
than what would be necessary for a filesystem connector, I can send you 
my
javaspace adapter.  I haven't been able to test it, however based on the
other (3) adapters I've written I think everything important is
implemented.  I'd also be happy to answer questions and review code.

Aside from the spec, the recent jca book is somewhat informative, but
copying an existing adapter will be much easier.

david jencks





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



[JBoss-user] How can I have fileaccess (copy) within or from a EJB

2002-02-14 Thread Dirk Storck



I have a bean wich processes my order. In case that the order is a
downloadable file I need to copy that file from one location to another
cause only that location can be accessed my user to download.
How can I achieve this?
Can I use the JCA for that?
Did anyone ever had the same problem and found a solution?

Thanks! And any comments are welcome. This post Is related to my previous
problem  How can I use a background process with JBoss




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



[JBoss-user] How can I have fileaccess (copy) within or from a EJB

2002-02-14 Thread Dirk Storck

I have a bean wich processes my order. In case that the order is a
downloadable file I need to copy that file from one location to another
cause only that location can be accessed my user to download.
How can I achieve this?
Can I use the JCA for that?
Did anyone ever had the same problem and found a solution?

Thanks! And any comments are welcome. This post Is related to my previous
problem  How can I use a background process with JBoss




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



[JBoss-user] JBoss (244) and Apache Nightmares...

2002-02-14 Thread Jarecsni Jnos

Hi,

finally I was able to configure Apache and JBoss to work together. There are
only two problems remaining (the ones I know of now :)

1. Eliminating the webcontext from URLs
since the DocumentRoot in Apache httpd.conf points right to the expanded WAR
directory under JBoss/deploy, all static resources can be referenced without
the application context in the URL, eg.:

http://host/images/back.gif

However, any resources that are to be served by JBoss(Tomcat) must have the
application context in the request URL, otherwise Tomcat claims that no
context is configured for the given request. So only

http://host/istore/servletAlias or http://host/istore/any.jsp

is working. This seems rather silly for me, since the virtual host itself is
dedicated to this application only, so the webcontext is absolutely
superfluous.

***


2. An even greater problem is aliasing.
It is a nightmare. What I'd like to do is to alias some ugly, long URLs.
Eg.:

http://host/istore/control/dosomething?with=thisand=that should be aliased
like:

http://host/justdoit

It doesn't work. I mean the request is served (if I use Apache's rewrite
engine and redirection), but the ugly URL is shown in the address field of
the browser, and what's worse people say that web crawlers will register the
long URL, to which they finally got and not the short one.

Aliasing doesn't work with JSP files either (something that works well will
PHP :-x) If I alias a JSP file, the aliased file is returned okay, but it
does not processed as a JSP file. (Obviously Apache does not pass the
request to Tomcat through AJP, but merely returns the file as it were a
plain text thing).

I tried Apache and Tomcat users lists. Got no answer. If the first cannot be
worked around it's no big problem, however the second one is really
something that should work.

Any kind of help would be appreciated!

Cheers,
Jnos



--
Jarecsni, Jnos
MORGAN HILL CONSULTING, Internet Applications Unit
mailto:[EMAIL PROTECTED]
http://morganhillconsulting.hu/ :: Phone+Fax: + 36 1 484 0392


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



[JBoss-user] Jboss 3.0 security

2002-02-14 Thread Achilleus Mantzios

Hi i installed jboss 3.0, to see the new features/clustering, etc..
just for testing, and also to see how jetty performs.

In previous jboss 2.x versions i used to have my own login module (against a 
rather wierd (lotus) ldap server), and i had to add my .jar package in the
JBOSS_CLASSPATH concatenation in run.sh .
My custom login module class is a subclass of 
org.jboss.security.auth.spi.UsernamePasswordLoginModule.
Jboss complained about :
unable to find LoginModule class: 
org.jboss.security.auth.spi.UsernamePasswordLoginModule
When i tried to use the jboss shipped LdapLoginModule,
jboss couldn't find it either.
Any clues???

-- 
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
tel:+30-10-8981112
fax:+30-10-8981877
email:  [EMAIL PROTECTED]
[EMAIL PROTECTED]


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



[JBoss-user] Jboss 3.0 postgresql, ~/tmp files, jetty configuration and friends!!

2002-02-14 Thread Achilleus Mantzios

It seems that i am a REAL newbie in jboss 3.0 :)
well to start:

1) Anyone know howto define a postgresql datasource, a connection pool and 
the like, using the new way (JCA??) ??
I found some pgsql-service.xml file on the cvs, but i had no clue where to 
stick them to.
2) Anyone knows howto change the port number jetty listens ??
Bowsing http://myhost:8082 i saw that configuration files come from
a mysterious 
/usr/local/jboss-all/build/output/jboss-3.0.0alpha/tmp/deploy/ServiceDeployer/deploy.xxx
directory.
Any one has a clue on something from the above??
Any documentation on clustering??
Is it worthy buying the docs??
-- 
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
tel:+30-10-8981112
fax:+30-10-8981877
email:  [EMAIL PROTECTED]
[EMAIL PROTECTED]


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



Re: [JBoss-user] File RAR (was: How can I use a background process with JBoss)

2002-02-14 Thread David Jencks

On 2002.02.14 03:30:25 -0500 Edward Q. Bridges wrote:
 
 can this be both possible and useful?

It's definitely possible.  Useful is another question.

Normally a jca connector is useful when you want to communicate with
something that has:
--limited, resource-expensive resources required for a communication
channel

--some notion of transactions

--some notion of security.

As I tried to hint, none of these seem to apply very well to a file system.
 The only behaviour I thought of that could be useful is preventing
simultaneous write access to a file.  Supplying an anonymous temp directory
is as you point out another possible function.  If we can mangle file names
(and don't try to read files we didn't create) we could implement
transactional behavior by including a version number in each file name.  In
this case we could also implement some kind of security.

david jencks
 
 as far as i can tell from reading a tutorial on JCA, when the server 
 starts up it spawns several connections to a resource via the 
 ManagedConnectionFactory.  then the client requests one of these 
 connections via a ConnectionFactory.

This is a little oversimplified.  The degree of pooling depends on the
ConnectionManager, part of the environment (JBoss in our case)
 
 the connections are (apparently) made anonymously to a datasource 
 configured in a config file that the server reads in at startup.

??Connections are normally made under a security context.  Unless that
context is constant (all connections made as the same db user), they
can't be made until the security context is known.  I'm not sure what you
mean by datasource.  The ManagedConnectionFactory is normally configured at
startup, the ConnectionFactory is what the user gets the connections from
(for jdbc this is usually a javax.sql.DataSource), however in most
circumstances the resource manager is remote and configured through its own
mechanism (e.g. Oracle)
 
 in this regard, how useful is this really when considering files.  in 
 this context how is it possible to create connections to arbitrary files 
 or network connections?   (IMHO this would be the the truly useful aspect
 
 of such a service). the most useful application of this would be to 
 create a tempfile service that provides a connection to an anonymous 
 file on the filesystem.

I'm starting to think that might be useful as well.
 
 
 
 On Wed, 13 Feb 2002 16:00:46 -0500, David Jencks wrote:
 
 I think the only useful thing you can impelement with a file system
 connector is serialization: keep connections from accessing the same 
 file
 at the same time. Transactions without versioning would be very 
 difficult. 
 I don't really see any place for security.
 
 If you are interested in an example that is only a little more 
 complicated
 than what would be necessary for a filesystem connector, I can send you 
 my
 javaspace adapter.  I haven't been able to test it, however based on the
 other (3) adapters I've written I think everything important is
 implemented.  I'd also be happy to answer questions and review code.
 
 Aside from the spec, the recent jca book is somewhat informative, but
 copying an existing adapter will be much easier.
 
 david jencks
 
 
 
 
 
 

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



Re: [JBoss-user] Jboss 3.0 security

2002-02-14 Thread David Jencks

At least with cvs jboss 3-
have you tried simply putting your jars in lib/ext and leaving the startup
classpath alone?

david jencks

On 2002.02.14 06:05:33 -0500 Achilleus Mantzios wrote:
 Hi i installed jboss 3.0, to see the new features/clustering, etc..
 just for testing, and also to see how jetty performs.
 
 In previous jboss 2.x versions i used to have my own login module
 (against a 
 rather wierd (lotus) ldap server), and i had to add my .jar package in
 the
 JBOSS_CLASSPATH concatenation in run.sh .
 My custom login module class is a subclass of 
 org.jboss.security.auth.spi.UsernamePasswordLoginModule.
 Jboss complained about :
 unable to find LoginModule class: 
 org.jboss.security.auth.spi.UsernamePasswordLoginModule
 When i tried to use the jboss shipped LdapLoginModule,
 jboss couldn't find it either.
 Any clues???
 
 -- 
 Achilleus Mantzios
 S/W Engineer
 IT dept
 Dynacom Tankers Mngmt
 tel:+30-10-8981112
 fax:+30-10-8981877
 email:  [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 

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



Re: [JBoss-user] Jboss 3.0 postgresql, ~/tmp files, jetty configuration and friends!!

2002-02-14 Thread David Jencks

On 2002.02.14 06:13:41 -0500 Achilleus Mantzios wrote:
 It seems that i am a REAL newbie in jboss 3.0 :)
 well to start:
 
 1) Anyone know howto define a postgresql datasource, a connection pool
 and 
 the like, using the new way (JCA??) ??
 I found some pgsql-service.xml file on the cvs, but i had no clue where
 to 
 stick them to.

deploy folder.  Watch the log, check the mbeans to make sure they started.

Read ch. 3 of the free docs.

david jencks
 2) Anyone knows howto change the port number jetty listens ??
 Bowsing http://myhost:8082 i saw that configuration files come from
 a mysterious 
 
/usr/local/jboss-all/build/output/jboss-3.0.0alpha/tmp/deploy/ServiceDeployer/deploy.xxx
 directory.
 Any one has a clue on something from the above??
 Any documentation on clustering??
 Is it worthy buying the docs??
 -- 
 Achilleus Mantzios
 S/W Engineer
 IT dept
 Dynacom Tankers Mngmt
 tel:+30-10-8981112
 fax:+30-10-8981877
 email:  [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 

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



[JBoss-user] RemoteMBeanServer by using RMIConnector

2002-02-14 Thread Ramesh Gadde

Hi all

I want to connect to the RemoteMBeanServer.In the jboss site i didnt find
any documentation on RMIConnector.

I found the following code saying that to get RemoteMBeanServer you need get
RMI Adapter.
RemoteMBeanServer lServer = new RMIConnectorImpl( lRMIAdaptor ); 
how can i get the RMI Adapter

ant help is appreciated
regards
Ramesh



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



[JBoss-user] jboss 2.4.4 and mysql: Unknown Source

2002-02-14 Thread Pavel Kolesnikov

Hallo,

I've tried to configure Jboss 2.4.4 to use MySQL database.

Unfortunatelly I found only JBoss 3.0 configuration on Jboss site, so
I tried some directions found on the web with Google.

So I've changed JdbcProvider mbean in jboss.jcml to:

  mbean code=org.jboss.jdbc.JdbcProvider 
name=DefaultDomain:service=JdbcProvider
attribute name=Driversorg.hsqldb.jdbcDriver,org.gjt.mm.mysql.Driver/attribute
  /mbean

... and added following mbean:

mbean code=org.jboss.jdbc.XADataSourceLoader 
name=DefaultDomain:service=XADataSource,name=mySQLDS
attribute name=PoolNamemySQLDS/attribute
attribute 
name=DataSourceClassorg.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl/attribute
attribute name=Properties/attribute
attribute name=URLjdbc:mysql:/localhost/test/attribute
attribute name=GCMinIdleTime120/attribute
attribute name=JDBCUserroot/attribute
attribute name=MaxSize10/attribute
attribute name=Password***/attribute
/mbean

standardjaws.xml starts with following few lines:
?xml version=1.0 encoding=UTF-8?
jaws
datasourcejava:/mySQLDS/datasource
type-mappingmySQL/type-mapping
debugfalse/debug

When I'm starting JBoss, I'm getting following message in its logfile:
[16:44:19,979,mySQLDS] Starting
[16:44:20,253,mySQLDS] XA Connection pool mySQLDS bound to java:/mySQLDS
[16:44:20,719,mySQLDS] Stopped
java.lang.NullPointerException
at org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(Unknown Source)
at org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:412)
at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at 
org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:967)
at $Proxy0.start(Unknown Source)
...

Could anyone of more experienced JBoss users tell me what could be wrong?
Sorry if this problem seems to be too stupid, I'm real JBoss newbie.

Thanks a lot

Pavel



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



Re: [JBoss-user] RemoteMBeanServer by using RMIConnector

2002-02-14 Thread David Jencks

As usual, which jboss?

for 3, look at the testsuite (JBossTestServices) for some examples
david jencks

On 2002.02.14 10:10:01 -0500 Ramesh Gadde wrote:
 Hi all
 
 I want to connect to the RemoteMBeanServer.In the jboss site i didnt find
 any documentation on RMIConnector.
 
 I found the following code saying that to get RemoteMBeanServer you need
 get
 RMI Adapter.
 RemoteMBeanServer lServer = new RMIConnectorImpl( lRMIAdaptor ); 
 how can i get the RMI Adapter
 
 ant help is appreciated
 regards
 Ramesh
 
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 

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



[JBoss-user] Migration from JBoss 2.2.2 to JBoss 2.4.3 Problem

2002-02-14 Thread Dirk Storck

Hi,

currently I have migrated form 2.2.2 to 2.4.3. I have copied my jar to the
deploy dir and the jar jar got deployed correct.
But when I want to access my Bean I get the following exception. Could
someone tell me why?

 [java] 2002-02-14 16:45:44,068 [Thread-18] ERROR
(UserManagerHelper-retrieveUserData) - NamingException
 [java] java.lang.ClassNotFoundException:
com.tecmath.cms.mt.client.UserManagerHome
 [java] at javax.management.loading.MLet.findClass(MLet.java:800)
 [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
 [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
 [java] at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
 [java] at java.lang.Class.forName0(Native Method)
 [java] at java.lang.Class.forName(Class.java:195)
 [java] at
sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:
183)
 [java] at
java.io.ObjectInputStream.inputProxyClassDescriptor(ObjectInputStream.java:9
82)
 [java] at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
 [java] at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
 [java] at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
 [java] at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
 [java] at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
 [java] at java.rmi.MarshalledObject.get(MarshalledObject.java:138)
 [java] at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:353)
 [java] at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
 [java] at
javax.naming.InitialContext.lookup(InitialContext.java:350)
 [java] at
com.tecmath.cms.mt.util.ejb.EJBUtil.findHome(EJBUtil.java:33)
 [java] at
com.tecmath.cms.mt.biz.UserManagerHelper.retrieveUserData(UserManagerHelper.
java:91)
 [java] at
com.tecmath.cms.mt.struts.LoginAction.retrieveUserData(LoginAction.java:131)
 [java] at
com.tecmath.cms.mt.struts.LoginAction.perform(LoginAction.java:76)
 [java] at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja
va:1720)
 [java] at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1519)
 [java] at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:505)
 [java] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 [java] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 [java] at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
 [java] at org.apache.tomcat.core.Handler.service(Handler.java:287)
 [java] at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 [java] at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
 [java] at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
 [java] at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
 [java] at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 [java] at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
 [java] at java.lang.Thread.run(Thread.java:484)

The lookup I do the following way.

-EJBUtil.findHome:
java.util.Properties p = System.getProperties();
javax.naming.InitialContext jndiContext = new
javax.naming.InitialContext(p);
Object ref = jndiContext.lookup(aJNDIName);
Object home = javax.rmi.PortableRemoteObject.narrow(ref, narrowedClass);


Many Thanks !



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



Re: [JBoss-user] jboss 2.4.4 and mysql: Unknown Source

2002-02-14 Thread David Jencks

The driver can't connect to the database.  Usually its a url problem

david jencks

On 2002.02.14 10:58:47 -0500 Pavel Kolesnikov wrote:
 Hallo,
 
 I've tried to configure Jboss 2.4.4 to use MySQL database.
 
 Unfortunatelly I found only JBoss 3.0 configuration on Jboss site, so
 I tried some directions found on the web with Google.
 
 So I've changed JdbcProvider mbean in jboss.jcml to:
 
   mbean code=org.jboss.jdbc.JdbcProvider 
   name=DefaultDomain:service=JdbcProvider
 attribute 
name=Driversorg.hsqldb.jdbcDriver,org.gjt.mm.mysql.Driver/attribute
   /mbean
 
 ... and added following mbean:
 
 mbean code=org.jboss.jdbc.XADataSourceLoader 
 name=DefaultDomain:service=XADataSource,name=mySQLDS
 attribute name=PoolNamemySQLDS/attribute
 attribute 
 name=DataSourceClassorg.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl/attribute
 attribute name=Properties/attribute
 attribute name=URLjdbc:mysql:/localhost/test/attribute
 attribute name=GCMinIdleTime120/attribute
 attribute name=JDBCUserroot/attribute
 attribute name=MaxSize10/attribute
 attribute name=Password***/attribute
 /mbean
 
 standardjaws.xml starts with following few lines:
 ?xml version=1.0 encoding=UTF-8?
 jaws
 datasourcejava:/mySQLDS/datasource
 type-mappingmySQL/type-mapping
 debugfalse/debug
 
 When I'm starting JBoss, I'm getting following message in its logfile:
 [16:44:19,979,mySQLDS] Starting
 [16:44:20,253,mySQLDS] XA Connection pool mySQLDS bound to java:/mySQLDS
 [16:44:20,719,mySQLDS] Stopped
 java.lang.NullPointerException
 at org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(Unknown
 Source)
 at 
org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:412)
 at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
 at java.lang.reflect.Method.invoke(Native Method)
 at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
 at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
 at 
org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:967)
 at $Proxy0.start(Unknown Source)
   ...
 
 Could anyone of more experienced JBoss users tell me what could be wrong?
 Sorry if this problem seems to be too stupid, I'm real JBoss newbie.
 
 Thanks a lot
 
 Pavel
 
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 

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



Re: [JBoss-user] Jboss 3.0 security

2002-02-14 Thread Achilleus Mantzios

At least with cvs jboss 3-
have you tried simply putting your jars in lib/ext and leaving the startup
classpath alone?

david jencks

Sure,
as i told, i tried also with the jboss-shipped LadpLoginModule,
which indeed resides in lib/ext/jbosssx.jar.

The output is:


javax.security.auth.login.LoginException: unable to find LoginModule class: 
org.jboss.security.auth.spi.LdapLoginModule

-- 
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
tel:+30-10-8981112
fax:+30-10-8981877
email:  [EMAIL PROTECTED]
[EMAIL PROTECTED]


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



[JBoss-user] Re: Jboss 3.0 postgresql, ~/tmp files, jetty configuration and friends!!

2002-02-14 Thread Achilleus Mantzios

deploy folder.  Watch the log, check the mbeans to make sure they started.

Read ch. 3 of the free docs.

I found out already, postgresql accepts the connections ok,
however the rest of the situation (problems) prevents from testing the 
application on jboss 3.0.

Thanx anyway.

-- 
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
tel:+30-10-8981112
fax:+30-10-8981877
email:  [EMAIL PROTECTED]
[EMAIL PROTECTED]


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



AW: [JBoss-user] jboss 2.4.4 and mysql: Unknown Source

2002-02-14 Thread Jan Heise

 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 attribute name=URLjdbc:mysql:/localhost/test/attribute

try jdbc:mysql://localhost/test instead.

if this doesn't do the trick, the root pwd could also be wrong.

hth, jan

- --
Jan Heise / Tel. +49-163-4803237 / [EMAIL PROTECTED] 

- -Ursprungliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Im Auftrag von Pavel
Kolesnikov
Gesendet: Donnerstag, 14. Februar 2002 16:59
An: [EMAIL PROTECTED]
Betreff: [JBoss-user] jboss 2.4.4 and mysql: Unknown Source


Hallo,

I've tried to configure Jboss 2.4.4 to use MySQL database.

Unfortunatelly I found only JBoss 3.0 configuration on Jboss site, so
I tried some directions found on the web with Google.

So I've changed JdbcProvider mbean in jboss.jcml to:

  mbean code=org.jboss.jdbc.JdbcProvider 
name=DefaultDomain:service=JdbcProvider
attribute
name=Driversorg.hsqldb.jdbcDriver,org.gjt.mm.mysql.Driver/attribut
e
  /mbean

... and added following mbean:

mbean code=org.jboss.jdbc.XADataSourceLoader 
name=DefaultDomain:service=XADataSource,name=mySQLDS
attribute name=PoolNamemySQLDS/attribute
attribute 
name=DataSourceClassorg.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
/attribute
attribute name=Properties/attribute
attribute name=URLjdbc:mysql:/localhost/test/attribute
attribute name=GCMinIdleTime120/attribute
attribute name=JDBCUserroot/attribute
attribute name=MaxSize10/attribute
attribute name=Password***/attribute
/mbean

standardjaws.xml starts with following few lines:
?xml version=1.0 encoding=UTF-8?
jaws
datasourcejava:/mySQLDS/datasource
type-mappingmySQL/type-mapping
debugfalse/debug

When I'm starting JBoss, I'm getting following message in its
logfile:
[16:44:19,979,mySQLDS] Starting
[16:44:20,253,mySQLDS] XA Connection pool mySQLDS bound to
java:/mySQLDS
[16:44:20,719,mySQLDS] Stopped
java.lang.NullPointerException
at
org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(Unknown Source)
at
org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java
:412)
at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
at java.lang.reflect.Method.invoke(Native Method)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:162
8)
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:152
3)
at
org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(Confi
gurationService.java:967)
at $Proxy0.start(Unknown Source)
...

Could anyone of more experienced JBoss users tell me what could be
wrong?
Sorry if this problem seems to be too stupid, I'm real JBoss newbie.

Thanks a lot

Pavel



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

-BEGIN PGP SIGNATURE-
Version: PGP 7.0.4

iQA/AwUBPGvvdp/YNqVvLvLkEQK0SACfUN+BiG1CItscaJtOEwbCsCp7NW8AmwWN
+BwGFhCXlpvhN9wuwuPgopoZ
=y5jJ
-END PGP SIGNATURE-


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



[JBoss-user] JNDI in Jboss

2002-02-14 Thread Srinivas . Kotamraju

hi all,
I get the following error 

javax.naming.NameNotFoundException: Queue not bound
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.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:349)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at com.bms.ecp.oms.jms.ManualJNDI.main(ManualJNDI.java:59)

when I run the-code below though I have all the jar files in my classpath.
do I have to start anyservice or something to get JNDI working in JBOSS--
any help is highly appreciated.
regard
sri

public class ManualJNDI {

/**
 * Get an initial context for JBoss JNDI (localhost:1099)
 */
public static Context getInitialContext() throws NamingException{

// Populate with needed propertis
Hashtable props = new Hashtable();
props.put(Context.INITIAL_CONTEXT_FACTORY,
  org.jnp.interfaces.NamingContextFactory);
props.put(Context.PROVIDER_URL, localhost:1099);
props.put(java.naming.rmi.security.manager, yes);
props.put(Context.URL_PKG_PREFIXES,  org.jboss.naming);

// Get initial context with given properties
return new InitialContext(props);

}

/**
 * Test looking up a known topic, if no errors JNDI works.
 */
public static void main(String[] args) {
try {
// Get the manually configured initial context
Context context = ManualJNDI.getInitialContext();
Logger.log(a);
// Do the lookup
Queue t = (Queue)context.lookup(Queue/testQueue);
Logger.log(b);
System.out.println(Looing up topic/testTopic worked fine);
}catch (Exception ex) {
System.err.println(Could not lookup topic/testTopic);
ex.printStackTrace();
}
}

} // ManualJNDI

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



Re: [JBoss-user] jboss 2.4.4 and mysql: Unknown Source

2002-02-14 Thread Dennis Keller

Pavel -

I had similar problems when I was starting out with JBoss. Turns out
that I was configuration the wrong jboss.jcml file. If you're running
jboss with catalina built-in, then you need to be editing the jboss.jcml
file under JBoss-2.4.4_Tomcat-4.0.1/jboss/conf/catalina. Be sure you're
not editing the jboss.jcml file under
JBoss-2.4.4_Tomcat-4.0.1/jboss/conf/default (as I was).

Dennis

On Thu, 2002-02-14 at 07:58, Pavel Kolesnikov wrote:
 Hallo,

 I've tried to configure Jboss 2.4.4 to use MySQL database.
 
 Unfortunatelly I found only JBoss 3.0 configuration on Jboss site, so
 I tried some directions found on the web with Google.
 
 So I've changed JdbcProvider mbean in jboss.jcml to:
 
   mbean code=org.jboss.jdbc.JdbcProvider 
   name=DefaultDomain:service=JdbcProvider
 attribute 
name=Driversorg.hsqldb.jdbcDriver,org.gjt.mm.mysql.Driver/attribute
   /mbean
 
 ... and added following mbean:
 
 mbean code=org.jboss.jdbc.XADataSourceLoader 
 name=DefaultDomain:service=XADataSource,name=mySQLDS
 attribute name=PoolNamemySQLDS/attribute
 attribute 
 name=DataSourceClassorg.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl/attribute
 attribute name=Properties/attribute
 attribute name=URLjdbc:mysql:/localhost/test/attribute
 attribute name=GCMinIdleTime120/attribute
 attribute name=JDBCUserroot/attribute
 attribute name=MaxSize10/attribute
 attribute name=Password***/attribute
 /mbean
 
 standardjaws.xml starts with following few lines:
 ?xml version=1.0 encoding=UTF-8?
 jaws
 datasourcejava:/mySQLDS/datasource
 type-mappingmySQL/type-mapping
 debugfalse/debug
 
 When I'm starting JBoss, I'm getting following message in its logfile:
 [16:44:19,979,mySQLDS] Starting
 [16:44:20,253,mySQLDS] XA Connection pool mySQLDS bound to java:/mySQLDS
 [16:44:20,719,mySQLDS] Stopped
 java.lang.NullPointerException
 at org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(Unknown Source)
 at 
org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:412)
 at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
 at java.lang.reflect.Method.invoke(Native Method)
 at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
 at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
 at 
org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:967)
 at $Proxy0.start(Unknown Source)
   ...
 
 Could anyone of more experienced JBoss users tell me what could be wrong?
 Sorry if this problem seems to be too stupid, I'm real JBoss newbie.
 
 Thanks a lot
 
 Pavel
 
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user


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



RE: [JBoss-user] JNDI in Jboss

2002-02-14 Thread Jim Birchfield

Try ' Queue t = (Queue)context.lookup(queue/testQueue); '
Notice the lower case q...

James Birchfield
Development Manager
Genscape, Inc.
(502) 583-2298 (o)
(502) 639-3136 (c)


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 14, 2002 1:57 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] JNDI in Jboss

hi all,
I get the following error 

javax.naming.NameNotFoundException: Queue not bound
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.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:349)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at com.bms.ecp.oms.jms.ManualJNDI.main(ManualJNDI.java:59)

when I run the-code below though I have all the jar files in my classpath.
do I have to start anyservice or something to get JNDI working in JBOSS--
any help is highly appreciated.
regard
sri

public class ManualJNDI {

/**
 * Get an initial context for JBoss JNDI (localhost:1099)
 */
public static Context getInitialContext() throws NamingException{

// Populate with needed propertis
Hashtable props = new Hashtable();
props.put(Context.INITIAL_CONTEXT_FACTORY,
  org.jnp.interfaces.NamingContextFactory);
props.put(Context.PROVIDER_URL, localhost:1099);
props.put(java.naming.rmi.security.manager, yes);
props.put(Context.URL_PKG_PREFIXES,  org.jboss.naming);

// Get initial context with given properties
return new InitialContext(props);

}

/**
 * Test looking up a known topic, if no errors JNDI works.
 */
public static void main(String[] args) {
try {
// Get the manually configured initial context
Context context = ManualJNDI.getInitialContext();
Logger.log(a);
// Do the lookup
Queue t = (Queue)context.lookup(Queue/testQueue);
Logger.log(b);
System.out.println(Looing up topic/testTopic worked fine);
}catch (Exception ex) {
System.err.println(Could not lookup topic/testTopic);
ex.printStackTrace();
}
}

} // ManualJNDI

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

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



[JBoss-user] ejb exception handling

2002-02-14 Thread Eric Kaplan

Hi

Having a strange problem.  I have an entity bean with a custom finder
method.  This custom finder method throws an ObjectNotFoundException if no
rows were found.  I then have a session bean which calls this custom finder
method inside a try and expects to catch ObjectNotFoundException.  However,
the exception being thrown back to the session bean is not the
ObjectNotFoundException, its an EJBException which wraps the
ObjectNotFoundException.  I'm pretty sure my code is not throwing the
EJBException.  So what's happening in this case?  Would JBOSS for any reason
throw the EJBException back to the session bean?  I see that it's taking the
liberty of dumping a stack trace.

Thanks in advance

Eric


--
Eric Kaplan
Armanta, Inc.
55 Madison Ave.
Morristown, NJ  07960
Phone: (973) 326-9600




winmail.dat
Description: application/ms-tnef


[JBoss-user] About petstore 1.1.2

2002-02-14 Thread Jaime21

People:

I try to run petstore 1.1.2 in JBoss , but i like to use postgresql how
database, becaues i have problem with cloudscape, JBoss not connnect to
cloudscape. Is possible to run Petstore with postgresql, where i find
information how setup this connection?
I hope their help
Regards
Jaime

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



RE: [JBoss-user] JNDI in Jboss

2002-02-14 Thread Srinivas . Kotamraju

hi james,
Thanks for the advise..I changed it lower-case queue but now get..
java.lang.ClassCastException: javax.naming.Reference
at com.bms.ecp.oms.jms.ManualJNDI.main(ManualJNDI.java:59)
any ideas??

-Original Message-
From: Jim Birchfield [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 11:07 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [JBoss-user] JNDI in Jboss


Try ' Queue t = (Queue)context.lookup(queue/testQueue); '
Notice the lower case q...

James Birchfield
Development Manager
Genscape, Inc.
(502) 583-2298 (o)
(502) 639-3136 (c)


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 14, 2002 1:57 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] JNDI in Jboss

hi all,
I get the following error 

javax.naming.NameNotFoundException: Queue not bound
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.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:349)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at com.bms.ecp.oms.jms.ManualJNDI.main(ManualJNDI.java:59)

when I run the-code below though I have all the jar files in my classpath.
do I have to start anyservice or something to get JNDI working in JBOSS--
any help is highly appreciated.
regard
sri

public class ManualJNDI {

/**
 * Get an initial context for JBoss JNDI (localhost:1099)
 */
public static Context getInitialContext() throws NamingException{

// Populate with needed propertis
Hashtable props = new Hashtable();
props.put(Context.INITIAL_CONTEXT_FACTORY,
  org.jnp.interfaces.NamingContextFactory);
props.put(Context.PROVIDER_URL, localhost:1099);
props.put(java.naming.rmi.security.manager, yes);
props.put(Context.URL_PKG_PREFIXES,  org.jboss.naming);

// Get initial context with given properties
return new InitialContext(props);

}

/**
 * Test looking up a known topic, if no errors JNDI works.
 */
public static void main(String[] args) {
try {
// Get the manually configured initial context
Context context = ManualJNDI.getInitialContext();
Logger.log(a);
// Do the lookup
Queue t = (Queue)context.lookup(Queue/testQueue);
Logger.log(b);
System.out.println(Looing up topic/testTopic worked fine);
}catch (Exception ex) {
System.err.println(Could not lookup topic/testTopic);
ex.printStackTrace();
}
}

} // ManualJNDI

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

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



[JBoss-user] About petstore 1.1.2 - problem with cloudscape

2002-02-14 Thread Jaime21

I have the following message when install Petstore 1.1.2  with cloudscape,
anybody have idea of what's the problem

Jaime





2/14/02 3:11 PM Thread[main,5,main] Class COM.jbms._177._2426
java.lang.reflect.InvocationTargetException, module ignored.



Thu Feb 14 15:12:44 PST 2002:

Booting Cloudscape version Cloudscape - DBMS:cloudscape - 3.0.4 - (14370):
instance c013800d-00ec-06eb-459e-00c8640a3200

on database at directory /usr/java/j2sdkee1.2.1/cloudscape/CloudscapeDB

2/14/02 3:12 PM Thread[RMI TCP Connection(4)-200.100.10.50,5,RMI Runtime]
Could not start service:/usr/java/j2sdkee1.2.1/cloudscape/CloudscapeDB, type
:COM.cloudscape.database.Database

2/14/02 3:12 PM Thread[RMI TCP Connection(4)-200.100.10.50,5,RMI Runtime]
Cleanup action starting

ERROR XBM02: Startup failed due to missing functionality for
COM.jbms._170._2166. Please ensure your classpath is set to the correct
Cloudscape product.

at COM.jbms._111._1171.missingImplementation(Unknown Source)

at COM.jbms._44._1074.bootModule(Unknown Source)

at COM.jbms._44._1076.startModule(Unknown Source)

at COM.jbms._111._1193.startSystemModule(Unknown Source)

at COM.jbms._92._562._1115(Unknown Source)

at COM.jbms._92._562.boot(Unknown Source)

at COM.jbms._43._978.boot(Unknown Source)

at COM.jbms._44._1074.bootModule(Unknown Source)

at COM.jbms._44._1076.startModule(Unknown Source)

at COM.jbms._111._1193.bootServiceModule(Unknown Source)

at COM.jbms._77._340.bootAModule(Unknown Source)

at COM.jbms._77._340.boot(Unknown Source)

at COM.jbms._44._1074.bootModule(Unknown Source)

at COM.jbms._44._1076.bootService(Unknown Source)

at COM.jbms._44._1076.createPersistentService(Unknown Source)

at COM.jbms._111._1193.createPersistentService(Unknown Source)

at COM.jbms._6._608._6442(Unknown Source)

at COM.jbms._6._608.init(Unknown Source)

at COM.jbms._46._2233.init(Unknown Source)

at COM.jbms._46._217.getNewLocalConnection(Unknown Source)

at COM.jbms._6._1048.connect(Unknown Source)

at RmiJdbc.RJDriverServer.connect(RJDriverServer.java:81)

at java.lang.reflect.Method.invoke(Native Method)

at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)

at sun.rmi.transport.Transport$1.run(Transport.java:142)

at java.security.AccessController.doPrivileged(Native Method)

at sun.rmi.transport.Transport.serviceCall(Transport.java:139)

at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443)

at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:6
43)

at java.lang.Thread.run(Thread.java:484)

Cleanup action completed

Thu Feb 14 15:12:44 PST 2002:

Shutting down cloudscape instance c013800d-00ec-06eb-459e-00c8640a3200



2/14/02 3:12 PM Thread[RMI TCP Connection(4)-200.100.10.50,5,RMI Runtime]
2/14/02 3:12 PM Thread[RMI TCP Connection(4)-200.100.10.50,5,RMI Runtime]
Startup failed due to missing functionality for COM.jbms._170._2166. Please
ensure your classpath is set to the correct Cloudscape product.

ERROR XBM02: Startup failed due to missing functionality for
COM.jbms._170._2166. Please ensure your classpath is set to the correct
Cloudscape product.

at COM.jbms._111._1171.missingImplementation(Unknown Source)

at COM.jbms._44._1074.bootModule(Unknown Source)

at COM.jbms._44._1076.startModule(Unknown Source)

at COM.jbms._111._1193.startSystemModule(Unknown Source)

at COM.jbms._92._562._1115(Unknown Source)

at COM.jbms._92._562.boot(Unknown Source)

at COM.jbms._43._978.boot(Unknown Source)

at COM.jbms._44._1074.bootModule(Unknown Source)

at COM.jbms._44._1076.startModule(Unknown Source)

at COM.jbms._111._1193.bootServiceModule(Unknown Source)

at COM.jbms._77._340.bootAModule(Unknown Source)

at COM.jbms._77._340.boot(Unknown Source)

at COM.jbms._44._1074.bootModule(Unknown Source)

at COM.jbms._44._1076.bootService(Unknown Source)

at COM.jbms._44._1076.createPersistentService(Unknown Source)

at COM.jbms._111._1193.createPersistentService(Unknown Source)

at COM.jbms._6._608._6442(Unknown Source)

at COM.jbms._6._608.init(Unknown Source)

at COM.jbms._46._2233.init(Unknown Source)

at COM.jbms._46._217.getNewLocalConnection(Unknown Source)

at COM.jbms._6._1048.connect(Unknown Source)

at RmiJdbc.RJDriverServer.connect(RJDriverServer.java:81)

at java.lang.reflect.Method.invoke(Native Method)

at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)

at sun.rmi.transport.Transport$1.run(Transport.java:142)

at java.security.AccessController.doPrivileged(Native Method)

at sun.rmi.transport.Transport.serviceCall(Transport.java:139)

at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443)

at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:6
43)

at java.lang.Thread.run(Thread.java:484)

2/14/02 3:12 PM Thread[RMI TCP Connection(4)-200.100.10.50,5,RMI Runtime]
Cleanup action starting


RE: [JBoss-user] ejb exception handling

2002-02-14 Thread Eric Kaplan

Solved this problem.  Turned out the error was buried on my side.

  -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, February 14, 2002 2:35 PM
 To:   [EMAIL PROTECTED]
 Subject:  [JBoss-user] ejb exception handling
 
 Hi
 
 Having a strange problem.  I have an entity bean with a custom finder
 method.  This custom finder method throws an ObjectNotFoundException if no
 rows were found.  I then have a session bean which calls this custom
 finder method inside a try and expects to catch ObjectNotFoundException.
 However, the exception being thrown back to the session bean is not the
 ObjectNotFoundException, its an EJBException which wraps the
 ObjectNotFoundException.  I'm pretty sure my code is not throwing the
 EJBException.  So what's happening in this case?  Would JBOSS for any
 reason throw the EJBException back to the session bean?  I see that it's
 taking the liberty of dumping a stack trace.
 
 Thanks in advance
 
 Eric
 
 --
 
 Eric Kaplan
 Armanta, Inc.
 55 Madison Ave.
 Morristown, NJ  07960
 Phone: (973) 326-9600
 



winmail.dat
Description: application/ms-tnef