[JBoss-user] How to get IP address from ejb

2001-05-11 Thread Russell

 
  Hi all , 

I am using RedHat6.1 , jdk1.3 and jboss2.1 .

Can i get the computer IPAddress which accessed the ejb and stored
in the ipaddress in table ?

  Thanks

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



[JBoss-user] jboss-tomcat security configuration problem

2001-05-11 Thread François Charoy

This one cost me a day...

I use jboss-tomcat-2.2 from the distrib

It seems that there is a problem in the jboss-tomcat configuration
all the configurations files are located in the conf/tomcat dir but the
auth.conf
used by the security manager is the auth.conf from conf/default
This must be changed in the tomcat/jboss.properties.

run.bat has to be changed also to set the classpath of custom security
managers
(i don't know if this is documented somewhere)

françois



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



[JBoss-user] jboss-tomcat security configuration problem

2001-05-11 Thread François Charoy

This one cost me a day...

I use jboss-tomcat-2.2 from the distrib

It seems that there is a problem in the jboss-tomcat configuration
all the configurations files are located in the conf/tomcat dir but the
auth.conf
used by the security manager is the auth.conf from conf/default
This must be changed in the tomcat/jboss.properties.

run.bat has to be changed also to set the classpath of custom security
managers
(i don't know if this is documented somewhere)

françois



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



RE: [JBoss-user] jBoss architecture question

2001-05-11 Thread Kimpton,C (Chris)

Hi,

 
 So if each java process I see is a thread within the same VM, 
 does anyone 
 know what causes a new thread to be started?
 

new Thread();

;-)



 Also, is there any way to know which of these are Hypersonic, 
 which are 
 Tomcat and which are jBoss?

Now you are talking...

Well - looking in the source is one route.

Profiling might help too.


I presume you have a performance problem and your trying to track down where
things are slow?  In which case look at optimisation tools

HTH,
Chris


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



Re: [JBoss-user] Slightly Off-Topic: Java on Solaris

2001-05-11 Thread Davide Mora


 Anyway, I'm wondering how much better Java is on the
 Sparc/Solaris vs.
 Linux/Intel.

one of our customers moved from w2000 servers to
sparc/solaris. for what i know under solaris (and
other unix in general) java work worse than
windows/linux, checkout this benchmark:

http://www.volano.com/report.html

for what i know (i didnt follow personally the tests)
there are also problems on the usage of the CPUs in a
multiprocessor system.

maybe somebody else had a better experience?

Davide

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

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



RE: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error

2001-05-11 Thread Vincent Harcq

Hi!
You are the first one to get this :(
I also got this one on beta3 but it works fine for me on beta1 :)
beta4 is just out, I will try again...
Vincent.

 -Message d'origine-
 De : [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]De la part de John Menke
 Envoyé : vendredi 11 mai 2001 2:04
 À : [EMAIL PROTECTED]
 Objet : RE: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error


 Maybe the -nonaming is not getting executed then? (if it fixed your
 problem). I am using Catalina from within the Turbine TDK which contains a
 schell script startup.sh which calls the catalina.sh script. I have added
 the -nonaming to this line so it reads

 $BASEDIR/catalina.sh start -nonaming $@

 This should turn naming off, but I still get the errors when I start the
 program this way.


  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Bordet,
  Simone
  Sent: Thursday, May 10, 2001 6:42 PM
  To: '[EMAIL PROTECTED]'
  Subject: R: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error
 
 
  Hey John
 
   Yes, I have tried that, and I still get the error.  (It seems
   like it has no
   effect)  Do you have this configuration working?
 
  Not exactly. I'm using Catalina with another server application
  that has its
  own Naming service, and at the beginning I got the same error
 on startup,
  but it went away with the -nonaming option.
  We then have other problems with this jndi: protocol, also from previous
  discussions it seems to me a Catalina bug: with us, every class
  loaded from
  web-inf/classes or web-inf/lib has a codebase like
  jndi:/WEB-INF/classes/
  or jar:jndi:/WEB-INF/lib/xxx.jar!/, so that if objects of
 these classes
  are passed as arguments to any rmi method invocation, on the
  other side the
  class annotation is taken from the stream, but of course the classloader
  cannot understand the Catalina-specific jndi: protocol.
  The context class loader should take care of that probably, but
 I did not
  figured it out yet why it doesn't. I miss Rickard !
 
  Will live, will see.
 
  Cheers
 
  Simon
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Bordet,
Simone
Sent: Thursday, May 10, 2001 6:15 PM
To: '[EMAIL PROTECTED]'
Subject: R: [JBoss-user] Catalina and Jboss2.2.1
   InitialContext error
   
   
Do you start Catalina with the -nonaming option, so that from it
you connect
to JBoss' Naming service ?
   
Simon
   
 -Messaggio originale-
 Da: John Menke [mailto:[EMAIL PROTECTED]]
 Inviato: mercoledì 9 maggio 2001 23:30
 A: jboss
 Oggetto: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error


 This error is produced when I try to get an initial JNDI context.

 The error is:

 javax.naming.CommunicationException[Root exeption is
 java.rmi.ServerException: RemoteException occured in server
 thread; nested
 exception is java.rmi.UnmarshalException: error unmarshalling
 arguments;
 nested exception is java.net.MalformedURL exception: unknown
 protocol: jndi


 I can get InitalContext in Tomcat 3.2, but Catalina produces
 the error.

 Is there a workaround?







 ___
 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


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


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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



RE: [JBoss-user] CMP finder method problem

2001-05-11 Thread RRokytskyy

 I could get to the bottom of this if I could just see what 
 the container is doing when the findAll() is triggered. 
 My question is: is there a way to print or log the SQL SELECT 
 statement that the container has executed on my entity bean's 
 behalf? If not, can anyone suggest a good way to debug
 something like this?

Yes, you can (there are few places where you can turn logging on and off):

jaws.xml or standardjaws.xml and specify:
jaws
  ...
  debugtrue/debug
  ...
/jaws

jboss.xml or standardjboss.xml in you CMP container configuration:

!-- prints the method invoked by container --
call-loggingtrue/call-logging 

in jboss.jcml in your datasource configuration:

mbean ...
  ...
  attribute name=LoggingEnabledtrue/attribute
/mbean


Also, do not forget to watch the server.log, not the console output, because
SQL statements appear only in server log (at least in my case).

Roman

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



RE: [JBoss-user] BUG?: when JAWS CMP field type is java.langObject

2001-05-11 Thread RRokytskyy

 1) Declare my field as byte[] and serialize the supplied 
 object to it myself 
 (I'm pretty sure the byte[] cmp management works?)

It depends. I had problems with byte[] and InterBase JDBC driver. It is
caused by the same method: in case of byte array it does not try to wrap it
in the MarshalledObject, it uses stmt.setObject(...) instead. JDBC driver
detects that this is byte[] and stores data directly. However, while
deserializing, JBoss tries to deserialize the byte array into object and
fails. However, in case of Hypersonic SQL and InstantDB everything works
fine.

 2) Declare the field as MyObject which just contains the real 
 object. This 
 should fool the code into unwrapping MyObject and then I can 
 extract the real 
 object from that.

That is exactly what I've tried. And it works. :)

Also you can use another approach: you can define two fields:
  Object realField;
  String dbField; // here you can use any type you like

then, in ejbCreate(...) (or any other modification method for the field) you
convert the realField into dbField. In ejb-jar.xml you specify that only
dbField is CMP field, and completely forget about the realField. Then, in
ejbLoad() you explicitely convert the dbField (which is already assigned by
JBoss) to realField. 

I'm currently using this approach to convert my byte[] PK into string
representation, which is better from database point of view for creating
indexes, etc.

Hope this helps.

Roman Rokytskyy

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



[JBoss-user] ResultSet.TYPE_SCROLL_INSENSITIVE

2001-05-11 Thread Oscar Radio

Hi all,

I am trying to pass to jboss2.2.1 from jboss2.0, all is working fine
except that now the resulsets cant be TYPE_SCROLL_INSENSITIVE. The following
code works fine in jboss2.0, but with jboss2.2.1 it doesn't


prepareStatement = con.prepareStatement(this.cadenaSQL,
ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);

if (prepareStatement.getResultSetType() ==
java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE)
{
System.out.println(TYPE_SCROLL_INSENSITIVE);
}  
else
{
System.out.println(not TYPE_SCROLL_INSENSITIVE);
}


Output results:

jboss2.0: TYPE_SCROLL_INSENSITIVE

jboss2.2.1: not TYPE_SCROLL_INSENSITIVE


Is there anything I have to put in the conf files to work. I am
using an Oracle 8.1.6, can be this the error, if I upgrade to 8.1.7 should
it work?

Thanks, Oscar

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



RE: [JBoss-user] HELP! JBoss client problem

2001-05-11 Thread Doyle, Steven

yeah, silly error you were correct.

cheers

Steve

-Original Message-
From: Eric Lindauer [mailto:[EMAIL PROTECTED]]
Sent: 10 May 2001 16:30
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] HELP! JBoss client problem


Looks like a simple Classpath problem.  The NamingContextFactory is a class
provided by jboss and is in one of the jars you specifically included on
your classpath
when you executed the file from the command line.  Presumably when you run
the
executable jar you are not making these jars available in your path, and
hence
your stuff is unable to find the needed files.

  -eric


- Original Message -
From: Doyle, Steven [EMAIL PROTECTED]
To: 'jboss-user' [EMAIL PROTECTED]
Sent: Thursday, May 10, 2001 10:49 AM
Subject: [JBoss-user] HELP! JBoss client problem


 Hi All,

 I have developed JBoss client application which works perfectly when I
 execute it from the command line i.e.

 java -classpath

c:\jboss-2.2.1\client\jboss-client.jar;c:\jboss-2.2.1\client\jbosssx-client
 .jar;c:\JBuilder3 5\lib\jbcl3.1.jar;c:\projects\classes
 com.wa.apps.flightmanager.FlightManagerClient

 However when I create an executable jar (I use JBuilder deployment tool)
 including all the relevant classes and jars I get the following exception
 generated.

 C:\projects\classesjava -jar fm.jar  debug.txt
 javax.naming.NoInitialContextException: Cannot instantiate class:
 org.jnp.interfaces.NamingContextFactory.  Root exception is
 java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory



 in the client code I use:


System.setProperty(java.naming.factory.initial,org.jnp.interfaces.NamingC
 ontextFactory);
 System.setProperty(java.naming.provider.url,localhost);
 System.setProperty(java.naming.factory.url.pkgs,org.jboss.naming);

 so I don't think it has anything to do with then jndi.properties file.


 Info:

 JDK1.3
 JBoss2.2.1
 JBuilder3.5


 I have looked in this archive,but cannot find anything to help

 Does anyone have any ideas ?

 thanks



 Steve Doyle
 GADA Team
 [EMAIL PROTECTED]
  * (01732) 777 363
  ) XH21B
 

 ___
 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] CMP finder method problem

2001-05-11 Thread K.V. Vinay Menon

The findAll should generate a query of the format

select primkeyfield1,primkeyfield2... from table_name


Vinay
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 11, 2001 9:07 AM
Subject: RE: [JBoss-user] CMP finder method problem


  I could get to the bottom of this if I could just see what
  the container is doing when the findAll() is triggered.
  My question is: is there a way to print or log the SQL SELECT
  statement that the container has executed on my entity bean's
  behalf? If not, can anyone suggest a good way to debug
  something like this?

 Yes, you can (there are few places where you can turn logging on and off):

 jaws.xml or standardjaws.xml and specify:
 jaws
   ...
   debugtrue/debug
   ...
 /jaws

 jboss.xml or standardjboss.xml in you CMP container configuration:

 !-- prints the method invoked by container --
 call-loggingtrue/call-logging

 in jboss.jcml in your datasource configuration:

 mbean ...
   ...
   attribute name=LoggingEnabledtrue/attribute
 /mbean


 Also, do not forget to watch the server.log, not the console output,
because
 SQL statements appear only in server log (at least in my case).

 Roman

 ___
 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] Logging

2001-05-11 Thread K.V. Vinay Menon

Check out the log4j documentation at Jakarta

http://jakarta.apache.org/log4j/docs/documentation.html

Vinay
- Original Message - 
From: Ralf Purnhagen [EMAIL PROTECTED]
To: jBoss [EMAIL PROTECTED]
Sent: Friday, May 11, 2001 9:39 AM
Subject: [JBoss-user] Logging


 Hi!
 
 I want to change the format of the Logfile. Where can i find some
 information about the format strings (default is [{2}] {4})?
 
 Thank you,
 Ralf
 
 ___
 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] Help Required

2001-05-11 Thread Madhu

Hi All,
   Is there any way through which I can findout the query which is formed
from the finder methods inside the jaws.xml. 

Thanks in advance
Regards,
Madhu

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



SV: [JBoss-user] Help Required

2001-05-11 Thread Torsten Terp

Hi,

You can set the debug flag to true in jboss/conf/your_config/standardjaws.xml...

^torsten

 -Oprindelig meddelelse-
 Fra: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]På vegne af Madhu
 Sendt: 11. maj 2001 11:16
 Til: [EMAIL PROTECTED]
 Emne: [JBoss-user] Help Required


 Hi All,
Is there any way through which I can findout the query which is formed
 from the finder methods inside the jaws.xml.

 Thanks in advance
 Regards,
 Madhu

 ___
 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: [jetty-discuss] Re: [JBoss-user] WebApp to WebApp Communication

2001-05-11 Thread Greg Wilkins


Yes - but only using a not well supported feature.

You need to ask the servlet context for the other context, then
ask for a request dispatcher from that context and finally
do an include on that request dispatcher.

My reading of the spec says that tomcats handling of getContext
is broken - last time I looked (many months ago), so you could
have portability problems with this mechanism.

cheers


Julian Gosnell wrote:

 You might get an answer to this on jetty-discuss - I
 have cross-posted.
 
 Jules
 
 --- Michael Oswall [EMAIL PROTECTED] wrote: 
 Hello JBoss(+Tomcat/Jetty) Users
 
I have a large j2ee project that divides nicely into
a bunch of small
modules that do not need to know about each other. 
There is one main HTTP
entry point, that is, one primary Request Handling
servlet in a small web
app that uses the parameters of the request to
determine which modules need
to be included to service the request.

Given that, if I have an enterprise application with
an application.xml file
looking like this...

application
display-nameApplication With Two Web
Apps/display-name
module
ejbapp_module_N.jar/ejb
/module
module
web
web-uriapp_module_N.war/web-uri
context-root/module_N/context-root
/web
/module
module
web
web-urirequest_handler.war/web-uri
context-root/handler/context-root
/web
/module
/application

Then is there any way I can make the
RequestHandlerSerlvet in the
request_handler.war be able to include a JSP page
found in module_N.war.
In other words, is it possible for a servlet/jsp in
one web app context to
include a JSP in another web app context?

Thanks, Oz


___
JBoss-user mailing list
[EMAIL PROTECTED]


 http://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 
 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
 
 For the latest information about Jetty, please see http://jetty.mortbay. 
 
 Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
 
 



-- 
Greg Wilkins[EMAIL PROTECTED]  GB  Phone: +44-(0)7092063462
Mort Bay Consulting Australia and UK.Mbl Phone: +44-(0)7775534369
http://www.mortbay.com   AU  Phone: +61-(0)2 99772395


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



Re: [JBoss-user] Help Required

2001-05-11 Thread K.V. Vinay Menon

And remember to check server.log under the log directory. The sqls do not
appear on the server console - its being written to the debug log!

Vinay
- Original Message -
From: Torsten Terp [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 11, 2001 10:41 AM
Subject: SV: [JBoss-user] Help Required


 Hi,

 You can set the debug flag to true in
jboss/conf/your_config/standardjaws.xml...

 ^torsten

  -Oprindelig meddelelse-
  Fra: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]På vegne af Madhu
  Sendt: 11. maj 2001 11:16
  Til: [EMAIL PROTECTED]
  Emne: [JBoss-user] Help Required
 
 
  Hi All,
 Is there any way through which I can findout the query which is
formed
  from the finder methods inside the jaws.xml.
 
  Thanks in advance
  Regards,
  Madhu
 
  ___
  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] Help Required

2001-05-11 Thread K.V. Vinay Menon

Also,
If you want to log the sqls to console [and can live with all the other
crap that shows up!] change the logging threshold from Console logging on
log4j.properties from INFO to DEBUG.

log4j.appender.Console.Threshold=DEBUG

Cheers
Vinay
- Original Message -
From: Torsten Terp [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 11, 2001 10:41 AM
Subject: SV: [JBoss-user] Help Required


 Hi,

 You can set the debug flag to true in
jboss/conf/your_config/standardjaws.xml...

 ^torsten

  -Oprindelig meddelelse-
  Fra: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]På vegne af Madhu
  Sendt: 11. maj 2001 11:16
  Til: [EMAIL PROTECTED]
  Emne: [JBoss-user] Help Required
 
 
  Hi All,
 Is there any way through which I can findout the query which is
formed
  from the finder methods inside the jaws.xml.
 
  Thanks in advance
  Regards,
  Madhu
 
  ___
  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] Invalid Column Name

2001-05-11 Thread K.V. Vinay Menon

Check the sqls being generated

Also, why do you have a findAllSubNetworks finder... isn't it just meant to
do what findAll does?

Vinay
- Original Message -
From: Madhu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 11, 2001 10:01 AM
Subject: [JBoss-user] Invalid Column Name


 Hi All,
  I am facing java.sql.SQLException: ORA-00904: invalid column
name.
 This is the content of the server.log file. Please find the same below


 JAWS] java.sql.SQLException: ORA-00904: invalid column name
 [JAWS]
 [JAWS] at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:184)
 [JAWS] at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:631)
 [JAWS] at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1206)
 [JAWS] at
oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:506)
 [JAWS] at
oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:982)
 [JAWS] at
oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java:1143)
 [JAWS] at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java
:1178)
 [JAWS] at
oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatem
ent.java:57)
 [JAWS] at
org.opentools.minerva.jdbc.PreparedStatementInPool.executeQuery(PreparedStat
ementInPool.java:71)
 [JAWS] at
org.jboss.ejb.plugins.jaws.jdbc.JDBCQueryCommand.executeStatementAndHandleRe
sult(JDBCQueryCommand.java:58)
 [JAWS] at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:159
)
 [JAWS] at
org.jboss.ejb.plugins.jaws.jdbc.JDBCFinderCommand.execute(JDBCFinderCommand.
java:60)
 [JAWS] at
org.jboss.ejb.plugins.jaws.jdbc.JDBCFindEntitiesCommand.execute(JDBCFindEnti
tiesCommand.java:145)
 [JAWS] at
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.findEntities(JAWSPersisten
ceManager.java:138)
 [JAWS] at
org.jboss.ejb.plugins.CMPPersistenceManager.findEntities(CMPPersistenceManag
er.java:280)
 [JAWS] at org.jboss.ejb.EntityContainer.find(EntityContainer.java:392)
 [JAWS] at java.lang.reflect.Method.invoke(Native Method)
 [JAWS] at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContaine
r.java:639)
 [JAWS] at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySync
hronizationInterceptor.java:160)
 [JAWS] at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInt
erceptor.java:87)
 [JAWS] at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:135)
 [JAWS] at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:263)
 [JAWS] at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86)
 [JAWS] at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav
a:151)
 [JAWS] at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106)
 [JAWS] at
org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:316)
 [JAWS] at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContai
nerInvoker.java:425)
 [JAWS] at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:212)
 [JAWS] at $Proxy140.findAllSubNetworksInDomain(Unknown Source)
 [JAWS] at
com.softalia.neoems.mo.basemo.SubNetIntfBean.findAllSubNetworksInDomain(SubN
etIntfBean.java:394)
 [JAWS] at java.lang.reflect.Method.invoke(Native Method)
 [JAWS] at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Stateles
sSessionContainer.java:472)
 [JAWS] at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe
ssionInstanceInterceptor.java:87)
 [JAWS] at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
 [JAWS] at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:263)
 [JAWS] at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
 [JAWS] at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:17
7)
 [JAWS] at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
 [JAWS] at
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.jav
a:271)
 [JAWS] at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
nvoker.java:471)
 [JAWS] at
org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(Stateless
SessionProxy.java:152)
 [JAWS] at $Proxy39.findAllSubNetworksInDomain(Unknown Source)
 [JAWS] at
com.softalia.neoems.srvrinterfaces.ServerCache.updateCache(ServerCache.java:
240)
 [JAWS] at
com.softalia.neoems.srvrinterfaces.ServerCache.initialize(ServerCache.java:1
88)
 [JAWS] at
com.softalia.neoems.srvrinterfaces.ServerCache.init(ServerCache.java:109)
 [JAWS] at
com.softalia.neoems.server.NeoEmsStarterBean.startServerCache(NeoEmsStarterB
ean.java:160)
 [JAWS] at
com.softalia.neoems.server.NeoEmsStarterBean.ejbCreate(NeoEmsStarterBean.jav
a:107)
 [JAWS] at java.lang.reflect.Method.invoke(Native Method)
 [JAWS] at
org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.createSession(St

[JBoss-user] Deploying enterprise-app in JBOSS

2001-05-11 Thread Keerthi Panneer

Hi all,
I am using Jboss-jetty combo...
I have create a enterprise application (sample.ear) that has a JSP, a 
session bean and an entity bean... It's working fine in J2EE RI server of 
Sun Microsystems...
I tried deploying it in JBoss... i could see the messages in the console 
that JBoss has successfully deployed sample.ear... I have configured in the 
EAR to use the context root sample.. but i could not find any context-root 
created in JBoss/Jetty... This restricts me from configuring JAWS as the 
document says to create jaws.xml in the web-inf folder of application to 
specify the datasource settings for CMP EJB...

Can any one of you help me in this regards

THANKS IN ADVANCE...

Keerthi
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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



[JBoss-user] [Help]JBoss 2.2.1 + Tomcat 3.2.1 + Security Control Problem

2001-05-11 Thread arionyu


- Forwarded by Arion Yu/Solutions Delivery/hk/i-stt on 05/11/2001 07:01
PM -
   
  
Arion Yu   
  
 To: [EMAIL PROTECTED] 
  
05/11/2001   cc:   
  
07:00 PM Subject: [Help]JBoss 2.2.1 + Tomcat 3.2.1 
+ Security Control Problem
   
  
   
  



Hi!

I have tried to configure JBoss 2.2.1 + Tomcat 3.2.1 with security control.
(Authenitcation)

Tomcat part is success, and the security principal can be sent to JBoss.
However, JBoss seems have some error with
org.jboss.security.plugins.samples.DatabaseServerLoginModule.

I have already configured the authenication method in auth.conf:
tomcat {
org.jboss.security.plugins.samples.DatabaseServerLoginModule required
dsJndiName=java:/OracleDS principalsQuery=SELECT USER_PASS FROM USERS
WHERE USER_NAME = ? rolesQuery=SELECT ROLE_NAME FROM USER_ROLES WHERE
USER_NAME = ?;
};

The error was NullPointerException before I d/l and build the current cvs
version of tomcat-service.jar.
After the update, it still don't work.

Where can I find the code for DatabaseServerLoginModule.java ?

Thanks

Arion

The stack trace below:

[JAASSecurity] User 'arion' authenticated.
[Inventory] java.sql.SQLException: Invalid column index
[Inventory] at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:1
68)
[Inventory] at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:2
10)
[Inventory] at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:2
73)
[Inventory] at
oracle.jdbc.driver.OracleStatement.prepare_for_new_get(Oracle
Statement.java:2404)
[Inventory] at
oracle.jdbc.driver.OracleStatement.getStringValue(OracleState
ment.java:2535)
[Inventory] at
oracle.jdbc.driver.OracleResultSetImpl.getString(OracleResult
SetImpl.java:305)
[Inventory] at
org.opentools.minerva.jdbc.ResultSetInPool.getString(ResultSe
tInPool.java:654)
[Inventory] at
org.jboss.security.plugins.samples.DatabaseServerLoginModule.
getRoleSets(DatabaseServerLoginModule.java:151)
[Inventory] at
org.jboss.security.plugins.AbstractServerLoginModule.commit(A
bstractServerLoginModule.java:124)
[Inventory] at java.lang.reflect.Method.invoke(Native Method)
[Inventory] at
javax.security.auth.login.LoginContext.invoke(LoginContext.ja
va:595)



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



RE: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error

2001-05-11 Thread John Menke

Vincent,   my mistake I am using Beta 1 and I'm gettting the error.  Not
Beta 3

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Vincent
 Harcq
 Sent: Friday, May 11, 2001 3:58 AM
 To: [EMAIL PROTECTED]
 Subject: RE: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error


 Hi!
 You are the first one to get this :(
 I also got this one on beta3 but it works fine for me on beta1 :)
 beta4 is just out, I will try again...
 Vincent.

  -Message d'origine-
  De : [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]De la part de John Menke
  Envoyé : vendredi 11 mai 2001 2:04
  À : [EMAIL PROTECTED]
  Objet : RE: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error
 
 
  Maybe the -nonaming is not getting executed then? (if it fixed your
  problem). I am using Catalina from within the Turbine TDK which
 contains a
  schell script startup.sh which calls the catalina.sh script. I
 have added
  the -nonaming to this line so it reads
 
  $BASEDIR/catalina.sh start -nonaming $@
 
  This should turn naming off, but I still get the errors when I start the
  program this way.
 
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]On Behalf Of Bordet,
   Simone
   Sent: Thursday, May 10, 2001 6:42 PM
   To: '[EMAIL PROTECTED]'
   Subject: R: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error
  
  
   Hey John
  
Yes, I have tried that, and I still get the error.  (It seems
like it has no
effect)  Do you have this configuration working?
  
   Not exactly. I'm using Catalina with another server application
   that has its
   own Naming service, and at the beginning I got the same error
  on startup,
   but it went away with the -nonaming option.
   We then have other problems with this jndi: protocol, also
 from previous
   discussions it seems to me a Catalina bug: with us, every class
   loaded from
   web-inf/classes or web-inf/lib has a codebase like
   jndi:/WEB-INF/classes/
   or jar:jndi:/WEB-INF/lib/xxx.jar!/, so that if objects of
  these classes
   are passed as arguments to any rmi method invocation, on the
   other side the
   class annotation is taken from the stream, but of course the
 classloader
   cannot understand the Catalina-specific jndi: protocol.
   The context class loader should take care of that probably, but
  I did not
   figured it out yet why it doesn't. I miss Rickard !
  
   Will live, will see.
  
   Cheers
  
   Simon
  
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf
 Of Bordet,
 Simone
 Sent: Thursday, May 10, 2001 6:15 PM
 To: '[EMAIL PROTECTED]'
 Subject: R: [JBoss-user] Catalina and Jboss2.2.1
InitialContext error


 Do you start Catalina with the -nonaming option, so that from it
 you connect
 to JBoss' Naming service ?

 Simon

  -Messaggio originale-
  Da: John Menke [mailto:[EMAIL PROTECTED]]
  Inviato: mercoledì 9 maggio 2001 23:30
  A: jboss
  Oggetto: [JBoss-user] Catalina and Jboss2.2.1
 InitialContext error
 
 
  This error is produced when I try to get an initial
 JNDI context.
 
  The error is:
 
  javax.naming.CommunicationException[Root exeption is
  java.rmi.ServerException: RemoteException occured in server
  thread; nested
  exception is java.rmi.UnmarshalException: error unmarshalling
  arguments;
  nested exception is java.net.MalformedURL exception: unknown
  protocol: jndi
 
 
  I can get InitalContext in Tomcat 3.2, but Catalina produces
  the error.
 
  Is there a workaround?
 
 
 
 
 
 
 
  ___
  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
 
 
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  http://lists.sourceforge.net/lists/listinfo/jboss-user


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com


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


___
JBoss-user mailing list
[EMAIL PROTECTED]

[JBoss-user] Help Required: Integrating Interbase 6

2001-05-11 Thread Thomas Grnert

Hi,

I try to run jboss, jetty (the default package) with interbase.

The Driver is loaded

[JDBC provider] Initializing
[JDBC provider] Loaded JDBC-driver:interbase.interclient.Driver
[JDBC provider] Initialized
[DefaultDS] Initializing
[DefaultDS] Initialized

and then the Exception at starting Jboss.

[DefaultDS] Starting
[DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
[Service Control] Could not start DefaultDomain:service=XADataSource,name=DefaultDS
[Service Control] java.lang.VerifyError: (class: interbase/interclient/ErrorKey, 
method: _$372 signature: (Ljava/lang/String;Ljava/lang/String;I)V) Expecting to find 
unitialized object on stack
[Service Control]   at interbase.interclient.Driver.connect(Driver.java:180)
[Service Control]   at java.sql.DriverManager.getConnection(DriverManager.java:517)
[Service Control]   at java.sql.DriverManager.getConnection(DriverManager.java:177)
[Service Control]   at 
org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl.getXAConnection(XADataSourceImpl.java:118)
[Service Control]   at 
org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl.getXAConnection(XADataSourceImpl.java:151)
[Service Control]   at 
org.opentools.minerva.jdbc.xa.XAConnectionFactory.createObject(XAConnectionFactory.java:246)
[Service Control]   at 
org.opentools.minerva.pool.ObjectPool.createNewObject(ObjectPool.java:819)
[Service Control]   at 
org.opentools.minerva.pool.ObjectPool.getObject(ObjectPool.java:569)
[Service Control]   at 
org.opentools.minerva.pool.ObjectPool.getObject(ObjectPool.java:521)
[Service Control]   at 
org.opentools.minerva.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java:165)
[Service Control]   at 
org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:330)
[Service Control]   at 
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
[Service Control]   at java.lang.reflect.Method.invoke(Native Method)
[Service Control]   at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Service Control]   at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Service Control]   at org.jboss.util.ServiceControl.start(ServiceControl.java:97)
[Service Control]   at java.lang.reflect.Method.invoke(Native Method)
[Service Control]   at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Service Control]   at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Service Control]   at org.jboss.Main.init(Main.java:203)
[Service Control]   at org.jboss.Main$1.run(Main.java:107)
[Service Control]   at java.security.AccessController.doPrivileged(Native Method)
[Service Control]   at org.jboss.Main.main(Main.java:103)



what s going wrong there. Please, can sombody help me !


my configfile jboss.jcml

  !-- JDBC --
  mbean code=org.jboss.jdbc.JdbcProvider name=DefaultDomain:service=JdbcProvider
 !-- attribute 
name=Driversorg.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,interbase.interclient.Driver/a
 --bute
 attribute name=Driversinterbase.interclient.Driver/attribute
  /mbean


!-- Maillingliste [EMAIL PROTECTED] --
  mbean code=org.jboss.jdbc.XADataSourceLoader 
name=DefaultDomain:service=XADataSource,name=DefaultDS
 attribute name=PoolNameDefaultDS/attribute
 attribute 
name=DataSourceClassorg.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl/attribute
 attribute name=Propertiesuser=evermind;password=evermind/attribute
 attribute 
name=URLjdbc:interbase://pluto.lan//opt/interbase/db/altbau_katalog.gdb/attribute
 attribute name=GCMinIdleTime120/attribute
 attribute name=MaxSize10/attribute
 attribute name=JDBCUser /
 attribute name=Password /
 attribute name=GCEnabledfalse/attribute
 attribute name=InvalidateOnErrorfalse/attribute
 attribute name=TimestampUsedfalse/attribute
 attribute name=Blockingtrue/attribute
 attribute name=GCInterval12/attribute
 attribute name=IdleTimeout180/attribute
 attribute name=IdleTimeoutEnabledfalse/attribute
 attribute name=LoggingEnabledfalse/attribute
 attribute name=MaxIdleTimeoutPercent1.0/attribute
 attribute name=MinSize0/attribute
  /mbean


Greeting and very much thank you to all the list users, who are helped me until yet.


Thomas



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



RE: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error

2001-05-11 Thread John Menke

Vincent, you were able to get 4.0 beta 1 and JBoss 2.2.1 working?

I am running

Turbine TDK
Catalina 4.0 beta 1 - provided by Turbine TDK
JBoss2.2.1

Catalina and JBoss are running in seperate VM's



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Vincent
 Harcq
 Sent: Friday, May 11, 2001 5:01 AM
 To: Dev JBoss; [EMAIL PROTECTED]
 Subject: RE: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error


 Nope.

 Scott, my gentle jndi guru, does it make sense to change NamingContext
 so that it can understand jndi:, then use for java.naming.provider.url
 something like jndi://localhost:1099 to avoid this problem with
 catalina ?
 Or is it Catalina the source of the problem ?

   javax.naming.CommunicationException[Root exeption is
   java.rmi.ServerException: RemoteException occured in server
   thread; nested
   exception is java.rmi.UnmarshalException: error unmarshalling
   arguments;
   nested exception is java.net.MalformedURL exception: unknown
   protocol: jndi

 Vincent

  Hi!
  You are the first one to get this :(
  I also got this one on beta3 but it works fine for me on beta1 :)
  beta4 is just out, I will try again...
  Vincent.
 
  
   Maybe the -nonaming is not getting executed then? (if it fixed your
   problem). I am using Catalina from within the Turbine TDK which
  contains a
   schell script startup.sh which calls the catalina.sh script. I
  have added
   the -nonaming to this line so it reads
  
   $BASEDIR/catalina.sh start -nonaming $@
  
   This should turn naming off, but I still get the errors when
 I start the
   program this way.
  
  
Hey John
   
 Yes, I have tried that, and I still get the error.  (It seems
 like it has no
 effect)  Do you have this configuration working?
   
Not exactly. I'm using Catalina with another server application
that has its
own Naming service, and at the beginning I got the same error
   on startup,
but it went away with the -nonaming option.
We then have other problems with this jndi: protocol, also
  from previous
discussions it seems to me a Catalina bug: with us, every class
loaded from
web-inf/classes or web-inf/lib has a codebase like
jndi:/WEB-INF/classes/
or jar:jndi:/WEB-INF/lib/xxx.jar!/, so that if objects of
   these classes
are passed as arguments to any rmi method invocation, on the
other side the
class annotation is taken from the stream, but of course the
  classloader
cannot understand the Catalina-specific jndi: protocol.
The context class loader should take care of that probably, but
   I did not
figured it out yet why it doesn't. I miss Rickard !
   
Will live, will see.
   
Cheers
   
Simon
   
 
  Do you start Catalina with the -nonaming option, so that from it
  you connect
  to JBoss' Naming service ?
 
  Simon
 
   -Messaggio originale-
   Da: John Menke [mailto:[EMAIL PROTECTED]]
   Inviato: mercoledì 9 maggio 2001 23:30
   A: jboss
   Oggetto: [JBoss-user] Catalina and Jboss2.2.1
  InitialContext error
  
  
   This error is produced when I try to get an initial
  JNDI context.
  
   The error is:
  
   javax.naming.CommunicationException[Root exeption is
   java.rmi.ServerException: RemoteException occured in server
   thread; nested
   exception is java.rmi.UnmarshalException: error unmarshalling
   arguments;
   nested exception is java.net.MalformedURL exception: unknown
   protocol: jndi
  
  
   I can get InitalContext in Tomcat 3.2, but Catalina produces
   the error.
  
   Is there a workaround?


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://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



Re:Re: [JBoss-user] How to use getResourceAsStream() from a EJB

2001-05-11 Thread Pedro E. Gómez

What i am tryin to do is to read a XML file that is in the CLASSPATH. 
The XML file is what I call resource.

This file has some information that i need.



-
Message: 6 
 From: Guy Rouillier [EMAIL PROTECTED] 
 To: [EMAIL PROTECTED] 
 Subject: Re: [JBoss-user] How to use getResourceAsStream() from a EJB 
 Date: Fri, 11 May 2001 13:14:54 -0400 
 Reply-To: [EMAIL PROTECTED] 

 Show us the definition of resource. 

 - Original Message - 
 From: Pedro E. G=F3mez [EMAIL PROTECTED] 
 To: [EMAIL PROTECTED] 
 Sent: Thursday, May 10, 2001 9:56 PM 
 Subject: [JBoss-user] How to use getResourceAsStream() from a EJB 


  I need to read a resource that i have in the classpath, 
  
  The code is: 
  
  Object o =3D new Object(); 
  System.out.println(O es: + o); 
  Class c =3D o.getClass(); 
  System.out.println(Class es: + c); 
  System.out.println(Resource is: + c.getResourceAsStream(resource)); 
  
  
  But it does not work The resource is null. 
  
  The output is: 
  
  [CatalogoEJB] O es:java.lang.Object@7f94b1 
  [CatalogoEJB] Class es:class java.lang.Object 
  [CatalogoEJB] Resource is:null 
  
  
  
  __ 
  Message sent with Misiva 
  Visit us at www.pragma.com.co/misiva 

__
Message sent with Misiva
Visit us at http://www.pragma.com.co/misiva

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



RE: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error

2001-05-11 Thread John Menke

Vincent,  I finally got Catalina started with -nonaming... I had catalina.sh
start -nonaming and it was not working.  You must use catalina.sh
run -nonaming to get a Standalone version to run.  That being said, I STILL
GET THE SAME ERROR.  I have copied ALL the jar files from the JBoss client
directory into my WEB-INF/lib folder.  I am using the Turbine TDK so there
are extra jar files in the directory from what you may have.  Possibly this
is creating the problem?

Here is a list of the .jar files in the directory:  Can you give a list of
your jar files so I can compare?

WEB-INF/lib
TestBeanClient.jar
activation-1.01.jar
connector.jar
deploy.jar
ecs-1.4.1.jar
ejb.jar
hsql.jar
jaas.jar
jakarta-regexp-1.3-dev.jar
jboss-client.jar
jbossmq-client.jar
jbosssx-client.jar
jdbc-se2.0.jar
jdbc2_0-stdext.jar
jndi.jar
jnp-client.jar
jta-spec1_0_1.jar
jta1.0.1.jar
junit-3.2.jar
log4j-1.0.4.jar
mail-1.2.jar
mm.mysql-2.0.4.jar
postgresql.jar
stop.jar
turbine-2.1-dev-unrealeased.jar
velocity-1.0b2-dev.jar
village-1.5.1-dev.jar
xalan-1.2.1.jar
xerces-1.3.0.jar
xmlrpc.jar

Here is the code that creates the error:

 try {
  // Set up the naming provider. This may not always be necessary,
  // depending on how your Java system is configured.
  System.setProperty(java.naming.factory.initial,
org.jnp.interfaces.NamingContextFactory);
  System.setProperty(java.naming.provider.url,
localhost:1099);
  // Get a naming context
  InitialContext jndiContext = new InitialContext();

  // Get a reference to the Interest Bean
  Object ref  = jndiContext.lookup(interest/Interest);

  // Get a reference from this to the Bean's Home interface
  InterestHome home = (InterestHome)
PortableRemoteObject.narrow (ref, InterestHome.class);

  // Create an Interest object from the Home interface
  m_interest = home.create();
} catch(Exception e) {
   out.println(LIContext failed:  + e);
}

This code works great in 3.2




 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Vincent
 Harcq
 Sent: Friday, May 11, 2001 9:06 AM
 To: [EMAIL PROTECTED]
 Subject: RE: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error


 Yes, no problem with -nonaming : catalina.bat run -nonaming.
 server.xml :
 Context path= docBase=E:\Projects\web debug=0 reloadable=true/

 And all JBoss client JAR files in E:\Projects\web\WEB-INF\lib

 Nothing else changed to catalina installation directory

 Oh yes, another one,
 jndi.properties is not read (if I remember well) so I have to manually
 System.setProperty java.naming... just before calling new
 InitialContext()

 Vincent.

  -Message d'origine-
  De : [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]De la part de John Menke
  Envoyé : vendredi 11 mai 2001 15:10
  À : [EMAIL PROTECTED]
  Objet : RE: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error
 
 
  Vincent, you were able to get 4.0 beta 1 and JBoss 2.2.1 working?
 
  I am running
 
  Turbine TDK
  Catalina 4.0 beta 1 - provided by Turbine TDK
  JBoss2.2.1
 
  Catalina and JBoss are running in seperate VM's
 
 
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]On Behalf Of Vincent
   Harcq
   Sent: Friday, May 11, 2001 5:01 AM
   To: Dev JBoss; [EMAIL PROTECTED]
   Subject: RE: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error
  
  
   Nope.
  
   Scott, my gentle jndi guru, does it make sense to change NamingContext
   so that it can understand jndi:, then use for
 java.naming.provider.url
   something like jndi://localhost:1099 to avoid this problem with
   catalina ?
   Or is it Catalina the source of the problem ?
  
 javax.naming.CommunicationException[Root exeption is
 java.rmi.ServerException: RemoteException occured
 in server
 thread; nested
 exception is java.rmi.UnmarshalException: error
  unmarshalling
 arguments;
 nested exception is java.net.MalformedURL
 exception: unknown
 protocol: jndi
  
   Vincent
  
Hi!
You are the first one to get this :(
I also got this one on beta3 but it works fine for me on beta1 :)
beta4 is just out, I will try again...
Vincent.
   

 Maybe the -nonaming is not getting executed then? (if it
 fixed your
 problem). I am using Catalina from within the Turbine TDK which
contains a
 schell script startup.sh which calls the catalina.sh script. I
have added
 the -nonaming to this line so it reads

 $BASEDIR/catalina.sh start -nonaming $@

 This should turn naming off, but I still get the errors when
   I start the
 program this way.


  Hey John
 
   Yes, 

Re: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error

2001-05-11 Thread Rettig Christoph

Yes, no problem with -nonaming : catalina.bat run -nonaming.
server.xml :
Context path= docBase=E:\Projects\web debug=0 reloadable=true/

And all JBoss client JAR files in E:\Projects\web\WEB-INF\lib

Nothing else changed to catalina installation directory

Oh yes, another one,
jndi.properties is not read (if I remember well) so I have to manually
System.setProperty java.naming... just before calling new InitialContext()

  Hi!

  I'm using catalina in combination with the turbine framework and jbossMQ.
I also
  get exactly these communication errors when trying to get an initial
context.
  Which jar files exactly do you put in your web-inf\lib?? I tried your
suggestions
  (using jbossmq-client.jar) but the error stays the same

regards

  Chris ...

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



[JBoss-user] Bean Automatic Removal

2001-05-11 Thread François Charoy


Hi

is there a way to specify some timeout to remove a session bean from the
container after it has been passivated. This is something that can be done
regarding the spec, but it is not documented.
In fact I'm looking to a way to manage unexpected client deconnection and to
clean the container from session bean that are not referenced anymore.
Is there a clean way to do that.

François


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



Re: [JBoss-user] System.out,System.err

2001-05-11 Thread Scott M Stark

I see calls to System.out appearing in the server.log file in 2.2.1
You'll have to look further into the issue.

- Original Message - 
From: Scherr Gerolf [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 11, 2001 1:48 AM
Subject: [JBoss-user] System.out,System.err


 hi everybody!
 
 - it seems to me that System.out and System.err do not appear in server.log
 anymore in jboss 2.2.1
 is there a config flag to change this behaviour or do I have to redirect
 them manually to a file? - if yes, where would be a good place to do that?
 
 (we have some components which live in the server vm running as nt service,
 so we can't watch the console anymore)
 
 gerolf.



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



[JBoss-user] Problem with Remote Interface!!!

2001-05-11 Thread Madhu

Hi All,
   I have an Entity Bean 
Home : SubNetworkHome
Remote: SubNetwork
Bean: SubNetworkBean

I have a getData() method declared inside the Remote Interface, whose
implementation is given in the Bean class. 

SubNetData  data = subNetwork.getData();
This method returns a SubNetData Object.

The SubNetData is a Serializable class.

Please find the error produced in my server.log file while I am trying to
access the getData() method.

[SubNetworkBean] TRANSACTION ROLLBACK EXCEPTION:Load failed; nested exception is: 
java.lang.NullPointerException; nested exception is: 
java.rmi.ServerException: Load failed; nested exception is: 
java.lang.NullPointerException
[SubNetworkBean] java.rmi.ServerException: Load failed; nested exception is: 
[SubNetworkBean]java.lang.NullPointerException
[SubNetworkBean] java.lang.NullPointerException

Can anybody tell me what is the problem with my Remote Interface or my Entity
Bean.

Your help will be appreciated.

Regards,
Madhu


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



Re: [JBoss-user] Bean Automatic Removal

2001-05-11 Thread K.V. Vinay Menon

There is the section

   container-cache-conf

cache-policyorg.jboss.ejb.plugins.LRUStatefulContextCachePolicy/cache-pol
icy
cache-policy-conf
 min-capacity50/min-capacity
 max-capacity1000/max-capacity

 
 remover-period1800/remover-period
 max-bean-life1800/max-bean-life
 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

in standardjboss.xml that looks like what you might be interested in ..
probably...  in the block marked

Vinay
- Original Message -
From: François Charoy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 11, 2001 3:30 PM
Subject: [JBoss-user] Bean Automatic Removal



 Hi

 is there a way to specify some timeout to remove a session bean from the
 container after it has been passivated. This is something that can be done
 regarding the spec, but it is not documented.
 In fact I'm looking to a way to manage unexpected client deconnection and
to
 clean the container from session bean that are not referenced anymore.
 Is there a clean way to do that.

 François


 ___
 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] Unable to resolve JNDI name

2001-05-11 Thread James Cook

FWIW, I see a lot of ppl who use the classname as the lookup.

jim

- Original Message - 
From: Guy Rouillier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 11, 2001 1:10 PM
Subject: Re: [JBoss-user] Unable to resolve JNDI name


 My apologies for my previous post, which I wrote in a hurry.  You should of
 course do a lookup on the jndi name, which gets mapped to the ejb-name (via
 jboss.xml).   My second point still holds, however - using the home class
 name as your jndi name is confusing.
 
 - Original Message -
 From: Guy Rouillier [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, May 10, 2001 7:49 PM
 Subject: Re: [JBoss-user] Unable to resolve JNDI name
 
 
  You are supposed to do a lookup on the remote interface.  You will be
  returned a reference to a home object, from which you can call the
 create()
  method to get an object of the target class.  So I think the failure you
  indicate is appropriate.
 
  In your jboss.xml, why are you using your home classname as your jndi
 name?
  This is confusing, to say the least.
 
   jBoss.xml
   =
   jboss
 session
   ejb-namecom.asset.SMTPAdapter/ejb-name
   jndi-namecom.asset.SMTPAdapterHome/jndi-name
   configuration-name/configuration-name
 /session
   /enterprise-beans
   /jboss
  
  
   Code snippet in my jsp
   ==
   Context ctx = getInitialContext();
   Object home =
   ctx.lookup(com.asset.SMTPAdapter);//WORKS!
   Object home =
   ctx.lookup(com.asset.SMTPAdapterHome);//DOES NOT
   WORK!!!
 
 
 
  ___
  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] Is there a step by step guide to porting apps fr om iPlanet Applic ation Server to JBoss?

2001-05-11 Thread danch (Dan Christopherson)

What sorts of features are you using that JBoss doesn't support? 
Specifics here could save others headaches later on (and some might get 
implemented).

-danch

Samuel Bucholtz wrote:

 I fixed the descriptors, though there are a few things I had to rip out
 because JBoss does not support them that may or may not cause me problems in
 the future. They seem to work fine right now, most of my problem was that I
 wrote none of the code, so I was not sure what was doing what. ;-)
 
 Samuel
 
 -Original Message-
 From: danch (Dan Christopherson) [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 10, 2001 17:44
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] Is there a step by step guide to porting apps
 fr om iPlanet Applic ation Server to JBoss?
 
 
 Samuel Bucholtz wrote:
 
 
Thanks,

It is actually pretty simple. There are only a few beans and no entity

 beans
 
at all.

I just keep getting the same error, and have no clue what it is trying to
ask for.

org.jboss.ejb.DeploymentException: expected only one assembly-descriptor

 tag
 
 
 
 If you're still having problems with this, send me your descriptors.
 
 -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 mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error

2001-05-11 Thread Vincent Harcq

Hi!
Please note that I am using a 2.3 beta version so maybe there was some
changes in between.
But here are the jars I have

1. In Tomcat

E:\Projects\p1\tomcat4b1dir /s *.jar

 Directory of E:\Projects\p1\tomcat4b1\bin

06/01/2001  05:18   24.776 bootstrap.jar
06/01/2001  05:18   98.496 jndi.jar
06/01/2001  05:18   23.514 naming.jar
06/01/2001  05:18   74.753 servlet.jar

 Directory of E:\Projects\p1\tomcat4b1\lib

06/01/2001  05:18  188.406 crimson.jar
06/01/2001  05:18  272.734 jasper.jar
06/01/2001  05:18   11.809 jaxp.jar
23/02/2001  10:47   85.237 jdom.jar
06/01/2001  05:183.724 namingfactory.jar

 Directory of E:\Projects\p1\tomcat4b1\server

06/01/2001  05:18  490.878 catalina.jar
06/01/2001  05:18  188.406 crimson.jar
06/01/2001  05:18   29.809 jakarta-regexp-1.2.jar
06/01/2001  05:18   11.809 jaxp.jar
06/01/2001  05:18   31.416 warp.jar

2. In WEB-INF\lib

E:\Projects\VMI\main\UltraDevdir /s *.jar

 Directory of E:\Projects\p1\main\web\WEB-INF\lib

18/02/2001  01:10  175.666 hsql.jar
07/05/2001  09:49   88.843 jboss-client.jar
03/05/2001  16:18   58.461 jboss-j2ee.jar
03/05/2001  16:18  133.040 jbossmq-client.jar
04/05/2001  09:51   22.976 jbosssx-client.jar
04/05/2001  09:51   15.110 jnp-client.jar
25/02/2001  00:14  128.006 log4j.jar

 Total Files Listed:
   7 File(s)622.102 bytes
   0 Dir(s)   5.701.087.232 bytes free


 -Message d'origine-
 De : [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]De la part de Rettig
 Christoph
 Envoyé : vendredi 11 mai 2001 16:30
 À : [EMAIL PROTECTED]
 Objet : Re: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error


 Yes, no problem with -nonaming : catalina.bat run -nonaming.
 server.xml :
 Context path= docBase=E:\Projects\web debug=0 reloadable=true/

 And all JBoss client JAR files in E:\Projects\web\WEB-INF\lib

 Nothing else changed to catalina installation directory

 Oh yes, another one,
 jndi.properties is not read (if I remember well) so I have to manually
 System.setProperty java.naming... just before calling new
 InitialContext()

   Hi!

   I'm using catalina in combination with the turbine framework
 and jbossMQ.
 I also
   get exactly these communication errors when trying to get an initial
 context.
   Which jar files exactly do you put in your web-inf\lib?? I tried your
 suggestions
   (using jbossmq-client.jar) but the error stays the same

 regards

   Chris ...



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



Re: [JBoss-user] Slightly Off-Topic: Java on Solaris

2001-05-11 Thread danch (Dan Christopherson)

Davide Mora wrote:

Anyway, I'm wondering how much better Java is on the
Sparc/Solaris vs.
Linux/Intel.

 
 one of our customers moved from w2000 servers to
 sparc/solaris. for what i know under solaris (and
 other unix in general) java work worse than
 windows/linux, checkout this benchmark:
 
 http://www.volano.com/report.html


Actually those benchmarks tell me that the IBM VM is faster, and that 
most VMs are slightly faster under Windows than linux.


 
 for what i know (i didnt follow personally the tests)
 there are also problems on the usage of the CPUs in a
 multiprocessor system.


This was a historic problem with Unix VMs, caused by 'grean threads'. 
Sun's VMs for Solaris and Linux now both use native threads, so this 
isn't so true anymore.

With Linux, however, you'll hit scaling ceilings because of the thread 
model. Under Linux, each Java thread corresponds to a kernel thread, 
which is basically a process. This is a lot more scheduling load than 
the same software will develop under Solaris' thread model.

-danch


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



Re: [JBoss-user] Help Required

2001-05-11 Thread danch (Dan Christopherson)

See the 'JAWS Options' section of the manual at:

http://www.jboss.org/documentation/HTML/ch05s03.html

Adding the debugtrue/debug tag to your jaws.xml/standardjaws.xml 
will do it.

Madhu wrote:

 Hi All,
Is there any way through which I can findout the query which is formed
 from the finder methods inside the jaws.xml. 
 
 Thanks in advance
 Regards,
 Madhu
 
 ___
 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] Invalid Column Name

2001-05-11 Thread danch (Dan Christopherson)

Madhu wrote:

 Hi All,
  I am facing java.sql.SQLException: ORA-00904: invalid column name.
 This is the content of the server.log file. Please find the same below
 
   
   finder
  namefindAllSubNetworks/name
  query/query
   order/order
   /finder
  finder
 namefindByPrimaryKey/name
 querym_name = {0}/query


Use the SQL name (name) here rather than the ejb field name (m_name)


 order/order
  /finder
  finder
 namefindAllSubNetworksInDomain/name
 querym_domainName = {0}/query


Likewise.


 order/order
  /finder
  /entity  
 




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



RE: [JBoss-user] Integrating Apache+Tomcat+jBoss, can't see jBoss web apps

2001-05-11 Thread Norton Lam



Todd,

Could 
you please point me to this meesage, give me an approximate date as to 
when
you 
posted it, or repost it? The GeoCrawler search facility isn't 
working at the moment.

I sent 
a note to the GeoCrawler webmastera couple of days ago, but it still 
isn't
working 
yet.Thanx.Norton

  -Original Message-From: Todd Chaffee 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 01, 2001 4:49 
  PMTo: [EMAIL PROTECTED]Subject: Re: 
  [JBoss-user] Integrating Apache+Tomcat+jBoss, can't see jBoss web 
  appsWhen jboss deploys a tomcat app it has no way 
  deploying it to a specific virtual hosts. You can get more details by 
  searching the message archives with 'apache tomcat virtual host'. You 
  should find a very detailed message with my findings about how to work around 
  this limitation. Good luck.- Todd ChaffeeAt 12:58 PM 
  05/01/01 -0400, you wrote:
  I was able to get 
Apache to Serve Tomcat applications with the following configuration in my 
httpd.conf, however applications deployed through jBoss are not visible to 
Apache since the .war file is placed in jBoss deployment directly, anyone 
know what I should do to make applications deployed in jBoss available to 
Apache?Thanks! httpd.conf = 
DocumentRoot 
"/opt/JBoss-2.2.1_Tomcat-3.2.1/jakarta-tomcat-3.2.1/webapps" 
# Configure mod_jk # 
JkWorkersFile 
/opt/JBoss-2.2.1_Tomcat-3.2.1/jakarta-tomcat-3.2.1/conf/workers. 
properties JkLogFile 
/usr/local/apache/logs/mod_jk.log JkLogLevel warn # First 
Virtual Host. # VirtualHost 10.0.0.1:80  
DocumentRoot 
/opt/JBoss-2.2.1_Tomcat-3.2.1/jakarta-tomcat-3.2.1/webapps  ServerName foo.bar.com  JkMount 
/* ajp13  JkMount /*.jsp ajp13 
 JkMount /servlet/* ajp13 /VirtualHost 


RE: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error

2001-05-11 Thread John Menke

IT WORKED I DELETED jndi.jar from my WEB-INF-lib and then it worked
THANK YOU!

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Vincent
 Harcq
 Sent: Friday, May 11, 2001 11:27 AM
 To: [EMAIL PROTECTED]
 Subject: RE: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error


 Hi!
 Please note that I am using a 2.3 beta version so maybe there was some
 changes in between.
 But here are the jars I have

 1. In Tomcat

 E:\Projects\p1\tomcat4b1dir /s *.jar

  Directory of E:\Projects\p1\tomcat4b1\bin

 06/01/2001  05:18   24.776 bootstrap.jar
 06/01/2001  05:18   98.496 jndi.jar
 06/01/2001  05:18   23.514 naming.jar
 06/01/2001  05:18   74.753 servlet.jar

  Directory of E:\Projects\p1\tomcat4b1\lib

 06/01/2001  05:18  188.406 crimson.jar
 06/01/2001  05:18  272.734 jasper.jar
 06/01/2001  05:18   11.809 jaxp.jar
 23/02/2001  10:47   85.237 jdom.jar
 06/01/2001  05:183.724 namingfactory.jar

  Directory of E:\Projects\p1\tomcat4b1\server

 06/01/2001  05:18  490.878 catalina.jar
 06/01/2001  05:18  188.406 crimson.jar
 06/01/2001  05:18   29.809 jakarta-regexp-1.2.jar
 06/01/2001  05:18   11.809 jaxp.jar
 06/01/2001  05:18   31.416 warp.jar

 2. In WEB-INF\lib

 E:\Projects\VMI\main\UltraDevdir /s *.jar

  Directory of E:\Projects\p1\main\web\WEB-INF\lib

 18/02/2001  01:10  175.666 hsql.jar
 07/05/2001  09:49   88.843 jboss-client.jar
 03/05/2001  16:18   58.461 jboss-j2ee.jar
 03/05/2001  16:18  133.040 jbossmq-client.jar
 04/05/2001  09:51   22.976 jbosssx-client.jar
 04/05/2001  09:51   15.110 jnp-client.jar
 25/02/2001  00:14  128.006 log4j.jar

  Total Files Listed:
7 File(s)622.102 bytes
0 Dir(s)   5.701.087.232 bytes free


  -Message d'origine-
  De : [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]De la part de Rettig
  Christoph
  Envoyé : vendredi 11 mai 2001 16:30
  À : [EMAIL PROTECTED]
  Objet : Re: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error
 
 
  Yes, no problem with -nonaming : catalina.bat run -nonaming.
  server.xml :
  Context path= docBase=E:\Projects\web debug=0 reloadable=true/
 
  And all JBoss client JAR files in E:\Projects\web\WEB-INF\lib
 
  Nothing else changed to catalina installation directory
 
  Oh yes, another one,
  jndi.properties is not read (if I remember well) so I have to manually
  System.setProperty java.naming... just before calling new
  InitialContext()
 
Hi!
 
I'm using catalina in combination with the turbine framework
  and jbossMQ.
  I also
get exactly these communication errors when trying to get an initial
  context.
Which jar files exactly do you put in your web-inf\lib?? I tried your
  suggestions
(using jbossmq-client.jar) but the error stays the same
 
  regards
 
Chris ...
 


 ___
 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] Question on Security Role Mapping

2001-05-11 Thread Dale V. Georg


In my ejb-jar.xml, I define a number of security roles, for example:

security-role
descriptionAll users with read access to instance
1/description
role-nameInstance1Reader/role-name
/security-role

In other application servers that I have worked with, this role-name is
a logical role name, which in turn must be mapped to a physical
principle in the app server specific xml.  For example, in
weblogic-ejb-jar.xml, I would specify:

security-role-assignment
role-nameInstance1Reader/role-name
principal-nameguest/principal-name
/security-role-assignment

However, unless I am missing something, it seems that jboss.xml does not
provide an equivalent mapping, and that jBoss expects the role-name from
the ejb-jar.xml file itself to be the actual principle name.  Is this
correct?

Thanks,
Dale



   Dale V. Georg
   Technical Manager
   Indus Consultancy Services
   [EMAIL PROTECTED]
   (201) 261-3100 x229


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



Re: [JBoss-user] Deploying enterprise-app in JBOSS

2001-05-11 Thread danch (Dan Christopherson)

Keerthi Panneer wrote:

 Hi all,
 I am using Jboss-jetty combo...
 I have create a enterprise application (sample.ear) that has a JSP, a 
 session bean and an entity bean... It's working fine in J2EE RI server 
 of Sun Microsystems...
 I tried deploying it in JBoss... i could see the messages in the console 
 that JBoss has successfully deployed sample.ear... I have configured in 
 the EAR to use the context root sample.. but i could not find any 
 context-root created in JBoss/Jetty... This restricts me from 
 configuring JAWS as the document says to create jaws.xml in the web-inf 
 folder of application to specify the datasource settings for CMP EJB...


Urr?? jaws.xml goes in the META-INF of the ejb-jar.


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



Re: [JBoss-user] BUG?: when JAWS CMP field type is java.langObject

2001-05-11 Thread danch (Dan Christopherson)

I'd call this a JAWS bug.

I'd say that when JAWS pulls the object out of the database, it needs to 
check to see if it's a MarshalledObject and if it is extract the 
contained object (unless the bean field is declared as MarshalledObject!)

That sound right?

If you could enter this as a bug at sourceforge that would be good. It'd 
be great if you could take a stab at a patch, as well!

thanks,
danch

Matthew Cooper wrote:

 Somebody please tell me I am doing something really dumb and that this 
 explanation below is all wrong!
 
 I have a CMP managed entity with some cmp fields, one of which is 
 java.lang.Object. After persisting a value in this field (it happens to be a 
 String) and bouncing jboss to make it re-load from the db, imagine my 
 surprise when I got back an instance of  java.rmi.MarshalledObject.
 
 I've looked at the code in org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand and 
 this is what I think is happening...
 
 The method:
 
 setParameter(PreparedStatement stmt,
int idx,
int jdbcType,
Object value)
 
 determines this is a binary type and wraps it in a MashalledObject and 
 serializes it to a byte arry before writign that to the db.
 
 The method:
 
 getResultObject(ResultSet rs, int idx, Class destination)
 
 Finds no special methods for retriving the destination type (which is 
 java.lang.Object in my case) and so calls rs.getObject(idx). The code...
 
 if(destination.isAssignableFrom(result.getClass()))
 return result;
 
 then says is the result an instanec of my destination type (java.lang.Object) 
 which is always true in this case. hecne it doesn't do any unwrapping, etc.
 
 Can someone see if this reasoning is right please?
 
 I can think of 2 possible work arounds at present:
 
 1) Declare my field as byte[] and serialize the supplied object to it myself 
 (I'm pretty sure the byte[] cmp management works?)
 
 2) Declare the field as MyObject which just contains the real object. This 
 should fool the code into unwrapping MyObject and then I can extract the real 
 object from that.
 
 I don't like either really.
 
 Any help appreciated. Should I have posted this to the developers list?
 
 Thanks, Matty.
 
 ___
 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] Problem with Remote Interface!!!

2001-05-11 Thread danch (Dan Christopherson)

Are you sure there isn't another exception that happens right before it? 
The stack trace for the actual NullPointerException would be much more 
informative - this is probably coming from your bean code.

-danch

Madhu wrote:

 Hi All,
I have an Entity Bean 
 Home : SubNetworkHome
 Remote: SubNetwork
 Bean: SubNetworkBean
 
 I have a getData() method declared inside the Remote Interface, whose
 implementation is given in the Bean class. 
 
 SubNetData  data = subNetwork.getData();
 This method returns a SubNetData Object.
 
 The SubNetData is a Serializable class.
 
 Please find the error produced in my server.log file while I am trying to
 access the getData() method.
 
 [SubNetworkBean] TRANSACTION ROLLBACK EXCEPTION:Load failed; nested exception is: 
   java.lang.NullPointerException; nested exception is: 
   java.rmi.ServerException: Load failed; nested exception is: 
   java.lang.NullPointerException
 [SubNetworkBean] java.rmi.ServerException: Load failed; nested exception is: 
 [SubNetworkBean]  java.lang.NullPointerException
 [SubNetworkBean] java.lang.NullPointerException
 
 Can anybody tell me what is the problem with my Remote Interface or my Entity
 Bean.
 
 Your help will be appreciated.
 
 Regards,
 Madhu
 
 
 ___
 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] Integrating Apache+Tomcat+jBoss, can't see jBoss web apps

2001-05-11 Thread danch (Dan Christopherson)

There are search links on www.jboss.org that do work (non-GeoCrawler)

Norton Lam wrote:

 Todd,
 
  
 
 Could you please point me to this meesage, give me an approximate date 
 as to when
 
 you posted it, or repost it?  The GeoCrawler search facility isn't 
 working at the moment.
 
  
 
 I sent a note to the GeoCrawler webmaster a couple of days ago, but it 
 still isn't
 
 working yet.
 
 Thanx.
 
 Norton
 
 -Original Message-
 *From:* Todd Chaffee [mailto:[EMAIL PROTECTED]]
 *Sent:* Tuesday, May 01, 2001 4:49 PM
 *To:* [EMAIL PROTECTED]
 *Subject:* Re: [JBoss-user] Integrating Apache+Tomcat+jBoss, can't
 see jBoss web apps
 
 When jboss deploys a tomcat app it has no way deploying it to a
 specific virtual hosts.  You can get more details by searching the
 message archives with 'apache tomcat virtual host'.  You should find
 a very detailed message with my findings about how to work around
 this limitation.  Good luck.
 
 - Todd Chaffee
 
 At 12:58 PM 05/01/01 -0400, you wrote:
 
 I was able to get Apache to Serve Tomcat applications with the
 following configuration in my httpd.conf, however applications
 deployed through jBoss are not visible to Apache since the .war
 file is placed in jBoss deployment directly, anyone know what I
 should do to make applications deployed in jBoss available to Apache?

 Thanks!

 httpd.conf
 =

 DocumentRoot
 /opt/JBoss-2.2.1_Tomcat-3.2.1/jakarta-tomcat-3.2.1/webapps

 # Configure mod_jk
 #

 JkWorkersFile
 /opt/JBoss-2.2.1_Tomcat-3.2.1/jakarta-tomcat-3.2.1/conf/workers.
 properties
 JkLogFile /usr/local/apache/logs/mod_jk.log
 JkLogLevelwarn

 # First Virtual Host.
 #
 VirtualHost 10.0.0.1:80
   DocumentRoot
 /opt/JBoss-2.2.1_Tomcat-3.2.1/jakarta-tomcat-3.2.1/webapps
   ServerName foo.bar.com
   JkMount /* ajp13
   JkMount /*.jsp ajp13
   JkMount /servlet/* ajp13
 /VirtualHost 
 




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



Re: [JBoss-user] java:/comp/env problems?

2001-05-11 Thread Mike Hoolehan

I've had trouble with lookups from web componenets to the comp/env space if
I don't have a jboss-web.xml file included in my WEB-INF directory. Try in
cluding an empty jboss-web.xml file, like this:

?xml version=1.0?
jboss-web/

I included one, and my lookups suddenly worked.  (see a post I
dyslexically named env-entry JDNI name)

Mike

On (11/05/01 06:38), David Ward wrote:
 Hi all,
 
 I'm having a problem where my JSP can't find my ejb
 when in the java:comp/env namespace in JBoss.
 
 In using the pre-configured/bundled
 JBoss-2.2.1_Tomcat-3.2.1 on RedHat Linux 7.0 (intel),
 JDK 1.3.0_02, and my EAR I created using the
 deploytool deploys fine on j2eesdk1.2.1.  It's a
 simple app: a jsp looks up a stateless session ejb
 which looks up a DataSource pointing at Oracle 8i.  I
 followed the online docs to the T to set up the
 OracleDS.
 
 I've included the pertinant files, but basically, it
 doesn't
 look like the jsp can find the ejb when I reference it
 with java:comp/env/...  If I change my references back
 to not use java:comp/env/, it works on jboss but not
 on j2eesdk.  How can an EAR be completely J2EE
 portable when this happens?  Any suggestions?
 
 Also, another problem I'm having though is
 that (when I change my code so it can find the ejb) my
 ejb can't seem to find the datasource, though
 it can in the j2eesdk.  Is there something wrong with
 my jboss.xml file?
 
 Thanks for any help (and sorry for the long include
 below)...
 David
 
 
 || index.jsp
 
 %!
 private UserAuthority auth = null;
 public void jspInit() {
 try {
 InitialContext ctx = new InitialContext();
 Object ref =
 ctx.lookup(java:comp/env/ejb/UserAuthority);
 UserAuthorityHome home =
 (UserAuthorityHome)PortableRemoteObject.narrow(ref,
 UserAuthorityHome.class);
 auth = home.create();
 } catch (Exception e) {
 e.printStackTrace();
 }
 }
 public void jspDestroy() {
 auth = null;
 }
 %  
 
 || UserAuthorityBean.java
 
 private void openConnection()
 throws NamingException, SQLException
 {
 InitialContext ctx = new InitialContext();
 DataSource ds =
 (DataSource)ctx.lookup(java:comp/env/jdbc/database);
 mConnection = ds.getConnection();
 }
 
 
 
 || application.xml
 
 ?xml version=1.0 encoding=ISO8859_1?
 !DOCTYPE application PUBLIC '-//Sun Microsystems,
 Inc.//DTD J2EE Application 1.2//EN'
 'http://java.sun.com/j2ee/dtds/application_1_2.dtd'
 application
   display-nameUserTest/display-name
   descriptionApplication description/description
   module
 web
   web-uriwar-ic.war/web-uri
   context-rootuser/context-root
 /web
   /module
   module
 ejbejb-jar-ic.jar/ejb
   /module
 /application   
 
 
 || web.xml
 
 ?xml version=1.0 encoding=ISO8859_1?
 !DOCTYPE web-app PUBLIC '-//Sun Microsystems,
 Inc.//DTD Web Application 2.2//EN'
 'http://java.sun.com/j2ee/dtds/web-app_2.2.dtd'
 web-app
   display-nameUserTestWAR/display-name
   descriptionno description/description
   session-config
 session-timeout30/session-timeout
   /session-config
   welcome-file-list
 welcome-fileindex.jsp/welcome-file
   /welcome-file-list
   ejb-ref
 descriptionno description/description
 ejb-ref-nameejb/UserAuthority/ejb-ref-name
 ejb-ref-typeSession/ejb-ref-type
 hometest.UserAuthorityHome/home
 remotetest.UserAuthority/remote
   /ejb-ref
 /web-app   
 
 
 || ejb-jar.xml
 
 ?xml version=1.0 encoding=ISO8859_1?
 !DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems,
 Inc.//DTD Enterprise JavaBeans 1.1//EN'
 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'
 ejb-jar
   descriptionno description/description
   display-nameUserAuthorityJAR/display-name
   enterprise-beans
 session
   descriptionno description/description
   display-nameUserAuthority/display-name
   ejb-nameUserAuthority/ejb-name
   hometest.UserAuthorityHome/home
   remotetest.UserAuthority/remote
   ejb-classtest.UserAuthorityBean/ejb-class
   session-typeStateless/session-type
   transaction-typeBean/transaction-type
   resource-ref
 res-ref-namejdbc/database/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
   /resource-ref
 /session
   /enterprise-beans
 /ejb-jar   
 
 
 || jboss.xml
 
 jboss
   enterprise-beans
 session
   ejb-nameUserAuthority/ejb-name
   jndi-nameejb/UserAuthority/jndi-name
   resource-ref

RE: [JBoss-user] Is there a step by step guide to porting apps fr om iPlanet Applic ation Server to JBoss?

2001-05-11 Thread Samuel Bucholtz

Sure, I would be happy to point out the differences. These are the
descriptors being used (note I did not write most of this, so I am not 100%
sure what everything is doing. I am still chewing on this problem with the
JSP:include tag and being unable to run the app using the ear file. 
iPlanet-
# cat ias-ejb-jar.xml
?xml version=1.0 encoding=UTF-8?

!DOCTYPE ias-ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD iAS Enterprise
JavaBeans 1.0//EN'
'http://developer.iplanet.com/appserver/dtds/IASEjb_jar_1_0.dtd'

ias-ejb-jar
  enterprise-beans
session
  ejb-nameGameStateController/ejb-name
  guid{053B8760-D462-11D4-A3E6-0010A4C171BC}/guid
  pass-timeout0/pass-timeout
  is-thread-safefalse/is-thread-safe
  pass-by-valuefalse/pass-by-value
  session-timeout0/session-timeout
/session
session
  ejb-nameDBWrapper/ejb-name
  guid{2ccca1f8-824a-45de-8576-0832e7b7804e}/guid
  pass-timeout0/pass-timeout
  is-thread-safefalse/is-thread-safe
  pass-by-valuefalse/pass-by-value
  session-timeout0/session-timeout
  resource-ref
res-ref-nameoltp/res-ref-name
jndi-namejdbc/mlb/oltp/jndi-name
  /resource-ref
  resource-ref
res-ref-nameqry/res-ref-name
jndi-namejdbc/mlb/qry/jndi-name
  /resource-ref
/session
session
  ejb-nameOrderProcessor/ejb-name
  guid{6492365d-29e9-42c3-8d1b-5883e7a819c3}/guid
  pass-timeout0/pass-timeout
  is-thread-safefalse/is-thread-safe
  pass-by-valuefalse/pass-by-value
  session-timeout0/session-timeout
/session
session
  ejb-nameUserProfileAdmin/ejb-name
  guid{21937580-9944-11d4-a08a-64657374}/guid
  pass-timeout0/pass-timeout
  is-thread-safefalse/is-thread-safe
  pass-by-valuefalse/pass-by-value
  session-timeout0/session-timeout
  ejb-ref
ejb-ref-nameejb/LdapAdmin/ejb-ref-name
jndi-nameejb/LdapAdmin/jndi-name
  /ejb-ref
/session
session
  ejb-nameLdapAdmin/ejb-name
  guid{1f7166f0-957c-11d4-a083-0010a4c4739b}/guid
  pass-timeout0/pass-timeout
  is-thread-safefalse/is-thread-safe
  pass-by-valuefalse/pass-by-value
  session-timeout0/session-timeout
/session
session
  ejb-nameAdmin/ejb-name
  guid{075444e1-b4fe-11d4-a0b4-0010a4c4739b}/guid
  pass-timeout0/pass-timeout
  is-thread-safefalse/is-thread-safe
  pass-by-valuefalse/pass-by-value
  session-timeout0/session-timeout
/session
  /enterprise-beans
/ias-ejb-jar

jBoss-
# cat jboss.xml
?xml version=1.0 encoding=UTF-8?

jboss
  enterprise-beans
session
  ejb-nameGameStateController/ejb-name
  jndi-nameGameStateController/jndi-name
/session
session
  ejb-nameDBWrapper/ejb-name
  jndi-nameejb/DBWrapper/jndi-name
  resource-ref
res-ref-nameqry/res-ref-name
jndi-namejdbc/mlb/qry/jndi-name
resource-nameqry/resource-name
  /resource-ref
  resource-ref^M
res-ref-nameoltp/res-ref-name^M
jndi-namejdbc/mlb/oltp/jndi-name^M
resource-nameoltp/resource-name
  /resource-ref
/session
session
  ejb-nameOrderProcessor/ejb-name
  jndi-nameOrderProcessorEJB/jndi-name
/session
session
  ejb-nameUserProfileAdmin/ejb-name
  jndi-nameUserProfileAdminEJB/jndi-name
  ejb-ref
ejb-ref-nameejb/LdapAdmin/ejb-ref-name
jndi-nameLdapAdmin/jndi-name
  /ejb-ref
/session
session
  ejb-nameLdapAdmin/ejb-name
  jndi-nameLdapAdminEJB/jndi-name
/session
session
  ejb-nameAdmin/ejb-name
  jndi-nameAdminEJB/jndi-name
/session
  /enterprise-beans
/jboss

-Original Message-
From: danch (Dan Christopherson) [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 11, 2001 11:27
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Is there a step by step guide to porting apps
fr om iPlanet Applic ation Server to JBoss?


What sorts of features are you using that JBoss doesn't support? 
Specifics here could save others headaches later on (and some might get 
implemented).

-danch

Samuel Bucholtz wrote:

 I fixed the descriptors, though there are a few things I had to rip out
 because JBoss does not support them that may or may not cause me problems
in
 the future. They seem to work fine right now, most of my problem was that
I
 wrote none of the code, so I was not sure what was doing what. ;-)
 
 Samuel
 
 -Original Message-
 From: danch (Dan Christopherson) [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 10, 2001 17:44
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] Is there a step by step guide to porting apps
 fr om iPlanet Applic ation Server to JBoss?
 
 
 Samuel Bucholtz wrote:
 
 
Thanks,

It is actually pretty simple. There are only a few beans and no entity

 beans
 
at all.

I just keep getting the same error, and have no clue what it is trying to
ask for.


[JBoss-user] Plans for IIOP support in future releases of jBoss

2001-05-11 Thread Pete Bennett

I hope I am not going to get too flamed for posting this, but I have checked
:-

- the jBoss FAQ Q. Does jBoss support RMI/IIOP ? A. No
- all postings since I joined the group (no comments on future plans to
support IIOP)
- the mailing list archive (some questions and answers on the general topic
but no concrete answers to some of the questions I wish to pose)

... and not found the answer to the questions I wish to ask.

My situation is as follows :-

My company is likely to be in scenarios where it is using jBoss as an EJB
container to wrap a variety of existing services in enterprise beans (to
gain the pooling, scaleability, security, transactions etc... etc...).

However, within these scenarios we are very likely to face situations where
we have a large number of non-Java, non-JSP clients (e.g. native Windows
apps or hand-crafted Perl scripts) that wish to make use of the remote
interfaces exposed by these enterprise beans.

I can see three broad scenarios to handle this eventuality :-

- get hold of the Java stubs as normal and then wrap them into C++ stubs for
the native applications (C++, VB or Perl) to access (OK, but a little
inelegent and possibly requiring a lot of work per bean)

- expose calls into the jBoss container via a cross-platform protocol. The
two candidates which appeal to people in the C++, VB, Perl world are IIOP or
SOAP.

- I have started to work with the ZOAP module which looks very promising,
especially for the future, and can meet the cross-platform protocol needs I
describe nicely.

- However, IIOP is well established now and people are used to working with
it from all the languages I mention (plus the fact that you can easily
reverse compile Java remotes into IDL and back into C++ stubs). They may
have ORBs already integrated into their working environments so the learning
curve is much shallower.

Apologies if I am opening up an age-old, done and dusted discussion (in
which case, could someone point me to a reference to that
discussion/possibly update the FAQ to prevent posts like this in the future)

... but, if this is still an open topic ...

Why is it hard to support IIOP on the wire (technical issues ? no-one has
come forward wanting to implement it ?)

Is there a general demand amongst users of the mailing list to support the
sort of scenarios I lay out above ? How are you handling it now ?

Are there in fact plans behind the scenes to support IIOP in a future
version of jBoss ?

Thanks in advance for any help you can give me on this topic,
Pete

--
Pete Bennett (mailto:[EMAIL PROTECTED])
Principal Architect, Synomics Ltd.
http://www.synomics.com


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



RE: [JBoss-user] JBuilder Integration for edit/compile/test

2001-05-11 Thread John P. Coffey

Robert,

I have been having an absolute Bear of a time trying to integrate JBuilder
4.0 Foundation with JBoss-2.2.1, Is this your setup?  If so could you
clarify how you got it to work, the docs by Peter Henderson are just plain
wrong (well perhaps they were intended for JBoss 2.0 so I may be overstating
the issue, or else I'm completely missing the point, either way I cannot
find JBoss2.0 any longer to test my hypothesis).  My configuration starts up
and hangs under the debugger and spits out all sorts of exceptions on its
way.  I am running the conf/default rathr than the conf/tomcat
configuration.   Is there a way to send me the required library setup you
use, if so it would save me days.  I have struggled for days now and am very
frustrated.

Thanks

John Coffey
Pingtel Corp

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Robert
Schulz
Sent: Thursday, May 10, 2001 6:06 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] JBuilder Integration for edit/compile/test


We develop with JBuilder for JBoss - run your client out of JBuilder
and deploy the EJB stuff into JBoss with ant - based scripts. With the
hot deploy stuff this works very well for us and you get a short
development cycle.

R.

 -Original Message-
 From: Adam Lipscombe [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 11, 2001 10:30
 To: [EMAIL PROTECTED]
 Subject: [JBoss-user] JBuilder Integration for edit/compile/test


 Hi,

 Is it possible to integrate JBoss with JBuilder4?

 I need to create EJB's and minimise the edit/compile/test cycle.
 Ideally I want JB4 to compile and then deploy the bean to JBoss
 automatically.
 I believe (bit I haven't tried it) that JB4 can do this with
 the Inprise App
 Server and Weblogic...

 If anyone has achieved this I would love to know how...


 Thanks - Adam


 ___
 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] Question on Security Role Mapping

2001-05-11 Thread Scott M Stark

See the security tutorial: http://www.jboss.org/documentation/HTML/ch11s78.html

- Original Message - 
From: Dale V. Georg [EMAIL PROTECTED]
To: jBoss mailing List [EMAIL PROTECTED]
Sent: Friday, May 11, 2001 9:10 AM
Subject: [JBoss-user] Question on Security Role Mapping


 
 In my ejb-jar.xml, I define a number of security roles, for example:
 
 security-role
 descriptionAll users with read access to instance
 1/description
 role-nameInstance1Reader/role-name
 /security-role
 
 In other application servers that I have worked with, this role-name is
 a logical role name, which in turn must be mapped to a physical
 principle in the app server specific xml.  For example, in
 weblogic-ejb-jar.xml, I would specify:
 
 security-role-assignment
role-nameInstance1Reader/role-name
 principal-nameguest/principal-name
 /security-role-assignment
 
 However, unless I am missing something, it seems that jboss.xml does not
 provide an equivalent mapping, and that jBoss expects the role-name from
 the ejb-jar.xml file itself to be the actual principle name.  Is this
 correct?
 
 Thanks,
 Dale
 



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



[JBoss-user] jboss.xml for web app

2001-05-11 Thread Jason Trust

Which directory does the jboss.xml go in for web applications:

META-INF
or
WEB-INF

Since the web.xml file is in WEB-INF, I am unsure if it needs to go here to
be used, or in the META-INF.


Thanks,
Jason E. Trust


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



RE: [JBoss-user] jboss.xml for web app

2001-05-11 Thread Pete Bennett

jboss.xml goes into the meta-inf sub-directory of the .jar file in which
you've put your enterprise beans.

It supplements the j2ee generic ejb-jar.xml file that also lives in this
subdirectory and adds additional jBoss specific functionality with which to
configure your enterprise beans to the configurations mandated in the core
specification.

(web.xml is used to configure the JSP layer, not the EJB layer, hence its
different location)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jason Trust
Sent: 11 May 2001 18:24
To: [EMAIL PROTECTED]
Subject: [JBoss-user] jboss.xml for web app


Which directory does the jboss.xml go in for web applications:

META-INF
or
WEB-INF

Since the web.xml file is in WEB-INF, I am unsure if it needs to go here to
be used, or in the META-INF.


Thanks,
Jason E. Trust


___
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] java:/comp/env problems?

2001-05-11 Thread Scott M Stark

For the jsp issue you need to include a jboss-web.xml descriptor in the WEB-INF
dir to map the ejb-refs in the web-app.xml descriptor to the deployment jndi name:
jboss-web
   ejb-ref
 ejb-ref-nameejb/UserAuthority/ejb-ref-name
 jndi-nameejb/UserAuthority/jndi-name
   /ejb-ref
/jboss-web

Your jboss.xml is missing:

resource-managers
resource-manager res-class=javax.sql.DataSource
res-nameOracleDS/res-name
res-jndi-namejava:/OracleDS/res-jndi-name
/resource-manager
/resource-managers

- Original Message - 
From: David Ward [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 11, 2001 6:38 AM
Subject: [JBoss-user] java:/comp/env problems?


 Hi all,
 
 I'm having a problem where my JSP can't find my ejb
 when in the java:comp/env namespace in JBoss.
 
 In using the pre-configured/bundled
 JBoss-2.2.1_Tomcat-3.2.1 on RedHat Linux 7.0 (intel),
 JDK 1.3.0_02, and my EAR I created using the
 deploytool deploys fine on j2eesdk1.2.1.  It's a
 simple app: a jsp looks up a stateless session ejb
 which looks up a DataSource pointing at Oracle 8i.  I
 followed the online docs to the T to set up the
 OracleDS.
 
 I've included the pertinant files, but basically, it
 doesn't
 look like the jsp can find the ejb when I reference it
 with java:comp/env/...  If I change my references back
 to not use java:comp/env/, it works on jboss but not
 on j2eesdk.  How can an EAR be completely J2EE
 portable when this happens?  Any suggestions?
 
 Also, another problem I'm having though is
 that (when I change my code so it can find the ejb) my
 ejb can't seem to find the datasource, though
 it can in the j2eesdk.  Is there something wrong with
 my jboss.xml file?
 
 Thanks for any help (and sorry for the long include
 below)...
 David
 



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



[JBoss-user] jboss.xml res-ref-name exception during deploy

2001-05-11 Thread David Ward

Does anyone know why this jboss.xml file causes the
following exception when I drop it into
$JBOSS_HOM/deploy/.?

jboss
  enterprise-beans
session
  ejb-nameUserAuthority/ejb-name
  jndi-nameejb/UserAuthority/jndi-name
  resource-ref
  
resource-ref-namejdbc/database/resource-ref-name
resource-nameOracleDS/resource-name
  /resource-ref
/session
  /enterprise-beans
  resource-managers
resource-manager
res-class=javax.sql.DataSource
  res-nameOracleDS/res-name
  res-jndi-namejava:/OraceDS/res-jndi-name
/resource-manager
  /resource-managers
/jboss 

[Container factory]
Deploying:file:/usr/local/JBoss-2.2.1_Tomcat-3.2.1/jboss/tmp/deploy/Default/UserTest.ear
[Container factory] org.jboss.ejb.DeploymentException:
Error in jboss.xml for Bean UserAuthority: expected
one res-ref-name tag
[Container factory] at
org.jboss.metadata.ApplicationMetaData.importJbossXml(ApplicationMetaData.java:323)
[Container factory] at
org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:120)
[Container factory] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:388)




__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

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



Re: [JBoss-user] Plans for IIOP support in future releases of jBoss

2001-05-11 Thread Scott M Stark

At some point there will be support at its a requirement in EJB2.0.
Others have indicated they were looking into integrating IIOP but I
have not heard anything concrete. Search the archives at:
http://www.mail-archive.com/jboss-user%40lists.sourceforge.net/

- Original Message - 
From: Pete Bennett [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 11, 2001 9:58 AM
Subject: [JBoss-user] Plans for IIOP support in future releases of jBoss


 I hope I am not going to get too flamed for posting this, but I have checked
 :-
 
 - the jBoss FAQ Q. Does jBoss support RMI/IIOP ? A. No
 - all postings since I joined the group (no comments on future plans to
 support IIOP)
 - the mailing list archive (some questions and answers on the general topic
 but no concrete answers to some of the questions I wish to pose)
 
 ... and not found the answer to the questions I wish to ask.
 
 My situation is as follows :-
 
 My company is likely to be in scenarios where it is using jBoss as an EJB
 container to wrap a variety of existing services in enterprise beans (to
 gain the pooling, scaleability, security, transactions etc... etc...).
 
 However, within these scenarios we are very likely to face situations where
 we have a large number of non-Java, non-JSP clients (e.g. native Windows
 apps or hand-crafted Perl scripts) that wish to make use of the remote
 interfaces exposed by these enterprise beans.
 
 I can see three broad scenarios to handle this eventuality :-
 
 - get hold of the Java stubs as normal and then wrap them into C++ stubs for
 the native applications (C++, VB or Perl) to access (OK, but a little
 inelegent and possibly requiring a lot of work per bean)
 
 - expose calls into the jBoss container via a cross-platform protocol. The
 two candidates which appeal to people in the C++, VB, Perl world are IIOP or
 SOAP.
 
 - I have started to work with the ZOAP module which looks very promising,
 especially for the future, and can meet the cross-platform protocol needs I
 describe nicely.
 
 - However, IIOP is well established now and people are used to working with
 it from all the languages I mention (plus the fact that you can easily
 reverse compile Java remotes into IDL and back into C++ stubs). They may
 have ORBs already integrated into their working environments so the learning
 curve is much shallower.
 
 Apologies if I am opening up an age-old, done and dusted discussion (in
 which case, could someone point me to a reference to that
 discussion/possibly update the FAQ to prevent posts like this in the future)
 
 ... but, if this is still an open topic ...
 
 Why is it hard to support IIOP on the wire (technical issues ? no-one has
 come forward wanting to implement it ?)
 
 Is there a general demand amongst users of the mailing list to support the
 sort of scenarios I lay out above ? How are you handling it now ?
 
 Are there in fact plans behind the scenes to support IIOP in a future
 version of jBoss ?
 
 Thanks in advance for any help you can give me on this topic,
 Pete
 
 --
 Pete Bennett (mailto:[EMAIL PROTECTED])
 Principal Architect, Synomics Ltd.
 http://www.synomics.com
 



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



Re: [JBoss-user] jboss.xml for web app

2001-05-11 Thread Scott M Stark

There is no jboss.xml for web applications, this is only for ejb-jars. You
use a jboss-web.xml for web applictions and it goes into the WEB-INF
directory.

- Original Message - 
From: Jason Trust [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 11, 2001 10:23 AM
Subject: [JBoss-user] jboss.xml for web app


 Which directory does the jboss.xml go in for web applications:
 
 META-INF
 or
 WEB-INF
 
 Since the web.xml file is in WEB-INF, I am unsure if it needs to go here to
 be used, or in the META-INF.
 
 
 Thanks,
 Jason E. Trust
 
 
 ___
 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] unable to deploy tomcat-test.ear

2001-05-11 Thread rajeswarir

Hi 

I am unable to start tomcat using jboss.  tomcat-test.ear is not getting
deployed.

Documentation states that 
-
By default, when you start jBoss, it automatically tries to launch Tomcat as
well. To disable this feature, suppress the lines
MLET CODE = org.jboss.tomcat.TomcatService ARCHIVE=jboss.jar
CODEBASE=../lib/ext/
/MLET 
at the end of the file jboss.conf .

I don't find these exact lines in jboss\conf\jboss.conf or in
tomcat\conf\jboss.conf.

Following is the console log

[Auto deploy] Watching C:\JBoss221\jboss\deploy
[Auto deploy] Auto deploy of file:/C:/JBoss221/jboss/deploy/tomcat-test.ear
[J2EE Deployer Default] Deploy J2EE application:
file:/C:/JBoss221/jboss/deploy/tomcat-test.ear
[J2EE Deployer Default] Create application tomcat-test.ear
[J2EE Deployer Default] inflate and install module tomcat-test.war
[J2EE Deployer Default] install module tomcat-test.jar
[J2EE Deployer Default] add all ejb jar files to the common classpath
[J2EE Deployer Default] Module tomcat-test.ear is not running
[J2EE Deployer Default] Unable to stop module tomcat-test.war:
DefaultDomain:service=EmbeddedTomcat
[J2EE Deployer Default] unable to stop application tomcat-test.ear:
org.jboss.deployment.J2eeDeploymentException: Error(s) on stopping
application tomcat-test.ear:
Unable to stop module tomcat-test.war: fatal error while calling
:service=EmbeddedTomcat: DefaultDomain:service=EmbeddedTomcat/n
[J2EE Deployer Default] Destroying application tomcat-test.ear
[Auto deploy] Deployment
failed:file:/C:/JBoss221/jboss/deploy/tomcat-test.ear
[Auto deploy] org.jboss.deployment.J2eeDeploymentException: application
contains war files but no web container available
[Auto deploy]   at
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:406)
[Auto deploy]   at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
[Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[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
org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:332)
[Auto deploy]   at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
[Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Auto deploy]   at
org.jboss.util.ServiceControl.start(ServiceControl.java:97)
[Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Auto deploy]   at org.jboss.Main.init(Main.java:203)

---

Any help would be appreciated.

Also what is the root directory for Jboss.
When i give http://localhost:8083 what is the directory it is pointing to?

Any help  would be ver useful.

Thanks
Raji

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



Re: [JBoss-user] Question on Security Role Mapping

2001-05-11 Thread Dale V. Georg


Yes, I did read through that; in fact, I used that as my guide for
converting our app from WebLogic to jBoss, and everything is working
great.  I was just questioning whether the role-name in the ejb-jar.xml
mapping directly to the security principle was the only way jBoss
supported roles, or whether there was an additional mapping you could do
in the jboss.xml.  

The main reason I'm looking at this is we are trying to make our app
support multiple application servers.  Up until now, ejb-jar.xml was
generic and didn't require changes between the different app servers,
since any app server specific stuff was in the appserver.xml.  Further,
in the appserver.xml we are mapping all of our roles to guest by
default.  But if jBoss assumes that the role-name from ejb-jar.xml is
the principle name, then we may need to have a special case for jBoss.

Thanks,
Dale


Scott M Stark wrote:
 
 See the security tutorial: http://www.jboss.org/documentation/HTML/ch11s78.html
 
 - Original Message -
 From: Dale V. Georg [EMAIL PROTECTED]
 To: jBoss mailing List [EMAIL PROTECTED]
 Sent: Friday, May 11, 2001 9:10 AM
 Subject: [JBoss-user] Question on Security Role Mapping
 
 
  In my ejb-jar.xml, I define a number of security roles, for example:
 
  security-role
  descriptionAll users with read access to instance
  1/description
  role-nameInstance1Reader/role-name
  /security-role
 
  In other application servers that I have worked with, this role-name is
  a logical role name, which in turn must be mapped to a physical
  principle in the app server specific xml.  For example, in
  weblogic-ejb-jar.xml, I would specify:
 
  security-role-assignment
 role-nameInstance1Reader/role-name
  principal-nameguest/principal-name
  /security-role-assignment
 
  However, unless I am missing something, it seems that jboss.xml does not
  provide an equivalent mapping, and that jBoss expects the role-name from
  the ejb-jar.xml file itself to be the actual principle name.  Is this
  correct?
 
  Thanks,
  Dale
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user

-- 


   Dale V. Georg
   Technical Manager
   Indus Consultancy Services
   [EMAIL PROTECTED]
   (201) 261-3100 x229


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



Re: [JBoss-user] java:/comp/env problems?

2001-05-11 Thread David Ward

Scott,

Thanks!  That got rid of all my problems.  It now
finds everything, all the way down to the datasource,
fine.

Does anyone know where on the jboss site there are
docs that talk about the jboss-web.xml file?  There's
a big DTD gif outlining jboss.xml, but I dont'
remember reading anything about jboss-web.xml...

Thanks again,
David

==

Scott M Stark wrote:

 For the jsp issue you need to include a
jboss-web.xml descriptor in the WEB-INF
 dir to map the ejb-refs in the web-app.xml
descriptor to the deployment jndi name:
 jboss-web
 ejb-ref
 ejb-ref-nameejb/UserAuthority/ejb-ref-name
 jndi-nameejb/UserAuthority/jndi-name
 /ejb-ref
 /jboss-web
 
 Your jboss.xml is missing:
 
 resource-managers
 resource-manager res-class=javax.sql.DataSource
 res-nameOracleDS/res-name
 res-jndi-namejava:/OracleDS/res-jndi-name
 /resource-manager
 /resource-managers
 
 - Original Message - 
 From: David Ward [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, May 11, 2001 6:38 AM
 Subject: [JBoss-user] java:/comp/env problems?
 
 
 
 Hi all,
 
 I'm having a problem where my JSP can't find my ejb
 when in the java:comp/env namespace in JBoss.
 
 In using the pre-configured/bundled
 JBoss-2.2.1_Tomcat-3.2.1 on RedHat Linux 7.0
(intel),
 JDK 1.3.0_02, and my EAR I created using the
 deploytool deploys fine on j2eesdk1.2.1.  It's a
 simple app: a jsp looks up a stateless session ejb
 which looks up a DataSource pointing at Oracle 8i. 
I
 followed the online docs to the T to set up the
 OracleDS.
 
 I've included the pertinant files, but basically,
it
 doesn't
 look like the jsp can find the ejb when I reference
it
 with java:comp/env/...  If I change my references
back
 to not use java:comp/env/, it works on jboss but
not
 on j2eesdk.  How can an EAR be completely J2EE
 portable when this happens?  Any suggestions?
 
 Also, another problem I'm having though is
 that (when I change my code so it can find the ejb)
my
 ejb can't seem to find the datasource, though
 it can in the j2eesdk.  Is there something wrong
with
 my jboss.xml file?
 
 Thanks for any help (and sorry for the long include
 below)...
 David
 
 
 
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]

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


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

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



Re: [JBoss-user] Transaction Exceptions with OPTA2000

2001-05-11 Thread Leonard Kierstead



I too am getting the Transaction Exceptions described in note:

Re: [JBoss-user] Transaction Exceptions with OPTA2000
http://www.mail-archive.com/jboss-user%40lists.sourceforge.net/msg03820.html

I've also tried the Merant driver and get an exception in the
same place.  The Merant exception is: Unable to create PreparedStatement.

I've switched to InstandDB and everything works fine.

I've included the exceptions from both the Merant and INet drivers, on
both a create and a find.

I assume others are using JBoss with SQLServer?  Any suggestions on how
I can resolve this?

Thanks,

Leonard Kierstead


Using the Merant Driver (create unitinfo):

[JAWS] Create, id is com.cerulean.amstel1.UnitInfoPK@3e9
[Amstel1DB] Resource
'org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl@6d1dbe' enlisted for
'org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@ab323'.
[Amstel1DB] Pool Amstel1DB [1/1/10] gave out pooled object:
org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@ab323
[JAWS] Exists command executing: SELECT COUNT(*) FROM UnitInfo WHERE id=?
[JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=1001
[JAWS] Create command executing: INSERT INTO UnitInfo
(address,groupname,displayname,unitname,propstring,district,id) VALUES
(?,?,?,?,?,?,?)
[JAWS] java.sql.SQLException: Unable to create PreparedStatement!
[JAWS]  at
org.opentools.minerva.jdbc.xa.wrapper.XAClientConnection.prepareStatement(XA
ClientConnection.java:169)
[JAWS]  at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:158
)
[JAWS]  at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCreateEntityCommand.execute(JDBCCreateEn
tityCommand.java:135)
[JAWS]  at
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.createEntity(JAWSPersisten
ceManager.java:122)
...

Using the IDC driver (create unitinfo):

[JAWS] Create, id is com.cerulean.amstel1.UnitInfoPK@3e9
[Amstel1DB] Resource 'com.inet.tds.k@6e7a14' enlisted for
'com.inet.tds.k@6e7a14'.
[Amstel1DB] Pool Amstel1DB [1/1/10] gave out pooled object:
com.inet.tds.k@6e7a14
[Amstel1DB] [TDS Driver]XA_CONNECTION_GET
[Amstel1DB] SQL Server 7 unicode mode
[Amstel1DB] This test License expires on 31-May-2001. You can purchase the
driver at www.inetsoftware.de
[Amstel1DB] Driver: i-net OPTA 2000 4.00
[JAWS] Exists command executing: SELECT COUNT(*) FROM UnitInfo WHERE id=?
[JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=1001
[Amstel1DB] setObject:1,java.lang.Integer,4
[Amstel1DB] Statement.close
[Amstel1DB] SELECT COUNT(*) FROM UnitInfo WHERE id=?
[Amstel1DB] Statement.close
[Amstel1DB] [TDS Driver]XA_CONNECTION_FREE
[Amstel1DB] javax.transaction.xa.XAException: The XID is not valid.
[UnitInfo] XAException: tx=XidImpl [FormatId=257, GlobalId=Timmy2//0,
BranchQual=] errorCode=XAER_NOTA
[UnitInfo] javax.transaction.xa.XAException: The XID is not valid.
[UnitInfo]  at com.inet.tds.k.if(Unknown Source)
[UnitInfo]  at com.inet.tds.k.for(Unknown Source)
[UnitInfo]  at com.inet.tds.k.end(Unknown Source)
[UnitInfo]  at org.jboss.tm.TxCapsule.endResource(TxCapsule.java:1147)
[UnitInfo]  at org.jboss.tm.TxCapsule.delistResource(TxCapsule.java:541)
[UnitInfo]  at
org.jboss.tm.TransactionImpl.delistResource(TransactionImpl.java:99)
[UnitInfo]  at
org.opentools.minerva.jdbc.xa.XAConnectionFactory$2.closeConnection(XAConnec
tionFactory.java:97)
[UnitInfo]  at
org.opentools.minerva.jdbc.xa.XAConnectionFactory$2.connectionClosed(XAConne
ctionFactory.java:82)
[UnitInfo]  at com.inet.pool.c.a(Unknown Source)
...

Using the Merant driver (find unitinfo):

[Amstel1DB] Resource
'org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl@45fe3b' enlisted for
'org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@ab323'.
[Amstel1DB] Pool Amstel1DB [1/1/10] gave out pooled object:
org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@ab323
[JAWS] findAllUnits command executing: SELECT id FROM UnitInfo
[Amstel1DB] Pool Amstel1DB [0/1/10] returned object
org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@ab323 to the pool.
[UnitInfo] Activated bean UnitInfo with id =
com.cerulean.amstel1.UnitInfoPK@64
[Amstel1DB] Resource
'org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl@45fe3b' enlisted for
'org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@ab323'.
[Amstel1DB] Pool Amstel1DB [1/1/10] gave out pooled object:
org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@ab323
[JAWS] Load command executing: SELECT
address,groupname,displayname,unitname,propstring,district,id FROM UnitInfo
WHERE id=?
[JAWS] java.sql.SQLException: Unable to create PreparedStatement!
[JAWS]  at
org.opentools.minerva.jdbc.xa.wrapper.XAClientConnection.prepareStatement(XA
ClientConnection.java:169)
[JAWS]  at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:158
)
[JAWS]  at
org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntity
Command.java:82)
[JAWS]  at
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.loadEntity(JAWSPersistence
Manager.java:150)
[JAWS]  at

[JBoss-user] How to execute a JSP in a EJB

2001-05-11 Thread Pedro E. Gómez

Hello! 

 I am developing an application which has to send an email to some users. 

 The email is in HTML format, but what I have to do is to create the mail using some 
information from
 a Data Base and a HTML template. 

 The administrator can change the template every day. 

 What I want to do is to have a JSP page, and then, execute that page and send it to 
the users 

 Can I execute a JSP and put the code in a String for sending it to the users? 

 Thanks.

__
Message sent with Misiva
Visit us at http://www.pragma.com.co/misiva

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



Re: [JBoss-user] jboss.xml res-ref-name exception during deploy

2001-05-11 Thread Scott M Stark

Because it does not conform to the jboss.xml dtd. See:
http://www.jboss.org/documentation/HTML/ch06.html
Advanced container configuration : use of jboss.xml

- Original Message - 
From: David Ward [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, May 11, 2001 10:49 AM
Subject: [JBoss-user] jboss.xml res-ref-name exception during deploy


 Does anyone know why this jboss.xml file causes the
 following exception when I drop it into
 $JBOSS_HOM/deploy/.?
 
 jboss
   enterprise-beans
 session
   ejb-nameUserAuthority/ejb-name
   jndi-nameejb/UserAuthority/jndi-name
   resource-ref
   
 resource-ref-namejdbc/database/resource-ref-name
 resource-nameOracleDS/resource-name
   /resource-ref
 /session
   /enterprise-beans
   resource-managers
 resource-manager
 res-class=javax.sql.DataSource
   res-nameOracleDS/res-name
   res-jndi-namejava:/OraceDS/res-jndi-name
 /resource-manager
   /resource-managers
 /jboss 
 
 [Container factory]
 
Deploying:file:/usr/local/JBoss-2.2.1_Tomcat-3.2.1/jboss/tmp/deploy/Default/UserTest.ear
 [Container factory] org.jboss.ejb.DeploymentException:
 Error in jboss.xml for Bean UserAuthority: expected
 one res-ref-name tag
 [Container factory] at
 org.jboss.metadata.ApplicationMetaData.importJbossXml(ApplicationMetaData.java:323)
 [Container factory] at
 org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:120)
 [Container factory] at
 org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:388)
 
 
 
 
 __
 Do You Yahoo!?
 Yahoo! Auctions - buy the things you want at great prices
 http://auctions.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



Re: [JBoss-user] java:/comp/env problems?

2001-05-11 Thread Scott M Stark

Integrated support for jboss-web.xml independent of the web container
was just added recently and so has not been documented. The dtd is
available in the jboss cvs module as src/resources/org/jboss/metadata/jboss-web.dtd
which can be obtained online at sourceforge.

- Original Message - 
From: David Ward [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, May 11, 2001 11:52 AM
Subject: Re: [JBoss-user] java:/comp/env problems?


 Scott,
 
 Thanks!  That got rid of all my problems.  It now
 finds everything, all the way down to the datasource,
 fine.
 
 Does anyone know where on the jboss site there are
 docs that talk about the jboss-web.xml file?  There's
 a big DTD gif outlining jboss.xml, but I dont'
 remember reading anything about jboss-web.xml...
 
 Thanks again,
 David



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



Re: [JBoss-user] CMP finder method problem

2001-05-11 Thread Jason Wells

I turned all this on, and although I do get additional debug printing from
the datasource connection pool, I still get no SQL statements in either the
console output or in server.log.

Any other ideas?

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 11, 2001 1:07 AM
Subject: RE: [JBoss-user] CMP finder method problem


  I could get to the bottom of this if I could just see what
  the container is doing when the findAll() is triggered.
  My question is: is there a way to print or log the SQL SELECT
  statement that the container has executed on my entity bean's
  behalf? If not, can anyone suggest a good way to debug
  something like this?

 Yes, you can (there are few places where you can turn logging on and off):

 jaws.xml or standardjaws.xml and specify:
 jaws
   ...
   debugtrue/debug
   ...
 /jaws

 jboss.xml or standardjboss.xml in you CMP container configuration:

 !-- prints the method invoked by container --
 call-loggingtrue/call-logging

 in jboss.jcml in your datasource configuration:

 mbean ...
   ...
   attribute name=LoggingEnabledtrue/attribute
 /mbean


 Also, do not forget to watch the server.log, not the console output,
because
 SQL statements appear only in server log (at least in my case).

 Roman

 ___
 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] jBoss architecture question

2001-05-11 Thread Jim Archer

Hello..

--On Friday, May 11, 2001 8:25 AM +0100 Kimpton,C (Chris) 
[EMAIL PROTECTED] wrote:

 So if each java process I see is a thread within the same VM,
 does anyone
 know what causes a new thread to be started?


 new Thread();

 ;-)

Yeah, OK...


 I presume you have a performance problem and your trying to track down
 where things are slow?  In which case look at optimisation tools

Not necesserally a performance problem. We have been load testing for the 
purpose of seeing what might fall over and I was just trying to get an 
understanding of what the app server is doing, how much RAM is being used, 
and so on. Ultimately, we hope to be running our app on a Debian/Linux box 
with Jetty, jBoss and PostgreSQL.

All the threads also raise a shutdown question. We have written an init.d 
script to gracefully start and stop jBoss as a server task, in the same 
manner as other Debian processes. If the script issues a kill to each 
thread, will this produce a gracefull shutdown, or will it terminate each 
thread ungracefully?

Any ideas here?


Tnanks...

Jim



I shall be telling this with a sigh
Somewhere ages and ages hence:
Two roads diverged in a wood, and I -
I took the one less traveled by,
And that has made all the difference.

- Robert Frost, 1916


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



Re: [JBoss-user] CMP finder method problem

2001-05-11 Thread K.V. Vinay Menon

Jason,
The sql statements should appear at server start up in the server log if
you set debug to true in the standardjaws file. They will come be logged
just after the beans are deployed. Am surprised that it is not showing up.
Is there any sql at all being generated?

Vinay
- Original Message -
From: Jason Wells [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 11, 2001 9:11 PM
Subject: Re: [JBoss-user] CMP finder method problem


 I turned all this on, and although I do get additional debug printing from
 the datasource connection pool, I still get no SQL statements in either
the
 console output or in server.log.

 Any other ideas?

 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, May 11, 2001 1:07 AM
 Subject: RE: [JBoss-user] CMP finder method problem


   I could get to the bottom of this if I could just see what
   the container is doing when the findAll() is triggered.
   My question is: is there a way to print or log the SQL SELECT
   statement that the container has executed on my entity bean's
   behalf? If not, can anyone suggest a good way to debug
   something like this?
 
  Yes, you can (there are few places where you can turn logging on and
off):
 
  jaws.xml or standardjaws.xml and specify:
  jaws
...
debugtrue/debug
...
  /jaws
 
  jboss.xml or standardjboss.xml in you CMP container configuration:
 
  !-- prints the method invoked by container --
  call-loggingtrue/call-logging
 
  in jboss.jcml in your datasource configuration:
 
  mbean ...
...
attribute name=LoggingEnabledtrue/attribute
  /mbean
 
 
  Also, do not forget to watch the server.log, not the console output,
 because
  SQL statements appear only in server log (at least in my case).
 
  Roman
 
  ___
  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] J2EE Pet Store 1.1.1

2001-05-11 Thread Da-Ming Duan

I am trying to install Pet Store in JBoss-2.2.1_Tomcat-3.2.1 but can not
find Pet Store version 1.1.1. The only versions available on Sun's web
site are 1.1.2 and 1.0.1. The JBoss patch  available on the JBoss web
site is 1.1.1.  I tried to rebuild the ear file for Pet store1.1.2 with
JBoss Patch 1.1.1 and got some errors (can not find files due to, I
think, directory inconsistancy). Please help as how to resolve this
problem.

Thank you very much.

Da-Ming


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



Re: [JBoss-user] jboss.xml res-ref-name exception during deploy

2001-05-11 Thread Guy Rouillier

No, the problem you indicate below was not in res-jndi-name.  It was because
you used resource-ref-name
when you should have used res-ref-name.  Still a typo, but the wrong one.
gr

- Original Message -
From: David Ward [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, May 11, 2001 3:09 PM
Subject: Re: [JBoss-user] jboss.xml res-ref-name exception during deploy


 Please ignore this posting.  I had a typo and had
 resolved the problem with an earlier posting's help
 (java:/comp/env problems?) anyways (thanks again,
 Scott).

 BTW, the typo was in the res-jndi-name; I had
 java:/OraceDS instead of java:/OracleDS.  Don't you
 just love typos?

  jboss
  enterprise-beans
  session
  ejb-nameUserAuthority/ejb-name
  jndi-nameejb/UserAuthority/jndi-name
  resource-ref
 
  resource-ref-namejdbc/database/resource-ref-name
  resource-nameOracleDS/resource-name
  /resource-ref



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



Re: [JBoss-user] How to execute a JSP in a EJB

2001-05-11 Thread K.V. Vinay Menon

1. JSP  has HTML Form
2. Form is 'POSTED' to a servlet
3. Servlet extracts the form data - i.e. mail contents + other params
4. A session bean in accessed that fronts an entity bean as well.
5. The data from teh database is got from the entity bean
6. The session bean compiles the mai and uses a mail handler -either another
bean or a simple java class to send the mail.

Hopefully everyone is happy after reading the mail.

Vinay
- Original Message -
From: Pedro E. Gómez [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 11, 2001 7:46 PM
Subject: [JBoss-user] How to execute a JSP in a EJB


 Hello!

  I am developing an application which has to send an email to some users.

  The email is in HTML format, but what I have to do is to create the mail
using some information from
  a Data Base and a HTML template.

  The administrator can change the template every day.

  What I want to do is to have a JSP page, and then, execute that page and
send it to the users

  Can I execute a JSP and put the code in a String for sending it to the
users?

  Thanks.

 __
 Message sent with Misiva
 Visit us at http://www.pragma.com.co/misiva

 ___
 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] Firewall and JBoss

2001-05-11 Thread Bob Cober

Help!
I am interested in locking the ports JBoss uses.
1099 if the default JNDI lookup that is fine.
 is the default RMI Object Port that can be controlled in jboss.xml.
There is a third port that seems to be randomly assigned everytime the 
server is started.  I have seen 1591, 2291, etc.
I believe this port may be part of the default RMI Socket Factory or 
something.  How can I control it?

Thanks for any help you can provide


_
Get your FREE download of MSN Explorer at http://explorer.msn.com


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



RE: [JBoss-user] Firewall and JBoss

2001-05-11 Thread Filip Hanik

you also have the JMX HTTPConnector port - I believe this one is 8082

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net 

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Bob Cober
 Sent: Friday, May 11, 2001 4:45 PM
 To: [EMAIL PROTECTED]
 Subject: [JBoss-user] Firewall and JBoss
 
 
 Help!
 I am interested in locking the ports JBoss uses.
 1099 if the default JNDI lookup that is fine.
  is the default RMI Object Port that can be controlled in jboss.xml.
 There is a third port that seems to be randomly assigned everytime the 
 server is started.  I have seen 1591, 2291, etc.
 I believe this port may be part of the default RMI Socket Factory or 
 something.  How can I control it?
 
 Thanks for any help you can provide
 
 
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.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



Re: [JBoss-user] J2EE Pet Store 1.1.1

2001-05-11 Thread Richard Feit

Hopefully 1.1.2 is not too hard to patch, but I put out my copy of 1.1.1 at 
http://richfeit.privatei.com/jboss/javapetstore-1_1_1.zip in case anyone 
needs it.

Rich


At 03:44 PM 5/11/2001 -0600, you wrote:
I am trying to install Pet Store in JBoss-2.2.1_Tomcat-3.2.1 but can not
find Pet Store version 1.1.1. The only versions available on Sun's web
site are 1.1.2 and 1.0.1. The JBoss patch  available on the JBoss web
site is 1.1.1.  I tried to rebuild the ear file for Pet store1.1.2 with
JBoss Patch 1.1.1 and got some errors (can not find files due to, I
think, directory inconsistancy). Please help as how to resolve this
problem.

Thank you very much.

Da-Ming


___
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] unable to deploy tomcat-test.ear

2001-05-11 Thread K.V. Vinay Menon

1. If your run.bat under JBOSS_HOME/bin has the start up specified as

java  -classpath %CLASSPATH% %JAXP% org.jboss.Main tomcat %1 %2 %3 %4 %5
%6 %7 %8 %9

it will use the tomcat configuration directory under JBOSS_HOME/conf/tomcat

Note the 'tomcat' option specified.

2. Under JBOSS_HOME/conf/tomcat open file jboss.jcml

There should be something like
mbean code=org.jboss.tomcat.EmbeddedTomcatService
name=DefaultDomain:service=EmbeddedTomcat /

Make sure this is uncommented i.e. as above.

To check if tomcat is running point your browser to localhost:8080.

If all this still does not bring up the tomcat engine please send the server
start up log.

Vinay
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 11, 2001 7:06 PM
Subject: [JBoss-user] unable to deploy tomcat-test.ear


 Hi

 I am unable to start tomcat using jboss.  tomcat-test.ear is not getting
 deployed.

 Documentation states that
 -
 By default, when you start jBoss, it automatically tries to launch Tomcat
as
 well. To disable this feature, suppress the lines
 MLET CODE = org.jboss.tomcat.TomcatService ARCHIVE=jboss.jar
 CODEBASE=../lib/ext/
 /MLET
 at the end of the file jboss.conf .
 
 I don't find these exact lines in jboss\conf\jboss.conf or in
 tomcat\conf\jboss.conf.

 Following is the console log
 
 [Auto deploy] Watching C:\JBoss221\jboss\deploy
 [Auto deploy] Auto deploy of
file:/C:/JBoss221/jboss/deploy/tomcat-test.ear
 [J2EE Deployer Default] Deploy J2EE application:
 file:/C:/JBoss221/jboss/deploy/tomcat-test.ear
 [J2EE Deployer Default] Create application tomcat-test.ear
 [J2EE Deployer Default] inflate and install module tomcat-test.war
 [J2EE Deployer Default] install module tomcat-test.jar
 [J2EE Deployer Default] add all ejb jar files to the common classpath
 [J2EE Deployer Default] Module tomcat-test.ear is not running
 [J2EE Deployer Default] Unable to stop module tomcat-test.war:
 DefaultDomain:service=EmbeddedTomcat
 [J2EE Deployer Default] unable to stop application tomcat-test.ear:
 org.jboss.deployment.J2eeDeploymentException: Error(s) on stopping
 application tomcat-test.ear:
 Unable to stop module tomcat-test.war: fatal error while calling
 :service=EmbeddedTomcat: DefaultDomain:service=EmbeddedTomcat/n
 [J2EE Deployer Default] Destroying application tomcat-test.ear
 [Auto deploy] Deployment
 failed:file:/C:/JBoss221/jboss/deploy/tomcat-test.ear
 [Auto deploy] org.jboss.deployment.J2eeDeploymentException: application
 contains war files but no web container available
 [Auto deploy]   at
 org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:406)
 [Auto deploy]   at
 org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
 [Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
 [Auto deploy]   at
 com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
 [Auto deploy]   at
 com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
 [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
 org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:332)
 [Auto deploy]   at
 org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
 [Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
 [Auto deploy]   at
 com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
 [Auto deploy]   at
 com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
 [Auto deploy]   at
 org.jboss.util.ServiceControl.start(ServiceControl.java:97)
 [Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
 [Auto deploy]   at
 com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
 [Auto deploy]   at
 com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
 [Auto deploy]   at org.jboss.Main.init(Main.java:203)

 ---

 Any help would be appreciated.

 Also what is the root directory for Jboss.
 When i give http://localhost:8083 what is the directory it is pointing to?

 Any help  would be ver useful.

 Thanks
 Raji

 ___
 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] CMP finder method problem

2001-05-11 Thread Jason Wells

Yeah, I know, I'm surprised too, but the SQL statments definitely don't show
up anywhere in the server log or the console output. I've gone through it
all very thoroughly. Some SQL must be being generated, since one of the
entity beans works fine. Yet none of it shows up in the debug.

Is there any other debug I can turn on, other than what I've already done:

- Adding debugtrue/debug to jaws.xml
- Adding debugtrue/debug to standardjaws.xml
- Setting call-loggingtrue/call-logging in standardjboss.xml (under
Standard CMP EntityBean, which is what I've written)
- Setting attribute name=LoggingEnabledtrue/attribute for the
connection pool I'm using

Did I miss anything?

Thanks,
Jason

- Original Message -
From: K.V. Vinay Menon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 11, 2001 2:35 PM
Subject: Re: [JBoss-user] CMP finder method problem


 Jason,
 The sql statements should appear at server start up in the server log
if
 you set debug to true in the standardjaws file. They will come be logged
 just after the beans are deployed. Am surprised that it is not showing up.
 Is there any sql at all being generated?

 Vinay
 - Original Message -
 From: Jason Wells [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, May 11, 2001 9:11 PM
 Subject: Re: [JBoss-user] CMP finder method problem


  I turned all this on, and although I do get additional debug printing
from
  the datasource connection pool, I still get no SQL statements in either
 the
  console output or in server.log.
 
  Any other ideas?
 
  - Original Message -
  From: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, May 11, 2001 1:07 AM
  Subject: RE: [JBoss-user] CMP finder method problem
 
 
I could get to the bottom of this if I could just see what
the container is doing when the findAll() is triggered.
My question is: is there a way to print or log the SQL SELECT
statement that the container has executed on my entity bean's
behalf? If not, can anyone suggest a good way to debug
something like this?
  
   Yes, you can (there are few places where you can turn logging on and
 off):
  
   jaws.xml or standardjaws.xml and specify:
   jaws
 ...
 debugtrue/debug
 ...
   /jaws
  
   jboss.xml or standardjboss.xml in you CMP container configuration:
  
   !-- prints the method invoked by container --
   call-loggingtrue/call-logging
  
   in jboss.jcml in your datasource configuration:
  
   mbean ...
 ...
 attribute name=LoggingEnabledtrue/attribute
   /mbean
  
  
   Also, do not forget to watch the server.log, not the console output,
  because
   SQL statements appear only in server log (at least in my case).
  
   Roman
  
   ___
   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: [JBoss-user] Postgres woes

2001-05-11 Thread Michael Bilow

How is the data source declared in jboss.jcml?

Are you on Potato (with Postgres 7.0.2) or Woody (with Postgres 7.1)?

Are you relying on the libpgjava package or did you build the JAR?

-- Mike


On 2001-05-10 at 01:41 +0100, Jim Downing wrote:

 Hi, 
 I'm trying to port our J2EE app from NT/Oracle to Debian/Postgresql. The
 postgres datasource is connecting fine on startup, but when any
 ejbCreate method is called (i.e. an INSERT is called) postgresql throws
 this:
 
 java.lang.reflect.UndeclaredThrowableException:
 javax.transaction.RollbackException: Unable to commit, tx=XidImpl
 [FormatId=257, GlobalId=lovestuffer.internal.paribus.com//3,
 BranchQual=] status=STATUS_ROLLEDBACK
 at org.jboss.tm.TxCapsule.commit(TxCapsule.java:368)
 at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:76)
 at
 org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:318)
 ...
 
 I've been able to create and drop tables through jdbc with the ant task
 sql, I have the right driver, and the same application deploys and
 runs successfully with an Oracle datasource. 
 
 I'm confused! Any tips gladly received.
 
 jim


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



Re: [JBoss-user] jBoss architecture question

2001-05-11 Thread danch

Jim Archer wrote:

 Hello..
 
 --On Friday, May 11, 2001 8:25 AM +0100 Kimpton,C (Chris) 
 [EMAIL PROTECTED] wrote:
 
 So if each java process I see is a thread within the same VM,
 does anyone
 know what causes a new thread to be started?
 
 
 new Thread();
 
 ;-)
 
 
 Yeah, OK...
 
 
 I presume you have a performance problem and your trying to track down
 where things are slow?  In which case look at optimisation tools
 
 
 Not necesserally a performance problem. We have been load testing for 
 the purpose of seeing what might fall over and I was just trying to get 
 an understanding of what the app server is doing, how much RAM is being 
 used, and so on. Ultimately, we hope to be running our app on a 
 Debian/Linux box with Jetty, jBoss and PostgreSQL.
 
 All the threads also raise a shutdown question. We have written an 
 init.d script to gracefully start and stop jBoss as a server task, in 
 the same manner as other Debian processes. If the script issues a kill 
 to each thread, will this produce a gracefull shutdown, or will it 
 terminate each thread ungracefully?
 

The kill should be sent to the parent of all the threads. If you look at 
ps -axf output you'll see that run.sh spawns one process, which is then 
the parent for all the threads. A change in run.sh to save the pid of 
the java process into a file in var would be the best way to accomplish 
this.

-danch


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



[JBoss-user] Deploy Problem

2001-05-11 Thread i_am_philips

Hi,

I tried to Deploy the sample session bean in Jboss.  But i couldnt.  Please help me to 
solve this problem

thanks in advance
NewBie

I am using Windows 2000, JDK 1.2


 Server Console Error ===

[J2EE Deployer Default] Starting interest.jar failed!
[J2EE Deployer Default] Module interest.jar is not running
[J2EE Deployer Default] Destroying application interest.jar
[Auto deploy] Deployment failed:file:/C:/Temp/JBoss/jboss/deploy/interest.jar
[Auto deploy] org.jboss.deployment.J2eeDeploymentException: Error while starting
 interest.jar: Could not deploy file:/C:/Temp/JBoss/jboss/tmp/deploy/Default/int
erest.jar
[Auto deploy]   at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeploy
er.java, Compiled Code)
[Auto deploy]   at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:17
8)
[Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy]   at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
.java:1628)
[Auto deploy]   at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
.java:1523)
[Auto deploy]   at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
[Auto deploy]   at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java, Compiled Co
de)
[Auto deploy]   at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java, Co
mpiled Code)
[Auto deploy]   at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.
java:93)
[Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy]   at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
.java:1628)
[Auto deploy]   at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
.java:1523)
[Auto deploy]   at org.jboss.util.ServiceControl.start(ServiceControl.java, Comp
iled Code)
[Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy]   at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
.java:1628)
[Auto deploy]   at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
.java:1523)
[Auto deploy]   at org.jboss.Main.init(Main.java, Compiled Code)
[Auto deploy]   at org.jboss.Main$1.run(Main.java:107)
[Auto deploy]   at java.security.AccessController.doPrivileged(Native Method)
[Auto deploy]   at org.jboss.Main.main(Main.java, Compiled Code)




---
Runbox Mail Manager - www.runbox.no
Gratis epost-tjeneste

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