RE: [JBoss-user] Shutdown jBoss

2001-04-10 Thread Rene Rolander Nygaard

In W2K i do a "kill process(kill.exe)". I use the "please try to stop
process", and JBoss seems to catch this, and shutsdown nicely. Not even a
"do you want to stop batch-file".
I use this in a seperate batch file, which starts by checking for the
existince of Interbase, and starts it if needed.
Then it make a shutdown to the running jboss/jetty (if it exists)
and waits for it to stop, then it starts jboss/jetty.

I only use this when i have changed the configuration for jetty or jboss.

 - Rene

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Christopher
 Cheng
 Sent: 9. april 2001 20:10
 To: [EMAIL PROTECTED]
 Subject: [JBoss-user] Shutdown jBoss
 
 
 I installed the jBoss+Tomcat.
 I can sucessfully start the server by executing "run.sh", but how do I
 shutdown the machine with another script besides "Ctrl-C"?
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 

 winmail.dat


RE: [JBoss-user] anyone who can help me with jboss-2.1 with InterestBean

2001-04-10 Thread mark evertz
Title: anyone who can help me with jboss-2.1 with InterestBean



Just 
add the client/jbosssx-client.jar to your classpath when you run the 
client!
Mark

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of 
  Ì·ÖÐÒâ/eNet/¼¼Êõ²¿/ÍøÂ翪·¢¶þ²¿/ÏîÄ¿¾­ÀíSent: Dienstag, 10. April 2001 
  06:21To: '[EMAIL PROTECTED]'Subject: 
  [JBoss-user] anyone who can help me with jboss-2.1 with 
  InterestBean
  Hello, every one. 
  I am using jboss-2.1 with tomcat 3.2 beta. 
  but I am surprised that I can not get InterestBean 
  ejb test client work. 
  When I run the client java class, 
  it give me such an error message 
  Exception in thread "main" java.lang.NoClassDefFoundError: 
  org/jboss/security/Se curityAssociation 
   at 
  org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(Gener 
  icProxy.java:184)  at 
  org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java 
  :231)  at $Proxy0.create(Unknown 
  Source)  at 
  com.web_tomorrow.interest.InterestClient.main(InterestClient.java:60) 
  
  I run it under jboss2.0 final, it works well. 
  but I run it under jboss.21, it can not work. 
  I trace its code, found that when home.create(), the error 
  happened. 
  I wonder it is the config error, but I dont know how to 
  correct it, I didnot change the config files since I install 
  jboss2.1


RE: [JBoss-user] CMP Postgres and Booleans

2001-04-10 Thread Rajeev Bacchu

Hi,

This is a small request for help, I am not able to configure a connection
pool for Postgresql database, can u please mail me the mbean entry in
jboss.jcml file for a postgresql connection pool?
It would be of great help to me. I am struggling a bit.

thanks in advance,

Rajeev B.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, April 10, 2001 12:30 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] CMP Postgres and Booleans


I have a CMP bean that has a boolean variable.  Before
jboss is started, the value in the postgres database
is 1 (true), after I start postgres and the bean is
loaded, the value goes to false, and the database is
updated to reflect this.  What do I have
misconfigured?


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/

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



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



[JBoss-user] Error during deploying

2001-04-10 Thread Antonio Vazquez

Hi all,
I create a CMP bean that maintains information about users.When I deploy the
EJB, I receive this error:

[Container factory]
Deploying:file:/C:/jboss-tomcat-2.1-beta/jboss-2.1/tmp/deploy/Default/perfil
.jar/
[Verifier] Verifying
file:/C:/jboss-tomcat-2.1-beta/jboss-2.1/tmp/deploy/Default/perfil.jar/ejb10
08.jar
[Verifier] java.lang.ClassFormatError: com/cys/asp/Perfil (Bad magic number)

Any ideas???

Regards


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



[JBoss-user] Gathering information on migrating from 2.0 to 2.2

2001-04-10 Thread Tobias Frech

Hi everybody!
Most of you probably already noticed that there is a 2.2 release of
JBoss available at the website. I now would like to gather information
about what steps you needed to take to migrate from 2.0 to 2.2.
As a starting point there is already a section in the manual (actually
titled "Upgrading from JBoss 2.0 FINAL") that describes how the
configuration for JDBC datasources needs to be modified to work under
2.1/2.2.

My questions are:

a) Did the information contained in the above mentioned section help to
migrate to 2.2, is it correct ?

b) What would be the strategy you recommend for migration ? Either using
your old config files and patching them to contain the needed new values
OR using the new config files (coming with the distro) and patching them
with your modifications ?

c) What other steps did you need to take to successfully migrate to 2.2
?


You can reply to the discussion list or private to me. Either-way I will
collect the information and update a HTML page in the documentation
section with the new information every day.

Thanks, Tobias

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



[JBoss-user] easy to implement Informix Support ???

2001-04-10 Thread Schneider, Joerg (Zentrale Frankfurt)

Hello everybody,

after reading all the messages in this mailing-list regarding support of
Informix databases, i've the impression, that supporting this database
should be easy and could be done with small efforts.

First of all, i want to state what is working (in my opinion) by now (jboss
2.1) :

Establishing connections, if the minerva-class XADataSourceImpl is
used.
Database operations, if transaction and persistent type is bean

Second, here's what is not working (in my opinion) by now (jboss 2.1) :

If the IfxXADataSource class is used, an exception is thrown while
starting jboss with message "wrong argument" (please review older messages
in this mailing-list describing the exact stack-trace).  
If transactions should be handled by the container, an
runtime-exception is thrown with message "xares not enlisted".

In my opinion, the informix-jdbc driver 2.20JC1 (type 4, XA implemented)
works fine, except it is missing the methods "setURL" and "setProperties",
which are used by jboss to configure the XADataResource. 
According to previously sent mail's, the way to configure a XADataSource is
not part of any specifications, so any vendor can implement whatever methods
he wants to do configuration. The informix jdbc-driver offers a lot of
methods to use for config issues (setUser, setPassword, setProperties,
setDatabase) and is well documented to.
 
So, a slight change of the jboss config-procedure could make this database
easily available :-).  

For developing and testing purposes, one can obtain all informix-products
for all platforms from "www.informix.com/evaluate/ after registering
free-of-charge for a limited period of time.

If anyone has successfully configured an informix database-environment
(which means, i'm wrong with all my conclusions) with jboss 2.1, please let
me know. 
Otherwise, i would suggest to enhance jboss the way i mentioned above (this
is far more easy for a active member of the development community, as it is
for me, isn't it ?).

Kind regards

Joerg Schneider

Voice:  +49 (69) 263 - 7918
Fax:+49 (69) 263 - 11877
E-Mail: [EMAIL PROTECTED]


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



Re: [JBoss-user] Problems with the connection(-pool) on container-managed beans

2001-04-10 Thread Alexander Jerusalem

Hi David. Thank you for your answer.

Let me clarify a few things: Roman is not using cmp. When he says 
"bean-managed" he means bean managed transactions not bean managed 
persistence. What he tries to do is to read a longitude/latitude value from 
an Oracle Spatial column inside a stateless SessionBean. This column has 
the proprietary Oracle type MDSYS.SDO_GEOMETRY and the Oracle way to read a 
value from such a column is by using the OracleSpatialManager class to 
create a GeometryAdapter.

Now the problem is that a connection that he gets from the connection pool, 
obviously isn't usable by the OracleSpatialManager. So the questions seems 
to come down to: is the Connection returned by the connection pool any 
different (and in what way?) from a connection returned directly by the 
DriverManager? Can such a connection use Oracle specific JDBC extensions 
like Spatial datatypes?

thanks,
Alexander Jerusalem


At 04:53 10.04.01, you wrote:
Hi,

I can't say I understand entirely why you are getting the results you see,
but I'm not surprised.

Some comments interspersed below

On 2001.04.09 14:00:36 -0400 Roman Wittchen wrote:
  As my EJB was bean-managed, I had no problems with the connection pool. I
  got my connection simply by calling "con = datasource.getConnection();".
  But since I changed my EJB from bean-managed to container-managed, I am
  not
  able to use the ascertained connection as before.
 
  For example:
  I have to put the connection object to a oracle-spatial-method, to
  receive a
  sdoAdapter object ... code looks something like this ...
 
  GeometryAdapter sdoAdapter = OraSpatialManager.getGeometryAdapter ("SDO",
  "8.1.6", null, STRUCT.class, null, con);

Where do you get con?  I would expect if you get it the same way you get a
connection for bmp, this ought to work---the connection ought to be
associated with a XAConnection that has the correct transaction.  However
this is unusual to say the least.  Essentially you are mixing cmp and bmp.
 
  But unfortunately sdoAdapter is always null. So I changed the code to ...
 
  GeometryAdapter sdoAdapter = OraSpatialManager.getGeometryAdapter ("SDO",
  "8.1.6", null, STRUCT.class, null, DriverManager.getConnection
  ("jdbc:oracle:thin:@xxx::xx","user", "pw"));

Here you are getting a connection directly from the driver manager...
bypassing all pooling and transaction management.  You may get a
GeometryAdapter but any work you do on it will be outside the container
managed transaction.
 
  And then it works, ... but I don't want to use this possibility, because
  the
  configuration code is hard-coded.
 
  Does anybody know, why this is so ?
 
  And another peculiar thing is, that, if i change the EJB back to
  bean-managed, only the connection-pool variante works, and the hard-coded
  drivermanger variante does not work anymore (then ... the sdoadapter
  object
  is null).

Again, not surprising that it doesn't work, since you are mixing pooled
connections connected to XAConnections and non pooled connections expected
to manage their own transactions.
 
  Help is appreciated.
 
  Best regards,
  Roman Wittchen

I don't know what this GeometryAdapter is, but if you need a connection to
get one, you should be getting the connection from the pool so the
transaction is under container control.  Is there some reason not to use
bmp for this? In any case you need to get a connection yourself.


I think a more sophisticated approach here that would let you do cmp would
be to write a resource adapter for oracle connections + GeometryAdapters,
presumable extending the CCI version of the example BlackBox adapter from
sun.  This would work with the jbosscx JCA implementation.  However, after
you do this to really get cmp without having to write code that directly
accesses a geometryAdapter you would have to change JAWS very
substantially.  On the other hand, the changes might be very little more
than the changes needed to make JAWS work with the CCI - blackbox (which I
haven't examined thoroughly yet).

It's even possible that Oracle might be working on such a resource
adapter... who knows...

Hope this is a little helpful.

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


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


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



RE: [JBoss-user] Gathering information on migrating from 2.0 to 2.2

2001-04-10 Thread Shahar Solomianik

* point out that JDom users of 2.0 should remove the explicit xerces.jar
they have added to classpath in run.sh.
* 2.0 minerva users that use scrollable result sets cant upgrade to 2.2 ...
(or upgrade but use different config, without minerva)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Tobias Frech
Sent: Tuesday, April 10, 2001 11:29 AM
To: JBoss Users
Cc: JBoss Documentation
Subject: [JBoss-user] Gathering information on migrating from 2.0 to 2.2


Hi everybody!
Most of you probably already noticed that there is a 2.2 release of
JBoss available at the website. I now would like to gather information
about what steps you needed to take to migrate from 2.0 to 2.2.
As a starting point there is already a section in the manual (actually
titled "Upgrading from JBoss 2.0 FINAL") that describes how the
configuration for JDBC datasources needs to be modified to work under
2.1/2.2.

My questions are:

a) Did the information contained in the above mentioned section help to
migrate to 2.2, is it correct ?

b) What would be the strategy you recommend for migration ? Either using
your old config files and patching them to contain the needed new values
OR using the new config files (coming with the distro) and patching them
with your modifications ?

c) What other steps did you need to take to successfully migrate to 2.2
?


You can reply to the discussion list or private to me. Either-way I will
collect the information and update a HTML page in the documentation
section with the new information every day.

Thanks, Tobias

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


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



[JBoss-user] Library functions in JBoss

2001-04-10 Thread Jim Downing

Hi,
The app I'm working on requires a library jar (JUnitCore.jar, a jar of
junit classes, incidentally). When I package it as an ear file with
JUnitCore.jar in the library directory it deploys fine under the Sun
reference implementation. The only way I can get it to work under jboss
is to copy JUnitCore.jar into lib/ext and restart the server.

Question: Is there any way I can deploy apps that require libraries
without restarting the server?

Corollary: Is there any way (without editing the jboss auto-deploy code)
I can configure jboss to automatically pick up library jars in an ear?

Thanks,

Jim

[EMAIL PROTECTED]


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



SV: [JBoss-user] Gathering information on migrating from 2.0 to 2.2

2001-04-10 Thread Torsten Terp

Hi,

[snip]

 
 b) What would be the strategy you recommend for migration ? Either using
 your old config files and patching them to contain the needed new values
 OR using the new config files (coming with the distro) and patching them
 with your modifications ?

I went from a 2.0 to a late PRE2.1 to a 2.2, the biggest changes were of course
the move from 2.0 to late 2.1. My experience was:
Definetely go with the the last option, i.e., use the new config files and
apply you changes... That way you will be able to verify your actions step
by step (more or less).
 
 c) What other steps did you need to take to successfully migrate to 2.2

I dont know if you think this is relevant, but if you are comming from a 
PRE2.1 to 2.2 some of the mdb specific things in ejb-jar.xml have changed.

What I bumped into was:

jms-message-selector/jms-message-selector changed to 
message-selector/message-selector

and 

jms-destination-type/jms-destination-type changed to 
destination-type/destination-type


^torsten

 ?
 
 
 You can reply to the discussion list or private to me. Either-way I will
 collect the information and update a HTML page in the documentation
 section with the new information every day.
 
 Thanks, Tobias
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 

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



[JBoss-user] Solved a Win98/jBoss 2.2/Crimson problem

2001-04-10 Thread Ken Jenks

As others have pointed out on this mailing list, there's a problem 
preventing some users from launching jBoss 2.2 if they include Xerces.jar 
in their classpath. Here's part of what my Windows 98 computer reports when 
I launch an unmodified run.bat:

[Default] java.lang.NoSuchMethodError
[Default]   at 
org.apache.crimson.jaxp.DocumentBuilderImpl.init(DocumentBu
ilderImpl.java:152)

The problem was caused by having Xerces 1.3.0 in my CLASSPATH. When I 
removed it, jBoss 2.2 launched with just a few problems.

Those few problems: Windows 98 doesn't like these two lines:

set 
JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
set JAXP=%JAXP% 
-Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl

So instead of setting those as system environment variables, I added those 
to the java.exe line, and the whole run98.bat file looks like this:


set CLASSPATH=D:\jdk1.3\lib\tools.jar

@echo off
@if not "%ECHO%" == ""  echo %ECHO%
@if "%OS%" == "Windows_NT"  setlocal

set CLASSPATH=%CLASSPATH%;run.jar;../lib/crimson.jar

REM Add all login modules for JAAS-based security
REM and all libraries that are used by them here
set CLASSPATH=%CLASSPATH%

java 
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
 
-Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl 
-classpath "%CLASSPATH%" org.jboss.Main tomcat %1 %2 %3 %4 %5 %6 %7 %8 %9

(That last part, starting with "java", is all one line, for those of you 
with e-mail clients that wrap long lines.)

-- Ken Jenks, http://abiblion.com/

Tools for reading.


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



RE: [JBoss-user] anyone who can help me with jboss-2.1 with InterestBean

2001-04-10 Thread Taylor, Richard

To run the test client I believe you also need to have jbosssx-client.jar in
the classpath, the error looks like you are missing this.
 
Richard

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 5:21 AM
To: '[EMAIL PROTECTED]'
Subject: [JBoss-user] anyone who can help me with jboss-2.1 with
InterestBean



Hello, every one. 

I am using jboss-2.1 with tomcat 3.2 beta. 

but I am surprised that I can not get  InterestBean  ejb test client work. 

When I run the client java class, 

it give me such an error message 

Exception in thread "main" java.lang.NoClassDefFoundError:
org/jboss/security/Se 
curityAssociation 
at
org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(Gener 
icProxy.java:184) 
at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.
java 
:231) 
at $Proxy0.create(Unknown Source) 
at
com.web_tomorrow.interest.InterestClient.main(InterestClient.java:60) 


I run it under jboss2.0 final, it works well. 

but I run it under jboss.21, it can not work. 

I trace its code, found that when home.create(), the error happened. 

I wonder it is the config error, but I dont know how to correct it, I didnot
change the config files since I install jboss2.1



**
Information in this email is confidential and may be privileged.
It is intended for the addressee only. If you have received it in error,
please notify the sender immediately and delete it from your system. 
You should not otherwise copy it, retransmit it or use or disclose its
contents to anyone. 
Thank you for your co-operation.
**

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



[JBoss-user] did I mess it up somehow?

2001-04-10 Thread Timo Kauppinen

Help. 

After doing some configuring for Oracle datasource in jboss.jcml I (after
seemingly succesful server startup) tried to deploy a sessionbean that was
supposed to test this DS. Instead of deploying properly (what it had done
before) this bean caused this error:

[Auto deploy] Auto deploy of file:/C:/Servers/jboss/dist/deploy/DBBean.jar
[Auto deploy] Deployment failed:file:/C:/Servers/jboss/dist/deploy/DBBean.jar
[Auto deploy] javax.management.InstanceNotFoundException: J2EE:service=J2eeDeplo
yer
[Auto deploy]   at 
com.sun.management.jmx.MBeanServerImpl.getMBean(MBeanServerIm
pl.java:1678)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
.java:1522)
[Auto deploy]   at
org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
[Auto deploy]   at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
[Auto deploy]   at java.lang.Thread.run(Unknown Source)


Did I err somehow with that jboss.jcml? I have checked that
AutoDeployer-service is not commented out (if that might be the
reason). Is this jboss.jcml (configuration) related problem. Help
required.

Cheers

Timo


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



[JBoss-user] using javax.management.timer.Timer vs java.util.Timer

2001-04-10 Thread Andrius Juozapaitis

hi all,

I have a simple design concern which one to use. I wrote my MBean for
periodically running a task, which I configure through jboss.jcml, using the
javax.management.timer.Timer MBean, but it seems to me that having an
instance of java.util.Timer in my MBean would do just the same, with (IMHO)
less overhead. I suppose using javax.management.timer.Timer MBean should
have some advantages over it (possibility to cluster things?), but didn't
find anything about this in jmx javadoc.

could please somebody share with me his insights about this?

best regards,
--andrius


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



SV: [JBoss-user] Re-using primary key issue

2001-04-10 Thread Lennart Petersson

No, I get the same exception and it's a 'known' bug in jboss from before. Has to do 
with the fact that the entity is not removed from the jboss cach when deleted from the 
database. Hence jboss throws an exception when during create it finds the entity still 
in the cach. If jboss is restarted between remove and create there is no problem.

Strange if it works for you Ken!!??

I was to take on this bug but haven't have the time yet. Hope to start with it 
tomorrow.

/Lennart
- Original Message - 
From: Ken Jenks [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 10, 2001 3:00 AM
Subject: Re: [JBoss-user] Re-using primary key issue


 At 12:40 PM 4/10/01 +1200, you wrote:
 JBoss 2.1
 
 After deleting (remove()) an entity, if I try to create a new entity with
 the same primary key as the previously deleted one, I get the following
 exception
 
 I don't know. It works fine for me, using a modified version of the "CD" 
 CMP example from the old documentation.
 
 -- Ken Jenks, http://abiblion.com/
 
 Tools for reading.
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user


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



Re: [JBoss-user] bug when server is under load

2001-04-10 Thread Christian Hargraves

On Monday 09 April 2001 21:05, you wrote:
 danch wrote:
  I'll look into this more later this evening.

 beat the transaction horse to death, but that's another thread.

  When we load the machine with AB (Apache Bench), 128 concurrent users,
  10,000 requests we get some strange results.
 
 
  The output from the HelloEJB either doesn't include the
  "StatelessSessionBean says: Hello World" message, includes the message
  multiple times.

 Is AB a web stress tool, or is it calling directly to the bean? The
 testing I was doing earlier tonight involved direct bean calls from a
 multithreaded client, and I saw neither evidence of dropped return
 values, nor any exceptions (client or server). This wasn't the same
 bean, though.


It is Apache Benchmark tool. It's a web stress tool

  [NonOptimized] TxCapsule: Lock contention, tx=XidImpl [FormatId=257,
  GlobalId=mackey//41546, BranchQual=]

 Just to reiterate for the user list, this _probably_ wasn't causing any
 problems.


 -danch


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

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



[JBoss-user] JBoss/Tomcat as NT Service

2001-04-10 Thread Raphael Carruzzo

Dear all,

I've installed JBoss/Tomcat as an NT Service, using 
JavaService.

Installing and starting the service work well. But after 
starting, I get the following message in the error log:
javax.management.ServiceNotFoundException: The specified 
URL is null
at javax.management.loading.MLet.getMBeansFromURL
(MLet.java:367)
at org.jboss.Main.init(Main.java:173)
at org.jboss.Main$1.run(Main.java:107)
at java.security.AccessController.doPrivileged
(Native Method)
at org.jboss.Main.main(Main.java:103)
 
Can anybody help?
Thanks

RC

--
Raphal Carruzzo

email: [EMAIL PROTECTED]
homepage: http://go.to/raphy
phone: +41 (0)78 870 79 79


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



Re: [JBoss-user] debug ejb bean

2001-04-10 Thread tim . haley



You can also set up logging for your beans in the jboss.jcml file and use:

 import org.jboss.logging.*;
 ...
 log.debug("Hello World!");
 log.exception(ex);
 ...

Tim





[EMAIL PROTECTED] on 04/10/2001 01:43:39 AM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Re: [JBoss-user] debug ejb bean



Hi Ed:

Actually, issuing an

 System.out.println ( "Hello World!" );

should print out on the console while JBoss is running. It works from an entity
or session bean.

What rev of JBoss / JDK are you running?


Kev





"Ed Aihua Wu" [EMAIL PROTECTED] on 04/10/2001 12:55:26 AM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Kevin Monaghan/US/GM/GMC)
Subject:  [JBoss-user] debug ejb bean




I don't have any IDE to debug an ejb bean.
I usually just put print statement in a java program to
debug it.
It doesn't work for ejb
since it is inside a containner and System.out.println
doesn't work.

Can anybody tell me an easy way to debug ejb components?
I don't have any IDE installed.  I want some String printed to
a console.

Thanks in advance.

Ed Wu


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







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







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



Re: [JBoss-user] FW: JBoss 2.1

2001-04-10 Thread Tobias Frech

Hi Faisal!
The "client" jars ship with the container/JBoss distribution. Look into
the directory "client" from your actual JBoss version. Be sure to
replace all jars at your client side with the versions from this
directory.
Did this help ?

Ciao,
Tobias

faisal wrote:
 
 I appreciate your help!
 It ,simply,does not work. I ve tried all the possible confi 
 I put the client.jars on my classpath .Still I can't manage to successfully
 lookup my  beans
 nd if the client.jar s are not compatible with jboss-tomcat2.2 how can I get
 the latest client.jars
 
 thanks again for your help
 Faisal

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



Re: [JBoss-user] empty collection with findbyall

2001-04-10 Thread Ingo Bruell

Hi Steve,

SV System:
SV jboss2.0
SV jdk1.3
SV win2000
SV mysql 3.23

SV Jboss is working great!
SV But when I do a findbyall it is always returning EMPTY
SV collections.
SV The entites are accessed /wrapped by simple stateless session beans. When 
accessing one particualar bean with findbyprimarykey there is no problem - only in 
retrieval of collections in
SV findermethods

SV i have checked wether all the table column type are coorectly mapped with java 
types, if there are any rows
SV in the table.
SV is there a caching problem with jboss.
SV I have then set up bea wls 6 with the same connection pool and 
SV the same compiled ejb session - and entitiy bean. they were deployed with weblogic 
xmls of course. and this workes.
SV Where is the problem ?

SV PS.: I have downloaded jboss2.2  - it coudlnt be started- it has problem
SV with its crimson parsor - nosuchmethoderror

I think there is a typo, try findAll.



so long


Ingo Bruell

---
[EMAIL PROTECTED]
[EMAIL PROTECTED]
ICQ# 40377720
OldenburgPGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
Germany  PGP-Public-Key available at pgpkeys.mit.edu



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



Re: [JBoss-user] CMP Postgres and Booleans

2001-04-10 Thread awc


Which version of jboss??


Rajeev Bacchu wrote:

 Hi,

 This is a small request for help, I am not able to configure a connection
 pool for Postgresql database,


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



[JBoss-user] Graphical view of Bean Cache

2001-04-10 Thread Tilmann Ludwig

Is there any graphical view for the Bean Cache like number of cached
instances and number of live objects?
I found the BeanCacheMonitor but no doku, how to use it.

Thanx Tilmann


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



[JBoss-user] JBoss 2.2: run.sh

2001-04-10 Thread jcyip

Should I post this here or to dev?

run.sh doesn't default to have execute permissions which is easy to fix but
somewhat annoying.

Jason Yip
Software Developer, ThoughtWorks, Inc
http://www.thoughtworks.com
(312) 560-4978 (cell)
"It is not the strongest of the species that survive, nor the most
intelligent, but the ones most responsive to change." -- Charles Darwin


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



SV: [JBoss-user] debug ejb bean

2001-04-10 Thread Lennart Petersson

Either buy a debugger tool like bugseeker or try the open source jswap. I've both 
working with jboss. They are ok, maybe bugseeker has a more userfriendly interface.
/L


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



[JBoss-user] EJX and EJBench

2001-04-10 Thread Darrin Thompson

I can't figure out how to get EJBench working. I've tried both the ejx 
shipped with jboss and the 1.1 release from dreambean.com. The dreambean 
one is very capable, but the file - new submenu does not exist!

I get this error after actually selecting file - new (not just waiting for 
a submenu to pop up):

java.lang.ClassNotFoundException: org.jboss.ejb.metadata.Configuration
java.lang.ClassNotFoundException: org.jboss.ejb.metadata.Configuration
java.lang.ClassNotFoundException: 
org.jboss.ejb.metadata.StatefulSessionInstancePoolConfiguration

Darrin



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



Re: [JBoss-user] JBoss 2.2: run.sh

2001-04-10 Thread Darrin Thompson

On *nix? You could just run it through /bin/sh which I think it what is 
intended.

$ sh run.sh

Darrin

On 4/10/01, 9:32:08 AM, [EMAIL PROTECTED] wrote regarding 
[JBoss-user] JBoss 2.2: run.sh:


 Should I post this here or to dev?

 run.sh doesn't default to have execute permissions which is easy to fix 
but
 somewhat annoying.

 Jason Yip
 Software Developer, ThoughtWorks, Inc
 http://www.thoughtworks.com
 (312) 560-4978 (cell)
 "It is not the strongest of the species that survive, nor the most
 intelligent, but the ones most responsive to change." -- Charles Darwin


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

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



[JBoss-user] Thanks to replies of ejb debug and connection pool.

2001-04-10 Thread Ed Aihua Wu

Thanks for all the replies I have got from this email list.
I tried the System.out.println again, it works and this is what I want.
Also thanks for replies I got from my other posts like
connection pool.
Since this is the hottest mail list I ever cross over, I will
not send more thank messages to bother others.

Ed Wu

 Hi Ed:

 Actually, issuing an

  System.out.println ( "Hello World!" );

 should print out on the console while JBoss is running. It works from an
entity
 or session bean.

 What rev of JBoss / JDK are you running?


 Kev





 "Ed Aihua Wu" [EMAIL PROTECTED] on 04/10/2001 12:55:26 AM

 Please respond to [EMAIL PROTECTED]

 To:   [EMAIL PROTECTED]
 cc:(bcc: Kevin Monaghan/US/GM/GMC)
 Subject:  [JBoss-user] debug ejb bean




 I don't have any IDE to debug an ejb bean.
 I usually just put print statement in a java program to
 debug it.
 It doesn't work for ejb
 since it is inside a containner and System.out.println
 doesn't work.

 Can anybody tell me an easy way to debug ejb components?
 I don't have any IDE installed.  I want some String printed to
 a console.

 Thanks in advance.

 Ed Wu


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







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


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



Re: SV: [JBoss-user] debug ejb bean

2001-04-10 Thread Franco Biaggi

Lennart,
are you able to start JBoss inside bugseeker2 ?
How ?
I receive an error just while starting the project...
Thanks
Franco.

On Tue, 10 Apr 2001 16:46:38 +0200, Lennart Petersson wrote:

Either buy a debugger tool like bugseeker or try the open source jswap. I've both 
working with jboss. They are ok, maybe bugseeker has a more 
userfriendly interface.
/L


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



html

head
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
meta name="Author" content="Franco Biaggi"
meta name="GENERATOR" content="Franco Biaggi"
/head

body

pnbsp; /p

table BORDER="1" COLS="1" WIDTH="452" BGCOLOR="#00"
  tr
td width="446"font face="Comic Sans MS"smallsmallbr
font color="#FF"a href="http://www.ticino.com/usr/fbiaggi/"Franco 
Biaggi/a/fontsmallbr
font color="#FF"a href="http://www.sisa.ch"SISA Studio Informatica 
SA/a/fontsmallsmallsmall br
/small/small/smallfont color="#FF"Ramp;D 
Services/fontsmallsmallsmall
br
/small/small/smallfont color="#FF"Via Carvina 
1/fontsmallsmallsmall br
/small/small/smallfont color="#FF"CH-6807 
Taverne/fontsmallsmallsmall br
/small/small/smallfont color="#FF"Efax +1 801 705 
2839/font/small/small/smallbr
/small/small/smallfont color="#FF"Tel. +41 91 935 75 35nbsp; Fax. +41 
91 935
75 30/font/small/small/smallbr
/small/small/smallfont color="#FF"Sorry for my bad 
english.../fontsmallsmallsmall br
/font/td
  /tr
/table
/body
/html




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



[JBoss-user] petstore and jboss 2.2

2001-04-10 Thread Andrew Reischer

Do the petstore patches for 2.1 work for 2.2?

andy reischer

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



Re: [JBoss-user] FW: JBoss 2.1

2001-04-10 Thread Scott M Stark

The latest client jars are in the jboss-2.2/client directory of the jboss-tomcat2.2
distribution.
- Original Message - 
From: "faisal" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 10, 2001 2:32 AM
Subject: Re: [JBoss-user] FW: JBoss 2.1


 I appreciate your help!
 It ,simply,does not work. I ve tried all the possible confi 
 I put the client.jars on my classpath .Still I can't manage to successfully
 lookup my  beans
 nd if the client.jar s are not compatible with jboss-tomcat2.2 how can I get
 the latest client.jars
 
 thanks again for your help
 Faisal



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



[JBoss-user] EJBExcepion

2001-04-10 Thread awc

Hi All,

I do have entity bean that thows EJBException if the variable called
version(integer) does not match the version from a dataHolder(bulk
accessor). It works right, but since it is thrown from bean, does it
have to throw all these exceptions with it??

[ejb/Customer] version exception  == this fine, should throw a
EJBException at this point.
[ejb/Customer] TRANSACTION ROLLBACK EXCEPTION:null; nested exception is:

 javax.ejb.EJBException
[ejb/Customer] java.lang.IllegalStateException: Wrong version. Had 3,
got 2
[ejb/Customer]  at
com.awcl.customer.ejb.CustomerBMP.setData(CustomerBMP.java:135)

since this is thrown from bean,  is it normal to get all these??

[ejb/Customer]  at java.lang.reflect.Method.invoke(Native Method)
[ejb/Customer]  at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invoke(EntityContainer.java:722)

[ejb/Customer]  at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:208)

[ejb/Customer]  at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:186)

[ejb/Customer]  at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)

[ejb/Customer]  at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:264)

[ejb/Customer]  at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
[ejb/Customer]  at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:137)

[ejb/Customer]  at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
[ejb/Customer]  at
org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:323)
[ejb/Customer]  at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:381)

[ejb/Customer]  at java.lang.reflect.Method.invoke(Native Method)
[ejb/Customer]  at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
[ejb/Customer]  at sun.rmi.transport.Transport$1.run(Transport.java:142)

[ejb/Customer]  at java.security.AccessController.doPrivileged(Native
Method)
[ejb/Customer]  at
sun.rmi.transport.Transport.serviceCall(Transport.java:139)
[ejb/Customer]  at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443)

[ejb/Customer]  at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:643)

[ejb/Customer]  at java.lang.Thread.run(Thread.java:484)

thanks

anil


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



Re: [JBoss-user] Solving Oracle Connection Pool Hanging

2001-04-10 Thread Toby Allsopp

On Tue, Apr 10, 2001 at 05:55:27PM +0200, Shahar Solomianik wrote:
 Toby, I think you are right.
 I replaced the mbean configuration to use XADataSourceLoader and minerva (I
 had to patch minerva to support scrollable result sets...), tested the
 server under load and it was MUCH faster.
 I didnt get into details and log/trace files, but the differences in speed
 were visible to the human eye 

I'd be very interested to hear of any deeper investigation of this. It
might be as simple as the Oracle DataSource implementation not doing
pooling.

Toby.

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



[JBoss-user] MDB deploy error: communication MalformedURL exception

2001-04-10 Thread QuKN



Hi Anton or other experts out there,

This morning, I finally can switch back to jboss. I tried to deploy your
example (similar to the first MDB example in the manual,
see attached zip), but got the identical error messages as before when I
tried the example in the manual and in the test.

I checked the manual, the error message "communication exception" is "the
exception that represents any error
that can't readily be ascribed to a definite cause", so, we do not have any
luch there. And, "java.net.MalformedURLException"
sometimes means  there are spaces in the installation path (something C:
\program Files) but I installed it as C:\jboss.

here is the whole server "dos" output after I started the server. Note that
the stateless session "Interest" example works fine
(search == to get the most interesting/problematic part)


thanks in advance!!

Kai Qu


///

C:\jboss\binjava -jar run.jar
Using configuration "default"
[Info] Java version: 1.3.0,Sun Microsystems Inc.
[Info] Java VM: Java HotSpot(TM) Client VM 1.3.0-C,Sun Microsystems Inc.
[Info] System: Windows 2000 5.0,x86
[Shutdown] Shutdown hook added
[Service Control] Registered with server
[Service Control] Initializing 24 MBeans
[Webserver] Initializing
[Webserver] Initialized
[Naming] Initializing
[Naming] Initialized
[JNDIView] Initializing
[JNDIView] Initialized
[Transaction manager] Initializing
[Transaction manager] Initialized
[JAAS Security Manager] Initializing
[JAAS Security Manager] Initialized
[JDBC provider] Initializing
[JDBC provider] Loaded JDBC-driver:org.hsql.jdbcDriver
[JDBC provider] Loaded JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver
[JDBC provider] Initialized
[Hypersonic] Initializing
[Hypersonic] Initialized
[InstantDB] Initializing
[InstantDB] Initialized
[DefaultDS] Initializing
[DefaultDS] Initialized
[Container factory] Initializing
[Container factory] Initialized
[JBossMQ] Initializing
[JBossMQ] Initialized
[DefaultJMSProvider] Initializing
[DefaultJMSProvider] Initialized
[StdJMSPool] Initializing
[StdJMSPool] Initialized
[J2EE Deployer Default] Initializing
[J2EE Deployer Default] Initialized
[Auto deploy] Initializing
[Auto deploy] Initialized
[RARDeployer] Initializing
[RARDeployer] Found a temp directory left over from a previous run -
deleting it.
[RARDeployer] Initialized
[ConnectionManagerFactoryLoader] Initializing
[MinervaNoTransCMFactory] Initialized
[ConnectionManagerFactoryLoader] Initializing
[MinervaSharedLocalCMFactory] Initialized
[ConnectionManagerFactoryLoader] Initializing
[MinervaXACMFactory] Initialized
[ConnectionFactoryLoader] Initializing
[BlackBoxDS] Initialized
[JMX RMI Adaptor] Initializing
[JMX RMI Adaptor] Initialized
[JMX RMI Connector] Initializing
[JMX RMI Connector] Initialized
[Mail Service] Initializing
[Mail Service] Initialized
[Service Control] Initialized 24 services
[Service Control] Starting 24 MBeans
[Webserver] Starting
[Webserver] Codebase set to http://TWILIGHT:8083/
[Webserver] Started webserver on port 8083
[Webserver] Started
[Naming] Starting
[Naming] Naming started on port 1099
[Naming] Started
[JNDIView] Starting
[JNDIView] Started
[Transaction manager] Starting
[Transaction manager] Started
[JAAS Security Manager] Starting
[JAAS Security Manager] JAAS.startService, cachePolicy=null
[JAAS Security Manager] JAAS.startService,
SecurityProxyFactory=org.jboss.security.SubjectSecurityProxyFactory@302efa
[JAAS Security Manager] Started
[JDBC provider] Starting
[JDBC provider] Started
[Hypersonic] Starting
[Hypersonic] Server 1.4 is running
[Hypersonic] Database started
[Hypersonic] Press [Ctrl]+[C] to abort
[Hypersonic] Started
[InstantDB] Starting
[InstantDB] XA Connection pool InstantDB bound to java:/InstantDB
Enhydra InstantDB - Version 3.21
[InstantDB] The Initial Developer of the Original Code is Lutris
Technologies Inc.
Portions created by Lutris are Copyright (C) 1997-2000 Lutris Technologies,
Inc.
All Rights Reserved.
[InstantDB] Started
[DefaultDS] Starting
[DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
[DefaultDS] Started
[Container factory] Starting
[Container factory] Started
[JBossMQ] Starting
[JBossMQ] Server Version 0.8 Started
[JBossMQ] Started
[DefaultJMSProvider] Starting
[DefaultJMSProvider] JMS provider Adapter DefaultJMSProvider bound to
java:/DefaultJMSProvider
[DefaultJMSProvider] Started
[StdJMSPool] Starting
[StdJMSPool] JMS provider Adapter StdJMSPool bound to java:/StdJMSPool
[StdJMSPool] Started
[J2EE Deployer Default] Starting
[J2EE Deployer Default] No web container found - only EJB deployment
available...
[J2EE Deployer Default] Cleaning up deployment directory
[J2EE Deployer Default] Started
[Auto deploy] Starting
[Auto deploy] Watching C:\jboss\deploy
[Auto deploy] Started
[RARDeployer] Starting
[RARDeployer] Started
[MinervaNoTransCMFactory] Starting

Re: [JBoss-user] Problems with the connection(-pool) on container-managed beans

2001-04-10 Thread Toby Allsopp

On Tue, Apr 10, 2001 at 11:52:18AM +0200, Alexander Jerusalem wrote:
 Hi David. Thank you for your answer.
 
 Let me clarify a few things: Roman is not using cmp. When he says 
 "bean-managed" he means bean managed transactions not bean managed 
 persistence. What he tries to do is to read a longitude/latitude value from 
 an Oracle Spatial column inside a stateless SessionBean. This column has 
 the proprietary Oracle type MDSYS.SDO_GEOMETRY and the Oracle way to read a 
 value from such a column is by using the OracleSpatialManager class to 
 create a GeometryAdapter.
 
 Now the problem is that a connection that he gets from the connection pool, 
 obviously isn't usable by the OracleSpatialManager. So the questions seems 
 to come down to: is the Connection returned by the connection pool any 
 different (and in what way?) from a connection returned directly by the 
 DriverManager? Can such a connection use Oracle specific JDBC extensions 
 like Spatial datatypes?

The problem is probably caused by the fact that the connection pool returns
its own implementation of java.sql.Connection that delegates to the
vendor-specific one, so the vendor-specific methods are not available.

I think there are two possible solutions:

1) Cast the connection you receive from the pool to
   org.opentools.minerva.xa.wrapper.XAClientConnection and call the
   getUnderlyingConnection method.

2) Use the Oracle XADataSource implementation instead of the Minerva
   wrapper.

Toby.

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



Re: [JBoss-user] easy to implement Informix Support ???

2001-04-10 Thread Toby Allsopp

I agree with you and have a solution in mind. I have logged a feature request
on the sourceforge site and will implement it when/if I get time.

Oh, I just saw your entry (1 minute before me). The JAWS mappings are a
separate issue to the XADataSourceLoader support, so that works nicely I
think.

Toby.

On Tue, Apr 10, 2001 at 11:51:39AM +0200, Schneider, Joerg (Zentrale Frankfurt) wrote:
 Hello everybody,
 
 after reading all the messages in this mailing-list regarding support of
 Informix databases, i've the impression, that supporting this database
 should be easy and could be done with small efforts.
 
 First of all, i want to state what is working (in my opinion) by now (jboss
 2.1) :
 
   Establishing connections, if the minerva-class XADataSourceImpl is
 used.
   Database operations, if transaction and persistent type is bean
 
 Second, here's what is not working (in my opinion) by now (jboss 2.1) :
 
   If the IfxXADataSource class is used, an exception is thrown while
 starting jboss with message "wrong argument" (please review older messages
 in this mailing-list describing the exact stack-trace).  
   If transactions should be handled by the container, an
 runtime-exception is thrown with message "xares not enlisted".
 
 In my opinion, the informix-jdbc driver 2.20JC1 (type 4, XA implemented)
 works fine, except it is missing the methods "setURL" and "setProperties",
 which are used by jboss to configure the XADataResource. 
 According to previously sent mail's, the way to configure a XADataSource is
 not part of any specifications, so any vendor can implement whatever methods
 he wants to do configuration. The informix jdbc-driver offers a lot of
 methods to use for config issues (setUser, setPassword, setProperties,
 setDatabase) and is well documented to.
  
 So, a slight change of the jboss config-procedure could make this database
 easily available :-).  
 
 For developing and testing purposes, one can obtain all informix-products
 for all platforms from "www.informix.com/evaluate/ after registering
 free-of-charge for a limited period of time.
 
 If anyone has successfully configured an informix database-environment
 (which means, i'm wrong with all my conclusions) with jboss 2.1, please let
 me know. 
 Otherwise, i would suggest to enhance jboss the way i mentioned above (this
 is far more easy for a active member of the development community, as it is
 for me, isn't it ?).
 
 Kind regards
 
 Joerg Schneider

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



[JBoss-user] Jboss 2.1 on Windows 95

2001-04-10 Thread Simphoukham, Southin

Hi,

I have a developer running Jboss 2.1 on Windows 95.  Has anyone tried
running JBoss on Windows 95?  The developer is running into problems
starting up Jboss because JBoss cannot create the appropriate object after
binding the OracleDb datasource.  I have taken the same setup  from my
computer (Windows NT) and set it up on 95.  

Any suggestions would be helpful.

Thanks,

Southin

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



RE: [JBoss-user] Re-using primary key issue

2001-04-10 Thread David Wade

Cool that its a known issue.

FYI. I have since found that when I create my own container configuration
and cache policy for my BMP entities, that all works ok (so far). So it is
possibly just something wrong with the default.

On an aside...

I notice however that ejx puts in (it seems appropriate for JDK1.3)

container-invokerorg.jboss.ejb.plugins.jrmp13.server.JRMPContainerInvoker
/container-invoker 

but when my jar is deployed by JBoss I get a warning stating that this class
is depreciated

but not when the container invoker is changed back to

container-invokerorg.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker/c
ontainer-invoker

tack :)

David

 -Original Message-
 From: Lennart Petersson [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, 11 April 2001 12:37 a.m.
 To: [EMAIL PROTECTED]
 Subject: SV: [JBoss-user] Re-using primary key issue
 
 
 No, I get the same exception and it's a 'known' bug in jboss 
 from before. Has to do with the fact that the entity is not 
 removed from the jboss cach when deleted from the database. 
 Hence jboss throws an exception when during create it finds 
 the entity still in the cach. If jboss is restarted between 
 remove and create there is no problem.
 
 Strange if it works for you Ken!!??
 
 I was to take on this bug but haven't have the time yet. Hope 
 to start with it tomorrow.
 
 /Lennart
 - Original Message - 
 From: Ken Jenks [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, April 10, 2001 3:00 AM
 Subject: Re: [JBoss-user] Re-using primary key issue
 
 
  At 12:40 PM 4/10/01 +1200, you wrote:
  JBoss 2.1
  
  After deleting (remove()) an entity, if I try to create a 
 new entity with
  the same primary key as the previously deleted one, I get 
 the following
  exception
  
  I don't know. It works fine for me, using a modified 
 version of the "CD" 
  CMP example from the old documentation.
  
  -- Ken Jenks, http://abiblion.com/
  
  Tools for reading.
  
  
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  http://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 

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



RE: [JBoss-user] Problems with MDB

2001-04-10 Thread Michael Hustler

I am part way there.  The second problem (NameNotFoundException) is fixed by
ensuring that the destination-jndi-name is prefixed by either "topic/" or
"queue/" as specified in the documentation (sorry)

BUT, what's up with 'deployment.cfg'?

Although the MDB is being deployed correctly I am still getting the
exception related to the deployment.cfg file.  The server trace now looks
like this:

---
  [Auto deploy] Auto deploy of file:/C:/jboss/deploy/profiler.jar
  [J2EE Deployer Default] exception while searching deployment:
C:\jboss\tmp\deploy\Default\profiler.jar\deployment.cfg (The system cannot
find the file specified)
  [J2EE Deployer Default] Deploy J2EE application:
file:/C:/jboss/deploy/profiler.jar
  [J2EE Deployer Default] Create application profiler.jar
  [J2EE Deployer Default] install module profiler.jar
  [Container factory]
Deploying:file:/C:/jboss/tmp/deploy/Default/profiler.jar/
  [Verifier] Verifying
file:/C:/jboss/tmp/deploy/Default/profiler.jar/ejb1009.jar
  [Container factory] Deploying TestMDB
  [Container factory] Deployed application:
file:/C:/jboss/tmp/deploy/Default/profiler.jar/
  [J2EE Deployer Default] J2EE application:
file:/C:/jboss/deploy/profiler.jar isdeployed.
---

** Why the exception related to deployment.cfg?

Thanks,
mike.



-Original Message-
From: Michael Hustler [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 5:15 PM
To: Jboss (E-mail)
Subject: [JBoss-user] Problems with MDB


I'm having two problem with Message Driven Beans.
(The server stdout is included below)

The first one is why am I getting the error message "[J2EE Deployer
Default] exception while searching deployment: C:\jboss\tmp\deploy
\Default\profiler.jar\deployment.cfg (The system cannot find the file
specified)" ?

The second one is why am I getting the error message "[Container
factory] Serious error in init: javax.naming.NameNotFoundException:
testTopic not bound" ?

testTopic is my destination-jndi-name as specified in my jboss.xml
file:
   destination-jndi-nametestTopic/destination-jndi-name

Are they related?

I am creating a Topic MDB with the code practically copied straight
from the Manual.  Also testTopic is in the jbossmq.xml file:
TopicNametestTopic/Name/Topic

Thanks in advance,
mike.



STDOUT from Server:

[Auto deploy] Auto deploy of file:/C:/jboss/deploy/profiler.jar
[J2EE Deployer Default] exception while searching deployment:
C:\jboss\tmp\deploy\Default\profiler.jar\deployment.cfg (The system cannot
find the file specified)
[J2EE Deployer Default] Deploy J2EE application:
file:/C:/jboss/deploy/profiler.jar
[J2EE Deployer Default] Create application profiler.jar
[J2EE Deployer Default] install module profiler.jar
[Container factory]
Deploying:file:/C:/jboss/tmp/deploy/Default/profiler.jar/
[Verifier] Verifying
file:/C:/jboss/tmp/deploy/Default/profiler.jar/ejb1005.jar
[Container factory] Deploying TestMDB
[Container factory] Serious error in init:
javax.naming.NameNotFoundException: testTopic not bound
[Container factory] java.lang.Exception: javax.naming.NameNotFoundException:
testTopic not bound
[Container factory] at
org.jboss.ejb.MessageDrivenContainer.init(MessageDrivenContainer.java:156)
[Container factory] at
org.jboss.ejb.Application.init(Application.java:183)
[Container factory] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:337)
[Container factory] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:275)
[Container factory] at java.lang.reflect.Method.invoke(Native Method)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Container factory] at
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:435)
[Container factory] at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
[Container factory] at java.lang.reflect.Method.invoke(Native Method)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Container factory] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Container factory] at
org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
[Container factory] at
org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
[Container factory] at java.lang.Thread.run(Thread.java:484)
[Container factory] Could not stop JMSContainerInvoker
consumer:java.lang.NullPointerException
[J2EE Deployer Default] Starting profiler.jar failed!
[J2EE Deployer Default] Module profiler.jar is not running
[J2EE Deployer Default] Destroying application profiler.jar
[Auto deploy] Deployment failed:file:/C:/jboss/deploy/profiler.jar
[Auto deploy] org.jboss.deployment.J2eeDeploymentException: Error while
starting profiler.jar: Could not deploy
file:/C:/jboss/tmp/deploy/Default/profiler.jar/
[Auto deploy]   at

[JBoss-user] Error in Custom Finder Method

2001-04-10 Thread Greg Parker

Hello,
I created a simple custom finder method. I put the following entry in jaws.xml.
in the section with my entity bean.


finder
  namefindName/name
  queryNAME = {0}/query
  orderNAME DESC/order
 /finder

And put the appropriate code in the home interface.
I'm getting the following error:
java.sql.SQLException: ORA-00923: FROM keyword not found where expected

Has anyone ever encountered this or have a clue to what could be causing it?

Greg---


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



Re: [JBoss-user] EJBExcepion

2001-04-10 Thread danch

JBoss does overlog exceptions a bit (sometime I prefer that). What 
you're seeing in the log is normal.

-danch

awc wrote:

 Hi All,
 
 I do have entity bean that thows EJBException if the variable called
 version(integer) does not match the version from a dataHolder(bulk
 accessor). It works right, but since it is thrown from bean, does it
 have to throw all these exceptions with it??
 
 [ejb/Customer] version exception  == this fine, should throw a
 EJBException at this point.
 [ejb/Customer] TRANSACTION ROLLBACK EXCEPTION:null; nested exception is:
 
  javax.ejb.EJBException
 [ejb/Customer] java.lang.IllegalStateException: Wrong version. Had 3,
 got 2



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



[JBoss-user] Newbie: CMP Often Too Simple?

2001-04-10 Thread Frank Morton

I'm an EJB newbie, so be kindand I am reading everything
I can find but still have a fundamental question.

Is it right that in real-world applications, which inevitably are
more complicated than testing examples, that using CMP entity
beans is usually too simple-minded and BMP is kind of the 
default way to go with most entity beans? It seems everything 
I have ever done requires complex queries beyond what you 
get for free with CMP.

Is this a good generalization or a bad one? All comments
will be appreciated as I study to understand the best ways
to use persistence.

Thanks.



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



Re: [JBoss-user] bug when server is under load

2001-04-10 Thread danch

Christian Hargraves wrote:

snip!
 
 We are running the hello session bean example.
 
 When we load the machine with AB (Apache Bench), 128 concurrent users, 10,000 
 requests we get some strange results.
 
 The output from the HelloEJB either doesn't include the "StatelessSessionBean 
 says: Hello World" message, includes the message multiple times. 

Is this in the output HTML, or in the logs? If in the logs, is it 
written out by the servlet? I'm seeing this kind of stuff as well. It 
looks to me like threads stepping on each other in the log. This _does_ 
make the logs a bit less than useful, but I don't believe that it will 
have true application impact.

I'll look into that as well.

-danch


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



Re: [JBoss-user] Solving Oracle Connection Pool Hanging

2001-04-10 Thread Tim Taylor

Oracle's DataSources don't do pooling in the sense of maintaining pools 
of physical connections (nneded for speed).  Oracle calls minerva's type 
of pooling "connection caching" in their documentation for their JDBC 
2.0 drivers.

Oracle provides an "example" implementation of a cache called 
OracleConnectionCacheImpl (implements DataSource).  You instantiate the 
cache with one of the pooling data sources (OracleXADataSource or 
OracleConnectionPoolDataSource).  The cache then does what minerva does 
in terms of pooling -- but not as conveniently or portably.

I also found what appears to be a limitation in the 
OracleConnectionCacheImpl.  It did not appear to work correctly with 
OracleXADataSources.  The cache allocates from the XA data source you 
give it by calling getPooledConnection() -- not getXAConnection().  I 
was able to call commit() on one of the connections from the supposedly 
XAConnection cache, and that's not good.  There was no source code 
nearby, so I gave up and just went with minerva.

Now if I could just get an example minerva's JDBCDataSourceLoader 
working.   The trouble is that there are places that are outside the 
container where you need data sources.  One example is, I think, in 
using the database for authentication.  You need access to a connection, 
but you are outside a container (in the SecurityInterceptor?).  Another 
example is in custom MBean services where you might want to use the 
database to store configuration information.

You can use physical connections from the minerva XA pool outside the 
container and manually commit them if you want, but it seems wrong to do 
that.

Tim



Toby Allsopp wrote:

 On Tue, Apr 10, 2001 at 05:55:27PM +0200, Shahar Solomianik wrote:
 
 Toby, I think you are right.
 I replaced the mbean configuration to use XADataSourceLoader and minerva (I
 had to patch minerva to support scrollable result sets...), tested the
 server under load and it was MUCH faster.
 I didnt get into details and log/trace files, but the differences in speed
 were visible to the human eye 
 
 
 I'd be very interested to hear of any deeper investigation of this. It
 might be as simple as the Oracle DataSource implementation not doing
 pooling.
 
 Toby.
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user



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



Re: [JBoss-user] What is BlackBox Datasources ??

2001-04-10 Thread Russell

Hi Toby  ,

   Thanks for your info. Please forgive me , i am a amature in Linux.

   When we will using "Black box" , didn't in xml files , there are
already some 
   resources tag for JDBC connection.

   What is the main usage of "Black box" ??

  Thanks 


Toby Allsopp wrote:
 
 On Tue, Apr 10, 2001 at 09:01:34AM +0800, Russell wrote:
 
Hi all ,  I am using Linux6.1 , jbos2.1  and tomcat3.2.1.
 
 I've told you before, and I'll keep telling you: there is no such thing
 as "Linux6.1". I assume you mean RedHat 6.1.
 
May i know what is BlackBox Datasources ?? What is the purposes ??
Any documentation regarding Black Box DS ??
 
 "Black Box" is the name Sun gave to the example resource adapters that they
 shipped with early access versions of their JCA reference implementation.
 
 They are resource adapters that provide JDBC connections. You can find
 information on using them with JBoss in the "JBossCX Configuration" section
 of the manual.
 
 Toby.
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user

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



Re: [JBoss-user] debug ejb bean

2001-04-10 Thread Peter Routtier-Wone

  System.out.println ( "Hello World!" );

 should print out on the console while JBoss is running. It works from an
entity
 or session bean.

It shows on the console from which you ran the JBoss container, not on the
client process console.



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



Re: [JBoss-user] Problems with the connection(-pool) on container-managed beans

2001-04-10 Thread David Jencks

Hi,
Thanks for the clarification of what you are working with.

The Minerva pools (to fake an XADatasource from a nonXA driver) hand out a
wrapped connection, transferring exactly the connection interface to a
"DriverManager" obtained connection.-- these will obviously not have the
Oracle extensions you need.

I think your choices are to 
1. Use the Oracle XA driver with which so many people have rather vocal
problems-- assuming that it implements the Oracle extensions you need and
works with the OracleSpatialManager.

2. Modify the Minerva wrapper connection to either expose the additional
interface if any the Oracle connection exposes or add a method to return
the underlying Oracle connection.  I would expect that if you don't hold
onto the underlying Oracle connection between method calls the latter might
work-- but I have certainly never tried anything like this.  Do you know
what it is about the Oracle connection that makes it work with the
OracleSpatialManager?  implementing class? interfaces? existence of special
methods?

 
I would think that the particular connection or connection wrapper you used
should not have an influence on available datatypes-- aren't these all used
in the statement and resultset classes?

David Jencks

On 2001.04.10 05:52:18 -0400 Alexander Jerusalem wrote:
 Hi David. Thank you for your answer.
 
 Let me clarify a few things: Roman is not using cmp. When he says 
 "bean-managed" he means bean managed transactions not bean managed 
 persistence. What he tries to do is to read a longitude/latitude value
 from 
 an Oracle Spatial column inside a stateless SessionBean. This column has 
 the proprietary Oracle type MDSYS.SDO_GEOMETRY and the Oracle way to read
 a 
 value from such a column is by using the OracleSpatialManager class to 
 create a GeometryAdapter.
 
 Now the problem is that a connection that he gets from the connection
 pool, 
 obviously isn't usable by the OracleSpatialManager. So the questions
 seems 
 to come down to: is the Connection returned by the connection pool any 
 different (and in what way?) from a connection returned directly by the 
 DriverManager? Can such a connection use Oracle specific JDBC extensions 
 like Spatial datatypes?
 
 thanks,
 Alexander Jerusalem
 
 
 At 04:53 10.04.01, you wrote:
 Hi,
 
 I can't say I understand entirely why you are getting the results you
 see,
 but I'm not surprised.
 
 Some comments interspersed below
 
 On 2001.04.09 14:00:36 -0400 Roman Wittchen wrote:
   As my EJB was bean-managed, I had no problems with the connection
 pool. I
   got my connection simply by calling "con =
 datasource.getConnection();".
   But since I changed my EJB from bean-managed to container-managed, I
 am
   not
   able to use the ascertained connection as before.
  
   For example:
   I have to put the connection object to a oracle-spatial-method, to
   receive a
   sdoAdapter object ... code looks something like this ...
  
   GeometryAdapter sdoAdapter = OraSpatialManager.getGeometryAdapter
 ("SDO",
   "8.1.6", null, STRUCT.class, null, con);
 
 Where do you get con?  I would expect if you get it the same way you get
 a
 connection for bmp, this ought to work---the connection ought to be
 associated with a XAConnection that has the correct transaction. 
 However
 this is unusual to say the least.  Essentially you are mixing cmp and
 bmp.
  
   But unfortunately sdoAdapter is always null. So I changed the code to
 ...
  
   GeometryAdapter sdoAdapter = OraSpatialManager.getGeometryAdapter
 ("SDO",
   "8.1.6", null, STRUCT.class, null, DriverManager.getConnection
   ("jdbc:oracle:thin:@xxx::xx","user", "pw"));
 
 Here you are getting a connection directly from the driver manager...
 bypassing all pooling and transaction management.  You may get a
 GeometryAdapter but any work you do on it will be outside the container
 managed transaction.
  
   And then it works, ... but I don't want to use this possibility,
 because
   the
   configuration code is hard-coded.
  
   Does anybody know, why this is so ?
  
   And another peculiar thing is, that, if i change the EJB back to
   bean-managed, only the connection-pool variante works, and the
 hard-coded
   drivermanger variante does not work anymore (then ... the sdoadapter
   object
   is null).
 
 Again, not surprising that it doesn't work, since you are mixing pooled
 connections connected to XAConnections and non pooled connections
 expected
 to manage their own transactions.
  
   Help is appreciated.
  
   Best regards,
   Roman Wittchen
 
 I don't know what this GeometryAdapter is, but if you need a connection
 to
 get one, you should be getting the connection from the pool so the
 transaction is under container control.  Is there some reason not to use
 bmp for this? In any case you need to get a connection yourself.
 
 
 I think a more sophisticated approach here that would let you do cmp
 would
 be to write a resource adapter for oracle connections +
 GeometryAdapters,
 

Re: [JBoss-user] FW: JBoss 2.1

2001-04-10 Thread faisal

still
- Original Message -
From: "Tobias Frech" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 10, 2001 2:52 PM
Subject: Re: [JBoss-user] FW: JBoss 2.1


 Hi Faisal!
 The "client" jars ship with the container/JBoss distribution. Look into
 the directory "client" from your actual JBoss version. Be sure to
 replace all jars at your client side with the versions from this
 directory.
 Did this help ?

 Ciao,
 Tobias

 faisal wrote:
 
  I appreciate your help!
  It ,simply,does not work. I ve tried all the possible confi 
  I put the client.jars on my classpath .Still I can't manage to
successfully
  lookup my  beans
  nd if the client.jar s are not compatible with jboss-tomcat2.2 how can I
get
  the latest client.jars
 
  thanks again for your help
  Faisal

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



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



Re: [JBoss-user] easy to implement Informix Support ???

2001-04-10 Thread David Jencks

Hi,

Have you tried using the JCA jbosscx framework with the blackboxDS example
adapter?  I'm not quite sure but I think all the configuration of this
stuff is not hard coded but works from properties in the pool
configuration.  Right now its a bit unpleasant in that you have to start
the ds by hand every time you start jboss...but this will probably be fixed
soon.

David Jencks
On 2001.04.10 05:51:39 -0400 "Schneider, Joerg (Zentrale Frankfurt)" wrote:
 Hello everybody,
 
 after reading all the messages in this mailing-list regarding support of
 Informix databases, i've the impression, that supporting this database
 should be easy and could be done with small efforts.
 
 First of all, i want to state what is working (in my opinion) by now
 (jboss
 2.1) :
 
   Establishing connections, if the minerva-class XADataSourceImpl
 is
 used.
   Database operations, if transaction and persistent type is bean
 
 Second, here's what is not working (in my opinion) by now (jboss 2.1) :
 
   If the IfxXADataSource class is used, an exception is thrown
 while
 starting jboss with message "wrong argument" (please review older
 messages
 in this mailing-list describing the exact stack-trace).  
   If transactions should be handled by the container, an
 runtime-exception is thrown with message "xares not enlisted".
 
 In my opinion, the informix-jdbc driver 2.20JC1 (type 4, XA implemented)
 works fine, except it is missing the methods "setURL" and
 "setProperties",
 which are used by jboss to configure the XADataResource. 
 According to previously sent mail's, the way to configure a XADataSource
 is
 not part of any specifications, so any vendor can implement whatever
 methods
 he wants to do configuration. The informix jdbc-driver offers a lot of
 methods to use for config issues (setUser, setPassword, setProperties,
 setDatabase) and is well documented to.
  
 So, a slight change of the jboss config-procedure could make this
 database
 easily available :-).  
 
 For developing and testing purposes, one can obtain all informix-products
 for all platforms from "www.informix.com/evaluate/ after registering
 free-of-charge for a limited period of time.
 
 If anyone has successfully configured an informix database-environment
 (which means, i'm wrong with all my conclusions) with jboss 2.1, please
 let
 me know. 
 Otherwise, i would suggest to enhance jboss the way i mentioned above
 (this
 is far more easy for a active member of the development community, as it
 is
 for me, isn't it ?).
 
 Kind regards
 
 Joerg Schneider
 
 Voice:+49 (69) 263 - 7918
 Fax:  +49 (69) 263 - 11877
 E-Mail:   [EMAIL PROTECTED]
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 


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



Re: SV: [JBoss-user] Gathering information on migrating from 2.0 to 2.2

2001-04-10 Thread Ken Jenks

I had to add

..\..\lib\jboss-jaas.jar;

to all of my client command lines.

-- Ken Jenks, http://abiblion.com/

Tools for reading.


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



RE: [JBoss-user] easy to implement Informix Support ???

2001-04-10 Thread marc fleury



|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of David Jencks
|Sent: Tuesday, April 10, 2001 9:24 PM
|To: [EMAIL PROTECTED]
|Subject: Re: [JBoss-user] easy to implement Informix Support ???
|
|
|Hi,
|
|Have you tried using the JCA jbosscx framework with the blackboxDS example
|adapter?  I'm not quite sure but I think all the configuration of this
|stuff is not hard coded but works from properties in the pool
|configuration.  Right now its a bit unpleasant in that you have to start
|the ds by hand every time you start jboss...but this will probably be fixed
|soon.

nothing prevents you from calling the MBeanServer or the configuration
service for that matter and passing it the relevant mbeanxml stuff,  heck
I bet you could do it from the web.

amrc

|
|David Jencks
|On 2001.04.10 05:51:39 -0400 "Schneider, Joerg (Zentrale Frankfurt)" wrote:
| Hello everybody,
|
| after reading all the messages in this mailing-list regarding support of
| Informix databases, i've the impression, that supporting this database
| should be easy and could be done with small efforts.
|
| First of all, i want to state what is working (in my opinion) by now
| (jboss
| 2.1) :
|
|  Establishing connections, if the minerva-class XADataSourceImpl
| is
| used.
|  Database operations, if transaction and persistent type is bean
|
| Second, here's what is not working (in my opinion) by now (jboss 2.1) :
|
|  If the IfxXADataSource class is used, an exception is thrown
| while
| starting jboss with message "wrong argument" (please review older
| messages
| in this mailing-list describing the exact stack-trace).
|  If transactions should be handled by the container, an
| runtime-exception is thrown with message "xares not enlisted".
|
| In my opinion, the informix-jdbc driver 2.20JC1 (type 4, XA implemented)
| works fine, except it is missing the methods "setURL" and
| "setProperties",
| which are used by jboss to configure the XADataResource.
| According to previously sent mail's, the way to configure a XADataSource
| is
| not part of any specifications, so any vendor can implement whatever
| methods
| he wants to do configuration. The informix jdbc-driver offers a lot of
| methods to use for config issues (setUser, setPassword, setProperties,
| setDatabase) and is well documented to.
|
| So, a slight change of the jboss config-procedure could make this
| database
| easily available :-).
|
| For developing and testing purposes, one can obtain all informix-products
| for all platforms from "www.informix.com/evaluate/ after registering
| free-of-charge for a limited period of time.
|
| If anyone has successfully configured an informix database-environment
| (which means, i'm wrong with all my conclusions) with jboss 2.1, please
| let
| me know.
| Otherwise, i would suggest to enhance jboss the way i mentioned above
| (this
| is far more easy for a active member of the development community, as it
| is
| for me, isn't it ?).
|
| Kind regards
|
| Joerg Schneider
|
| Voice:   +49 (69) 263 - 7918
| Fax: +49 (69) 263 - 11877
| E-Mail:  [EMAIL PROTECTED]
|
|
| ___
| JBoss-user mailing list
| [EMAIL PROTECTED]
| http://lists.sourceforge.net/lists/listinfo/jboss-user
|
|
|
|___
|JBoss-user mailing list
|[EMAIL PROTECTED]
|http://lists.sourceforge.net/lists/listinfo/jboss-user


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



Re: SV: [JBoss-user] debug ejb bean

2001-04-10 Thread David Jencks

Hi, where is jswap to be found?

Thanks
David Jencks

On 2001.04.10 10:46:38 -0400 Lennart Petersson wrote:
 Either buy a debugger tool like bugseeker or try the open source jswap.
 I've both working with jboss. They are ok, maybe bugseeker has a more
 userfriendly interface.
 /L
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 


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



RE: [JBoss-user] easy to implement Informix Support ???

2001-04-10 Thread David Jencks


On 2001.04.10 21:36:01 -0400 marc fleury wrote:
 
 
 |-Original Message-
 |From: [EMAIL PROTECTED]
 |[mailto:[EMAIL PROTECTED]]On Behalf Of David Jencks
 |Sent: Tuesday, April 10, 2001 9:24 PM
 |To: [EMAIL PROTECTED]
 |Subject: Re: [JBoss-user] easy to implement Informix Support ???
 |
 |
 |Hi,
 |
 |Have you tried using the JCA jbosscx framework with the blackboxDS
 example
 |adapter?  I'm not quite sure but I think all the configuration of this
 |stuff is not hard coded but works from properties in the pool
 |configuration.  Right now its a bit unpleasant in that you have to start
 |the ds by hand every time you start jboss...but this will probably be
 fixed
 |soon.
 
 nothing prevents you from calling the MBeanServer or the configuration
 service for that matter and passing it the relevant mbeanxml stuff, 
 heck
 I bet you could do it from the web.
 
 amrc

Yes, I am doing it from the html interface... I need to write a mbean to
call the rardeployer from configuration in jboss.jcml.

David
 
 |
 |David Jencks
 |On 2001.04.10 05:51:39 -0400 "Schneider, Joerg (Zentrale Frankfurt)"
 wrote:
 | Hello everybody,
 |
 | after reading all the messages in this mailing-list regarding support
 of
 | Informix databases, i've the impression, that supporting this database
 | should be easy and could be done with small efforts.
 |
 | First of all, i want to state what is working (in my opinion) by now
 | (jboss
 | 2.1) :
 |
 |Establishing connections, if the minerva-class
 XADataSourceImpl
 | is
 | used.
 |Database operations, if transaction and persistent type is
 bean
 |
 | Second, here's what is not working (in my opinion) by now (jboss 2.1)
 :
 |
 |If the IfxXADataSource class is used, an exception is thrown
 | while
 | starting jboss with message "wrong argument" (please review older
 | messages
 | in this mailing-list describing the exact stack-trace).
 |If transactions should be handled by the container, an
 | runtime-exception is thrown with message "xares not enlisted".
 |
 | In my opinion, the informix-jdbc driver 2.20JC1 (type 4, XA
 implemented)
 | works fine, except it is missing the methods "setURL" and
 | "setProperties",
 | which are used by jboss to configure the XADataResource.
 | According to previously sent mail's, the way to configure a
 XADataSource
 | is
 | not part of any specifications, so any vendor can implement whatever
 | methods
 | he wants to do configuration. The informix jdbc-driver offers a lot of
 | methods to use for config issues (setUser, setPassword, setProperties,
 | setDatabase) and is well documented to.
 |
 | So, a slight change of the jboss config-procedure could make this
 | database
 | easily available :-).
 |
 | For developing and testing purposes, one can obtain all
 informix-products
 | for all platforms from "www.informix.com/evaluate/ after registering
 | free-of-charge for a limited period of time.
 |
 | If anyone has successfully configured an informix database-environment
 | (which means, i'm wrong with all my conclusions) with jboss 2.1,
 please
 | let
 | me know.
 | Otherwise, i would suggest to enhance jboss the way i mentioned above
 | (this
 | is far more easy for a active member of the development community, as
 it
 | is
 | for me, isn't it ?).
 |
 | Kind regards
 |
 | Joerg Schneider
 |
 | Voice: +49 (69) 263 - 7918
 | Fax:   +49 (69) 263 - 11877
 | E-Mail:[EMAIL PROTECTED]
 |
 |
 | ___
 | JBoss-user mailing list
 | [EMAIL PROTECTED]
 | http://lists.sourceforge.net/lists/listinfo/jboss-user
 |
 |
 |
 |___
 |JBoss-user mailing list
 |[EMAIL PROTECTED]
 |http://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 


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



Re: SV: [JBoss-user] Gathering information on migrating from 2.0 to 2.2

2001-04-10 Thread Scott M Stark

You should be using client/jbosssx-client.jar instead of jboss-jaas.jar.
If your finding that this is does not work then there is a problem with
the packaging of the jbosssx-client.jar 

- Original Message - 
From: "Ken Jenks" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 10, 2001 4:38 AM
Subject: Re: SV: [JBoss-user] Gathering information on migrating from 2.0 to 2.2


 I had to add
 
 ..\..\lib\jboss-jaas.jar;
 
 to all of my client command lines.
 
 -- Ken Jenks, http://abiblion.com/
 
 Tools for reading.
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 


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



Re: [JBoss-user] What is BlackBox Datasources ??

2001-04-10 Thread Toby Allsopp

On Wed, Apr 11, 2001 at 09:09:20AM +0800, Russell wrote:
 Hi Toby  ,
 
Thanks for your info. Please forgive me , i am a amature in Linux.

Yeah, I forgive you. I just hate seeing people not learning.

When we will using "Black box" , didn't in xml files , there are
 already some 
resources tag for JDBC connection.

I'm sorry, but I can't understand that sentence.

What is the main usage of "Black box" ??

The main purpose is as an example so you can see how a resource adpater is
written. It also serves as something to test JCA implementations with.

Toby.

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



Re: [JBoss-user] That rude word (marketing)

2001-04-10 Thread Frank Morton

Regarding exposure, we ought to be displayed on:

http://java.sun.com/products/ejb/tools1.html

Becoming a new fan of jboss...

Frank Morton
[EMAIL PROTECTED]

- Original Message - 
From: "Peter Routtier-Wone" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 31, 2001 2:02 AM
Subject: Re: [JBoss-user] That rude word (marketing)


 Or send this material directly to [EMAIL PROTECTED]
 
 | Please take this to the jboss-business list.
 | (http://groups.yahoo.com/group/jboss-business)
 | 
 | /Rickard
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 


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



Re: [JBoss-user] debug ejb bean

2001-04-10 Thread Scott M Stark

Its actually jswat, see http://www.bluemarsh.com/java/jswat/

- Original Message - 
From: "David Jencks" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 10, 2001 7:04 PM
Subject: Re: SV: [JBoss-user] debug ejb bean


 Hi, where is jswap to be found?
 
 Thanks
 David Jencks
 



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



Re: [JBoss-user] METHOD IS NOT FOUND

2001-04-10 Thread Guy Rouillier

Could this be the problem I ran into with autodeploy?  The new version of
your EJB will not be picked up until you restart JBoss if your EJB is in the
system classpath.  I got around this by modifying run.bat so that JBoss is
run with an empty classpath.

- Original Message -
From: "Carles Pi-Sunyer" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 10, 2001 6:57 PM
Subject: [JBoss-user] METHOD IS NOT FOUND


 I've added a new method to a stateless session bean.
 When I try to access the method from my client program
 I am getting the exception below.

 The other methods in the remote interface and bean are
 available. I've looked at the strings in the remote
 interface and bean .class files and I see the method
 name in there.

 It's pretty odd, because I've done some experiments,
 and when the client can't find a method it normally
 throws a java.lang.NoSuchMethodError.

 Any thoughts?

 Carles

 java.lang.NullPointerException: METHOD IS NOT
 FOUND:-2660912196128829327 {229145
 2689382128322=public abstract void
 com.good.service.authentication.Authenticatio
 n.permissionGetUsersByCorporation(int,int) throws
 java.rmi.RemoteException,com.g
 ood.exception.AuthorizationException,
 3418093092247484039=public abstract void c
 om.good.service.authentication.Authentication.permissionGetUser(int,int)
 throws
 java.rmi.RemoteException,com.good.exception.AuthorizationException,
 543072680790
 308770=public abstract void
 com.good.service.authentication.Authentication.permi
 ssionGetAllUsers(int) throws
 java.rmi.RemoteException,com.good.exception.Authori
 zationException, -9222884604300333465=public abstract
 int com.good.service.authe
 ntication.Authentication.authenticate(java.lang.String,java.lang.String)
 throws
 java.rmi.RemoteException,com.good.exception.AuthorizationException,
 -50138586399
 39630501=public abstract void
 javax.ejb.EJBObject.remove() throws java.rmi.Remot
 eException,javax.ejb.RemoveException,
 -1299374689989208114=public abstract javax
 .ejb.Handle javax.ejb.EJBObject.getHandle() throws
 java.rmi.RemoteException, -59
 09123752501984271=public abstract boolean
 javax.ejb.EJBObject.isIdentical(javax.
 ejb.EJBObject) throws java.rmi.RemoteException,
 6802848344474279266=public abstr
 act void
 com.good.service.authentication.Authentication.permissionGetUsersByWork
 group(int,int) throws
 java.rmi.RemoteException,com.good.exception.AuthorizationE
 xception, 3163754803894080547=public abstract
 javax.ejb.EJBHome javax.ejb.EJBObj
 ect.getEJBHome() throws java.rmi.RemoteException,
 4840115071604865751=public abs
 tract java.lang.Object
 javax.ejb.EJBObject.getPrimaryKey() throws
 java.rmi.Remot
 eException}

 __
 Do You Yahoo!?
 Get email at your own domain with Yahoo! Mail.
 http://personal.mail.yahoo.com/

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



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



[JBoss-user] InterestClient

2001-04-10 Thread Ralph Jensen

The InterestClient doesn't run until all of the following jar-files are on
the classpath: ejb.jar, jnp-client.jar, jboss.jar, jta-spec1_0_1.jar and
jbosssx-client.jar.

Did I miss something in the documentation?

Ralph


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



[JBoss-user] container-configurations tag problem

2001-04-10 Thread Andrew Maye


I'm following a tutorial that tries to demonstrate
stateful bean activation and passivation. I want to
configure JBoss with a container for my bean that
limits the number of beans available in the cache.
I've set up a new container in my jboss.xml file to
try and do this. However, when I deploy my bean, I get
a DeploymentException, which says that the system only
expects on container-configurations tag. Does anyone
have any ideas why it complains? As far as I'm away,
I've followed the instructions in the documentation.

My jboss.xml file is below.

Thanks for any help.

Andrew. 



?xml version="1.0"?

jboss
  securefalse/secure
  container-configurations /
  resource-managers /
  enterprise-beans
 session
   ejb-nameCount/ejb-name
   jndi-namecount/CountHome/jndi-name
   configuration-nameLRU
Configuration/configuration-name
 /session
  /enterprise-beans

   container-configurations
container-configuration
  container-nameLRU
Configuration/container-name
 
instance-cacheorg.jboss.ejb.plugins.EntitySessionInstanceCache/instance-cache
  container-cache-conf
   
cache-policyorg.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy/cache-policy
cache-policy-conf
  min-capacity2/min-capacity
  max-capacity2/max-capacity
  overager-period300/overager-period
  max-bean-age600/max-bean-age
  resizer-period400/resizer-period
 
max-cache-miss-period60/max-cache-miss-period
 
min-cache-miss-period1/min-cache-miss-period
  cache-load-factor0.75/cache-load-factor
/cache-policy-conf
  /container-cache-conf
/container-configuration 
   /container-configurations

/jboss


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

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