Re: [JBoss-user] JBossSx -- Authentication Exception

2001-07-06 Thread Scott M Stark

Use the 2.2.2 JBoss/Tomcat bundle with the integrated security and go
through the security tutorial:
http://www.jboss.org/documentation/HTML/ch11s84.html

- Original Message -
From: "Ivan Novick" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 10:40 PM
Subject: [JBoss-user] JBossSx -- Authentication Exception


> Hi,
>
> I am using the org.jboss.security.auth.spi.UsersRolesLoginModule
>
> There is a servlet trying to access a Session Bean.  A message in JBoss
> window says:  "user  'bond' authenticated."
> Then the Home Interface is found with no errors.
>
> However on the line where the session bean is created, an exception is
> thrown that says: "Authentication Exception, principal=null"
>
> It seems that altough the login was successfull with a user name the
> princpal is still being registered as null and the attempt to create a
> session bean is rejected.
>
> Does anyone have an insight into why the prinicipal is showing up as null,
> or as to why exception is thrown even though the login appears to be
> successful.  Any thoughts are greatly appreciated,
>
> Ivan
>



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



[JBoss-user] JBossSx -- Authentication Exception

2001-07-06 Thread Ivan Novick

Hi,

I am using the org.jboss.security.auth.spi.UsersRolesLoginModule

There is a servlet trying to access a Session Bean.  A message in JBoss
window says:  "user  'bond' authenticated."
Then the Home Interface is found with no errors.

However on the line where the session bean is created, an exception is
thrown that says: "Authentication Exception, principal=null"

It seems that altough the login was successfull with a user name the
princpal is still being registered as null and the attempt to create a
session bean is rejected.

Does anyone have an insight into why the prinicipal is showing up as null,
or as to why exception is thrown even though the login appears to be
successful.  Any thoughts are greatly appreciated,

Ivan


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



[JBoss-user] unsubscribe

2001-07-06 Thread Dinesh Khurana


- Original Message -
From: Gregor Rayman <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 11:17 PM
Subject: Re: [JBoss-user] findAll and RowSet


> "Burkhard Vogel" <[EMAIL PROTECTED]> wrote:
>
> > > hi,
> > > you certainly can do this.
> > > Both methods would be called retrieveAllTabularData();
> > > the ejb prefix is reserved for finders (FindBy...) create, remove,
> > activate,
> > > passivate...
> > > BUT I would strongly recommend NOT to pass an ResultSet as a return
value.
> > > You cann't be sure that a ResultSet won't lose its DB-connection!
> > > Either use a Hashtable or suns CachedRowSet as return value!
> > > Burkhard
>
> Yes you are right, the class which implements the ResultSet interface has
> to be serialisable*, so resultsets which need an active statement or
> connection cannot be used anyway.
>
> So I use the CachedRowSet class as the actual returned type.
>
> I will try it now in the RemoteInterface, it did not work yesterday, but
> maybe I've made some stupid mistake.
>
> --
> gR
>
> *they could be remotable as well, by I want to minimalize the network
> traffic.
>
>
>
> ___
> 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] Strange Behavior When DataSource goes down.

2001-07-06 Thread David Jencks

I've never seen this.  Not to be snooty, but how do you know this is a
jboss problem?  I don't know why this would make a difference, but are you
using the jca wrappers?  Is jboss-auto.jcml safely out of the way or are
you using a version where it is not read?  Whats youre NPE? 

david jencks

On 2001.07.06 12:50:02 -0400 Richard Bottoms wrote:
> At 12:33 AM 7/6/01 -0700, you wrote:
> >JCA is a standard introduced in J2EE 1.3. JDBC is not being deprecated,
> 
> 
> How's this.
> 
> JBoss conects to my datasource on start up. I shut down, add a new
> database, restart the computer even. New datasource generates NPE.
> Shutdown
> JBoss, restart, datasource connects. Shutdown JBoss, restart, NPE.
> 
> Hope version 3 makes this bulletproof.
> 
> 
> r.b.
> 
> 
> 
> 
> 
> ___
> 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] Datasource Lookup from a standalone client

2001-07-06 Thread David Jencks

Hi,

(I am not a jndi expert, so some of the things I say ought to work might
not.  If I say they won't, I'm pretty sure they won't)

There are DataSources and DataSources.  Some DataSources simply hand out
jdbc1.0 connections, just like calling DriverManager.getConnection, except
you can put the configuration info into the datasource bound in jndi.  My
understanding (possibly wrong) is that when you look one of these up, jndi
starts up a DataSource in the vm of the looking up process.  I believe for
example Borland's InterClient does this. 

The DataSources in JBoss and implied (as ConnectionFactory's) by the jca
spec are a bit more complicated: they are a facade that hands out temporary
handles to actual db connections which are pooled and have their
transactions managed elsewhere.  (IMHO reusing the Connection interface for
these is bogus, the transaction control methods shouldn't be there, or at
least use the cci LocalTransaction interface).  Since Connections usually
aren't serializable, and I would hope they wouldn't be, in order to get a
connection from one of these facade DataSources, you'd have to start up all
the pooling and transaction management machinery in your process's vm in
order to use the connection.  If you want that much infrastructure running,
I think you should be configuring it yourself so you know what you're
getting.

In fact jca resource adapters do provide an "unmanaged" mode, which is
expected to provide by default trivial (no) connection pooling.  You might
possibly be able to adapt the jbosscx module to deploy a resource adapter
(such as a jbosspool wrapped jdbc driver) into your standalone client. 
However, why would you want to do this? If you aren't using the
architecture you get with an ejb framework, why are you bothering with
ejb's in the first place?

david jencks
On 2001.07.06 19:53:05 -0400 Frank Marx wrote:
> 
> Sure I can access a DB from a standalone client using JDBC.
> The question was why I cannot access a JNDI to access a Datasource there
> ?
> I mean what is the reason, as far as I know JNDI is a basic service and
> is
> not limited to EJB.
> 
> When you look up a home interface of a EJB you can do this from a
> standalone
> client why should this not work
> with datasources, I mean at least find the datasource.
> 
> 
> Is it not possible to create a namespace under java: or java:comp and put
> the datasource there
> and look it up ?
> 
> Maybe the problem is that the beans are using per default the namespace
> java:comp/env and the standalone
> client not.
> 
> Frank
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Burkhard
> Vogel
> Sent: Friday, July 06, 2001 4:16 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Datasource Lookup from a standalone client
> 
> 
> Let's put it simple:
> You can't do it, forget it, stop trying, use beans or servlets for DB
> access!!!
> Burkhard
> - Original Message -
> From: "Frank Marx" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, July 07, 2001 12:01 AM
> Subject: RE: [JBoss-user] Datasource Lookup from a standalone client
> 
> 
> > HI,
> >
> > so where has this Datasource to be bound that I can access it from a
> stand
> > alone JAVA Client ?
> >
> > As far a I understand a datasource (which beans can access) would be
> bound
> > to:
> >
> > java:comp/env/jdbc/DSource
> >
> > so how does this have to look like that a stand alone JAVA  Client can
> > access this Datasource ??
> >
> > Thanks,
> >
> > Frank Marx
> >
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of
> > [EMAIL PROTECTED]
> > Sent: Friday, July 06, 2001 2:09 PM
> > To: [EMAIL PROTECTED]
> > Cc: [EMAIL PROTECTED];
> > [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] Datasource Lookup from a standalone client
> >
> >
> >
> > You are reading the spec incorrectly. You can only access things from
> > remote clients that are present in the Global jndi namespace (to get a
> view
> > of the namespace, use the jndiView mbean through http://localhost:8082
> -
> or
> > whatever port you have it set on).
> >
> > You don't want to access the DataSource from a remote client - that
> would
> > require the Connection object to be Serializable
> >
> > Alex
> >
> >
> >
> > |+-->
> > ||  "gsekar ejb"|
> > ||  <[EMAIL PROTECTED]>  |
> > ||  Sent by:|
> > ||  [EMAIL PROTECTED]|
> > ||  eforge.net  |
> > ||  |
> > ||  |
> > ||  07/06/01 03:44 PM   |
> > ||  Please respond to jboss-user|
> > ||  |
> > |+-->
> >
> >
> >--

[JBoss-user] ejb not bound ... or ... jboss-web.xml probs

2001-07-06 Thread G.L. Grobe



Sorry if this is double posted, I've had mail 
probs lately.I'm trying to get a servlet to make a lookup to an ejb's 
namespace.I'm not sure if I've got ~/WEB-INF/jboss-web.xml 
and~/META-INF/jboss.xml correct. Can someone go over this config tohelp 
me get it working?Be advised, I'm not even sure if I need all the listed 
files andif their in the correct dirs (i.e. jboss.xml, 
jboss-web.xml).- jboss server ouput 
---[Auto deploy] linkEjbRefs[Auto deploy] 
Linking ejb-ref: ejb/ConfigBuildHometo JNDI name: null[Auto deploy] 
javax.naming.NamingException: ejb-ref:ejb/ConfigBuildHome, expected 
jndi-name in jboss-web.xml[Auto deploy]   at 
org.jboss.web.AbstractWebContainer.linkEjbRefs(AbstractWebContainer.java:359)--- myServlet.java 
file doing a lookup to ejb 
 
ConfigBuildHome configBuildHome = 
(ConfigBuildHome)    
javax.rmi.PortableRemoteObject.narrow(   
ctx.lookup("java:comp/env/ejb/ConfigBuildHome"),  
ConfigBuildHome.class);- project/web-app/WEB-INF/web.xml 
--    
ejb/ConfigBuildHome  
Session  
com.neuroquest.cais.ejb.session.configBuild.ConfigBuildHome  
com.neuroquest.cais.ejb.session.configBuild.ConfigBuild   
 project/web-app/META-INF/jboss-web.xml 
   
  
ejb/ConfigBuildHome  
ConfigBuild   
- 
project/META-INF/jboss.xml ---   
  
 
ConfigBuild 
ConfigBuild  
   

 
Any help much appreciated.
 


Re: [JBoss-user] Problem running Ant on Mac OS X ...

2001-07-06 Thread Dave Ely

Ant 1.3 doesn't know anything about OsX, so the environment support is
not there, Execute.getProcEnvCommand() returns null for the command
string.

Download the Ant sources from

and there is one small change you will need to make in:

jakarta-ant-1.3/src/main/org/apache/tools/ant/taskdefs/Execute.java


replace this:

if ( osname.indexOf("mac os") >= 0 ) {
// Mac
// TODO: I have no idea how to get it, someone must fix it
String[] cmd = null;
return cmd;
}

with this:

if ( osname.indexOf("mac os") >= 0 ) {
// Mac - it can work in OsX (os.version >= 10), so we'll check for it
String  osVersStr = System.getProperty( "os.version" );
int osVersion = 0;
int dotIndex = osVersStr.indexOf( "." );
if ( dotIndex > 0 ) {
osVersStr = osVersStr.substring( 0, dotIndex );
}
osVersion = Integer.parseInt( osVersStr );
if ( osVersion >= 10 ) {
String[]cmd = {"/usr/bin/env"};
return cmd;
}

// otherwise, not implemented
String[]cmd = null;
return cmd;
}

I would have generated a patch but I'm just too tired of OsX to restart
today.

Given that you already have Ant installed, you don't need to worry about
the bootstrap process, just run "ant dist" and copy the newly built jar
files into the ant/lib directory.


BCD said at 10:22 AM -0700 on 7/6/01:

> Hi,
> 
> I've been successfully using Jboss and MySql on Mac OS X but am having
> trouble building the examples with Ant.  When I used the supplied build.xml
> file (with all of the environment variables set correctly) I get the
> following Java IOException (see below) when Ant is trying to read "env" to
> get the JBOSS_DIST environment variable.  If I hardcode the location of
> JBOSS_DIST in the build.xml the build completes correctly.
> 
> I'm wondering if this is a problem with the Java1.3 implementation that
> comes bundled on Mac OS X?  Has anyone else seen this problem or not had
> this problem on Mac OS X?
> 
> TIA,
> Bryan
> 
> 
> java.io.IOException
> at 
> org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.jav
> a:520)
> at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:329)
> at 
> org.apache.tools.ant.taskdefs.Execute.getProcEnvironment(Execute.java:159)
> at 
> org.apache.tools.ant.taskdefs.Property.loadEnvironment(Property.java:244)
> at org.apache.tools.ant.taskdefs.Property.execute(Property.java:172)
> at 
> org.apache.tools.ant.ProjectHelper$TaskHandler.finished(ProjectHelper.java:4
> 82)
> at 
> org.apache.tools.ant.ProjectHelper$AbstractHandler.endElement(ProjectHelper.
> java:204)
> at com.sun.xml.parser.Parser.maybeElement(Parser.java:1413)
> at com.sun.xml.parser.Parser.content(Parser.java:1499)
> at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
> at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
> at com.sun.xml.parser.Parser.parse(Parser.java:284)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
> at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:117)
> at 
> org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:85)
> at org.apache.tools.ant.Main.runBuild(Main.java:403)
> at org.apache.tools.ant.Main.main(Main.java:149)

-- 
 Dave Ely <[EMAIL PROTECTED]>
 

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



RE: [JBoss-user] ejb not bound

2001-07-06 Thread Frank Marx

Hi,

as far as I know does it know work when you use java:comp/env/ejb under
JBOSS, that is what the documentation online says.

Frank


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of G.L. Grobe
Sent: Friday, July 06, 2001 10:43 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] ejb not bound


I'm trying to get a servlet to make a lookup to an ejb's namespace.
I'm not sure if I've got ~/WEB-INF/jboss-web.xml and
~/META-INF/jboss.xml correct. Can someone go over this config to
help me get it working?

Be advised, I'm not even sure if I need all the listed files and
if their in the correct dirs (i.e. jboss.xml, jboss-web.xml).

- jboss server ouput ---

[Auto deploy] linkEjbRefs
[Auto deploy] Linking ejb-ref: ejb/ConfigBuildHome
to JNDI name: null
[Auto deploy] javax.naming.NamingException: ejb-ref:
ejb/ConfigBuildHome, expected jndi-name in jboss-web.xml
[Auto deploy]   at org.jboss.web.AbstractWebContainer.linkEjbRefs
(AbstractWebContainer.java:359)

--- servlet lookup to ejb 

 ConfigBuildHome configBuildHome = (ConfigBuildHome)
javax.rmi.PortableRemoteObject.narrow(
   ctx.lookup("java:comp/env/ejb/ConfigBuildHome"),
  ConfigBuildHome.class);

- project/web-app/WEB-INF/web.xml --

  
  ejb/ConfigBuildHome
  Session

com.neuroquest.cais.ejb.session.configBuild.ConfigBuildHome

com.neuroquest.cais.ejb.session.configBuild.ConfigBuild
   

 project/web-app/META-INF/jboss-web.xml 





   
  ejb/ConfigBuildHome
  ConfigBuild
   



- project/META-INF/jboss.xml ---




   
  
 ConfigBuild
 ConfigBuild
  
   



___
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] DataSource Name Problem !

2001-07-06 Thread Huynh Tin



Hi all ,I developed my application and deployed 
it on Weblogic Application Server ,it run ok Could anyone help me 
...and tell me how can i deployed my application onJBoss ..I use 
JBoss-2.2.1_Tomcat-3.2.1...my problem is how could i defineDataSource 
Name on Jboss Server to use in my JSP code.I use MS.SQL Server 7.0Please 
give me an example how could i define DataSource Name with JBossServer and 
MSSQL Server 7.0 ...Thank you !!Best regards !Huynh 
Tin


[JBoss-user] test ... IGNORE

2001-07-06 Thread G.L. Grobe




testing why i can't send mail to list.



[JBoss-user] ejb not bound

2001-07-06 Thread G.L. Grobe



Sorry if this 
is double posted, I've had mail probs lately.I'm trying to get a servlet 
to make a lookup to an ejb's namespace.I'm not sure if I've got 
~/WEB-INF/jboss-web.xml and~/META-INF/jboss.xml correct. Can someone go over 
this config tohelp me get it working?Be advised, I'm not even sure 
if I need all the listed files andif their in the correct dirs (i.e. 
jboss.xml, jboss-web.xml).- jboss server ouput 
---[Auto deploy] linkEjbRefs[Auto deploy] 
Linking ejb-ref: ejb/ConfigBuildHometo JNDI name: null[Auto deploy] 
javax.naming.NamingException: ejb-ref:ejb/ConfigBuildHome, expected 
jndi-name in jboss-web.xml[Auto deploy]   at 
org.jboss.web.AbstractWebContainer.linkEjbRefs(AbstractWebContainer.java:359)--- 
servlet lookup to ejb 
 
ConfigBuildHome configBuildHome = 
(ConfigBuildHome)    
javax.rmi.PortableRemoteObject.narrow(   
ctx.lookup("java:comp/env/ejb/ConfigBuildHome"),  
ConfigBuildHome.class);- project/web-app/WEB-INF/web.xml 
--    
ejb/ConfigBuildHome  
Sessioncom.neuroquest.cais.ejb.session.configBuild.ConfigBuildHomecom.neuroquest.cais.ejb.session.configBuild.ConfigBuild   
 project/web-app/META-INF/jboss-web.xml 
   
  
ejb/ConfigBuildHome  
ConfigBuild   
- 
project/META-INF/jboss.xml ---   
  
 
ConfigBuild 
ConfigBuild  
   



[JBoss-user] ejb not bound

2001-07-06 Thread G.L. Grobe

I'm trying to get a servlet to make a lookup to an ejb's namespace.
I'm not sure if I've got ~/WEB-INF/jboss-web.xml and
~/META-INF/jboss.xml correct. Can someone go over this config to
help me get it working?

Be advised, I'm not even sure if I need all the listed files and
if their in the correct dirs (i.e. jboss.xml, jboss-web.xml).

- jboss server ouput ---

[Auto deploy] linkEjbRefs
[Auto deploy] Linking ejb-ref: ejb/ConfigBuildHome
to JNDI name: null
[Auto deploy] javax.naming.NamingException: ejb-ref:
ejb/ConfigBuildHome, expected jndi-name in jboss-web.xml
[Auto deploy]   at org.jboss.web.AbstractWebContainer.linkEjbRefs
(AbstractWebContainer.java:359)

--- servlet lookup to ejb 

 ConfigBuildHome configBuildHome = (ConfigBuildHome)
javax.rmi.PortableRemoteObject.narrow(
   ctx.lookup("java:comp/env/ejb/ConfigBuildHome"),
  ConfigBuildHome.class);

- project/web-app/WEB-INF/web.xml --

  
  ejb/ConfigBuildHome
  Session

com.neuroquest.cais.ejb.session.configBuild.ConfigBuildHome

com.neuroquest.cais.ejb.session.configBuild.ConfigBuild
   

 project/web-app/META-INF/jboss-web.xml 





   
  ejb/ConfigBuildHome
  ConfigBuild
   



- project/META-INF/jboss.xml ---




   
  
 ConfigBuild
 ConfigBuild
  
   



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



Re: [JBoss-user] rollback jdbc transaction

2001-07-06 Thread Burkhard Vogel

Hi,
probably this an too simple answer, but you have declared
  Bean
in ejb-jar.xml for this Bean, haven't you?
And there is no

  

stuff either?
Really sorry, if this is too simple, but sometimes easiest things are
hardest to find?!
Burkhard

- Original Message -
From: "Jure Lodrant" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 12:02 PM
Subject: Re: [JBoss-user] rollback jdbc transaction


> D
> > >
> > >
> > > setRollbackOnly is used in EJB's using Container managed transactions
> > > which is not the case here.
> >
> > If you're trying to do Bean managed transactions, you need to read up on
> > how to do it. See section 11.3.3 of the EJB 1.1 spec, or section 17.3.3
> > of the EJB 2.0 pfd 2 spec.
> >
> > In short, you need to use a UserTransaction object that you get from
> > your EJBContext. Note that the example in the 2.0 spec won't work in
> > JBoss at the moment - you need to begin the transaction before getting
> > your connections.
> >
> > -danch
> >
> >
> >
>
> There must be something I'm doing terribly wrong.
>
> I redid the example per your suggestion, using JTA transactions and still
I
> seem to be having the one and only problem:
>
> My new example looks like this:
> 
> public void ship (String productId, String orderId, int quantity) {
>
> UserTransaction ut = context.getUserTransaction();
>   try {
>
> ut.begin();
>  updateOrderItem(productId, orderId);
>  updateInventory(productId, quantity);
>  ut.commit();
>   } catch (Exception ex) {
>   try {
>   System.out.println("Cause:" + ex.getMessage());
> ut.rollback();
>  throw new EJBException("Transaction failed: " +
ex.getMessage());
>   } catch (Throwable sqx) {
>   throw new EJBException("Rollback failed: " +
sqx.getMessage());
>   }
>   }
>}
> -
> While the transaction is commiting, all looks well. When an application
> exception occurs and rollback is called, I get this:
> -
> RemoteException occurred in server thread; nested exception
> is:
> java.rmi.ServerException: Transaction rolled back
> java.rmi.ServerException: RemoteException occurred in server thread;
nested
> exception is:
> java.rmi.ServerException: Transaction rolled back
> java.rmi.ServerException: Transaction rolled back
> at
>
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:248)
> at
> sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:128)
> at
> org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown
> Source)
> at
>
org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(Stateless
SessionProxy.java:188)
> at $Proxy1.ship(Unknown Source)
> at warehouse.test.WarehouseClient.main(WarehouseClient.java:37)
> 
> And the transaction remains open and eventually timeouts
>
> No clue again. Should go back to school I guess...
>
>
> Please help me out here,
>
> Jure
> >
> > ___
> > 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] JMS Questions

2001-07-06 Thread Tom Marrs

Hi,
I'm new to JBoss and JMS, although I've used the J2EE
on other app servers. I've got a couple of questions about
connecting to JMS queues from standalone Java applications
(i.e., not from an EJB):

1) I'd like to use the default constructor for InitialContext,
   but no matter what I do to the CLASSPATH, the jndi.properties
   file isn't found. Is this because I'm connecting as a standalone
   client? Anyway, here are my attempts to set the CLASSPATH (in Windows 98):

SET
CLASSPATH=%CLASSPATH%;%JBOSS_HOME%\lib\ext\jboss.jar;%JBOSS_HOME%\client\ejb.jar;%JBOSS_HOME%\client\jaas.jar;%JBOSS_HOME%\client\jbosssx-client.jar;%JBOSS_HOME%\client\jboss-client.jar;%JBOSS_HOME%\client\jbossmq-client.jar;%JBOSS_HOME%\client\jnp-client.jar
SET
CLASSPATH=%CLASSPATH%;%JBOSS_HOME%\lib\ext\jndi.jar;%JBOSS_HOME%\lib\ext\jms.jar;%JBOSS_HOME%\conf\default

I also tried explicitly naming jndi.properties on the CLASSPATH, but that didn't work 
either. So, I
was forced
to do the following (not very pretty):

Context jndiContext = null;
Properties env = new Properties();

env.setProperty(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
env.setProperty(Context.PROVIDER_URL, "localhost:1099");
jndiContext = new InitialContext(env);

Does anyone know how to make jndi.properties appear on the CLASSPATH correctly so the 
InitialContext
default
constructor works properly?


2) I'd like to create my own Queue or Topic and then connect to it, but am unable to 
do so. I am
however, able
   to connect to Queue/Topic that JBoss already knows about (e.g., testQueue). While 
this is OK, how
do I create
   my own Queue/Topic? I've tried adding the following to jbossmq.xml (according to the
documentation):

Votes

   However, this doesn't seem to work. I get the following - 
javax.naming.NameNotFoundException:
Votes not bound
   I'm assuming that I'm either not doing something OR that I'm doing something wrong. 
So, besides
adding the above
   entry to jbossmq.xml, what else do I need to do? Do I need to add this to a EAR 
file? Is there
some script I can
   run to create a new Queue/Topic?

Other than these issues, JMS seems to work OK on JBoss. Thanks for your help.

Tom Marrs

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



RE: [JBoss-user] Datasource Lookup from a standalone client

2001-07-06 Thread Frank Marx


Sure I can access a DB from a standalone client using JDBC.
The question was why I cannot access a JNDI to access a Datasource there ?
I mean what is the reason, as far as I know JNDI is a basic service and is
not limited to EJB.

When you look up a home interface of a EJB you can do this from a standalone
client why should this not work
with datasources, I mean at least find the datasource.


Is it not possible to create a namespace under java: or java:comp and put
the datasource there
and look it up ?

Maybe the problem is that the beans are using per default the namespace
java:comp/env and the standalone
client not.

Frank


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Burkhard
Vogel
Sent: Friday, July 06, 2001 4:16 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Datasource Lookup from a standalone client


Let's put it simple:
You can't do it, forget it, stop trying, use beans or servlets for DB
access!!!
Burkhard
- Original Message -
From: "Frank Marx" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 07, 2001 12:01 AM
Subject: RE: [JBoss-user] Datasource Lookup from a standalone client


> HI,
>
> so where has this Datasource to be bound that I can access it from a stand
> alone JAVA Client ?
>
> As far a I understand a datasource (which beans can access) would be bound
> to:
>
> java:comp/env/jdbc/DSource
>
> so how does this have to look like that a stand alone JAVA  Client can
> access this Datasource ??
>
> Thanks,
>
> Frank Marx
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> [EMAIL PROTECTED]
> Sent: Friday, July 06, 2001 2:09 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Datasource Lookup from a standalone client
>
>
>
> You are reading the spec incorrectly. You can only access things from
> remote clients that are present in the Global jndi namespace (to get a
view
> of the namespace, use the jndiView mbean through http://localhost:8082 -
or
> whatever port you have it set on).
>
> You don't want to access the DataSource from a remote client - that would
> require the Connection object to be Serializable
>
> Alex
>
>
>
> |+-->
> ||  "gsekar ejb"|
> ||  <[EMAIL PROTECTED]>  |
> ||  Sent by:|
> ||  [EMAIL PROTECTED]|
> ||  eforge.net  |
> ||  |
> ||  |
> ||  07/06/01 03:44 PM   |
> ||  Please respond to jboss-user|
> ||  |
> |+-->
>
>
>---
> |
>   |
> |
>   |   To: [EMAIL PROTECTED]
> |
>   |   cc:
> |
>   |   Subject: [JBoss-user] Datasource Lookup from a standalone
> client|
>
>
>---
> |
>
>
>
>
> Version : JBoss-2.2.2
>
> I have defined a JDBC DataSource _pool and i can see that it is
> successfully bound as java:/_pool.
> [_pool] Starting
> [_pool] XA Connection pool _pool bound to java:/_pool
> [_pool] Started
>
> I have no problem accessing this datasource from within a Session Bean
> using
> Context ctx = new InitialContext();
> DataSource ds = ctx.lookup("java:/_pool");
>
> But when I try to access this datasource from a standalone java client, I
> am able to access the Context in the app server correctly and I am able to
> list the bound objects ( This tells me that my jndi.properties is at the
> right place and my client is able to connect to the App Server). But When
I
> do the  lookup for DataSource, I get a NamingException with _pool not
> bound. From my understanding of the j2ee spec, I should be able to do this
> lookup. IS this a bug or am I not understanding the spec correctly. Also
> the Context.list doesnt list any of the datasources. It lists only the
> bounf EJB objects.
>
> Thanks
>
> Sekar
>
> P.S. I have dont the same type of client look up in 2 other commercial App
> Servers.
>
>
>
>
> Get 250 color business cards for FREE!
> http://businesscards.lycos.com/vp/fastpath/
>
> ___
> 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/

Re: [JBoss-user] rollback jdbc transaction

2001-07-06 Thread Jure Lodrant

D
> >
> >
> > setRollbackOnly is used in EJB's using Container managed transactions
> > which is not the case here.
>
> If you're trying to do Bean managed transactions, you need to read up on
> how to do it. See section 11.3.3 of the EJB 1.1 spec, or section 17.3.3
> of the EJB 2.0 pfd 2 spec.
>
> In short, you need to use a UserTransaction object that you get from
> your EJBContext. Note that the example in the 2.0 spec won't work in
> JBoss at the moment - you need to begin the transaction before getting
> your connections.
>
> -danch
>
>
>

There must be something I'm doing terribly wrong. 

I redid the example per your suggestion, using JTA transactions and still I 
seem to be having the one and only problem:

My new example looks like this:

public void ship (String productId, String orderId, int quantity) {

UserTransaction ut = context.getUserTransaction();
  try {

 ut.begin();
 updateOrderItem(productId, orderId);
 updateInventory(productId, quantity);
 ut.commit();
  } catch (Exception ex) {
  try {
  System.out.println("Cause:" + ex.getMessage());
ut.rollback();
 throw new EJBException("Transaction failed: " + ex.getMessage());
  } catch (Throwable sqx) {
  throw new EJBException("Rollback failed: " + sqx.getMessage());
  }
  }
   } 
-
While the transaction is commiting, all looks well. When an application 
exception occurs and rollback is called, I get this:
-
RemoteException occurred in server thread; nested exception
is:
java.rmi.ServerException: Transaction rolled back
java.rmi.ServerException: RemoteException occurred in server thread; nested 
exception is:
java.rmi.ServerException: Transaction rolled back
java.rmi.ServerException: Transaction rolled back
at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:248)
at 
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:128)
at 
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown 
Source)
at 
org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:188)
at $Proxy1.ship(Unknown Source)
at warehouse.test.WarehouseClient.main(WarehouseClient.java:37)

And the transaction remains open and eventually timeouts
 
No clue again. Should go back to school I guess...


Please help me out here,

Jure
>
> ___
> 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] Out of memory error

2001-07-06 Thread Jim Archer

Saul, watch your thread usage. jBoss will usually throw an out of memory 
exception when it can't create a new thread... On Solaris, you have a hard 
limit of threads.

I don't know if this is your actual problem, but I thought I would mention 
it.

Jim

--On Friday, July 06, 2001 6:47 PM -0400 Saul Farber <[EMAIL PROTECTED]> 
wrote:

> Hello again,
>
> I'm having some trouble with Jboss/Jetty running out of memory after
> some heavy use.  There's 192M of real memory and another 256M of shared
> memory on a solaris 2.6 install.  However, after some heavy use, the jvm
> running Jboss takes up about 85M of real memory, doesn't use swap, and
> then starts spitting java.lang.OutOfMemoryError s.
>
> Any way to tune down Jboss so that any optional/caching features are
> disabled, and therefore less memory is used?
>
> Plus, I thought that java was (mark and sweep) auto-garbage collecting.
> How can I be running out of memory when memory leaks are that much
> harder to come upon?
>
> Thanks!
>
> Saul
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user




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] Datasource Lookup from a standalone client

2001-07-06 Thread Burkhard Vogel

Let's put it simple:
You can't do it, forget it, stop trying, use beans or servlets for DB
access!!!
Burkhard
- Original Message -
From: "Frank Marx" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 07, 2001 12:01 AM
Subject: RE: [JBoss-user] Datasource Lookup from a standalone client


> HI,
>
> so where has this Datasource to be bound that I can access it from a stand
> alone JAVA Client ?
>
> As far a I understand a datasource (which beans can access) would be bound
> to:
>
> java:comp/env/jdbc/DSource
>
> so how does this have to look like that a stand alone JAVA  Client can
> access this Datasource ??
>
> Thanks,
>
> Frank Marx
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> [EMAIL PROTECTED]
> Sent: Friday, July 06, 2001 2:09 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Datasource Lookup from a standalone client
>
>
>
> You are reading the spec incorrectly. You can only access things from
> remote clients that are present in the Global jndi namespace (to get a
view
> of the namespace, use the jndiView mbean through http://localhost:8082 -
or
> whatever port you have it set on).
>
> You don't want to access the DataSource from a remote client - that would
> require the Connection object to be Serializable
>
> Alex
>
>
>
> |+-->
> ||  "gsekar ejb"|
> ||  <[EMAIL PROTECTED]>  |
> ||  Sent by:|
> ||  [EMAIL PROTECTED]|
> ||  eforge.net  |
> ||  |
> ||  |
> ||  07/06/01 03:44 PM   |
> ||  Please respond to jboss-user|
> ||  |
> |+-->
>
>
>---
> |
>   |
> |
>   |   To: [EMAIL PROTECTED]
> |
>   |   cc:
> |
>   |   Subject: [JBoss-user] Datasource Lookup from a standalone
> client|
>
>
>---
> |
>
>
>
>
> Version : JBoss-2.2.2
>
> I have defined a JDBC DataSource _pool and i can see that it is
> successfully bound as java:/_pool.
> [_pool] Starting
> [_pool] XA Connection pool _pool bound to java:/_pool
> [_pool] Started
>
> I have no problem accessing this datasource from within a Session Bean
> using
> Context ctx = new InitialContext();
> DataSource ds = ctx.lookup("java:/_pool");
>
> But when I try to access this datasource from a standalone java client, I
> am able to access the Context in the app server correctly and I am able to
> list the bound objects ( This tells me that my jndi.properties is at the
> right place and my client is able to connect to the App Server). But When
I
> do the  lookup for DataSource, I get a NamingException with _pool not
> bound. From my understanding of the j2ee spec, I should be able to do this
> lookup. IS this a bug or am I not understanding the spec correctly. Also
> the Context.list doesnt list any of the datasources. It lists only the
> bounf EJB objects.
>
> Thanks
>
> Sekar
>
> P.S. I have dont the same type of client look up in 2 other commercial App
> Servers.
>
>
>
>
> Get 250 color business cards for FREE!
> http://businesscards.lycos.com/vp/fastpath/
>
> ___
> 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] Out of memory error

2001-07-06 Thread Saul Farber

Hello again,

I'm having some trouble with Jboss/Jetty running out of memory after
some heavy use.  There's 192M of real memory and another 256M of shared
memory on a solaris 2.6 install.  However, after some heavy use, the jvm
running Jboss takes up about 85M of real memory, doesn't use swap, and
then starts spitting java.lang.OutOfMemoryError s.

Any way to tune down Jboss so that any optional/caching features are
disabled, and therefore less memory is used?

Plus, I thought that java was (mark and sweep) auto-garbage collecting.
How can I be running out of memory when memory leaks are that much
harder to come upon?

Thanks!

Saul


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



[JBoss-user] Tomcat 4.0 + Jboss 2.2

2001-07-06 Thread Patrick Munis
Title: Tomcat 4.0 + Jboss 2.2






Is anyone using tomcat 4.0 with Jboss 2.2. ? If yes could you please provide with installing and configuration instructions.

thanks

Patrick





[JBoss-user] resin + jboss vs. tomcat + jboss

2001-07-06 Thread Patrick Munis
Title: resin + jboss vs. tomcat + jboss






Does anyone out there any benchmarks to prove resin + jboss scales(performance) better than tomcat + jboss.? What are some of the pros and cons of using either one.?

thanks

Patrick





Re: [JBoss-user] pass-by-value vs. pass-by-reference semantics

2001-07-06 Thread Scott M Stark

You can disable the optimized calling to return to pass by value with a
flick
of a configuration switch. See the Optimized flag docs here:
http://www.jboss.org/documentation/HTML/ch06s08.html

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 2:32 PM
Subject: [JBoss-user] pass-by-value vs. pass-by-reference semantics


>
> I had a question about the pass-by-value vs pass-by-reference semantics of
> ejb calls. From how I understand the spec, any calls through the remote
> interface are supposed to use pass-by-value semantics. However, JBoss
> appears to use pass-by-reference semantics for beans running in the same
> jvm (an optimization that makes a lot of sense in my opinion). I just
> wanted to know if JBoss has had any trouble being "officially certified"
> sense it doesn't appear to follow the spec in this regard. With the
> appearance of local interfaces, are there any intents to change this
> default behavior?
>
> Thanks,
>
> Alex
>



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



RE: [JBoss-user] Datasource Lookup from a standalone client

2001-07-06 Thread Frank Marx

HI,

so where has this Datasource to be bound that I can access it from a stand
alone JAVA Client ?

As far a I understand a datasource (which beans can access) would be bound
to:

java:comp/env/jdbc/DSource

so how does this have to look like that a stand alone JAVA  Client can
access this Datasource ??

Thanks,

Frank Marx


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Friday, July 06, 2001 2:09 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: Re: [JBoss-user] Datasource Lookup from a standalone client



You are reading the spec incorrectly. You can only access things from
remote clients that are present in the Global jndi namespace (to get a view
of the namespace, use the jndiView mbean through http://localhost:8082 - or
whatever port you have it set on).

You don't want to access the DataSource from a remote client - that would
require the Connection object to be Serializable

Alex



|+-->
||  "gsekar ejb"|
||  <[EMAIL PROTECTED]>  |
||  Sent by:|
||  [EMAIL PROTECTED]|
||  eforge.net  |
||  |
||  |
||  07/06/01 03:44 PM   |
||  Please respond to jboss-user|
||  |
|+-->

>---
|
  |
|
  |   To: [EMAIL PROTECTED]
|
  |   cc:
|
  |   Subject: [JBoss-user] Datasource Lookup from a standalone
client|

>---
|




Version : JBoss-2.2.2

I have defined a JDBC DataSource _pool and i can see that it is
successfully bound as java:/_pool.
[_pool] Starting
[_pool] XA Connection pool _pool bound to java:/_pool
[_pool] Started

I have no problem accessing this datasource from within a Session Bean
using
Context ctx = new InitialContext();
DataSource ds = ctx.lookup("java:/_pool");

But when I try to access this datasource from a standalone java client, I
am able to access the Context in the app server correctly and I am able to
list the bound objects ( This tells me that my jndi.properties is at the
right place and my client is able to connect to the App Server). But When I
do the  lookup for DataSource, I get a NamingException with _pool not
bound. From my understanding of the j2ee spec, I should be able to do this
lookup. IS this a bug or am I not understanding the spec correctly. Also
the Context.list doesnt list any of the datasources. It lists only the
bounf EJB objects.

Thanks

Sekar

P.S. I have dont the same type of client look up in 2 other commercial App
Servers.




Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/

___
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] Problem with cmp-jaws example

2001-07-06 Thread Vincent Harcq

You find a 2.2 non compliant feature.  It is a 2.4 feature.
I will update the zip files on the web site.
For you to continue, comment out lesson.subject and lesson.hours in
jaws.xml.



> -Message d'origine-
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de Laurel
> Neustadter
> Envoyé : vendredi 6 juillet 2001 19:09
> À : '[EMAIL PROTECTED]'
> Objet : [JBoss-user] Problem with cmp-jaws example
>
>
> Hi:
>
> I am working through the examples in the JBoss Manual. Everything
> has worked
> fine until Chapter 5: Customizing Jaws.
> I successfully ran "ant cmp-jaws-compile", but when I drop
> "documentation-example/build-examples/cmp-jaws/ejb/class.jar" into the
> deploy directory I get the following error. How do I fix this? Thanks.
>
> [J2EE Deployer Default] Starting class.jar failed!
> [Auto deploy] org.jboss.ejb.DeploymentException: Could not deploy
> file:/D:/JBoss
> -2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/class.jar,
> Cause:org.jboss.ejb.Depl
> oymentException: Error in jaws.xml for Entity ClassBean: cmp-field
> lesson.subjec
> t is not a field in ejb class org.jboss.docs.cmp.jaws.bean.ClassBean
> [Auto deploy]   at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:3
> 65)
> [Auto deploy]   at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:2
> 75)
> [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.deployment.J2eeDeployer.startApplication(J2eeDeploy
> er.java:415)
> [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:221)
> [Auto deploy]   at java.lang.Thread.run(Unknown Source)
> [J2EE Deployer Default] Module class.jar is not running
> [J2EE Deployer Default] Destroying application class.jar
> [Auto deploy] Deployment
> failed:file:/D:/JBoss-2.2.2_Tomcat-3.2.2/jboss/deploy/c
> lass.jar
> [Auto deploy] org.jboss.deployment.J2eeDeploymentException: Error while
> starting
>  class.jar: Could not deploy
> file:/D:/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/
> Default/class.jar
> [Auto deploy]   at
> org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeploy
> er.java:442)
> [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:221)
> [Auto deploy]   at java.lang.Thread.run(Unknown Source)
>
> Laurel
>
> ___
> 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] pass-by-value vs. pass-by-reference semantics

2001-07-06 Thread Alex . Devine


I had a question about the pass-by-value vs pass-by-reference semantics of
ejb calls. From how I understand the spec, any calls through the remote
interface are supposed to use pass-by-value semantics. However, JBoss
appears to use pass-by-reference semantics for beans running in the same
jvm (an optimization that makes a lot of sense in my opinion). I just
wanted to know if JBoss has had any trouble being "officially certified"
sense it doesn't appear to follow the spec in this regard. With the
appearance of local interfaces, are there any intents to change this
default behavior?

Thanks,

Alex


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



[JBoss-user] Re: Test [why so many html msgs?]

2001-07-06 Thread kenneth

On Fri Jul  6 13:59:11 PDT 2001 "Hicks, James" <[EMAIL PROTECTED]>  wrote:
> This is a test
> 
> James

Yes. Your mail is an obnoxious htmlized message.

Why do so many members of this list htmlize their mail? Are they all addicted
to ms outlook? 
kb  
-- 
Kenneth Bowen [EMAIL PROTECTED] /\ moc.xobop@newobk newoB htenneK
http://www.pobox.com/~kbowen  /  \ newobk~/moc.xobop.www//:ptth
Powered by Debian 2.2 | Mcq! /\!qcM | 2.2 naibeD yb derewoP


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



Re: [JBoss-user] segfaults with 2.4.0 beta and ExternalContext

2001-07-06 Thread kevin1

> Segfaults are VM bugs, usually with the JIT or HotSpot. There is nothing
> one can do in a pure Java app to cause them. Try running without
> HotSpot.

Tried that - no luck

It only segfaults when I try to config the JNDI ExternalContext MBean to work with
jboss -- it seems alright otherwise.   

I need to do this in order to have my MDBs subscribe to external topics, if that
helps at all...

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



Re: [JBoss-user] Datasource Lookup from a standalone client

2001-07-06 Thread Alex . Devine


You are reading the spec incorrectly. You can only access things from
remote clients that are present in the Global jndi namespace (to get a view
of the namespace, use the jndiView mbean through http://localhost:8082 - or
whatever port you have it set on).

You don't want to access the DataSource from a remote client - that would
require the Connection object to be Serializable

Alex



|+-->
||  "gsekar ejb"|
||  <[EMAIL PROTECTED]>  |
||  Sent by:|
||  [EMAIL PROTECTED]|
||  eforge.net  |
||  |
||  |
||  07/06/01 03:44 PM   |
||  Please respond to jboss-user|
||  |
|+-->
  
>---|
  |
   |
  |   To: [EMAIL PROTECTED] 
   |
  |   cc:  
   |
  |   Subject: [JBoss-user] Datasource Lookup from a standalone client 
   |
  
>---|




Version : JBoss-2.2.2

I have defined a JDBC DataSource _pool and i can see that it is
successfully bound as java:/_pool.
[_pool] Starting
[_pool] XA Connection pool _pool bound to java:/_pool
[_pool] Started

I have no problem accessing this datasource from within a Session Bean
using
Context ctx = new InitialContext();
DataSource ds = ctx.lookup("java:/_pool");

But when I try to access this datasource from a standalone java client, I
am able to access the Context in the app server correctly and I am able to
list the bound objects ( This tells me that my jndi.properties is at the
right place and my client is able to connect to the App Server). But When I
do the  lookup for DataSource, I get a NamingException with _pool not
bound. From my understanding of the j2ee spec, I should be able to do this
lookup. IS this a bug or am I not understanding the spec correctly. Also
the Context.list doesnt list any of the datasources. It lists only the
bounf EJB objects.

Thanks

Sekar

P.S. I have dont the same type of client look up in 2 other commercial App
Servers.




Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/

___
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] Custom finders coded in your beans

2001-07-06 Thread Perry Q Hertler

At http://jboss.org/documentation/HTML/ch05s07.html
"Custom finders coded in your beans" is described. 
Has this only been made available since JBoss 2.4?

Thanks,
Perry

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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



[JBoss-user] Datasource Lookup from a standalone client

2001-07-06 Thread gsekar ejb

Version : JBoss-2.2.2

I have defined a JDBC DataSource _pool and i can see that it is successfully bound 
as java:/_pool. 
[_pool] Starting
[_pool] XA Connection pool _pool bound to java:/_pool
[_pool] Started

I have no problem accessing this datasource from within a Session Bean using 
Context ctx = new InitialContext();
DataSource ds = ctx.lookup("java:/_pool");

But when I try to access this datasource from a standalone java client, I am able to 
access the Context in the app server correctly and I am able to list the bound objects 
( This tells me that my jndi.properties is at the right place and my client is able to 
connect to the App Server). But When I do the  lookup for DataSource, I get a 
NamingException with _pool not bound. From my understanding of the j2ee spec, I 
should be able to do this lookup. IS this a bug or am I not understanding the spec 
correctly. Also the Context.list doesnt list any of the datasources. It lists only the 
bounf EJB objects.

Thanks

Sekar

P.S. I have dont the same type of client look up in 2 other commercial App Servers. 




Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/

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



RE: [JBoss-user] InitialContext problem

2001-07-06 Thread Frank Marx


Hi,

have you checked if the settings in the jndi.properties file are correct ?

Frank


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Larry Kim
Sent: Friday, July 06, 2001 12:32 PM
To: [EMAIL PROTECTED]
Cc: Larry Kim
Subject: [JBoss-user] InitialContext problem


Hello, i am having problems with a test client.
Has anybody seen anything like this?


Exception: Cannot lookup HospitalHome:
javax.naming.NoInitialContextException: Need to specify class name in
environment or system property, or as an applet parameter, or in an
application resource file:  java.naming.factory.initial

i deployed a simple entity bean and JBoss server says it is "deployed
successfully".
my test client just does a simple:

InitialContext initialContext = new InitialContext(); 
System.out.println("got jndi");  // up to here is fine.

HospitalHome home =
(HospitalHome)PortableRemoteObject.narrow(initialContext.lookup(
"plexus/Hospital"), HospitalHome.class);  // this line causes the
exception


any ideas would be greatly appreciated. i think it is a configuration
issue (?)

-larry

___
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] segfaults with 2.4.0 beta and ExternalContext

2001-07-06 Thread danch (Dan Christopherson)

kevin1 wrote:

> I got 2.4.0 beta up and running with sybase.  (yay)  However, when I tried to add
> an external LDAP source, I get segfaults after I start. That is to say - I start
> it, it works for a while, and then it dies...
> Is this a known issue?
> 
> I'm using sun JDK 1.3.1 on stock Linux kernel 2.2.17 (mandrake)
> 
> 


Try backing down to Sun JDK 1.3.0



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



Re: [JBoss-user] segfaults with 2.4.0 beta and ExternalContext

2001-07-06 Thread Scott M Stark

Segfaults are VM bugs, usually with the JIT or HotSpot. There is nothing
one can do in a pure Java app to cause them. Try running without
HotSpot.

- Original Message -
From: "kevin1" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 12:07 PM
Subject: [JBoss-user] segfaults with 2.4.0 beta and ExternalContext


> I got 2.4.0 beta up and running with sybase.  (yay)  However, when I tried
to add
> an external LDAP source, I get segfaults after I start. That is to say - I
start
> it, it works for a while, and then it dies...
> Is this a known issue?
>
> I'm using sun JDK 1.3.1 on stock Linux kernel 2.2.17 (mandrake)
>
>



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



Re: [JBoss-user] ejb client classpath

2001-07-06 Thread Scott M Stark

Because its possible to use a different:

- JMS implementation.
- Security implementation
- JNP implementation

JBoss is not a monolithic app server.

- Original Message -
From: "Burkhard Vogel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 12:23 PM
Subject: Re: [JBoss-user] ejb client classpath


> Hmm,
> why can't we pack the whole bunch of jars into one?
> from developing view I can understand that its far easier to have multiple
> jars, but seeing the load of mail regarding client problems with CNFE,
> wouldn't it be kinda user-friendly only to have to include one
> jboss-client.jar?
> Burkhard



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



Re: [JBoss-user] InitialContext problem

2001-07-06 Thread Burkhard Vogel

Hi,
I guess you did not include a jboss.xml in your jars META-INF, so by using
localhost:8082 -> service=JNDIView -> list
you will find that your Bean is deployed to java:/Hospital.
Use the enterprise-beans section of jboss.xml to map your Beans to the
java:comp/env/ namespace.
There is a chapter on jboss.xml in the manual.
Burkhard
- Original Message -
From: "Larry Kim" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Larry Kim" <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 9:31 PM
Subject: [JBoss-user] InitialContext problem


Hello, i am having problems with a test client.
Has anybody seen anything like this?


Exception: Cannot lookup HospitalHome:
javax.naming.NoInitialContextException: Need to specify class name in
environment or system property, or as an applet parameter, or in an
application resource file:  java.naming.factory.initial

i deployed a simple entity bean and JBoss server says it is "deployed
successfully".
my test client just does a simple:

InitialContext initialContext = new InitialContext();
System.out.println("got jndi");  // up to here is fine.

HospitalHome home =
(HospitalHome)PortableRemoteObject.narrow(initialContext.lookup(
"plexus/Hospital"), HospitalHome.class);  // this line causes the
exception


any ideas would be greatly appreciated. i think it is a configuration
issue (?)

-larry

___
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] ejb client classpath

2001-07-06 Thread VASQUEZ_JASON

I know this has changed recently, but better even would be an optional 
'light' client jar that could use the HTTP classloader to load the 
required implementation classes as needed.  Not so good for clients over 
slow links (i.e., applets, etc.), but great for collaborating services 
within a LAN.  A problem I've had before is when my client jars get out of 
'version sync' with the server -- this would at least slow down that 
problem...

-Jason






Burkhard Vogel <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
07/06/2001 02:23 PM
Please respond to jboss-user

 
To: [EMAIL PROTECTED]
cc: 
Subject:Re: [JBoss-user] ejb client classpath



Hmm,
why can't we pack the whole bunch of jars into one?
from developing view I can understand that its far easier to have multiple
jars, but seeing the load of mail regarding client problems with CNFE,
wouldn't it be kinda user-friendly only to have to include one
jboss-client.jar?
Burkhard
- Original Message -
From: "Scott M Stark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 8:56 PM
Subject: Re: [JBoss-user] ejb client classpath


> All servers have application server specific jar files that clients need
> to use. J2EE is just a collection of interfaces for the most part which
> means there has to be an implementation provided and this means
> jars in addition to those that contain the J2EE interfaces.
>
> - Original Message -
> From: "Christofer Jennings" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, July 06, 2001 11:16 AM
> Subject: Re: [JBoss-user] ejb client classpath
>
>
> > I think you may have missed my point. I figured out what was needed
> > (though it is nice to know all the jars are in
> > $JBOSS_DIST/jboss/client/ ... thanks)(and yes, shame on me for not
> > searching first) but maybe my question is as much an EJB question as a
> > JBoss question.
> >
> > That is, why do I need all those jars? Seems to me that a client 
should
> > need to know nothing but how to look up the server (i.e., the jndi
> > properties) and have the home and remote interfaces in its classpath.
> >
> > Is that not right?
> >
> > Is it required of all EJB containers that similar jars be in the
> > classpath, or is this just a JBoss thing?
> >
> > This leads me to another point though. I get the impression that the
> > example is not generic enough. Call it constructive criticism or the
> > babbling of the uninformed, but I wanted that example to primarily 
teach
> > me how to build and deploy a stateless session bean and secondarily 
how
> > to optimize it for JBoss. Maybe that's beyond the scope of the manual,
> > but that's what I was hoping.
> >
> > Thanks,
> > boz
>
>
>
> ___
> 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] InitialContext problem

2001-07-06 Thread Larry Kim

Hello, i am having problems with a test client.
Has anybody seen anything like this?


Exception: Cannot lookup HospitalHome:
javax.naming.NoInitialContextException: Need to specify class name in
environment or system property, or as an applet parameter, or in an
application resource file:  java.naming.factory.initial

i deployed a simple entity bean and JBoss server says it is "deployed
successfully".
my test client just does a simple:

InitialContext initialContext = new InitialContext(); 
System.out.println("got jndi");  // up to here is fine.

HospitalHome home =
(HospitalHome)PortableRemoteObject.narrow(initialContext.lookup(
"plexus/Hospital"), HospitalHome.class);  // this line causes the
exception


any ideas would be greatly appreciated. i think it is a configuration
issue (?)

-larry

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



Re: [JBoss-user] ejb client classpath

2001-07-06 Thread Burkhard Vogel

Hmm,
why can't we pack the whole bunch of jars into one?
from developing view I can understand that its far easier to have multiple
jars, but seeing the load of mail regarding client problems with CNFE,
wouldn't it be kinda user-friendly only to have to include one
jboss-client.jar?
Burkhard
- Original Message -
From: "Scott M Stark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 8:56 PM
Subject: Re: [JBoss-user] ejb client classpath


> All servers have application server specific jar files that clients need
> to use. J2EE is just a collection of interfaces for the most part which
> means there has to be an implementation provided and this means
> jars in addition to those that contain the J2EE interfaces.
>
> - Original Message -
> From: "Christofer Jennings" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, July 06, 2001 11:16 AM
> Subject: Re: [JBoss-user] ejb client classpath
>
>
> > I think you may have missed my point. I figured out what was needed
> > (though it is nice to know all the jars are in
> > $JBOSS_DIST/jboss/client/ ... thanks)(and yes, shame on me for not
> > searching first) but maybe my question is as much an EJB question as a
> > JBoss question.
> >
> > That is, why do I need all those jars? Seems to me that a client should
> > need to know nothing but how to look up the server (i.e., the jndi
> > properties) and have the home and remote interfaces in its classpath.
> >
> > Is that not right?
> >
> > Is it required of all EJB containers that similar jars be in the
> > classpath, or is this just a JBoss thing?
> >
> > This leads me to another point though. I get the impression that the
> > example is not generic enough. Call it constructive criticism or the
> > babbling of the uninformed, but I wanted that example to primarily teach
> > me how to build and deploy a stateless session bean and secondarily how
> > to optimize it for JBoss. Maybe that's beyond the scope of the manual,
> > but that's what I was hoping.
> >
> > Thanks,
> > boz
>
>
>
> ___
> 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] segfaults with 2.4.0 beta and ExternalContext

2001-07-06 Thread kevin1

I got 2.4.0 beta up and running with sybase.  (yay)  However, when I tried to add
an external LDAP source, I get segfaults after I start. That is to say - I start
it, it works for a while, and then it dies...
Is this a known issue?

I'm using sun JDK 1.3.1 on stock Linux kernel 2.2.17 (mandrake)







-- 
No one may be called "good" if they have had no chance to be bad...

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



[JBoss-user] Test

2001-07-06 Thread Hicks, James








This is a test

 

James








Re: [JBoss-user] ejb client classpath

2001-07-06 Thread Scott M Stark

All servers have application server specific jar files that clients need
to use. J2EE is just a collection of interfaces for the most part which
means there has to be an implementation provided and this means
jars in addition to those that contain the J2EE interfaces.

- Original Message - 
From: "Christofer Jennings" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 11:16 AM
Subject: Re: [JBoss-user] ejb client classpath


> I think you may have missed my point. I figured out what was needed 
> (though it is nice to know all the jars are in 
> $JBOSS_DIST/jboss/client/ ... thanks)(and yes, shame on me for not 
> searching first) but maybe my question is as much an EJB question as a 
> JBoss question.
> 
> That is, why do I need all those jars? Seems to me that a client should 
> need to know nothing but how to look up the server (i.e., the jndi 
> properties) and have the home and remote interfaces in its classpath.
> 
> Is that not right?
> 
> Is it required of all EJB containers that similar jars be in the 
> classpath, or is this just a JBoss thing?
> 
> This leads me to another point though. I get the impression that the 
> example is not generic enough. Call it constructive criticism or the 
> babbling of the uninformed, but I wanted that example to primarily teach 
> me how to build and deploy a stateless session bean and secondarily how 
> to optimize it for JBoss. Maybe that's beyond the scope of the manual, 
> but that's what I was hoping.
> 
> Thanks,
> boz



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



Re: [JBoss-user] ejb client classpath

2001-07-06 Thread Christofer Jennings

I think you may have missed my point. I figured out what was needed 
(though it is nice to know all the jars are in 
$JBOSS_DIST/jboss/client/ ... thanks)(and yes, shame on me for not 
searching first) but maybe my question is as much an EJB question as a 
JBoss question.

That is, why do I need all those jars? Seems to me that a client should 
need to know nothing but how to look up the server (i.e., the jndi 
properties) and have the home and remote interfaces in its classpath.

Is that not right?

Is it required of all EJB containers that similar jars be in the 
classpath, or is this just a JBoss thing?

This leads me to another point though. I get the impression that the 
example is not generic enough. Call it constructive criticism or the 
babbling of the uninformed, but I wanted that example to primarily teach 
me how to build and deploy a stateless session bean and secondarily how 
to optimize it for JBoss. Maybe that's beyond the scope of the manual, 
but that's what I was hoping.

Thanks,
boz


On Friday, July 6, 2001, at 10:21 AM, Burkhard Vogel wrote:

> Hi,
> have a look in the jboss-client dir...
> there is all you need! there have been LOADS of mails on this subject 
> (ever
> tried searching the archieve (access through jboss site) on interest +
> client???)
> Burkhard
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "Jboss-User-List" <[EMAIL PROTECTED]>
> Sent: Friday, July 06, 2001 6:28 PM
> Subject: [JBoss-user] ejb client classpath
>
>
>> As an experiment I tried deploying the interest example bean and 
>> running
>> the client not as said in the Manual (from the examples/build dir) but
>> from my root dir. To my surprise I needed to have all sorts of 
>> container
>> related jar files in my classpath to run the client. Could this be 
>> right
>> or am I missing something?
>>
>> - to compile all I needed was ejb.jar. Makes sense.
>>
>> Why does my client need the following jars to run?
>> - jnpserver.jar to get an org.jnp.interfaces.NamingContextFactory
>> - jboss.jar to get org.jboss.ejb.plugins.jrmp13.interfaces.HomeProxy
>> - jta-spec1_0_1.jar to get javax.transaction.TransactionManager
>> - jboss-jaas.jar to get org.jboss.security.SecurityAssociation
>>
>> Does this mean my clients all have to know about all these jars? That
>> doesn't sound right. I must be missing something. Could someone please
>> enlighten me here?
>>
>> Here's my build file, just in case.
>>
>> Thanks,
>> boz
>>
>> - from my modified ant build.xml -
>> 
>>
>> 
>>
>>  
>>  
>>  > value="/Applications/java/JBoss-2.2.2_Tomcat-3.2.2/jboss"/>
>>  >
> value=".:${jboss.dist}/lib/ext/ejb.jar:${jboss.dist}/lib/ext/jnpserver.jar:
>> ${jboss.dist}/lib/ext/jboss.jar:${jboss.dist}/lib/ext/jta-
>> spec1_0_1.jar:${jboss.dist}/lib/jboss-jaas.jar"/>
>>
>>  
>>
>>> destdir="${build.dir}"
>> debug="on"
>> deprecation="on"
>> optimize="off"
>>>
>> 
>> 
>>
>>  
>>
>>  
>>  
>>  
>>  
>>  > todir="${build.dir}/META-INF" />
>>  
>>  
>>  > name="org/jboss/docs/interest/Interest.class" />
>>  > name="org/jboss/docs/interest/InterestHome.class" />
>>  > name="org/jboss/docs/interest/InterestBean.class" />
>>  
>>  
>>  
>>  
>>  
>>  
>>
>>  
>>  > todir="${jboss.dist}/deploy" />
>>  
>>
>>   
>>  > fork="yes">
>>  
>> 
>> 
>>  
>> > value="org.jnp.interfaces.NamingContextFactory" />
>> > value="jnp://localhost:1099" />
>>  
>>  
>> 
>> -
>>
>> ___
>> 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] Problem running Ant on Mac OS X ...

2001-07-06 Thread Christofer Jennings

Could you tell us more about that shell script?

,boz

On Friday, July 6, 2001, at 10:38 AM, Hunter Hillegas wrote:

> I am using Ant on OS X and don't have any problems... It's worked fine 
> with
> both the shipping Java version in 10.0 and the beta Java Update.
>
> How are you executing ant? I launch it from a shell script, build.sh, 
> that
> sets a few properties (passing the paths to Ant).
>
> Hunter

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



Re: [JBoss-user] Newbie having problems with Interest sample

2001-07-06 Thread Burkhard Vogel

its a typo: jbosssx-client.jar
this sould be in your client dir.
Burkhard
- Original Message -
From: "Martin Welch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 7:28 PM
Subject: RE: [JBoss-user] Newbie having problems with Interest sample


> Um, I don't seem to have a jbossmx-client anywhere. I've added all of the
> jars in the client directory now and I get the same result.
>
> I'm going to set this stuff up at home over the weekend if I can find time
> and see if I can get any further.
>
> Thanks again for your help.
>
> MArtin
>
> -Original Message-
> From: Lachezar Dobrev [mailto:[EMAIL PROTECTED]]
> Sent: 06 July 2001 18:00
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Newbie having problems with Interest sample
>
>
>Got me here... I didn't expect this.
>However. Try to add jbossmx-client.jar also. The
> org.jboss.security.SecurityAssociation class is there.
>
>Let me know what happens OK?
>
>Lachezar.
>
> Wow! I didn't expect such a detailed and accurate reply so soon.
>
> This (nearly) worked. The call to
>
>  Interest interest = home.create();
>
> failed with
>
> java.lang.NoClassDefFoundError: org/jboss/security/SecurityAssociation
>  at
>
org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericProxy
> .java:184)
>  at
> org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:231)
>  at $Proxy0.create(Unknown Source)
>  at org.jboss.docs.interest.InterestClient.main(InterestClient.java:40)
>
> I guess its a configuration problem again?
>
> Thanks for your help Lachezar, I really appreciate it.
>
> MArtin
>
>  -Original Message-
> From: Lachezar Dobrev [mailto:[EMAIL PROTECTED]]
> Sent: 06 July 2001 16:45
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Newbie having problems with Interest sample
>
>
>
>You have to get the JBoss client jars in your client.
>How about:
>Create a library in JBuilder (Let's say JBoss_Library). Add the
following
> jars to that library:
> $JBOSS_HOME/client/ejb.jar -> REQUIRED
> $JBOSS_HOME/client/jaas.jar-> In case you have security
> $JBOSS_HOME/client/jboss-client.jar-> REQUIRED
> $JBOSS_HOME/client/jbossmq-client.jar  -> In case you work with JMS
>
> $JBOSS_HOME/client/jbossmx-client.jar  -> In case you want to use JMX
> $JBOSS_HOME/client/jndi.jar-> REQUIRED
> $JBOSS_HOME/client/jnp-client.jar  -> REQUIRED
> $JBOSS_HOME/client/jta-spec1_0_1.jar   -> In case you want user
> transactions.
>
>Then add this library to your project (Project Properties).
>Then create a jndi.properties file in your src directory. Put in it:
>
>  java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
>  java.naming.provider.url=jnp://localhost:1099/
>
>Try again.
>
>Lachezar
>
>
> Hi,
>
> Hopefully this is an easy one!
>
> I've just installed JBoss-2.2.2_Tomcat-3.2.2.
>
> I've deployed the Interest EJB into JBoss without any problems by
following
> the tutorial in the online html help.
>
> I've tried to run the client in JBuilder 4 but it coughs on the very first
> line:
>
>  InitialContext jndiContext = new InitialContext();
>
> The exception I get is:
>
> javax.naming.CommunicationException: Can't find SerialContextProvider
>
> Could someone give me a pointer?
>
> Thanks.
>
> Martin
>
>


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



Re: [JBoss-user] Problem running Ant on Mac OS X ...

2001-07-06 Thread Christofer Jennings

I had the same problem. ... Used cut-n-paste too.

Hope you don't mind me cc-ing this to the mac-java-dev list.

,boz

On Friday, July 6, 2001, at 10:22 AM, BCD wrote:

> Hi,
>
> I've been successfully using Jboss and MySql on Mac OS X but am having
> trouble building the examples with Ant.  When I used the supplied 
> build.xml
> file (with all of the environment variables set correctly) I get the
> following Java IOException (see below) when Ant is trying to read "env" 
> to
> get the JBOSS_DIST environment variable.  If I hardcode the location of
> JBOSS_DIST in the build.xml the build completes correctly.
>
> I'm wondering if this is a problem with the Java1.3 implementation that
> comes bundled on Mac OS X?  Has anyone else seen this problem or not had
> this problem on Mac OS X?
>
> TIA,
> Bryan
>
>
> java.io.IOException
> at
> org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec
> (Execute.jav
> a:520)
> at 
> org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:329)
> at
> org.apache.tools.ant.taskdefs.Execute.getProcEnvironment(Execute.java:159)
> at
> org.apache.tools.ant.taskdefs.Property.loadEnvironment(Property.java:244)
> at 
> org.apache.tools.ant.taskdefs.Property.execute(Property.java:172)
> at
> org.apache.tools.ant.ProjectHelper$TaskHandler.finished(ProjectHelper.java:
> 4
> 82)
> at
> org.apache.tools.ant.ProjectHelper$AbstractHandler.endElement
> (ProjectHelper.
> java:204)
> at com.sun.xml.parser.Parser.maybeElement(Parser.java:1413)
> at com.sun.xml.parser.Parser.content(Parser.java:1499)
> at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
> at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
> at com.sun.xml.parser.Parser.parse(Parser.java:284)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
> at 
> org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:117)
> at
> org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:85)
> at org.apache.tools.ant.Main.runBuild(Main.java:403)
> at org.apache.tools.ant.Main.main(Main.java:149)
>
>
>
> ___
> 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] Newbie having problems with Interest sample

2001-07-06 Thread Martin Welch
Title: Newbie having problems with Interest sample



Um, 
I don't seem to have a jbossmx-client anywhere. I've added all of the jars in 
the client directory now and I get the same result.
 
I'm 
going to set this stuff up at home over the weekend if I can find time and see 
if I can get any further.
 
Thanks again for your help.
 
MArtin

  -Original Message-From: Lachezar Dobrev 
  [mailto:[EMAIL PROTECTED]]Sent: 06 July 2001 18:00To: 
  [EMAIL PROTECTED]Subject: Re: [JBoss-user] Newbie 
  having problems with Interest sample
     Got me here... I didn't expect 
  this.
     However. Try to add 
  jbossmx-client.jar also. The
  org.jboss.security.SecurityAssociation class is 
  there.
   
     Let me know what happens 
  OK?
   
     Lachezar.
  
Wow! I didn't expect such a detailed and accurate 
reply so soon.
 
This (nearly) worked. The call to 

 
 
Interest interest = home.create();
failed with 
 
java.lang.NoClassDefFoundError: 
org/jboss/security/SecurityAssociation at 
org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericProxy.java:184) at 
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:231) at 
$Proxy0.create(Unknown Source) at 
org.jboss.docs.interest.InterestClient.main(InterestClient.java:40)
I guess its a configuration problem 
again?
 
Thanks for your help Lachezar, I really appreciate 
it.
 
MArtin
 -Original Message-From: 
Lachezar Dobrev [mailto:[EMAIL PROTECTED]]Sent: 06 July 2001 
16:45To: [EMAIL PROTECTED]Subject: Re: 
[JBoss-user] Newbie having problems with Interest 
sample

     You have to get the JBoss 
  client jars in your client.
     How about:
     Create a library in JBuilder 
  (Let's say JBoss_Library). Add the following jars to that 
  library:
      
  $JBOSS_HOME/client/ejb.jar 
  -> REQUIRED
  
      
  $JBOSS_HOME/client/jaas.jar    
  -> In case you have security
  
      
  $JBOSS_HOME/client/jboss-client.jar    -> 
  REQUIRED
  
      
  $JBOSS_HOME/client/jbossmq-client.jar  -> In case you work with 
  JMS
  
      
  $JBOSS_HOME/client/jbossmx-client.jar  -> In case you want to use 
  JMX
  
      
  $JBOSS_HOME/client/jndi.jar-> 
  REQUIRED
  
      
  $JBOSS_HOME/client/jnp-client.jar  -> 
  REQUIRED
      $JBOSS_HOME/client/jta-spec1_0_1.jar   
  -> In case you want user transactions.
   
     Then add this library to your project (Project 
  Properties).
     Then create a jndi.properties file in your src 
  directory. Put in it:
   
   
  java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory 
  java.naming.provider.url=jnp://localhost:1099/
   
     Try again.
   
     Lachezar
   
  
Hi, 
Hopefully this is an easy one! 
I've just installed 
JBoss-2.2.2_Tomcat-3.2.2. 
I've deployed the Interest EJB into JBoss 
without any problems by following the tutorial in the online html 
help. 
I've tried to run the client in JBuilder 4 
but it coughs on the very first line: 
 InitialContext 
jndiContext = new InitialContext(); 
The exception I get is: 
javax.naming.CommunicationException: Can't 
find SerialContextProvider 
Could someone give me a pointer? 

Thanks. 
Martin 
  


Re: [JBoss-user] ejb client classpath

2001-07-06 Thread danch (Dan Christopherson)

[EMAIL PROTECTED] wrote:

> As an experiment I tried deploying the interest example bean and running 
> the client not as said in the Manual (from the examples/build dir) but 
> from my root dir. To my surprise I needed to have all sorts of container 
> related jar files in my classpath to run the client. Could this be right 
> or am I missing something?
> 
> - to compile all I needed was ejb.jar. Makes sense.
> 
> Why does my client need the following jars to run?
> - jnpserver.jar to get an org.jnp.interfaces.NamingContextFactory


Use jnp-client.jar from the client directory


> - jboss.jar to get org.jboss.ejb.plugins.jrmp13.interfaces.HomeProxy


use jboss-client.jar from the client directory


> - jta-spec1_0_1.jar to get javax.transaction.TransactionManager


that's also in the client directory.


> - jboss-jaas.jar to get org.jboss.security.SecurityAssociation



Use jbosssx-client.jar from the client directory


> 
> Does this mean my clients all have to know about all these jars? That 
> doesn't sound right. I must be missing something. Could someone please 
> enlighten me here?


You're not missing anything - those are all required, but you should use 
the 'client' versions of most of them.

-danch



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



Re: [JBoss-user] Newbie having problems with Interest sample

2001-07-06 Thread Christofer Jennings

Don't know if this will help, but your issue sounds very similar to the 
one I posted a few minutes ago "ejb client classpath".

I noticed I had to add a number of jars to get it to work "my way"... 
maybe they'll be what you need too. Here they are without all the ant 
stuff:
${jboss.dist}/lib/ext/ejb.jar
${jboss.dist}/lib/ext/jnpserver.jar
${jboss.dist}/lib/ext/jboss.jar
${jboss.dist}/lib/ext/jta-spec1_0_1.jar
${jboss.dist}/lib/jboss-jaas.jar
(Note: ${jboss.dist} is set to $JBOSS_DIST)

You may not need them all. ... They may not be what you need (I'm trying 
to figure it out too).

Good luck,
boz

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



Re: [JBoss-user] ejb client classpath

2001-07-06 Thread Burkhard Vogel

Hi,
have a look in the jboss-client dir...
there is all you need! there have been LOADS of mails on this subject (ever
tried searching the archieve (access through jboss site) on interest +
client???)
Burkhard
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Jboss-User-List" <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 6:28 PM
Subject: [JBoss-user] ejb client classpath


> As an experiment I tried deploying the interest example bean and running
> the client not as said in the Manual (from the examples/build dir) but
> from my root dir. To my surprise I needed to have all sorts of container
> related jar files in my classpath to run the client. Could this be right
> or am I missing something?
>
> - to compile all I needed was ejb.jar. Makes sense.
>
> Why does my client need the following jars to run?
> - jnpserver.jar to get an org.jnp.interfaces.NamingContextFactory
> - jboss.jar to get org.jboss.ejb.plugins.jrmp13.interfaces.HomeProxy
> - jta-spec1_0_1.jar to get javax.transaction.TransactionManager
> - jboss-jaas.jar to get org.jboss.security.SecurityAssociation
>
> Does this mean my clients all have to know about all these jars? That
> doesn't sound right. I must be missing something. Could someone please
> enlighten me here?
>
> Here's my build file, just in case.
>
> Thanks,
> boz
>
> - from my modified ant build.xml -
> 
>
> 
>
>  
>  
>   value="/Applications/java/JBoss-2.2.2_Tomcat-3.2.2/jboss"/>
>  
value=".:${jboss.dist}/lib/ext/ejb.jar:${jboss.dist}/lib/ext/jnpserver.jar:
> ${jboss.dist}/lib/ext/jboss.jar:${jboss.dist}/lib/ext/jta-
> spec1_0_1.jar:${jboss.dist}/lib/jboss-jaas.jar"/>
>
>  
>
> destdir="${build.dir}"
> debug="on"
> deprecation="on"
> optimize="off"
>>
> 
> 
>
>  
>
>  
>  
>  
>  
>   todir="${build.dir}/META-INF" />
>  
>  
>  
>   name="org/jboss/docs/interest/InterestHome.class" />
>   name="org/jboss/docs/interest/InterestBean.class" />
>  
>  
>  
>  
>  
>  
>
>  
>   todir="${jboss.dist}/deploy" />
>  
>
>   
>   fork="yes">
>  
> 
> 
>  
>  value="org.jnp.interfaces.NamingContextFactory" />
>  value="jnp://localhost:1099" />
>  
>  
> 
> -
>
> ___
> 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] Problem with cmp-jaws example

2001-07-06 Thread Laurel Neustadter

Hi:

I am working through the examples in the JBoss Manual. Everything has worked
fine until Chapter 5: Customizing Jaws.
I successfully ran "ant cmp-jaws-compile", but when I drop
"documentation-example/build-examples/cmp-jaws/ejb/class.jar" into the
deploy directory I get the following error. How do I fix this? Thanks.

[J2EE Deployer Default] Starting class.jar failed!
[Auto deploy] org.jboss.ejb.DeploymentException: Could not deploy
file:/D:/JBoss
-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/class.jar,
Cause:org.jboss.ejb.Depl
oymentException: Error in jaws.xml for Entity ClassBean: cmp-field
lesson.subjec
t is not a field in ejb class org.jboss.docs.cmp.jaws.bean.ClassBean
[Auto deploy]   at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:3
65)
[Auto deploy]   at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:2
75)
[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.deployment.J2eeDeployer.startApplication(J2eeDeploy
er.java:415)
[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:221)
[Auto deploy]   at java.lang.Thread.run(Unknown Source)
[J2EE Deployer Default] Module class.jar is not running
[J2EE Deployer Default] Destroying application class.jar
[Auto deploy] Deployment
failed:file:/D:/JBoss-2.2.2_Tomcat-3.2.2/jboss/deploy/c
lass.jar
[Auto deploy] org.jboss.deployment.J2eeDeploymentException: Error while
starting
 class.jar: Could not deploy
file:/D:/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/
Default/class.jar
[Auto deploy]   at
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeploy
er.java:442)
[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:221)
[Auto deploy]   at java.lang.Thread.run(Unknown Source)

Laurel

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



[JBoss-user] Problem running Ant on Mac OS X ...

2001-07-06 Thread BCD

Hi,

I've been successfully using Jboss and MySql on Mac OS X but am having
trouble building the examples with Ant.  When I used the supplied build.xml
file (with all of the environment variables set correctly) I get the
following Java IOException (see below) when Ant is trying to read "env" to
get the JBOSS_DIST environment variable.  If I hardcode the location of
JBOSS_DIST in the build.xml the build completes correctly.

I'm wondering if this is a problem with the Java1.3 implementation that
comes bundled on Mac OS X?  Has anyone else seen this problem or not had
this problem on Mac OS X?

TIA,
Bryan


java.io.IOException
at 
org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.jav
a:520)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:329)
at 
org.apache.tools.ant.taskdefs.Execute.getProcEnvironment(Execute.java:159)
at 
org.apache.tools.ant.taskdefs.Property.loadEnvironment(Property.java:244)
at org.apache.tools.ant.taskdefs.Property.execute(Property.java:172)
at 
org.apache.tools.ant.ProjectHelper$TaskHandler.finished(ProjectHelper.java:4
82)
at 
org.apache.tools.ant.ProjectHelper$AbstractHandler.endElement(ProjectHelper.
java:204)
at com.sun.xml.parser.Parser.maybeElement(Parser.java:1413)
at com.sun.xml.parser.Parser.content(Parser.java:1499)
at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
at com.sun.xml.parser.Parser.parse(Parser.java:284)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:117)
at 
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:85)
at org.apache.tools.ant.Main.runBuild(Main.java:403)
at org.apache.tools.ant.Main.main(Main.java:149)



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



RE: [JBoss-user] Re: Jboss Performance problems

2001-07-06 Thread Frank Marx


Hi,

one way we did it was pretty easy, you have a flag in the entity bean ,
let's say boolean bDirty = false;

In very method that writes you set this flag to true and in the ejbStore()
you set it back to false;

Is modified is implemented the following way:

public boolean isModified() {
return bDirty;
}

This should work then.

Frank


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Hermann
RANGAMANA
Sent: Friday, July 06, 2001 4:50 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Re: Jboss Performance problems


Hi all,

could you post here some example of an entity beans implementing isModified
() ?

--hermann
- Original Message -
From: "Devraj Mukherjee" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 1:53 AM
Subject: Re: [JBoss-user] Re: Jboss Performance problems


> Hi Saul,
>
> I would like to know more about this, is it possible for you to email me
> one of your entity beans?
>
> Devraj
>
> At 16:00 5/07/01 -0400, you wrote:
> >Hello all,
> >
> >I implemented the isModified() method in each of the offending entity
> >beans, and the speed improvements are dramatic.  A page that used to
> >take around 30-45 seconds to load now takes around .75-1.25 seconds (the
> >hardware is pretty slow).  That is a HUGE performance increase.
> >
> >Thanks for your help!
> >
> >saul
> >
> >
> >___
> >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] Problems with JBoss 2.2.2 and MQ

2001-07-06 Thread Hunter Hillegas

When I try to deploy an MDB JBoss chokes.

Right after it says "Desintation Type Queue", the log file reports
"java.net.ConnectionException: Connection refused".

Any ideas what port it's trying to connect to? I'm running this as root so
it shouldn't be a permissions issue.

This is running on Linux (RH) with Sun's 1.3.1 JDK.

Thanks,
Hunter
-- 
Hunter Hillegas
[EMAIL PROTECTED]


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



Re: [JBoss-user] RE: Struts & Jboss?

2001-07-06 Thread Gregor Rayman

I wrote:

> "Simon Tang" <[EMAIL PROTECTED]> wrote:
>
> > I am assuming that you packaged everything into an EAR file. In that
> > case, you will need to specify in the Manifest.mf file in both JAR and
> > WAR the classpath to the Struts JAR.
> >
> > In your manifest.mf add (or something like this):
> >
> > Class-Path: ./struts.jar
> >
> > Make sure there's a CR at the end.
>
> Actually, I've had the struts.jar and my client.jar in the war's
> WEB-INF/lib (so that I can use the war separately).
>
> I will try your idea. Thanks.
>
> --
> gR

So I've tried your suggestion. No tomcat can find struts, struts can find
my classes, but jasper cannot compile my JSPs, since it cannot find struts.
:-(

--
gR


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



Re: [JBoss-user] Newbie having problems with Interest sample

2001-07-06 Thread Lachezar Dobrev
Title: Newbie having problems with Interest sample



   Got me here... I didn't expect 
this.
   However. Try to add 
jbossmx-client.jar also. The
org.jboss.security.SecurityAssociation class is 
there.
 
   Let me know what happens 
OK?
 
   Lachezar.

  Wow! I didn't expect such a detailed and accurate 
  reply so soon.
   
  This (nearly) worked. The call to 

   
   
  Interest interest = home.create();
  failed with 
   
  java.lang.NoClassDefFoundError: 
  org/jboss/security/SecurityAssociation at 
  org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericProxy.java:184) at 
  org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:231) at 
  $Proxy0.create(Unknown Source) at 
  org.jboss.docs.interest.InterestClient.main(InterestClient.java:40)
  I 
  guess its a configuration problem again?
   
  Thanks for your help Lachezar, I really appreciate 
  it.
   
  MArtin
   -Original Message-From: 
  Lachezar Dobrev [mailto:[EMAIL PROTECTED]]Sent: 06 July 2001 
  16:45To: [EMAIL PROTECTED]Subject: Re: 
  [JBoss-user] Newbie having problems with Interest 
  sample
  
   You have to get the JBoss client 
jars in your client.
   How about:
   Create a library in JBuilder 
(Let's say JBoss_Library). Add the following jars to that 
library:
    
$JBOSS_HOME/client/ejb.jar 
-> REQUIRED

    
$JBOSS_HOME/client/jaas.jar    
-> In case you have security

    
$JBOSS_HOME/client/jboss-client.jar    -> 
REQUIRED

    
$JBOSS_HOME/client/jbossmq-client.jar  -> In case you work with 
JMS

    
$JBOSS_HOME/client/jbossmx-client.jar  -> In case you want to use 
JMX

    
$JBOSS_HOME/client/jndi.jar-> 
REQUIRED

    
$JBOSS_HOME/client/jnp-client.jar  -> 
REQUIRED
    $JBOSS_HOME/client/jta-spec1_0_1.jar   
-> In case you want user transactions.
 
   Then add this library to your project (Project 
Properties).
   Then create a jndi.properties file in your src directory. 
Put in it:
 
 
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory 
java.naming.provider.url=jnp://localhost:1099/
 
   Try again.
 
   Lachezar
 

  Hi, 
  Hopefully this is an easy one! 
  I've just installed 
  JBoss-2.2.2_Tomcat-3.2.2. 
  I've deployed the Interest EJB into JBoss 
  without any problems by following the tutorial in the online html 
  help. 
  I've tried to run the client in JBuilder 4 
  but it coughs on the very first line: 
   InitialContext 
  jndiContext = new InitialContext(); 
  The exception I get is: 
  javax.naming.CommunicationException: Can't 
  find SerialContextProvider 
  Could someone give me a pointer? 
  Thanks. 
  Martin 



Re: [JBoss-user] RE: Struts & Jboss?

2001-07-06 Thread Gregor Rayman

"Simon Tang" <[EMAIL PROTECTED]> wrote:

> I am assuming that you packaged everything into an EAR file. In that
> case, you will need to specify in the Manifest.mf file in both JAR and
> WAR the classpath to the Struts JAR.
> 
> In your manifest.mf add (or something like this):
> 
> Class-Path: ./struts.jar
> 
> Make sure there's a CR at the end.

Actually, I've had the struts.jar and my client.jar in the war's 
WEB-INF/lib (so that I can use the war separately).

I will try your idea. Thanks.

--
gR




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



RE: [JBoss-user] RE: Struts & Jboss?

2001-07-06 Thread Simon Tang

I am assuming that you packaged everything into an EAR file. In that
case, you will need to specify in the Manifest.mf file in both JAR and
WAR the classpath to the Struts JAR.

In your manifest.mf add (or something like this):

Class-Path: ./struts.jar

Make sure there's a CR at the end.


===
Simon Tang
Senior Software Engineer
Professional Services
Voxeo Corporation
Tel: 415-678-4186




> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] On Behalf Of 
> Gregor Rayman
> Sent: Friday, July 06, 2001 9:39 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] RE: Struts & Jboss?
> 
> 
> "Ravindran Ramaiah" <[EMAIL PROTECTED]> wrote:
> 
> > Hi,
> > I have tried JBoss+HP-Bluestone UBS 7.2 combination without any 
> > problems. Deployed EJB jar on JBoss and Application.war with 
> > HP-Bluestone UBS.
> >
> > This combination works fine.
> >
> > Thanks,
> > Ravi
> 
> Yes, I have no problem when I deploy the ejb jar and the war 
> separately. The problems start only when I pack them 
> togerther in an ear file and then deploy only that one.
> 
> --
> gR
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED] 
> http://lists.sourceforge.net/lists/listinfo/jb> oss-user
> 

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



Re: [JBoss-user] problems with jms

2001-07-06 Thread Peter Antman

On Thu, 5 Jul 2001, Manfred Meyer wrote:

> hi peter,
> 
> i use the "XAQueueConnectionFactory". are there other factories for queues?
> could you tell me which one i should use if i don't want to use transactions.

Hi, look into jbossmq.xml, there are:

QueueConnectionFactory (for fast two socket connection),

UILQueueConnectionFactory (for one socket (muliplexed) connection)

RMIQueueConnectionFactory (for plain RMI)

//Peter
> 
> thanks,
> manfred
> 
> Am Mit, 04 Jul 2001 schrieben Sie:
> > On Wed, 4 Jul 2001, Manfred Meyer wrote:
> > 
> > > hi,
> > > 
> > > i want to send jms messages from a servlet to a message driven bean running in
> > > the jboss server. but when i start it, this exception occurs:
> > > 
> > > [Default] Exception: Invalid transaction id.
> > > [Default] javax.jms.JMSException: Invalid transaction id.
> > > [Default] at 
>org.jbossmq.SpyXAResourceManager.addMessage(SpyXAResourceManager.java:80)
> > 
> > 
> > This is allways tricky, but my guess would be that you are using a
> > transacted connection without starting a transaction. Whats the name of
> > the connection factory you are using?
> > 
> > //Peter
> > 
> > > [Default] 
> > > [Default] at org.jbossmq.SpySession.sendMessage(SpySession.java:381)
> > > [Default] 
> > > [Default] at org.jbossmq.SpyQueueSender.send(SpyQueueSender.java:103)
> > > [Default] 
> > > [Default] at org.jbossmq.SpyQueueSender.send(SpyQueueSender.java:62)
> > > [Default] 
> > > [Default] at com.xlinkbase.servlet.Kicker.Kicker.doPost(Kicker.java:133)
> > > [Default] 
> > > [Default] at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> > > [Default] 
> > > [Default] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > [Default] 
> > > [Default] at 
>org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> > > [Default] 
> > > [Default] at org.apache.tomcat.core.Handler.service(Handler.java:287)
> > > [Default] 
> > > [Default] at 
>org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> > > [Default] 
> > > [Default] at 
>org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
> > > [Default] 
> > > [Default] at 
>org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> > > [Default] 
> > > [Default] at 
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
> > > [Default] 
> > > [Default] at 
>org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> > > [Default] 
> > > [Default] at 
>org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> > > [Default] 
> > > [Default] at java.lang.Thread.run(Thread.java:484)
> > > 
> > > what's wrong? what does "Invalid transaction id" mean, i don't want to use
> > > transactions at all.
> > > i use jboss-2.4beta with tomcat 3.2.2, jdk 1.3 on suse linux 2.2.14.
> > > 
> > > please help me,
> > > thanks.
> > > 
> > > here are fragments of the servlet code:
> > > 
> > > ...
> > >   public void init (ServletConfig config) throws ServletException
> > >   {
> > > super.init(config);
> > > 
> > > try
> > > {
> > > 
> > >   servletID = System.currentTimeMillis();
> > > 
> > >   ctx = getInitialContext();
> > >   queueCtx = (Context)ctx.lookup(JMS_QUEUES_CONTEXT);
> > >   qconFactory = (QueueConnectionFactory) ctx.lookup(JMS_FACTORY);
> > >   qcon = qconFactory.createQueueConnection();
> > >   qsession = qcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
> > >   queueInput = (Queue) queueCtx.lookup("Kicker");
> > >   queueOutput = (Queue) queueCtx.lookup("Controller");
> > >   qsender = qsession.createSender(queueOutput);
> > >   qreceiver = qsession.createReceiver(queueInput);
> > >   qreceiver.setMessageListener(this);
> > > 
> > >   qcon.start();
> > > 
> > > 
> > > } catch (NamingException ne) {
> > >   System.err.println("Naming exception: " + ne.getMessage());
> > >   ne.printStackTrace();
> > > } catch (JMSException jmse) {
> > >   System.err.println("JMS exception: " + jmse.getMessage());
> > >   jmse.printStackTrace();
> > > }
> > >   }
> > > ...
> > > 
> > >   public void doPost (HttpServletRequest request,
> > > HttpServletResponse response) throws ServletException, IOException
> > >   {
> > > 
> > > ...
> > > 
> > >   Message msg = qsession.createTextMessage(new String(buffer));
> > >   msg.setJMSReplyTo(queueInput);
> > >   msg.setStringProperty("Sender", "Kicker");
> > >   msg.setIntProperty("RequestId", requestId);
> > > 
> > >   qsender.send(msg);  <== here the exception occurs
> > > 
> > > ...
> > > 
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/jboss-user

Re: [JBoss-user] Strange Behavior When DataSource goes down.

2001-07-06 Thread Richard Bottoms

At 12:33 AM 7/6/01 -0700, you wrote:
>JCA is a standard introduced in J2EE 1.3. JDBC is not being deprecated,


How's this.

JBoss conects to my datasource on start up. I shut down, add a new
database, restart the computer even. New datasource generates NPE. Shutdown
JBoss, restart, datasource connects. Shutdown JBoss, restart, NPE.

Hope version 3 makes this bulletproof.


r.b.





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



[JBoss-user] Problem with Oracle 8i , Cyrillic and Unicode

2001-07-06 Thread jquest jquest

Hi all ,
I try to make a litle Application with JBoss.
As client I use swing.
My DB is Oracle 8i.
I need to use Cyrillic in my App. and I use Unicode.
In client all is OK.
I can read and write a TextField.
A get the value and call a simple session bean on JBoss.
It make System.out.println ( my String value) and stores the value in DB.
The session bean is not working.
It write ? not symbols.

Any solution for this case?
Many thanks in advance.

_
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] ejb client classpath

2001-07-06 Thread boz

As an experiment I tried deploying the interest example bean and running 
the client not as said in the Manual (from the examples/build dir) but 
from my root dir. To my surprise I needed to have all sorts of container 
related jar files in my classpath to run the client. Could this be right 
or am I missing something?

- to compile all I needed was ejb.jar. Makes sense.

Why does my client need the following jars to run?
- jnpserver.jar to get an org.jnp.interfaces.NamingContextFactory
- jboss.jar to get org.jboss.ejb.plugins.jrmp13.interfaces.HomeProxy
- jta-spec1_0_1.jar to get javax.transaction.TransactionManager
- jboss-jaas.jar to get org.jboss.security.SecurityAssociation

Does this mean my clients all have to know about all these jars? That 
doesn't sound right. I must be missing something. Could someone please 
enlighten me here?

Here's my build file, just in case.

Thanks,
boz

- from my modified ant build.xml -




 
 
 
 

 
   
   


   
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 
 

  
 
 


 


 
 

-

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



RE: [JBoss-user] Newbie having problems with Interest sample

2001-07-06 Thread Martin Welch
Title: Newbie having problems with Interest sample



Wow! 
I didn't expect such a detailed and accurate reply so soon.
 
This 
(nearly) worked. The call to 
 
 
Interest interest = home.create();
failed with 
 
java.lang.NoClassDefFoundError: 
org/jboss/security/SecurityAssociation at 
org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericProxy.java:184) at 
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:231) at 
$Proxy0.create(Unknown Source) at 
org.jboss.docs.interest.InterestClient.main(InterestClient.java:40)
I 
guess its a configuration problem again?
 
Thanks for your help Lachezar, I really appreciate 
it.
 
MArtin
 -Original Message-From: 
Lachezar Dobrev [mailto:[EMAIL PROTECTED]]Sent: 06 July 2001 
16:45To: [EMAIL PROTECTED]Subject: Re: 
[JBoss-user] Newbie having problems with Interest 
sample

     You have to get the JBoss client 
  jars in your client.
     How about:
     Create a library in JBuilder 
  (Let's say JBoss_Library). Add the following jars to that 
library:
      
  $JBOSS_HOME/client/ejb.jar 
  -> REQUIRED
  
      
  $JBOSS_HOME/client/jaas.jar    
  -> In case you have security
  
      
  $JBOSS_HOME/client/jboss-client.jar    -> 
  REQUIRED
  
      
  $JBOSS_HOME/client/jbossmq-client.jar  -> In case you work with 
  JMS
  
      
  $JBOSS_HOME/client/jbossmx-client.jar  -> In case you want to use 
  JMX
  
      
  $JBOSS_HOME/client/jndi.jar-> 
  REQUIRED
  
      
  $JBOSS_HOME/client/jnp-client.jar  -> 
  REQUIRED
      $JBOSS_HOME/client/jta-spec1_0_1.jar   -> 
  In case you want user transactions.
   
     Then add this library to your project (Project 
  Properties).
     Then create a jndi.properties file in your src directory. 
  Put in it:
   
   
  java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory 
  java.naming.provider.url=jnp://localhost:1099/
   
     Try again.
   
     Lachezar
   
  
Hi, 
Hopefully this is an easy one! 
I've just installed 
JBoss-2.2.2_Tomcat-3.2.2. 
I've deployed the Interest EJB into JBoss 
without any problems by following the tutorial in the online html 
help. 
I've tried to run the client in JBuilder 4 but 
it coughs on the very first line: 
 InitialContext 
jndiContext = new InitialContext(); 
The exception I get is: 
javax.naming.CommunicationException: Can't find 
SerialContextProvider 
Could someone give me a pointer? 
Thanks. 
Martin 



RE: [JBoss-user] Session Bean Serialization Fun

2001-07-06 Thread Bordet, Simone

Hi !

> Great!
> Thanks...Do we have an approximate ETA for a 2.4 stable release yet?

Already out. Donwload it from SourceForge :)
Since the minor release is even, then it's a stable release.

Simon

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



Re: [JBoss-user] Passing remote interfaces from session bean to servlet

2001-07-06 Thread danch (Dan Christopherson)

Benjamin Hille wrote:

> Hi,
> I have a problem passing a vector of remote interfaces between a session
> bean and a servlet.
> Basically the servlet calls a method of a session bean that builds a vector
> of remote interfaces of CMP beans. In the session bean there is no problems
> in filling the vector. However the returned vector to the servlet is always
> null.


Do you have a stack trace? Is there a stack trace in the server log? How 
is your method declared in the session's remote interface and 
implementation classes? Are the CMP bean's remote interfaces and related 
classes (if any) duplicated into the .war file?

-danch

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



RE: [JBoss-user] Session Bean Serialization Fun

2001-07-06 Thread Nanda, Sameer (AT-Atlanta)

Great!
Thanks...Do we have an approximate ETA for a 2.4 stable release yet?
I checked out the Release Notes and it looks like it does just what we
need--as well as other very useful stuff!
-Sam

-Original Message-
From: Bordet, Simone [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 11:15 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] Session Bean Serialization Fun


Hi !

The feature you need is present and configurable in JBoss 2.4.

Simon

> -Original Message-
> From: Nanda, Sameer (AT-Atlanta) [mailto:[EMAIL PROTECTED]]
> Sent: venerdì 6 luglio 2001 16:51
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Session Bean Serialization Fun
> 
> 
> I am having a problem with the number of serilized Session 
> Beans jboss is
> creating on our server.
> JBoss seems to be serializing to disk all active Session 
> Beans every 10
> minutes but does not remove any.
> We have typically 50 to 100 serialized every 10 min., causing tens of
> thousands of files (all in a single directory) in a few days.
> 
> I have looked through the jboss source and have found a
> SessionObjectOutputStream class (as well as 
> SessionObjectInputStream) that
> refers to serializing the EJBObjects according to section 6.4.1 of the
> ejb1.1 specification. (They are serialized on ejbPassivate 
> and read back on
> ejbActivate.)
> 
> The problem is that none of these files are ever removed, 
> which creates a
> huge mess.
> 
> Should the EJB container be removing the serialized files 
> from disk after a
> certain amount of time (or whenever they become invalid)?
> Is this configurable?
> Do I need to set up a cron job to perform removal of old 
> serialized beans?
> 
> Vital Statistics:
> JBoss version 2.2
> Tomcat version 3.2.1
> OS Solaris 8 (SunOS 5.8)
> 
> [...appserver/jboss/db/sessions/Inventory]:ls -C1 | wc -l
>18250
> 
> Thanks for any suggestions or input!
> -Sameer Nanda
> 
> ___
> 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] JSP / EJB communication

2001-07-06 Thread danch (Dan Christopherson)

[EMAIL PROTECTED] wrote:

> I'm disappointed.
> I have the jboss-2.2.2_tomcat-3.2.2 release installed on my linux.
> 
> It starts very well.
> 
> But what I thought was EJB/JSP communication when connecting to
> http://localhost:8080 is in fact only JSP examples from tomcat's part...
> 
> What I don't understand is how to test the "tomcat-test.ear" example in
> JBoss-2.2.2_Tomcat-3.2.2/jboss/deploy/  directory.


go to http://localhost:8080/jboss


> 
> And so on, in old mail of this list, someone had left a very simple exemple
> of JSP connecting to EJB via this server.
> It was to make a Hello.ear exemple only making a pretty "Hello World" in
> result.
> I tried many ways to make it run, I never reached the good one...


What errors did you get?

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



RE: [JBoss-user] Session Bean Serialization Fun

2001-07-06 Thread Bordet, Simone

Hi !

> Hi,
> is this OS specific? 

No, of course.

> Running on Linux 2.2.16 (SuSE 
> Distribution) there is no
> such thing as a db/session dir?

Probably you remove your session beans when they're done, before they get
passivated ?

Simon

> Burkhard
> - Original Message -
> From: "Nanda, Sameer (AT-Atlanta)" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, July 06, 2001 4:50 PM
> Subject: [JBoss-user] Session Bean Serialization Fun
> 
> 
> > I am having a problem with the number of serilized Session 
> Beans jboss is
> > creating on our server.
> > JBoss seems to be serializing to disk all active Session 
> Beans every 10
> > minutes but does not remove any.
> > We have typically 50 to 100 serialized every 10 min., 
> causing tens of
> > thousands of files (all in a single directory) in a few days.
> >
> > I have looked through the jboss source and have found a
> > SessionObjectOutputStream class (as well as 
> SessionObjectInputStream) that
> > refers to serializing the EJBObjects according to section 
> 6.4.1 of the
> > ejb1.1 specification. (They are serialized on ejbPassivate 
> and read back
> on
> > ejbActivate.)
> >
> > The problem is that none of these files are ever removed, 
> which creates a
> > huge mess.
> >
> > Should the EJB container be removing the serialized files 
> from disk after
> a
> > certain amount of time (or whenever they become invalid)?
> > Is this configurable?
> > Do I need to set up a cron job to perform removal of old 
> serialized beans?
> >
> > Vital Statistics:
> > JBoss version 2.2
> > Tomcat version 3.2.1
> > OS Solaris 8 (SunOS 5.8)
> >
> > [...appserver/jboss/db/sessions/Inventory]:ls -C1 | wc -l
> >18250
> >
> > Thanks for any suggestions or input!
> > -Sameer Nanda
> >
> > ___
> > 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] Newbie having problems with Interest sample

2001-07-06 Thread Lachezar Dobrev
Title: Newbie having problems with Interest sample



   You have to get the JBoss client 
jars in your client.
   How about:
   Create a library in JBuilder (Let's 
say JBoss_Library). Add the following jars to that library:
    
$JBOSS_HOME/client/ejb.jar 
-> REQUIRED

    
$JBOSS_HOME/client/jaas.jar    
-> In case you have security

    
$JBOSS_HOME/client/jboss-client.jar    -> 
REQUIRED

    
$JBOSS_HOME/client/jbossmq-client.jar  -> In case you work with 
JMS

    
$JBOSS_HOME/client/jbossmx-client.jar  -> In case you want to use 
JMX

    
$JBOSS_HOME/client/jndi.jar-> 
REQUIRED

    
$JBOSS_HOME/client/jnp-client.jar  -> 
REQUIRED
    $JBOSS_HOME/client/jta-spec1_0_1.jar   -> 
In case you want user transactions.
 
   Then add this library to your project (Project 
Properties).
   Then create a jndi.properties file in your src directory. Put 
in it:
 
 
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory 
java.naming.provider.url=jnp://localhost:1099/
 
   Try again.
 
   Lachezar
 

  Hi, 
  Hopefully this is an easy one! 
  I've just installed 
  JBoss-2.2.2_Tomcat-3.2.2. 
  I've deployed the Interest EJB into JBoss without 
  any problems by following the tutorial in the online html help. 
  I've tried to run the client in JBuilder 4 but it 
  coughs on the very first line: 
   
  InitialContext jndiContext = new InitialContext(); 
  The exception I get is: 
  javax.naming.CommunicationException: Can't find 
  SerialContextProvider 
  Could someone give me a pointer? 
  Thanks. 
  Martin 


Re: SV: [JBoss-user] Re: Jboss Performance problems

2001-07-06 Thread danch (Dan Christopherson)

Lennart Petersson wrote:

> - Original Message - 
> From: danch (Dan Christopherson) <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, July 05, 2001 11:37 PM
> Subject: Re: [JBoss-user] Re: Jboss Performance problems
> 
> 
> 
>>Actually, tuned-updates is a little more overhead, in both memory and time.
>>
>>
>>
>>>How is this archieved  ?
>>>
>>
>>JAWS saves the field values from the load operation and compares the 
>>current values with the saved ones, then only updates the modified fields.
>>
>>
> 
> Is then this conclusion correct: With a CMP bean, if I'm using isModified then it is 
>unnecessary (even bad) to use tuned-updates? Or does it depend on the kind of updates 
>involved with the bean, like it is a big entity but i often only change a status flag 
>on it then tuned-updates is still good?
> 
> 


I'd say it definately depends on what kinds of updates you're doing. The 
example you discuss is a pretty good one - I'd use tuned updates there. 
Note that if you have a large entity with a lot of different update 
patterns, the tuned-updates might interfere with some database's caching 
of query plans. This is becuase JAWS will be generating a lot of 
different SQL for the updates, and might overload caches in the DB server.

-danch




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



Re: [JBoss-user] Session Bean Serialization Fun

2001-07-06 Thread Burkhard Vogel

Hi,
is this OS specific? Running on Linux 2.2.16 (SuSE Distribution) there is no
such thing as a db/session dir?
Burkhard
- Original Message -
From: "Nanda, Sameer (AT-Atlanta)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 4:50 PM
Subject: [JBoss-user] Session Bean Serialization Fun


> I am having a problem with the number of serilized Session Beans jboss is
> creating on our server.
> JBoss seems to be serializing to disk all active Session Beans every 10
> minutes but does not remove any.
> We have typically 50 to 100 serialized every 10 min., causing tens of
> thousands of files (all in a single directory) in a few days.
>
> I have looked through the jboss source and have found a
> SessionObjectOutputStream class (as well as SessionObjectInputStream) that
> refers to serializing the EJBObjects according to section 6.4.1 of the
> ejb1.1 specification. (They are serialized on ejbPassivate and read back
on
> ejbActivate.)
>
> The problem is that none of these files are ever removed, which creates a
> huge mess.
>
> Should the EJB container be removing the serialized files from disk after
a
> certain amount of time (or whenever they become invalid)?
> Is this configurable?
> Do I need to set up a cron job to perform removal of old serialized beans?
>
> Vital Statistics:
> JBoss version 2.2
> Tomcat version 3.2.1
> OS Solaris 8 (SunOS 5.8)
>
> [...appserver/jboss/db/sessions/Inventory]:ls -C1 | wc -l
>18250
>
> Thanks for any suggestions or input!
> -Sameer Nanda
>
> ___
> 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] Session Bean Serialization Fun

2001-07-06 Thread Bordet, Simone

Hi !

The feature you need is present and configurable in JBoss 2.4.

Simon

> -Original Message-
> From: Nanda, Sameer (AT-Atlanta) [mailto:[EMAIL PROTECTED]]
> Sent: venerdì 6 luglio 2001 16:51
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Session Bean Serialization Fun
> 
> 
> I am having a problem with the number of serilized Session 
> Beans jboss is
> creating on our server.
> JBoss seems to be serializing to disk all active Session 
> Beans every 10
> minutes but does not remove any.
> We have typically 50 to 100 serialized every 10 min., causing tens of
> thousands of files (all in a single directory) in a few days.
> 
> I have looked through the jboss source and have found a
> SessionObjectOutputStream class (as well as 
> SessionObjectInputStream) that
> refers to serializing the EJBObjects according to section 6.4.1 of the
> ejb1.1 specification. (They are serialized on ejbPassivate 
> and read back on
> ejbActivate.)
> 
> The problem is that none of these files are ever removed, 
> which creates a
> huge mess.
> 
> Should the EJB container be removing the serialized files 
> from disk after a
> certain amount of time (or whenever they become invalid)?
> Is this configurable?
> Do I need to set up a cron job to perform removal of old 
> serialized beans?
> 
> Vital Statistics:
> JBoss version 2.2
> Tomcat version 3.2.1
> OS Solaris 8 (SunOS 5.8)
> 
> [...appserver/jboss/db/sessions/Inventory]:ls -C1 | wc -l
>18250
> 
> Thanks for any suggestions or input!
> -Sameer Nanda
> 
> ___
> 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] Session Bean Serialization Fun

2001-07-06 Thread Nanda, Sameer (AT-Atlanta)

I am having a problem with the number of serilized Session Beans jboss is
creating on our server.
JBoss seems to be serializing to disk all active Session Beans every 10
minutes but does not remove any.
We have typically 50 to 100 serialized every 10 min., causing tens of
thousands of files (all in a single directory) in a few days.

I have looked through the jboss source and have found a
SessionObjectOutputStream class (as well as SessionObjectInputStream) that
refers to serializing the EJBObjects according to section 6.4.1 of the
ejb1.1 specification. (They are serialized on ejbPassivate and read back on
ejbActivate.)

The problem is that none of these files are ever removed, which creates a
huge mess.

Should the EJB container be removing the serialized files from disk after a
certain amount of time (or whenever they become invalid)?
Is this configurable?
Do I need to set up a cron job to perform removal of old serialized beans?

Vital Statistics:
JBoss version 2.2
Tomcat version 3.2.1
OS Solaris 8 (SunOS 5.8)

[...appserver/jboss/db/sessions/Inventory]:ls -C1 | wc -l
   18250

Thanks for any suggestions or input!
-Sameer Nanda

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



[JBoss-user] Newbie having problems with Interest sample

2001-07-06 Thread Martin Welch
Title: Newbie having problems with Interest sample





Hi,


Hopefully this is an easy one!


I've just installed JBoss-2.2.2_Tomcat-3.2.2.


I've deployed the Interest EJB into JBoss without any problems by following the tutorial in the online html help.


I've tried to run the client in JBuilder 4 but it coughs on the very first line:


 InitialContext jndiContext = new InitialContext();


The exception I get is:


javax.naming.CommunicationException: Can't find SerialContextProvider


Could someone give me a pointer? 


Thanks.


Martin





RE: [JBoss-user] JBoss Jetty Configuration

2001-07-06 Thread marc fleury

bring it on! 
I am waiting 

marcf


|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of Julian
|Gosnell
|Sent: Friday, July 06, 2001 10:33 AM
|To: [EMAIL PROTECTED]
|Subject: Re: [JBoss-user] JBoss Jetty Configuration
|
|
|In a word - NO !
|
|What you may be able to do - but should be careful
|that you are working with the same JBoss versions- is
|copy eveything but jboss.conf and jboss.jcml (you may
|have to patch changes that you have made to these)
|from jboss-tomcat/jboss/conf/tomcat into
|jboss-jetty/jboss/conf/jetty.
|
|If you have to path these remaining files over -
|ignore everything to do with tomcat.
|
|You should probably wait for the latest jboss-jetty
|release - hopefully very shortly, as this fixes a
|couple of problems which you might otherwise
|encounter.
|
|Jules
|
|
|
| --- Mark Crowley <[EMAIL PROTECTED]> wrote: >
|Hi,
|> 
|> I have previously been running with the JBoss/Tomcat
|> installation. Am now trying the Jetty version.
|> 
|> Is the JBoss exe the same in both configs?
|> 
|> Can I just copy the jboss/conf/jetty directory to my
|> existing jboss/conf directory (which already
|> contains
|> a tomcat sub-dir)?
|> 
|> Also can I simply copy the jboss.jcml and
|> standardjaws.xml files from my tomcat conf to the
|> jetty conf to setup my existing datasources?
|> 
|> Thanks in advance.
|> 
|> 
|>
|
|> Do You Yahoo!?
|> Get your free @yahoo.co.uk address at
|> http://mail.yahoo.co.uk
|> or your free @yahoo.ie address at
|> http://mail.yahoo.ie
|> 
|> ___
|> JBoss-user mailing list
|> [EMAIL PROTECTED]
|>
|http://lists.sourceforge.net/lists/listinfo/jboss-user 
|
|
|Do You Yahoo!?
|Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
|or your free @yahoo.ie address at http://mail.yahoo.ie
|
|___
|JBoss-user mailing list
|[EMAIL PROTECTED]
|http://lists.sourceforge.net/lists/listinfo/jboss-user


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



Re: [JBoss-user] Where to put property files for an application?

2001-07-06 Thread Steve Slatcher


"Joachim Schaaf" <[EMAIL PROTECTED]> wrote in message 
0107061559120H.01758@skirtos">news:0107061559120H.01758@skirtos...
> Hi,
>
> I'm new to JBoss and want to port an existing Java application to JBoss. I
> wrote a simple EJB, taglib and JSP page and hey!  - it works ;)
> Currently the configuration is stored in a property file (database user
> name/passwd/jdbc and lots of app. specific things). Where should it put the
> property file in JBoss? Or is there a smarter solution than property files?

For you EJBs, you might want to use "env-entry" elements in the deployment descriptor.





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



Re: [JBoss-user] JBoss Jetty Configuration

2001-07-06 Thread Julian Gosnell

In a word - NO !

What you may be able to do - but should be careful
that you are working with the same JBoss versions- is
copy eveything but jboss.conf and jboss.jcml (you may
have to patch changes that you have made to these)
from jboss-tomcat/jboss/conf/tomcat into
jboss-jetty/jboss/conf/jetty.

If you have to path these remaining files over -
ignore everything to do with tomcat.

You should probably wait for the latest jboss-jetty
release - hopefully very shortly, as this fixes a
couple of problems which you might otherwise
encounter.

Jules



 --- Mark Crowley <[EMAIL PROTECTED]> wrote: >
Hi,
> 
> I have previously been running with the JBoss/Tomcat
> installation. Am now trying the Jetty version.
> 
> Is the JBoss exe the same in both configs?
> 
> Can I just copy the jboss/conf/jetty directory to my
> existing jboss/conf directory (which already
> contains
> a tomcat sub-dir)?
> 
> Also can I simply copy the jboss.jcml and
> standardjaws.xml files from my tomcat conf to the
> jetty conf to setup my existing datasources?
> 
> Thanks in advance.
> 
> 
>

> Do You Yahoo!?
> Get your free @yahoo.co.uk address at
> http://mail.yahoo.co.uk
> or your free @yahoo.ie address at
> http://mail.yahoo.ie
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
>
http://lists.sourceforge.net/lists/listinfo/jboss-user 


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

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



Re: [JBoss-user] Where to put property files for an application?

2001-07-06 Thread Matt Goodall

You can put in in your webapp's classes directory, i.e.
$TOMCAT_HOME/webapps/myapp/WEB-INF/classes, and use
getClass().getClassLoader().getResource() or
getClass().getClassLoader().getResourceAsStream() to load it from inside the
servlet.

Cheers, Matt

- Original Message -
From: Joachim Schaaf <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 6:59 AM
Subject: [JBoss-user] Where to put property files for an application?


> Hi,
>
> I'm new to JBoss and want to port an existing Java application to JBoss. I
> wrote a simple EJB, taglib and JSP page and hey!  - it works ;)
> Currently the configuration is stored in a property file (database user
> name/passwd/jdbc and lots of app. specific things). Where should it put
the
> property file in JBoss? Or is there a smarter solution than property
files?
>
> Thanks in advance,
> Joachim
>
> --
> Dipl.-Ing. Joachim Schaaf | Projektleiter | mailto:[EMAIL PROTECTED]
> cataloom AG | Eupener Str. 148 | 50933 K.ln | http://cataloom.com/
> Tel: +49 221 4851807 | Fax: +49 221 4851907 | Mobil-Tel: +49 170 7667807
>


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



Re: [JBoss-user] Where to put property files for an application?

2001-07-06 Thread Mike Thompson

Well, if it's just database names/password/jdbc stuff, you should be able to
use the javax.sql.DataSource.  Just configure it in your jboss.jcml and snag
it via JNDI.
--m

- Original Message -
From: "Joachim Schaaf" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 8:59 AM
Subject: [JBoss-user] Where to put property files for an application?


> Hi,
>
> I'm new to JBoss and want to port an existing Java application to JBoss. I
> wrote a simple EJB, taglib and JSP page and hey!  - it works ;)
> Currently the configuration is stored in a property file (database user
> name/passwd/jdbc and lots of app. specific things). Where should it put
the
> property file in JBoss? Or is there a smarter solution than property
files?
>
> Thanks in advance,
> Joachim
>
> --
> Dipl.-Ing. Joachim Schaaf | Projektleiter | mailto:[EMAIL PROTECTED]
> cataloom AG | Eupener Str. 148 | 50933 Köln | http://cataloom.com/
> Tel: +49 221 4851807 | Fax: +49 221 4851907 | Mobil-Tel: +49 170 7667807
>
> ___
> 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] using JBoss to look up a JMS topic from an LDAP server

2001-07-06 Thread kevin1


How would I configure JBoss to look up JMS topics from an LDAP server?






-- 
No one may be called "good" if they have had no chance to be bad...

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



[JBoss-user] Where to put property files for an application?

2001-07-06 Thread Joachim Schaaf

Hi,

I'm new to JBoss and want to port an existing Java application to JBoss. I 
wrote a simple EJB, taglib and JSP page and hey!  - it works ;)
Currently the configuration is stored in a property file (database user 
name/passwd/jdbc and lots of app. specific things). Where should it put the 
property file in JBoss? Or is there a smarter solution than property files?

Thanks in advance,
Joachim

-- 
Dipl.-Ing. Joachim Schaaf | Projektleiter | mailto:[EMAIL PROTECTED]
cataloom AG | Eupener Str. 148 | 50933 Köln | http://cataloom.com/
Tel: +49 221 4851807 | Fax: +49 221 4851907 | Mobil-Tel: +49 170 7667807

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



[JBoss-user] Problem in Integration with Tomcat and jboss

2001-07-06 Thread Rajesh Vilasrao Bhujbal



I am using 
tomcat-3.2.2 and jboss-2.2.2. I want to use tomcat with jboss. i follwed 
procedure given in Jboss documentation. But still i am not able to achive this. 
After starting jboss, i get error: could not start 
EmbeddedTomcat
 
can you help 
me:
TIA
RAJESH


[JBoss-user] About syncronaization of deploy

2001-07-06 Thread Keiichiro Katayama

Hello , This is Kei Katayama.

When I update the ear file included servlets and EJBs JSPs , will 
JBOSS guarantee the consistency of component?

For example , my ear file named test1.ear were include Servlet-1 ,
EJB-1 , JSP-1.   And Servlet-1 uses EJB-1.

Next I changed the EJB-1.  Servlet-1 uses new EJB-1 now.
And I archived Servlet-1 , new EJB-1 , JSP-1 in the test2.ear. 
And I deployed test-2.ear.

At that time , will JBOSS wait for request for Servlet-1 until all
components(Servlet-1 / new EJB-1 / JSP-1) will be deployed in JBOSS   
perfectly?   If not , I think the consistency of components will  
collapse.   Because if during deploying of new EJB-1 , Servlet-1 can't
use new EJB-1.   When during writing to JBOSS the EJB file which is   
picked out from ear file on deploy directory , I think we can't access
them.   Do you have any informations about this?



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



[JBoss-user] JBoss Jetty Configuration

2001-07-06 Thread Mark Crowley

Hi,

I have previously been running with the JBoss/Tomcat
installation. Am now trying the Jetty version.

Is the JBoss exe the same in both configs?

Can I just copy the jboss/conf/jetty directory to my
existing jboss/conf directory (which already contains
a tomcat sub-dir)?

Also can I simply copy the jboss.jcml and
standardjaws.xml files from my tomcat conf to the
jetty conf to setup my existing datasources?

Thanks in advance.



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

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



[JBoss-user] JSP / EJB communication

2001-07-06 Thread Antoine . ISIDOR

I'm disappointed.
I have the jboss-2.2.2_tomcat-3.2.2 release installed on my linux.

It starts very well.

But what I thought was EJB/JSP communication when connecting to
http://localhost:8080 is in fact only JSP examples from tomcat's part...

What I don't understand is how to test the "tomcat-test.ear" example in
JBoss-2.2.2_Tomcat-3.2.2/jboss/deploy/  directory.

And so on, in old mail of this list, someone had left a very simple exemple
of JSP connecting to EJB via this server.
It was to make a Hello.ear exemple only making a pretty "Hello World" in
result.
I tried many ways to make it run, I never reached the good one...

Please, help me, I have to make it run for enterprise use before the end of
next week.


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



Re: [JBoss-user] Re: Jboss Performance problems

2001-07-06 Thread Hermann RANGAMANA

Hi all,

could you post here some example of an entity beans implementing isModified
() ?

--hermann
- Original Message -
From: "Devraj Mukherjee" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 1:53 AM
Subject: Re: [JBoss-user] Re: Jboss Performance problems


> Hi Saul,
>
> I would like to know more about this, is it possible for you to email me
> one of your entity beans?
>
> Devraj
>
> At 16:00 5/07/01 -0400, you wrote:
> >Hello all,
> >
> >I implemented the isModified() method in each of the offending entity
> >beans, and the speed improvements are dramatic.  A page that used to
> >take around 30-45 seconds to load now takes around .75-1.25 seconds (the
> >hardware is pretty slow).  That is a HUGE performance increase.
> >
> >Thanks for your help!
> >
> >saul
> >
> >
> >___
> >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] Re: mysql | postgresql XA Connection Pool problem

2001-07-06 Thread Larry Coleman

I have FreeBSD 4.3 running the 1.3 SDK with Linux emulation. I'm just
getting started, 
but I have gotten JBoss to run and I set up a couple of database
connection pools with 
PostgreSQL 7.1.

Achilleus Mantzios wrote:
> 
> Thanx Dragos,
> Just a general question here,
> Has anyone run jboss on a FreeBSD 4.3 with linux emulation
> and j2sdk1.3.0 
> 

-- 
Larry Coleman
[EMAIL PROTECTED]

Democracy: Two wolves and a lamb deciding what to have for dinner.

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



[JBoss-user] EJBDoclet / JBoss entity bean Cache Problems / IllegalStateException in JDBCCommand

2001-07-06 Thread Vincent Harcq

Hi,
This problem may be interresting for ejbdoclet/jboss users.  But it can
happen to other as well, if you picked up your template PK class from a
book, ...

I faced a problem, in fact different problems during... well some time
now... on entity beans accessed by session beans.

It gives strange things like
   - having database updated but not the bean instance
   - IllegalStateException in JDBCCommand()
   - maybe others

I shout on JBoss, on the cache, on myself, ...

Very stange things that were in fact caused by a very simple stuff: the
hashCode() method of the Primary Key class.
If it contains private attributes, you have to make these as transient.

Another solution was to add a toString() method, which in fact is not bad
idea, a lot more easy to follow what happens in debug mode :)

For EJBDoclet, this means having :

==>   transient private int _hashCode = Integer.MIN_VALUE;   <== here we
are !!!

   public java.lang.String pk;

   public MasterDOPK()
   {
   }

   public MasterDOPK(java.lang.String pk)
   {
  this.pk = pk;
   }

   public java.lang.String getPk()
   {
  return pk;
   }

   public int hashCode()
   {
  if (_hashCode == Integer.MIN_VALUE)
  {
 _hashCode += this.pk.hashCode();
  }

  return _hashCode;
   }

   public boolean equals(Object obj)
   {
  if (!(obj instanceof com.hm.test.jboss.interfaces.MasterDOPK))
 return false;

  com.hm.test.jboss.interfaces.MasterDOPK pk =
(com.hm.test.jboss.interfaces.MasterDOPK)obj;
  boolean eq = true;
  eq = eq && this.pk.equals(pk.pk);

  return eq;
   }

Hope this can solve other nights ;)  It was a weird one really.

A good rule to follow is
If your entity bean and your db does not go OK
1. Play with commit-option A, B, C / understand what is a transaction (run
alone on the system)
2. Set the cache-size to min/max 1/1 OR to very big values as well as the
overager periods (to reproduce the problem)
3. don't shout on JBoss Cache bug
4. Look at your hashCode method of your PK Class, add a toString method
5. Blame yourself not JBoss

Regards.
Vincent.


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



Re: [JBoss-user] Re: mysql | postgresql XA Connection Pool problem

2001-07-06 Thread Achilleus Mantzios

Thanx Dragos,
Just a general question here,
Has anyone run jboss on a FreeBSD 4.3 with linux emulation
and j2sdk1.3.0 


Dragos Haiduc wrote:

> Hi.
> Please make sure that your DB system is started before attempting to
> start JBoss(this might be the reason that you get the NPE), because at
> startup it will try to bind the DataSource connection pool to the
> namespace.
>
> I am running almost the same config as you, RedHat7.1(kernel
> 2.4.2)/Sun jdk1.3.1/ JBoss 2.2.2(without Tomcat)/Postgres 7.
> Haven't tried with mysql yet, though, but it shouldn't be a problem.
> I'll attach my jboss.jcml, have a look if you want.
>
> Hope this helps,
> Dragos


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



RE: [JBoss-user] Data dirty problem in cmp entity bean.

2001-07-06 Thread Andre [EMAIL PROTECTED]

Change your Commit-option in your jboss.jcml file to at least B - restart
the server - then test your scenario again - LOT of posts in the archives
about this.

av

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 11:33 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Data dirty problem in cmp entity bean.


I have created a cmp entity bean in jboss and now I find a problem.
The bean name is service, and in oracle8i ,there is a table named Service
with two field: name(PK) and value, so does the entity bean.
There is a row like this
namevalue
-   -
jack  22

When I run the test client for the first time, the client call 
findByPrimaryKey and print the value of the jack, it 22.
then I changed the value to 60 in oracle, through sqlplus.
then I run the test client again, but the value of jack is still 22.

How does this occur and what to do?

I think it's a transcation problem. I have set the container-transaction
property of all method in beans in assembly-descriptor.
First set to NotSupported then Supports,then Required, 
but still can not slove this problem.

please give me some hints.

thank you all.

by kammi.
   2001-07-06 17:31:00.

_
[×ã²»³ö»§ ÇáËÉÉÏÍø] ÉÏÍøרÓúţº95963£¬Óû§Ãû/ÃÜÂ룺263
»¯×±Æ·ÏÄÈÕÌػݣ¬½µ¼Û¿ñ³±£¡  http://shopping.263.net/category04.htm

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


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**

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



Re: [JBoss-user] Passing remote interfaces from session bean to servlet

2001-07-06 Thread Burkhard Vogel

Hi,
this is a design issue, try passing only necessary vaules, or do a lookup of
the interfaces in the servlet (will only work on on integrated jboss-tomcat)
Burkhard
- Original Message -
From: "Benjamin Hille" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 11:33 AM
Subject: [JBoss-user] Passing remote interfaces from session bean to servlet


> Hi,
> I have a problem passing a vector of remote interfaces between a session
> bean and a servlet.
> Basically the servlet calls a method of a session bean that builds a
vector
> of remote interfaces of CMP beans. In the session bean there is no
problems
> in filling the vector. However the returned vector to the servlet is
always
> null.
> The servlet is deployed in war and the beans in jar, they are in different
> context.
> I use JBoss 2.2.1 with tomcat 3.2.1 on Suse 7.1 with Sun JDK 1.3.1
>
> Any hints will be wellcome.
> Cheers,
> Benjamin Hille
>
>
> ___
> 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



SV: [JBoss-user] Data dirty problem in cmp entity bean.

2001-07-06 Thread Lennart Petersson

Nope, it is more of a commit option problem. Look in the archives - there really is 
PLENTY of threads regarding this. Or try go chaning commit option from default A B or 
C in your conf/standardjaws.xml - just to verify that it is your problem.
/Lennart

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 11:33 AM
Subject: [JBoss-user] Data dirty problem in cmp entity bean.


> I have created a cmp entity bean in jboss and now I find a problem.
> The bean name is service, and in oracle8i ,there is a table named Service with two 
>field: name(PK) and value, so does the entity bean.
> There is a row like this
> namevalue
> -   -
> jack  22
> 
> When I run the test client for the first time, the client call 
> findByPrimaryKey and print the value of the jack, it 22.
> then I changed the value to 60 in oracle, through sqlplus.
> then I run the test client again, but the value of jack is still 22.
> 
> How does this occur and what to do?
> 
> I think it's a transcation problem. I have set the container-transaction property of 
>all method in beans in assembly-descriptor.
> First set to NotSupported then Supports,then Required, 
> but still can not slove this problem.
> 
> please give me some hints.
> 
> thank you all.
> 
> by kammi.
>2001-07-06 17:31:00.
> 
> _
> [×ã²»³ö»§ ÇáËÉÉÏÍø] ÉÏÍøרÓúţº95963£¬Óû§Ãû/ÃÜÂ룺263
> »¯×±Æ·ÏÄÈÕÌػݣ¬½µ¼Û¿ñ³±£¡  http://shopping.263.net/category04.htm
> 
> ___
> 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] How to map a Number field to a int correctly?

2001-07-06 Thread David Crecente

<<
   Hi,
   int is not allowed to be null.
   if exist the posibility of null in DateBase I belive cityId whould must
to be Integer.
>>

-Mensaje original-
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]En nombre de [EMAIL PROTECTED]
Enviado el: miércoles 4 de julio de 2001 15:33
Para: [EMAIL PROTECTED]
Asunto: [JBoss-user] How to map a Number field to a int correctly?


Hello everyone:

In a cmp entity bean, I made a map from Number(in Oracle) to INTEGER
(in Jdbc type) to int( in the entity bean) in the jaws.xml, as the
following:
cityId
CITY_ID
NUMBER(6)
INTEGER

(DataBase: oracle8i)

But When I call a finder to load a row whose City_ID field is null in
database, An Exception occurred.(as below).
If city_id is not null, It work well.

How to make it work? why this happened?


java.rmi.ServerException: RemoteException occurred in server thread; nested
exception is:
java.rmi.ServerException: Load failed; nested exception is:
java.lang.NullPointerException
java.rmi.ServerException: Load failed; nested exception is:
java.lang.NullPointerException
java.lang.NullPointerException
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:245)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown
Source)
at
org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy.java:18
2)
at $Proxy1.getId(Unknown Source)
at untitled6.NodeTestClient1.main(NodeTestClient1.java:106)
Exception in thread "main"


_
[×ã²»³ö»§ ÇáËÉÉÏÍø] ÉÏÍøרÓúţº95963£¬Óû§Ãû/ÃÜÂ룺263
»¯×±Æ·ÏÄÈÕÌػݣ¬½µ¼Û¿ñ³±£¡  http://shopping.263.net/category04.htm

___
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] Data dirty problem in cmp entity bean.

2001-07-06 Thread Burkhard Vogel

Hi,
Use Commit option C for you bean, this is appropriate if legacy applications
have access to the Database.
Burkhard
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 11:33 AM
Subject: [JBoss-user] Data dirty problem in cmp entity bean.


> I have created a cmp entity bean in jboss and now I find a problem.
> The bean name is service, and in oracle8i ,there is a table named Service
with two field: name(PK) and value, so does the entity bean.
> There is a row like this
> namevalue
> -   -
> jack  22
>
> When I run the test client for the first time, the client call
> findByPrimaryKey and print the value of the jack, it 22.
> then I changed the value to 60 in oracle, through sqlplus.
> then I run the test client again, but the value of jack is still 22.
>
> How does this occur and what to do?
>
> I think it's a transcation problem. I have set the container-transaction
property of all method in beans in assembly-descriptor.
> First set to NotSupported then Supports,then Required,
> but still can not slove this problem.
>
> please give me some hints.
>
> thank you all.
>
> by kammi.
>2001-07-06 17:31:00.
>
> _
> [×ã²»³ö»§ ÇáËÉÉÏÍø] ÉÏÍøרÓúţº95963£¬Óû§Ãû/ÃÜÂ룺263
> »¯×±Æ·ÏÄÈÕÌػݣ¬½µ¼Û¿ñ³±£¡  http://shopping.263.net/category04.htm
>
> ___
> 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] JMS call & JBoss

2001-07-06 Thread Burkhard Vogel

Hi,
try looking up "topic/FunctionTopic".
use JNDIView to make sure it really exists.
Burkhard
- Original Message -
From: "FRANCOIS Gilles" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 1:06 PM
Subject: [JBoss-user] JMS call & JBoss


> Hi,
> here is my problem:
>
> I have a sample stateless session bean.
> I want to use this session like a notifier module.
> I want to create a topic, and all the other stuff.
> But went I  create an instance, the soft throws a naming exception.
>
> Do I must put something in the xml files, and what ?
> Thanks !
>
> Gilles.
>
>
>
> My peace of code is like this :
>
>  public class InternalFunctionSessionBean implements SessionBean
> {
>   private SessionContext ctx;
>
>   private Topic topic = null ;
>   private TopicConnection tc = null ;
>   private TopicSession ts = null ;
>   private TopicPublisher tp = null ;
>
>   public void ejbCreate() throws CreateException
>   {
>  lookupJmsTopic () ;
>   }
>
> ..
>
>   private boolean lookupJmsTopic ()
>   {
> try
> {
> InitialContext ctx = new InitialContext () ;
> TopicConnectionFactory tcf = (TopicConnectionFactory)
ctx.lookup("TopicConnectionFactory");
> topic = (Topic) ctx.lookup("FunctionTopic");  // <== here is the
bug !!!
> tc = tcf.createTopicConnection () ;
> ts = tc.createTopicSession ( false, Session.AUTO_ACKNOWLEDGE ) ;
>tp = ts.createPublisher ( topic ) ;
> }
> catch ( Exception nEx ) { nEx.printStackTrace () ; return false ; }
> return true ;
>   }
>
>
>


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



[JBoss-user] Passing remote interfaces from session bean to servlet

2001-07-06 Thread Benjamin Hille

Hi,
I have a problem passing a vector of remote interfaces between a session
bean and a servlet.
Basically the servlet calls a method of a session bean that builds a vector
of remote interfaces of CMP beans. In the session bean there is no problems
in filling the vector. However the returned vector to the servlet is always
null.
The servlet is deployed in war and the beans in jar, they are in different
context.
I use JBoss 2.2.1 with tomcat 3.2.1 on Suse 7.1 with Sun JDK 1.3.1

Any hints will be wellcome.
Cheers,
Benjamin Hille


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



[JBoss-user] Data dirty problem in cmp entity bean.

2001-07-06 Thread li_c

I have created a cmp entity bean in jboss and now I find a problem.
The bean name is service, and in oracle8i ,there is a table named Service with two 
field: name(PK) and value, so does the entity bean.
There is a row like this
namevalue
-   -
jack  22

When I run the test client for the first time, the client call 
findByPrimaryKey and print the value of the jack, it 22.
then I changed the value to 60 in oracle, through sqlplus.
then I run the test client again, but the value of jack is still 22.

How does this occur and what to do?

I think it's a transcation problem. I have set the container-transaction property of 
all method in beans in assembly-descriptor.
First set to NotSupported then Supports,then Required, 
but still can not slove this problem.

please give me some hints.

thank you all.

by kammi.
   2001-07-06 17:31:00.

_
[×ã²»³ö»§ ÇáËÉÉÏÍø] ÉÏÍøרÓúţº95963£¬Óû§Ãû/ÃÜÂ룺263
»¯×±Æ·ÏÄÈÕÌػݣ¬½µ¼Û¿ñ³±£¡  http://shopping.263.net/category04.htm

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



Re: [JBoss-user] Error fetchning session bean

2001-07-06 Thread Burkhard Vogel

Stop!!!
DON'T include J2ee.jar if you not necessarily MUST!
It interferes with JBoss!
Burkhard
- Original Message -
From: "Nick Taylor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 10:33 AM
Subject: RE: [JBoss-user] Error fetchning session bean


>
>
> > -Original Message-
> > From: Nicolai P Guba [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, July 04, 2001 5:33 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] Error fetchning session bean
> >
> >
> > > "NT" == Nick Taylor <[EMAIL PROTECTED]> writes:
> >
> > >> Hmmm, I got this error.  The bean verifies and is deployed.  Could
> > >> somebody please shed some light into this?  Am I missing a jar
> > >> file?
> >
> > NT> yep, jboss-client.jar
> >
> > Arrrgh.  *pilot error*.  I had the file in my classpath but jde-mode
> > doesn't barf when the file doesn't exist.  I did some restructuring
> > (bad thing) and created a little problem.
> >
> > Now I'm getting this:
> >
> >
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > javax/transaction/TransactionManager
> > at java.lang.Class.getMethods0(Native Method)
> > at java.lang.Class.getDeclaredMethods(Class.java:1039)
> > at
> > java.io.ObjectStreamClass.computeSerialVersionUID(ObjectStream
> > Class.java:873)
> > at
> > java.io.ObjectStreamClass.access$200(ObjectStreamClass.java:46)
> > at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:420)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.io.ObjectStreamClass.init(ObjectStreamClass.java:401)
> >
> >
> > Another jar file missing?
> >
>
> the transaction stuff is in suns j2ee reference impl (j2ee.jar)...not sure
> where it lives in jboss tho.
>
> ___
> 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] subsequent rmi-calls disturb jboss

2001-07-06 Thread Wagnerka1
Hi there,

I'm running an RMI-Application inside JBoss. The application-classes reside 
in a jar file in the lib/ext-directory of JBoss. The client runs inside 
VisualAge and is getting the rmi-Stubs through JNDI. If I run the Application 
in Debugger, everything is o.k., but when I run it under normal conditions, 
method calls on rmi-Stubs cause the following exception:


java.rmi.NoSuchObjectException: no such object in table
void 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(java.lang.Excep

tion)
void sun.rmi.transport.StreamRemoteCall.executeCall()
java.lang.Object sun.rmi.server.UnicastRef.invoke(java.rmi.Remote, 
java.lang.reflect.Method, java.lang.Object [], long)
accounting.Statement accounting.AccountImpl_Stub.doStatement()
void accounting.AccountTests.testDoStatement()
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, 
java.lang.Object [])
void junit.framework.TestCase.runTest()
void junit.framework.TestCase.runBare()
void junit.framework.TestResult$1.protect()
void junit.framework.TestResult.runProtected(junit.framework.Test, 
junit.framework.Protectable)
void junit.framework.TestResult.run(junit.framework.TestCase)
void junit.framework.TestCase.run(junit.framework.TestResult)
void junit.framework.TestSuite.runTest(junit.framework.Test, 
junit.framework.TestResult)
void junit.framework.TestSuite.run(junit.framework.TestResult)
void junit.awtui.TestRunner$10.run()

I'm doing unit-tests. In the tear-down-method (executed after each 
test-method) I unbind all Objects from JNDI. If I don't do it, I get the 
exception mentioned above under debugging-conditions, too. Did someone have 
similar problems? It would be very nice if someone would help me.

Thanks
Matthias


Re: [JBoss-user] can i add a datasource at runtime.

2001-07-06 Thread Burkhard Vogel

Hi,
uhmmm, I guess I'm sticking my head out here, but well, you can add
Datasources at runtime, as they are pert of the JMX framework in JBoss. What
you have to do is:
1. Read the JMX API carefully (I did it at least twice, and still didn't get
full understanding).
2. Check chapter 11 of JBoss-documentation, there are examples for using
JMX.
3. Read the JBoss/Minerva Datasource MBean source.
4. create code that invokes the mbeanserver, add a custom mbean, which
provides Database functionallity.
5. try, try, try (I swear your JBoss is going to get a jojo from going up
and down...)
Good luck,
Burkhard
- Original Message -
From: "Rakesh Shankar Shringi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 7:07 AM
Subject: [JBoss-user] can i add a datasource at runtime.


> hi,
>
>   Is it possible to bind a datasource at runtime so that if i am adding
> a new datasource to my application i dont need to restart the JBOSS in
> order to use that datasource in my application.
>
>  This can be useful in the case of mission critical situations when i
> dont want to restart my jboss.
>
> right now i make changes in jboss.jcml and restart to bind the
> datasource. Also can some one explain me the use of jboss-auto.jcml.
>
>
> Thanks
> And yes i am finding this user list very useful for getting my problems
> solved. Thanks all for a nice response.
>
> Rakesh Shringi.
>
> ___
> 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] Re: mysql | postgresql XA Connection Pool problem

2001-07-06 Thread Achilleus Mantzios

In addition to my previous post i attach the output of
1) The freebsd run_with_tomcat,
2) the linux run_with_tomcat

> Hi,
> i am using JBoss2.2.2 with tomcat3.2.2.
> It worked fine (deploying and running a sample Enterprise Bean
> application),
> on a FreeBSD 4.3, with linux kernel 2.2.12 emulation, with jdk-1.3.0,
> and on an other installation with linux 2.4.5, and jdk1.3.1.
>
> Problems started when we tried to define a jdbc driver, and a POOL
> connection.
> We tried with both mysql and postgresql, but had no luck at all.
> We tried the mm.mysql-2.0.2 driver for mysql, as well as ANY driver for
> mysql, and driver jdbc7.0-1.2 for postgress.
>
> In FreeBSD the Driver is Loaded ok, but when jboss comes to the XA
> connection
> pool then it gets an 11 exception, and jboss (along with the
> FreeBSD itself!)
> freezes for about 2 minutes.
> Then jboss aborts, and FreeBSD goes on to operation.
>
> With linux things are a little different.
> We just get a null pointer exception.
>
> Please note that in the info i provide i could use mysql and postgress
> intechangably.
> In FreeBSD always hangs and after 2 minutes resumes normal operation,
> in linux it continues but with XA connection pool (either mysql or
> postgress)
> NOT started.
>
> Has anyone managed to get jboss to work in linux/FreeBSD with these
> two databases??
>
> Thanx,
>
> --
> &Agr;&khgr;&igr;&lgr;&lgr;&eacgr;&agr;&sfgr; &Mgr;&aacgr;&ngr;&tgr;&zgr;&igr;&ogr;&sfgr;
> Application Developer
> Eurisko A.E.
> &Pgr;&igr;&ngr;&dgr;&aacgr;&rgr;&ogr;&ugr; 9
> 106 71 &Agr;&thgr;&eeacgr;&ngr;&agr;
> &Tgr;&eegr;&lgr;: +301 3633362
> &PHgr;&agr;&xgr;: +301 3633074
> e-mail: [EMAIL PROTECTED]

--
&Agr;&khgr;&igr;&lgr;&lgr;&eacgr;&agr;&sfgr; &Mgr;&aacgr;&ngr;&tgr;&zgr;&igr;&ogr;&sfgr;
Application Developer
Eurisko A.E.
&Pgr;&igr;&ngr;&dgr;&aacgr;&rgr;&ogr;&ugr; 9
106 71 &Agr;&thgr;&eeacgr;&ngr;&agr;
&Tgr;&eegr;&lgr;: +301 3633362
&PHgr;&agr;&xgr;: +301 3633074
e-mail: [EMAIL PROTECTED]




Script started on Fri Jul  6 09:30:53 2001
bsd# runsh run_with_tomcat.sh
JBOSS_CLASSPATH=:/usr/local/java/lib/tools.jar:run.jar:../lib/crimson.jar
jboss.home = /usr/local/JBoss-2.2.2_Tomcat-3.2.2/jboss
Using JAAS LoginConfig: 
file:/usr/local/JBoss-2.2.2_Tomcat-3.2.2/jboss/conf/tomcat/auth.conf
Using configuration "tomcat"
[Info] Java version: 1.3.0,Blackdown Java-Linux Team
[Info] Java VM: Java HotSpot(TM) Server VM Blackdown-1.3.0-FCS,Blackdown Java-Linux 
Team
[Info] System: Linux 2.2.12,i386
[Shutdown] Shutdown hook added
[Service Control] Registered with server
[Service Control] Initializing 27 MBeans
[Webserver] Initializing
[Webserver] Initialized
[Naming] Initializing
[Naming] Initialized
[JNDIView] Initializing
[JNDIView] Initialized
[Transaction manager] Initializing
[Transaction manager] Initialized
[JAAS Security Manager] Initializing
[JAAS Security Manager] Initialized
[JDBC provider] Initializing
[JDBC provider] Loaded JDBC-driver:org.hsql.jdbcDriver
[JDBC provider] Loaded JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver
[JDBC provider] Loaded JDBC-driver:org.gjt.mm.mysql.Driver
[JDBC provider] Loaded JDBC-driver:org.postgresql.Driver
[JDBC provider] Initialized
[Hypersonic] Initializing
[Hypersonic] Initialized
[InstantDB] Initializing
[InstantDB] Initialized
[DefaultDS] Initializing
[DefaultDS] Initialized
[PostgresDS] Initializing
[PostgresDS] Initialized
[Container factory] Initializing
[Container factory] Initialized
[EmbeddedTomcatSX] Initializing
[EmbeddedTomcatSX] Initialized
[JBossMQ] Initializing
[JBossMQ] Initialized
[DefaultJMSProvider] Initializing
[DefaultJMSProvider] Initialized
[StdJMSPool] Initializing
[StdJMSPool] Initialized
[J2EE Deployer Default] Initializing
[J2EE Deployer Default] Initialized
[Auto deploy] Initializing
[Auto deploy] Initialized
[RARDeployer] Initializing
[RARDeployer] Found a temp directory left over from a previous run - deleting it.
[RARDeployer] Initialized
[ConnectionManagerFactoryLoader] Initializing
[MinervaNoTransCMFactory] Initialized
[ConnectionManagerFactoryLoader] Initializing
[MinervaSharedLocalCMFactory] Initialized
[ConnectionManagerFactoryLoader] Initializing
[MinervaXACMFactory] Initialized
[ConnectionFactoryLoader] Initializing
[BlackBoxDS] Initialized
[JMX RMI Adaptor] Initializing
[JMX RMI Adaptor] Initialized
[JMX RMI Connector] Initializing
[JMX RMI Connector] Initialized
[Mail Service] Initializing
[Mail Service] Initialized
[mySQLDS] Initializing
[mySQLDS] Initialized
[Service Control] Initialized 27 services
[Service Control] Starting 27 MBeans
[Webserver] Starting
[Webserver] Codebase set to http://bsd.eurisko.gr:8083/
[Webserver] Started webserver on port 8083
[Webserver] Started
[Naming] Starting
[Naming] Starting jnp server
[Naming] Started jnpPort=1099, rmiPort=0, Client SocketFactory=null, Server 
SocketFactory=null
[Naming] Naming started on port 1099
[Naming] Started
[JNDIView] Starting
[JNDIView] Started
[Transaction manager] Starting
[Transaction manager] Started
[JAAS 

  1   2   >