Re: [JBoss-user] Base Documentation update on free anymore?

2002-03-05 Thread Scott M Stark

The final free update to the 2.4.x online book was in Jan.
The content of the online version has been complete since
Jan 1 2002. All subequent updates have been minor format
changes or corrections. The next update to the online book
will cover the changes in the 2.4.5 release.


Scott Stark
Chief Technology Officer
JBoss Group, LLC

- Original Message -
From: "Keith Kee" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 05, 2002 3:08 PM
Subject: [JBoss-user] Base Documentation update on free anymore?


> I bought the base documentation in Jan 24 from FlashLine under the
> recommendations in this mailing list that I will continue to get free
> updates of the docs until the final version of the documentation. I
noticed
> a new version dated 3/3/2002 on the web, but Flashline wants another $10
for
> the copy. How many more versions are there before the final book? I may
end
> up paying a lot more than the to-be-published book.
>
> Anyone having the same experience?
>
> Thanks
> keith



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



Re: [JBoss-user] JBossMQ broken?

2002-03-05 Thread David Jencks

On 2002.03.05 17:51:46 -0500 Stephen Davidson wrote:
> Greetings.
> 
> A fresh co of JBoss3.0Beta2 (Head Revision).  On startup, I get the
> following errors.
> 
> Suggestions or tips?

Try adding this to jms-service.xml:

  

david jencks
> 
> -Steve
> 
> 16:11:32,361 INFO  [MainDeployer] Starting deployment of package:
> 
>file:/home/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/jms-service.xml
> 16:11:33,521 ERROR [SARDeployer] operation failed
> java.lang.ClassNotFoundException: org.jboss.resource.ConnectionFactoryLoader
>  at org.jboss.system.ServiceLibraries.loadClass(ServiceLibraries.java:422)
>  at org.jboss.system.MBeanClassLoader.loadClass(MBeanClassLoader.java:83)
>  at org.jboss.system.MBeanClassLoader.loadClass(MBeanClassLoader.java:90)
>  at 
>com.sun.management.jmx.MBeanServerImpl.findClass(MBeanServerImpl.java:2466)
>  at 
>com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:751)
>  at org.jboss.system.ServiceCreator.install(ServiceCreator.java:98)
>  at org.jboss.system.ServiceController.install(ServiceController.java:153)
>  at java.lang.reflect.Method.invoke(Native Method)
>  at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
>  at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
>  at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:73)
>  at $Proxy3.install(Unknown Source)
>  at org.jboss.deployment.SARDeployer.create(SARDeployer.java:227)
>  at org.jboss.deployment.MainDeployer.create(MainDeployer.java:585)
>  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)
>  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:454)
>  at java.lang.reflect.Method.invoke(Native Method)
>  at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
>  at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
>  at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:73)
>  at $Proxy2.deploy(Unknown Source)
>  at 
>org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:295)
>  at 
>org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:466)
>  at 
>org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:356)
>  at 
>org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:228)
>  at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
>  at java.lang.reflect.Method.invoke(Native Method)
>  at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
>  at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
>  at 
>org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:720)
>  at $Proxy0.start(Unknown Source)
>  at org.jboss.system.ServiceController.start(ServiceController.java:314)
>  at org.jboss.system.ServiceController.start(ServiceController.java:331)
>  at java.lang.reflect.Method.invoke(Native Method)
>  at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
>  at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
>  at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:326)
>  at org.jboss.system.server.ServerImpl.start(ServerImpl.java:208)
>  at org.jboss.Main.boot(Main.java:127)
>  at org.jboss.Main$1.run(Main.java:355)
>  at java.lang.Thread.run(Thread.java:484)
> 16:11:33,532 ERROR [MainDeployer] could not create deployment
> 
>:file:/home/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/jms-service.xml
> 
> -- 
> Stephen Davidson
> Java Consultant
> Delphi Consultants, LLC
> http://www.delphis.com
> Phone: 214-696-6224 x208
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 

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



Re: [JBoss-user] Finder Method in JBoss

2002-03-05 Thread David Jencks

This way of generating auto increment keys doesn't work without table
locks. There are many discussions of how to generate keys, I suggest you
find one and use a more reliable method.

david jencks

On 2002.03.05 18:00:43 -0500 Christine wrote:
> Hi, The reason I have this issue is because I am actually implementing
> the
> auto_increment by myself. The whole store is:
> I have a table with an integer type unique ID. everytime, when I create a
> new
> EJB object, I call the finderMaxID method to get the MAX ID, then MAX ID
> + 1 to
> get the new max id and create a new EJB object. at the same time, insert
> a new
> record to the table. In the whereclause for the finderMaxID, i used "
> WHERE ID
> IN (SELECT MAX(ID) FROM Customer)". Now, MySQL doesn't support
> sub-select. I
> have to use other way to do so.
> I am not sure whether I understood what you mean, but how can ORDER BY ID
> help?
> 
> Burkhard Vogel wrote:
> 
> > Hi,
> > if you are in one table and you have only one line which will be MAX,
> you
> > could use ORDER BY ID desc . Which will be much faster as well, if in
> two
> > tables, join them and do the same... But if there are more than one
> value...
> > Wait for MySQL 4.0 which will support subqueries.
> > Regards
> > Burkhard
> > - Original Message -
> > From: "Christine" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, March 01, 2002 1:12 PM
> > Subject: [JBoss-user] Finder Method in JBoss
> >
> > > Hi,
> > >
> > > I have a finder method which use sub-select as following:
> > > findMaxIDWhereClause : ID IN (SELECT MAX(ID) FROM Customer)
> > > it works fine when I used IBM WebSphere and DB2. Now I am switching
> to
> > > JBoss + Tomcat + MySQL. Cause MySQL doesn't support sub-select. Does
> > > anyone know whether there is some other way to get my
> > > findMaxIDWhereClause work without have to change code? Thanks in
> > > advance!
> > >
> > > regards,
> > > --
> > > Jia (Christine) Li
> > >
> > > 524N ICT Building
> > > Department of Computer Science
> > > University of Calgary
> > >
> > >
> > >
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> --
> Jia (Christine) Li
> 
> 524N ICT Building
> Department of Computer Science
> University of Calgary
> 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 

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



RE: [JBoss-user] Finder Method in JBoss

2002-03-05 Thread Lucas McGregor

Christine,

I am unable to find finderMaxID in the EJB2.0 spec, so I am guessing that
this is a Jboss method used in their Entity Beans. So I am unsure of the
constraints that you might be working under. But, using a select max(id) is
not thread safe. It is possible for one thread to start up, and run the
select statement, then context switch to another thread, which will then run
the same statement, and get the same answer. Then, second thread could
complete an insert into the database, before the first thread regains
control. Then when the first thread tries to insert, it will bomb out with a
primary key constraint error.

I know it sounds far fetched, but under high load, it could become a real
problem. If possible, you would want to use MSQL's native sequencing
feature. 

The MySQL support site says: 
You can get the used AUTO_INCREMENT key with the LAST_INSERT_ID() SQL
function or the mysql_insert_id() API function.  
http://www.mysql.com/doc/e/x/example-AUTO_INCREMENT.html


This would guarantee a unique number. But I think that you would have to
insert the row to get the unique id, which you may not be able to do, since
you might not have all the necessary fields at the time you call
finderMaxID.

If this is the case, you could create a sequence table, which a table that
has nothing but a auto-incrementing primary key in it. You could then do a
insert into it of nothing, and then grab last inserted row from it using the
LAST_INSERT_ID() function. Then you could use this unique number as the
primary key for your new entity bean.

This would mean that everyone using this table would use the same index. For
example, if you had four tables, and you used the same sequence table for
all of them, then the index would be spread across the four tables. Usually
this is not a big deal. But if it is, you could just create an index table
for each table. This is essentially how oracle deals with sequences.

I hope that you find that helpful,
Lucas McGregor, NovaLogic

-Original Message-
From: Todd Marshall [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 3:23 PM
To: Christine; Burkhard Vogel
Cc: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Finder Method in JBoss


if you
 select id from customer order by id DESC

then get the first row returned by this query, it will be your max id


-Todd

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Christine
Sent: Tuesday, March 05, 2002 5:01 PM
To: Burkhard Vogel
Cc: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Finder Method in JBoss


Hi, The reason I have this issue is because I am actually implementing the
auto_increment by myself. The whole store is:
I have a table with an integer type unique ID. everytime, when I create a
new
EJB object, I call the finderMaxID method to get the MAX ID, then MAX ID + 1
to
get the new max id and create a new EJB object. at the same time, insert a
new
record to the table. In the whereclause for the finderMaxID, i used " WHERE
ID
IN (SELECT MAX(ID) FROM Customer)". Now, MySQL doesn't support sub-select. I
have to use other way to do so.
I am not sure whether I understood what you mean, but how can ORDER BY ID
help?

Burkhard Vogel wrote:

> Hi,
> if you are in one table and you have only one line which will be MAX, you
> could use ORDER BY ID desc . Which will be much faster as well, if in two
> tables, join them and do the same... But if there are more than one
value...
> Wait for MySQL 4.0 which will support subqueries.
> Regards
> Burkhard
> - Original Message -
> From: "Christine" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, March 01, 2002 1:12 PM
> Subject: [JBoss-user] Finder Method in JBoss
>
> > Hi,
> >
> > I have a finder method which use sub-select as following:
> > findMaxIDWhereClause : ID IN (SELECT MAX(ID) FROM Customer)
> > it works fine when I used IBM WebSphere and DB2. Now I am switching to
> > JBoss + Tomcat + MySQL. Cause MySQL doesn't support sub-select. Does
> > anyone know whether there is some other way to get my
> > findMaxIDWhereClause work without have to change code? Thanks in
> > advance!
> >
> > regards,
> > --
> > Jia (Christine) Li
> >
> > 524N ICT Building
> > Department of Computer Science
> > University of Calgary
> >
> >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user

--
Jia (Christine) Li

524N ICT Building
Department of Computer Science
University of Calgary



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


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

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



RE: [JBoss-user] Finder Method in JBoss

2002-03-05 Thread Todd Marshall

if you
 select id from customer order by id DESC

then get the first row returned by this query, it will be your max id


-Todd

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Christine
Sent: Tuesday, March 05, 2002 5:01 PM
To: Burkhard Vogel
Cc: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Finder Method in JBoss


Hi, The reason I have this issue is because I am actually implementing the
auto_increment by myself. The whole store is:
I have a table with an integer type unique ID. everytime, when I create a
new
EJB object, I call the finderMaxID method to get the MAX ID, then MAX ID + 1
to
get the new max id and create a new EJB object. at the same time, insert a
new
record to the table. In the whereclause for the finderMaxID, i used " WHERE
ID
IN (SELECT MAX(ID) FROM Customer)". Now, MySQL doesn't support sub-select. I
have to use other way to do so.
I am not sure whether I understood what you mean, but how can ORDER BY ID
help?

Burkhard Vogel wrote:

> Hi,
> if you are in one table and you have only one line which will be MAX, you
> could use ORDER BY ID desc . Which will be much faster as well, if in two
> tables, join them and do the same... But if there are more than one
value...
> Wait for MySQL 4.0 which will support subqueries.
> Regards
> Burkhard
> - Original Message -
> From: "Christine" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, March 01, 2002 1:12 PM
> Subject: [JBoss-user] Finder Method in JBoss
>
> > Hi,
> >
> > I have a finder method which use sub-select as following:
> > findMaxIDWhereClause : ID IN (SELECT MAX(ID) FROM Customer)
> > it works fine when I used IBM WebSphere and DB2. Now I am switching to
> > JBoss + Tomcat + MySQL. Cause MySQL doesn't support sub-select. Does
> > anyone know whether there is some other way to get my
> > findMaxIDWhereClause work without have to change code? Thanks in
> > advance!
> >
> > regards,
> > --
> > Jia (Christine) Li
> >
> > 524N ICT Building
> > Department of Computer Science
> > University of Calgary
> >
> >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user

--
Jia (Christine) Li

524N ICT Building
Department of Computer Science
University of Calgary



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


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



[JBoss-user] Base Documentation update on free anymore?

2002-03-05 Thread Keith Kee

I bought the base documentation in Jan 24 from FlashLine under the
recommendations in this mailing list that I will continue to get free
updates of the docs until the final version of the documentation. I noticed
a new version dated 3/3/2002 on the web, but Flashline wants another $10 for
the copy. How many more versions are there before the final book? I may end
up paying a lot more than the to-be-published book.

Anyone having the same experience?

Thanks
keith


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



Re: [JBoss-user] Finder Method in JBoss

2002-03-05 Thread Christine

Hi, The reason I have this issue is because I am actually implementing the
auto_increment by myself. The whole store is:
I have a table with an integer type unique ID. everytime, when I create a new
EJB object, I call the finderMaxID method to get the MAX ID, then MAX ID + 1 to
get the new max id and create a new EJB object. at the same time, insert a new
record to the table. In the whereclause for the finderMaxID, i used " WHERE ID
IN (SELECT MAX(ID) FROM Customer)". Now, MySQL doesn't support sub-select. I
have to use other way to do so.
I am not sure whether I understood what you mean, but how can ORDER BY ID help?

Burkhard Vogel wrote:

> Hi,
> if you are in one table and you have only one line which will be MAX, you
> could use ORDER BY ID desc . Which will be much faster as well, if in two
> tables, join them and do the same... But if there are more than one value...
> Wait for MySQL 4.0 which will support subqueries.
> Regards
> Burkhard
> - Original Message -
> From: "Christine" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, March 01, 2002 1:12 PM
> Subject: [JBoss-user] Finder Method in JBoss
>
> > Hi,
> >
> > I have a finder method which use sub-select as following:
> > findMaxIDWhereClause : ID IN (SELECT MAX(ID) FROM Customer)
> > it works fine when I used IBM WebSphere and DB2. Now I am switching to
> > JBoss + Tomcat + MySQL. Cause MySQL doesn't support sub-select. Does
> > anyone know whether there is some other way to get my
> > findMaxIDWhereClause work without have to change code? Thanks in
> > advance!
> >
> > regards,
> > --
> > Jia (Christine) Li
> >
> > 524N ICT Building
> > Department of Computer Science
> > University of Calgary
> >
> >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user

--
Jia (Christine) Li

524N ICT Building
Department of Computer Science
University of Calgary



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



Re: [JBoss-user] JNDI name for datasource in JBoss2.4.4_Tomcat4.0.1 + MySQL

2002-03-05 Thread Christine

Thanks a lot. Danch. Now, I am using: ctx.lookup("java:/Customer") and change
"java:/DefaultDS" to "java:/Customer", my lookup code works fine. So I assumed if i
change "java:/Customer" back to "java:/DefaultDS", I also can lookup for
"java:/DefaultDS".
I will try to use "java:comp/env/jdbc/Custmoer" and the old setting later.

danch wrote:

> You're close! See comments inline below.
>
> -danch
>
> Christine wrote:
>
> > Sorry for miscopy in my previous email!
> >
> > The code in my function is :
> >javax.naming.Context ctx = new InitialContext();
> >DataSource dbs = (DataSource) ctx.lookup("jdbc/Customer");
>
> the name should be "java:comp/env/jdbc/Customer".
>
> The 'java:comp/env' is the "Environment Naming Context" that the J2EE
> spec specifies that the container provide for all components. The
> res-ref-name of anything you list in an ejb-ref or a resource-ref gets
> put within that.
>
> >Connection aConnection = dbs.getConnection();
> >Statement QStatment = aConnection.createStatement();
> >ResultSet Result = QStatment.executeQuery("select max(ID) from
> > customer");
> >
> > And I specified the resource reference in both web.xml and jboss-web.xml
> >
> > as following:
> > 1. web.xml
> >  
> >  The default DS 
> > java:/DefaultDS
>
> This is where you say 'jdbc/Customer'
>
> > javax.sql.DataSource
> > Container
> > 
> > 2. jboss-web.xml
> > 
> >
> >java:/DefaultDS
>
> 'jdbc/Customer' again.
>
> >javax.sql.DataSource
> >jdbc/Customer
>
> And that's where 'java:/DefaultDS' goes.
>
> >
> > 
> > 3. the JDBC part in jboss.jcml file is:
> >   > name="DefaultDomain:service=XADataSource,name=MySQLDS">
> > DefaultDS
> >  > name="DataSourceClass">org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
> >
> > jdbc:mysql://localhost/Customer
> > root
> >
> > 4. the jaws.xml file is :
> > 
> > java:/DefaultDS
> > mySQL
> >
> > Now, I am getting error: jdbc not bound. Would anyone tell me what
> > mistakes I made? Any suggestion will be appreciated!
> >
> > Regards,
> >
> > --
> > Jia (Christine) Li
> >
> > 524N ICT Building
> > Department of Computer Science
> > University of Calgary
> >
> >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >

--
Jia (Christine) Li

524N ICT Building
Department of Computer Science
University of Calgary



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



[JBoss-user] JBossMQ broken?

2002-03-05 Thread Stephen Davidson

Greetings.

A fresh co of JBoss3.0Beta2 (Head Revision).  On startup, I get the following errors.

Suggestions or tips?

-Steve

16:11:32,361 INFO  [MainDeployer] Starting deployment of package: 
file:/home/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/jms-service.xml
16:11:33,521 ERROR [SARDeployer] operation failed
java.lang.ClassNotFoundException: org.jboss.resource.ConnectionFactoryLoader
 at org.jboss.system.ServiceLibraries.loadClass(ServiceLibraries.java:422)
 at org.jboss.system.MBeanClassLoader.loadClass(MBeanClassLoader.java:83)
 at org.jboss.system.MBeanClassLoader.loadClass(MBeanClassLoader.java:90)
 at com.sun.management.jmx.MBeanServerImpl.findClass(MBeanServerImpl.java:2466)
 at 
com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:751)
 at org.jboss.system.ServiceCreator.install(ServiceCreator.java:98)
 at org.jboss.system.ServiceController.install(ServiceController.java:153)
 at java.lang.reflect.Method.invoke(Native Method)
 at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
 at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
 at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:73)
 at $Proxy3.install(Unknown Source)
 at org.jboss.deployment.SARDeployer.create(SARDeployer.java:227)
 at org.jboss.deployment.MainDeployer.create(MainDeployer.java:585)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:454)
 at java.lang.reflect.Method.invoke(Native Method)
 at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
 at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
 at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:73)
 at $Proxy2.deploy(Unknown Source)
 at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:295)
 at 
org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:466)
 at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:356)
 at 
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:228)
 at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
 at java.lang.reflect.Method.invoke(Native Method)
 at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
 at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
 at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:720)
 at $Proxy0.start(Unknown Source)
 at org.jboss.system.ServiceController.start(ServiceController.java:314)
 at org.jboss.system.ServiceController.start(ServiceController.java:331)
 at java.lang.reflect.Method.invoke(Native Method)
 at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
 at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
 at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:326)
 at org.jboss.system.server.ServerImpl.start(ServerImpl.java:208)
 at org.jboss.Main.boot(Main.java:127)
 at org.jboss.Main$1.run(Main.java:355)
 at java.lang.Thread.run(Thread.java:484)
16:11:33,532 ERROR [MainDeployer] could not create deployment 
:file:/home/jboss/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/jms-service.xml

-- 
Stephen Davidson
Java Consultant
Delphi Consultants, LLC
http://www.delphis.com
Phone: 214-696-6224 x208


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



Re: [JBoss-user] missing sources in target source-zip

2002-03-05 Thread David Jencks

On 2002.03.05 14:33:24 -0500 Holger Baxmann wrote:
> is it possible, that the build sources-zip doesn't grab the
> MainDeployerMBean.java from the gen-src in system/output ?

I would hope that a source distribution would not include generated source
code, so I hope it doesn't. Does it include the needed xdoclet tool?
> 
> the org.jboss.admin.interfaces are missing in action too.
> 
> and more impotent: org.jboss.jmx.adaptor.interfaces

Are these generated as well?

david jencks
> 
> 
> 
> it seems so at least for me
> 
> 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 

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



Re: [JBoss-user] How do I run JBoss when deployment descriptor dtd's are unavailable?

2002-03-05 Thread Scott M Stark

This is not a validation problem. This is the xml parser loading
the external entities referenced by the xml document. Validation
is a seperate and secondary step. The simplest solution is to
drop the DOCTYPE usage as this is the behavior your asking
for.


Scott Stark
Chief Technology Officer
JBoss Group, LLC

- Original Message -
From: "Edward Gemar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "'Dain Sundstrom'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, March 05, 2002 11:57 AM
Subject: RE: [JBoss-user] How do I run JBoss when deployment descriptor
dtd's are unavailable?


> It would be nice to be able to turn dtd validation off
> completely. When I ran into this problem the first thing I tried was
> turning of dtd validation by setting both the
> javax.xml.parsers.validation and http://xml.org/sax/features/validation
> system properties to false, but that did nothing to change the problem.
>
> After looking at the xmlfileloader code, it appears that in my
> case, we were having the problem because we are using jboss 2.4.3, but
> referencing application_1_3.dtd.  The version of xmlfileloader in 2.4.3
> doesn't have a local ref for this dtd.  Seems like the short answer in
> my case, is to just change the reference to application_1_2.dtd.
> Thanks all for the help!
>
> Edward Gemar
> ForwardVue Technologies, Inc.
> Austin, TX
> Vox: 512-482-5126
> Fax: 512-651-3209
>
>
> -Original Message-
> From: Georg Schmid [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 05, 2002 1:30 PM
> To: 'Dain Sundstrom'; [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] How do I run JBoss when deployment descriptor
> dtd's are unavailable?
>
>
> Wouldn't this make the corresponding XML document kind of non-standard?
> I'd like to suggest another solution: prevent the XML parser from
> loading
> the DTD.
>
> There would not be any need to add more and more DTDs to JBoss jar, nor
> to
> work
> with non-standard doctype declarations.
>
> This can be done with Xerces (just set the corresponding feature), but I
> don't
> know whether Crimson can be talked into completely ignoring the DTD.
>



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



RE: [JBoss-user] How do I run JBoss when deployment descriptor dtd's are unavailable?

2002-03-05 Thread Edward Gemar

It would be nice to be able to turn dtd validation off
completely. When I ran into this problem the first thing I tried was
turning of dtd validation by setting both the
javax.xml.parsers.validation and http://xml.org/sax/features/validation
system properties to false, but that did nothing to change the problem.

After looking at the xmlfileloader code, it appears that in my
case, we were having the problem because we are using jboss 2.4.3, but
referencing application_1_3.dtd.  The version of xmlfileloader in 2.4.3
doesn't have a local ref for this dtd.  Seems like the short answer in
my case, is to just change the reference to application_1_2.dtd.
Thanks all for the help!

Edward Gemar
ForwardVue Technologies, Inc.
Austin, TX
Vox: 512-482-5126
Fax: 512-651-3209


-Original Message-
From: Georg Schmid [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 05, 2002 1:30 PM
To: 'Dain Sundstrom'; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [JBoss-user] How do I run JBoss when deployment descriptor
dtd's are unavailable?


Wouldn't this make the corresponding XML document kind of non-standard?
I'd like to suggest another solution: prevent the XML parser from
loading
the DTD.

There would not be any need to add more and more DTDs to JBoss jar, nor
to
work
with non-standard doctype declarations.

This can be done with Xerces (just set the corresponding feature), but I
don't
know whether Crimson can be talked into completely ignoring the DTD.


Georg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Dain
Sundstrom
Sent: Tuesday, March 05, 2002 19:26
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [JBoss-user] How do I run JBoss when deployment descriptor
dtd's are unavailable?


It is much easier than that.  Just change the url in the doctype to a
local file url.

-dain


Adrian Brock wrote:

> This DTD was missing from the XmlFileLoader before Feb 2nd this
> year. Any versions of JBoss3 after that should be ok.
>
> A temporary solution would be to run a webserver on your laptop
> and in your host table add the entry
>
> 127.0.0.1 java.sun.com
>
> Make sure the ip stack is configured to look at hosts before
> the dns.
>
> Regards,
> Adrian
>
>
>> From: "Edward Gemar" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>, "'Jboss-User \(E-mail\)'"
>> <[EMAIL PROTECTED]>
>> Subject: RE: [JBoss-user] How do I run JBoss when deployment
>> descriptor dtd's are unavailable?
>> Date: Tue, 5 Mar 2002 10:58:03 -0600
>>
>> JBoss gives me an "External entity not found" error when attempting
to
>> load my application.xml file.  This is reasonable when offline since
the
>> dtd "http://java.sun.com/dtd/application_1_3.dtd"; is indeed
inaccessible
>> when not connected to the network.  I just checked the jboss jar
files
>> and the dtd is indeed in jboss.jar, but wouldn't I need to change the
>> URL in the doctype to point to that one to not get this problem?
What
>> URL are you using to specify the dtd location?
>>
>> This is what my doctype statement looks like:
>>
>> > Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd";>
>>
>>
>> Edward
>>
>> Edward Gemar
>> ForwardVue Technologies, Inc.
>> Austin, TX
>> Vox: 512-482-5126
>> Fax: 512-651-3209
>>
>> -Original Message-
>> From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, March 05, 2002 10:46 AM
>> To: 'Edward Gemar'; Jboss-User (E-mail)
>> Subject: RE: [JBoss-user] How do I run JBoss when deployment
descriptor
>> dtd's are unavailable?
>>
>> Hello.
>>
>> All DTDs should be on your local machine in jboss' jar files. I've
never
>> encountered such a problem running locally. How does JBoss complain
on
>> it?
>>
>> alex
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED]]On Behalf Of Edward
Gemar
>> Sent: Tuesday, March 05, 2002 5:58 PM
>> To: [EMAIL PROTECTED]
>> Subject: [JBoss-user] How do I run JBoss when deployment descriptor
>> dtd's are unavailable?
>> Hi all,
>> We are setting up a laptop to take to customer sites and demo our
J2EE
>> app.= We may or may not have internet connectivity at our customer
sites
>> so it's important that we can run the server offline (i.e. - not
>> connected to the internet)== The problem is that JBoss when running
>> offline, JBoss complains that it can't the application deployment
>> descriptor dtd at =http://java.sun.com/dtd/application_1_3.dtd.= What
is
>> the correct way, if any, to turn off deployment descriptor dtd
>> validation in JBoss?= Any assistance is greatly appreciated.
>>
>> Edward
>>
>>
>
>
>
>
> _
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



_

Re: [JBoss-user] missing sources in target source-zip

2002-03-05 Thread Adrian Brock

These sources are generated using xdoclet at build time.
Look for the javadoc tag @jmx:mbean

Regards,
Adrian

>From: Holger Baxmann <[EMAIL PROTECTED]>
>To: JBoss 2 <[EMAIL PROTECTED]>
>Subject: [JBoss-user] missing sources in target source-zip
>Date: 05 Mar 2002 20:33:24 +0100
>
>is it possible, that the build sources-zip doesn't grab the
>MainDeployerMBean.java from the gen-src in system/output ?
>
>the org.jboss.admin.interfaces are missing in action too.
>
>and more impotent: org.jboss.jmx.adaptor.interfaces
>
>
>
>it seems so at least for me
>
>
>
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user




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


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



[JBoss-user] missing sources in target source-zip

2002-03-05 Thread Holger Baxmann

is it possible, that the build sources-zip doesn't grab the
MainDeployerMBean.java from the gen-src in system/output ?

the org.jboss.admin.interfaces are missing in action too.

and more impotent: org.jboss.jmx.adaptor.interfaces



it seems so at least for me




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



RE: [JBoss-user] How do I run JBoss when deployment descriptor dtd's are unavailable?

2002-03-05 Thread Georg Schmid


Wouldn't this make the corresponding XML document kind of non-standard?
I'd like to suggest another solution: prevent the XML parser from loading
the DTD.

There would not be any need to add more and more DTDs to JBoss jar, nor to
work
with non-standard doctype declarations.

This can be done with Xerces (just set the corresponding feature), but I
don't
know whether Crimson can be talked into completely ignoring the DTD.


Georg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Dain
Sundstrom
Sent: Tuesday, March 05, 2002 19:26
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [JBoss-user] How do I run JBoss when deployment descriptor
dtd's are unavailable?


It is much easier than that.  Just change the url in the doctype to a
local file url.

-dain


Adrian Brock wrote:

> This DTD was missing from the XmlFileLoader before Feb 2nd this
> year. Any versions of JBoss3 after that should be ok.
>
> A temporary solution would be to run a webserver on your laptop
> and in your host table add the entry
>
> 127.0.0.1 java.sun.com
>
> Make sure the ip stack is configured to look at hosts before
> the dns.
>
> Regards,
> Adrian
>
>
>> From: "Edward Gemar" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>, "'Jboss-User \(E-mail\)'"
>> <[EMAIL PROTECTED]>
>> Subject: RE: [JBoss-user] How do I run JBoss when deployment
>> descriptor dtd's are unavailable?
>> Date: Tue, 5 Mar 2002 10:58:03 -0600
>>
>> JBoss gives me an "External entity not found" error when attempting to
>> load my application.xml file.  This is reasonable when offline since the
>> dtd "http://java.sun.com/dtd/application_1_3.dtd"; is indeed inaccessible
>> when not connected to the network.  I just checked the jboss jar files
>> and the dtd is indeed in jboss.jar, but wouldn't I need to change the
>> URL in the doctype to point to that one to not get this problem?  What
>> URL are you using to specify the dtd location?
>>
>> This is what my doctype statement looks like:
>>
>> > Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd";>
>>
>>
>> Edward
>>
>> Edward Gemar
>> ForwardVue Technologies, Inc.
>> Austin, TX
>> Vox: 512-482-5126
>> Fax: 512-651-3209
>>
>> -Original Message-
>> From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, March 05, 2002 10:46 AM
>> To: 'Edward Gemar'; Jboss-User (E-mail)
>> Subject: RE: [JBoss-user] How do I run JBoss when deployment descriptor
>> dtd's are unavailable?
>>
>> Hello.
>>
>> All DTDs should be on your local machine in jboss' jar files. I've never
>> encountered such a problem running locally. How does JBoss complain on
>> it?
>>
>> alex
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED]]On Behalf Of Edward Gemar
>> Sent: Tuesday, March 05, 2002 5:58 PM
>> To: [EMAIL PROTECTED]
>> Subject: [JBoss-user] How do I run JBoss when deployment descriptor
>> dtd's are unavailable?
>> Hi all,
>> We are setting up a laptop to take to customer sites and demo our J2EE
>> app.= We may or may not have internet connectivity at our customer sites
>> so it's important that we can run the server offline (i.e. - not
>> connected to the internet)== The problem is that JBoss when running
>> offline, JBoss complains that it can't the application deployment
>> descriptor dtd at =http://java.sun.com/dtd/application_1_3.dtd.= What is
>> the correct way, if any, to turn off deployment descriptor dtd
>> validation in JBoss?= Any assistance is greatly appreciated.
>>
>> Edward
>>
>>
>
>
>
>
> _
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



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


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



RE: [JBoss-user] How do I run JBoss when deployment descriptor dtd's areunavailable?

2002-03-05 Thread Adrian Brock

Yes,

XmlFileLoader has a map of dtds to file names in jboss.jar
As Dain says, just change the url in the dtd.

Regards,
Adrian


>From: "Edward Gemar" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>CC: <[EMAIL PROTECTED]>
>Subject: RE: [JBoss-user] How do I run JBoss when deployment descriptor 
>dtd's are unavailable?
>Date: Tue, 5 Mar 2002 11:56:08 -0600
>
>   Excuse my ignorance as I'm relatively new to JBoss, but I'm
>still a little foggy on how the dtd, which is a resource on the sun
>site, will get loaded from the local jboss jar file.  Does the
>XmlFileLoader have some sort of map that links the URL
>http://java.sun.com/dtd/application_1_3.dtd  to the application_1_3.dtd
>in the jar file?  I don't see how the fact that the dtd is the jboss.jar
>changes the fact that the doctype declaration in the application.xml
>file points to dtd on the sun site.  It obviously does, but I don't see
>the connection yet.  How does this work?
>
>   Edward
>
>Edward Gemar
>ForwardVue Technologies, Inc.
>Austin, TX
>Vox: 512-482-5126
>Fax: 512-651-3209
>
>
>-Original Message-
>From: Adrian Brock [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, March 05, 2002 11:42 AM
>To: [EMAIL PROTECTED]
>Cc: [EMAIL PROTECTED]
>Subject: RE: [JBoss-user] How do I run JBoss when deployment descriptor
>dtd's are unavailable?
>
>This DTD was missing from the XmlFileLoader before Feb 2nd this
>year. Any versions of JBoss3 after that should be ok.
>
>A temporary solution would be to run a webserver on your laptop
>and in your host table add the entry
>
>127.0.0.1 java.sun.com
>
>Make sure the ip stack is configured to look at hosts before
>the dns.
>
>Regards,
>Adrian
>
>
> >From: "Edward Gemar" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>, "'Jboss-User \(E-mail\)'"
> ><[EMAIL PROTECTED]>
> >Subject: RE: [JBoss-user] How do I run JBoss when deployment descriptor
>
> >dtd's are unavailable?
> >Date: Tue, 5 Mar 2002 10:58:03 -0600
> >
> >JBoss gives me an "External entity not found" error when attempting to
> >load my application.xml file.  This is reasonable when offline since
>the
> >dtd "http://java.sun.com/dtd/application_1_3.dtd"; is indeed
>inaccessible
> >when not connected to the network.  I just checked the jboss jar files
> >and the dtd is indeed in jboss.jar, but wouldn't I need to change the
> >URL in the doctype to point to that one to not get this problem?  What
> >URL are you using to specify the dtd location?
> >
> >This is what my doctype statement looks like:
> >
> > >Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd";>
> >
> >
> >Edward
> >
> >Edward Gemar
> >ForwardVue Technologies, Inc.
> >Austin, TX
> >Vox: 512-482-5126
> >Fax: 512-651-3209
> >
> >-Original Message-
> >From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
> >Sent: Tuesday, March 05, 2002 10:46 AM
> >To: 'Edward Gemar'; Jboss-User (E-mail)
> >Subject: RE: [JBoss-user] How do I run JBoss when deployment descriptor
> >dtd's are unavailable?
> >
> >Hello.
> >
> >All DTDs should be on your local machine in jboss' jar files. I've
>never
> >encountered such a problem running locally. How does JBoss complain on
> >it?
> >
> >alex
> >-Original Message-
> >From: [EMAIL PROTECTED]
> >[mailto:[EMAIL PROTECTED]]On Behalf Of Edward
>Gemar
> >Sent: Tuesday, March 05, 2002 5:58 PM
> >To: [EMAIL PROTECTED]
> >Subject: [JBoss-user] How do I run JBoss when deployment descriptor
> >dtd's are unavailable?
> >Hi all,
> >We are setting up a laptop to take to customer sites and demo our J2EE
> >app.= We may or may not have internet connectivity at our customer
>sites
> >so it's important that we can run the server offline (i.e. - not
> >connected to the internet)== The problem is that JBoss when running
> >offline, JBoss complains that it can't the application deployment
> >descriptor dtd at =http://java.sun.com/dtd/application_1_3.dtd.= What
>is
> >the correct way, if any, to turn off deployment descriptor dtd
> >validation in JBoss?= Any assistance is greatly appreciated.
> >
> >Edward
> >
> >
>
>
>
>
>_
>MSN Photos is the easiest way to share and print your photos:
>http://photos.msn.com/support/worldwide.aspx
>
>




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


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



Re: [JBoss-user] How do I run JBoss when deployment descriptor dtd's areunavailable?

2002-03-05 Thread Adrian Brock

You are correct. The EJB2.0 behaviour is controlled by
the doctype in ejb-jar.xml.
I wonder if Jetty uses it? It was added by Jules.

Regards,
Adrian

>From: Dain Sundstrom <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>CC: [EMAIL PROTECTED], [EMAIL PROTECTED]
>Subject: Re: [JBoss-user] How do I run JBoss when deployment descriptor 
>dtd's are unavailable?
>Date: Tue, 05 Mar 2002 12:25:44 -0600
>
>It is much easier than that.  Just change the url in the doctype to a
>local file url.
>
>-dain
>
>
>Adrian Brock wrote:
>
>>This DTD was missing from the XmlFileLoader before Feb 2nd this
>>year. Any versions of JBoss3 after that should be ok.
>>
>>A temporary solution would be to run a webserver on your laptop
>>and in your host table add the entry
>>
>>127.0.0.1 java.sun.com
>>
>>Make sure the ip stack is configured to look at hosts before
>>the dns.
>>
>>Regards,
>>Adrian
>>
>>
>>>From: "Edward Gemar" <[EMAIL PROTECTED]>
>>>To: <[EMAIL PROTECTED]>, "'Jboss-User \(E-mail\)'"
>>><[EMAIL PROTECTED]>
>>>Subject: RE: [JBoss-user] How do I run JBoss when deployment
>>>descriptor dtd's are unavailable?
>>>Date: Tue, 5 Mar 2002 10:58:03 -0600
>>>
>>>JBoss gives me an "External entity not found" error when attempting to
>>>load my application.xml file.  This is reasonable when offline since the
>>>dtd "http://java.sun.com/dtd/application_1_3.dtd"; is indeed inaccessible
>>>when not connected to the network.  I just checked the jboss jar files
>>>and the dtd is indeed in jboss.jar, but wouldn't I need to change the
>>>URL in the doctype to point to that one to not get this problem?  What
>>>URL are you using to specify the dtd location?
>>>
>>>This is what my doctype statement looks like:
>>>
>Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd";>
>>>
>>>
>>>Edward
>>>
>>>Edward Gemar
>>>ForwardVue Technologies, Inc.
>>>Austin, TX
>>>Vox: 512-482-5126
>>>Fax: 512-651-3209
>>>
>>>-Original Message-
>>>From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
>>>Sent: Tuesday, March 05, 2002 10:46 AM
>>>To: 'Edward Gemar'; Jboss-User (E-mail)
>>>Subject: RE: [JBoss-user] How do I run JBoss when deployment descriptor
>>>dtd's are unavailable?
>>>
>>>Hello.
>>>
>>>All DTDs should be on your local machine in jboss' jar files. I've never
>>>encountered such a problem running locally. How does JBoss complain on
>>>it?
>>>
>>>alex
>>>-Original Message-
>>>From: [EMAIL PROTECTED]
>>>[mailto:[EMAIL PROTECTED]]On Behalf Of Edward Gemar
>>>Sent: Tuesday, March 05, 2002 5:58 PM
>>>To: [EMAIL PROTECTED]
>>>Subject: [JBoss-user] How do I run JBoss when deployment descriptor
>>>dtd's are unavailable?
>>>Hi all,
>>>We are setting up a laptop to take to customer sites and demo our J2EE
>>>app.= We may or may not have internet connectivity at our customer sites
>>>so it's important that we can run the server offline (i.e. - not
>>>connected to the internet)== The problem is that JBoss when running
>>>offline, JBoss complains that it can't the application deployment
>>>descriptor dtd at =http://java.sun.com/dtd/application_1_3.dtd.= What is
>>>the correct way, if any, to turn off deployment descriptor dtd
>>>validation in JBoss?= Any assistance is greatly appreciated.
>>>
>>>Edward
>>>
>>>
>>
>>
>>
>>
>>_
>>MSN Photos is the easiest way to share and print your photos:
>>http://photos.msn.com/support/worldwide.aspx
>>
>>
>>___
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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



Re: [JBoss-user] How do I run JBoss when deployment descriptor dtd's are unavailable?

2002-03-05 Thread Dain Sundstrom

It is much easier than that.  Just change the url in the doctype to a 
local file url.

-dain


Adrian Brock wrote:

> This DTD was missing from the XmlFileLoader before Feb 2nd this
> year. Any versions of JBoss3 after that should be ok.
> 
> A temporary solution would be to run a webserver on your laptop
> and in your host table add the entry
> 
> 127.0.0.1 java.sun.com
> 
> Make sure the ip stack is configured to look at hosts before
> the dns.
> 
> Regards,
> Adrian
> 
> 
>> From: "Edward Gemar" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>, "'Jboss-User \(E-mail\)'" 
>> <[EMAIL PROTECTED]>
>> Subject: RE: [JBoss-user] How do I run JBoss when deployment 
>> descriptor dtd's are unavailable?
>> Date: Tue, 5 Mar 2002 10:58:03 -0600
>>
>> JBoss gives me an "External entity not found" error when attempting to
>> load my application.xml file.  This is reasonable when offline since the
>> dtd "http://java.sun.com/dtd/application_1_3.dtd"; is indeed inaccessible
>> when not connected to the network.  I just checked the jboss jar files
>> and the dtd is indeed in jboss.jar, but wouldn't I need to change the
>> URL in the doctype to point to that one to not get this problem?  What
>> URL are you using to specify the dtd location?
>>
>> This is what my doctype statement looks like:
>>
>> > Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd";>
>>
>>
>> Edward
>>
>> Edward Gemar
>> ForwardVue Technologies, Inc.
>> Austin, TX
>> Vox: 512-482-5126
>> Fax: 512-651-3209
>>
>> -Original Message-
>> From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, March 05, 2002 10:46 AM
>> To: 'Edward Gemar'; Jboss-User (E-mail)
>> Subject: RE: [JBoss-user] How do I run JBoss when deployment descriptor
>> dtd's are unavailable?
>>
>> Hello.
>>
>> All DTDs should be on your local machine in jboss' jar files. I've never
>> encountered such a problem running locally. How does JBoss complain on
>> it?
>>
>> alex
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED]]On Behalf Of Edward Gemar
>> Sent: Tuesday, March 05, 2002 5:58 PM
>> To: [EMAIL PROTECTED]
>> Subject: [JBoss-user] How do I run JBoss when deployment descriptor
>> dtd's are unavailable?
>> Hi all,
>> We are setting up a laptop to take to customer sites and demo our J2EE
>> app.= We may or may not have internet connectivity at our customer sites
>> so it's important that we can run the server offline (i.e. - not
>> connected to the internet)== The problem is that JBoss when running
>> offline, JBoss complains that it can't the application deployment
>> descriptor dtd at =http://java.sun.com/dtd/application_1_3.dtd.= What is
>> the correct way, if any, to turn off deployment descriptor dtd
>> validation in JBoss?= Any assistance is greatly appreciated.
>>
>> Edward
>>
>>
> 
> 
> 
> 
> _
> MSN Photos is the easiest way to share and print your photos: 
> http://photos.msn.com/support/worldwide.aspx
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



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



RE: [JBoss-user] How do I run JBoss when deployment descriptor dtd's are unavailable?

2002-03-05 Thread Edward Gemar

Excuse my ignorance as I'm relatively new to JBoss, but I'm
still a little foggy on how the dtd, which is a resource on the sun
site, will get loaded from the local jboss jar file.  Does the
XmlFileLoader have some sort of map that links the URL
http://java.sun.com/dtd/application_1_3.dtd  to the application_1_3.dtd
in the jar file?  I don't see how the fact that the dtd is the jboss.jar
changes the fact that the doctype declaration in the application.xml
file points to dtd on the sun site.  It obviously does, but I don't see
the connection yet.  How does this work?

Edward

Edward Gemar
ForwardVue Technologies, Inc.
Austin, TX
Vox: 512-482-5126
Fax: 512-651-3209


-Original Message-
From: Adrian Brock [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 05, 2002 11:42 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] How do I run JBoss when deployment descriptor
dtd's are unavailable?

This DTD was missing from the XmlFileLoader before Feb 2nd this
year. Any versions of JBoss3 after that should be ok.

A temporary solution would be to run a webserver on your laptop
and in your host table add the entry

127.0.0.1 java.sun.com

Make sure the ip stack is configured to look at hosts before
the dns.

Regards,
Adrian


>From: "Edward Gemar" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>, "'Jboss-User \(E-mail\)'" 
><[EMAIL PROTECTED]>
>Subject: RE: [JBoss-user] How do I run JBoss when deployment descriptor

>dtd's are unavailable?
>Date: Tue, 5 Mar 2002 10:58:03 -0600
>
>JBoss gives me an "External entity not found" error when attempting to
>load my application.xml file.  This is reasonable when offline since
the
>dtd "http://java.sun.com/dtd/application_1_3.dtd"; is indeed
inaccessible
>when not connected to the network.  I just checked the jboss jar files
>and the dtd is indeed in jboss.jar, but wouldn't I need to change the
>URL in the doctype to point to that one to not get this problem?  What
>URL are you using to specify the dtd location?
>
>This is what my doctype statement looks like:
>
>Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd";>
>
>
>Edward
>
>Edward Gemar
>ForwardVue Technologies, Inc.
>Austin, TX
>Vox: 512-482-5126
>Fax: 512-651-3209
>
>-Original Message-
>From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, March 05, 2002 10:46 AM
>To: 'Edward Gemar'; Jboss-User (E-mail)
>Subject: RE: [JBoss-user] How do I run JBoss when deployment descriptor
>dtd's are unavailable?
>
>Hello.
>
>All DTDs should be on your local machine in jboss' jar files. I've
never
>encountered such a problem running locally. How does JBoss complain on
>it?
>
>alex
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Edward
Gemar
>Sent: Tuesday, March 05, 2002 5:58 PM
>To: [EMAIL PROTECTED]
>Subject: [JBoss-user] How do I run JBoss when deployment descriptor
>dtd's are unavailable?
>Hi all,
>We are setting up a laptop to take to customer sites and demo our J2EE
>app.= We may or may not have internet connectivity at our customer
sites
>so it's important that we can run the server offline (i.e. - not
>connected to the internet)== The problem is that JBoss when running
>offline, JBoss complains that it can't the application deployment
>descriptor dtd at =http://java.sun.com/dtd/application_1_3.dtd.= What
is
>the correct way, if any, to turn off deployment descriptor dtd
>validation in JBoss?= Any assistance is greatly appreciated.
>
>Edward
>
>




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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



RE: [JBoss-user] How do I run JBoss when deployment descriptor dtd's areunavailable?

2002-03-05 Thread Adrian Brock

This DTD was missing from the XmlFileLoader before Feb 2nd this
year. Any versions of JBoss3 after that should be ok.

A temporary solution would be to run a webserver on your laptop
and in your host table add the entry

127.0.0.1 java.sun.com

Make sure the ip stack is configured to look at hosts before
the dns.

Regards,
Adrian


>From: "Edward Gemar" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>, "'Jboss-User \(E-mail\)'" 
><[EMAIL PROTECTED]>
>Subject: RE: [JBoss-user] How do I run JBoss when deployment descriptor 
>dtd's are unavailable?
>Date: Tue, 5 Mar 2002 10:58:03 -0600
>
>JBoss gives me an "External entity not found" error when attempting to
>load my application.xml file.  This is reasonable when offline since the
>dtd "http://java.sun.com/dtd/application_1_3.dtd"; is indeed inaccessible
>when not connected to the network.  I just checked the jboss jar files
>and the dtd is indeed in jboss.jar, but wouldn't I need to change the
>URL in the doctype to point to that one to not get this problem?  What
>URL are you using to specify the dtd location?
>
>This is what my doctype statement looks like:
>
>Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd";>
>
>
>Edward
>
>Edward Gemar
>ForwardVue Technologies, Inc.
>Austin, TX
>Vox: 512-482-5126
>Fax: 512-651-3209
>
>-Original Message-
>From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, March 05, 2002 10:46 AM
>To: 'Edward Gemar'; Jboss-User (E-mail)
>Subject: RE: [JBoss-user] How do I run JBoss when deployment descriptor
>dtd's are unavailable?
>
>Hello.
>
>All DTDs should be on your local machine in jboss' jar files. I've never
>encountered such a problem running locally. How does JBoss complain on
>it?
>
>alex
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Edward Gemar
>Sent: Tuesday, March 05, 2002 5:58 PM
>To: [EMAIL PROTECTED]
>Subject: [JBoss-user] How do I run JBoss when deployment descriptor
>dtd's are unavailable?
>Hi all,
>We are setting up a laptop to take to customer sites and demo our J2EE
>app.= We may or may not have internet connectivity at our customer sites
>so it's important that we can run the server offline (i.e. - not
>connected to the internet)== The problem is that JBoss when running
>offline, JBoss complains that it can't the application deployment
>descriptor dtd at =http://java.sun.com/dtd/application_1_3.dtd.= What is
>the correct way, if any, to turn off deployment descriptor dtd
>validation in JBoss?= Any assistance is greatly appreciated.
>
>Edward
>
>




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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



RE: [JBoss-user] How do I run JBoss when deployment descriptor dtd's are unavailable?

2002-03-05 Thread Edward Gemar









JBoss gives me an “External
entity not found” error when attempting to load my application.xml
file.š This is reasonable when offline
since the dtd “http://java.sun.com/dtd/application_1_3.dtd”
is indeed inaccessible when not connected to the network.š I just checked the jboss
jar files and the dtd is indeed in jboss.jar, but wouldn’t I need to change the URL in
the doctype to point to that one to not get this
problem?š What URL are you using to
specify the dtd location?

 

This is what my doctype statement
looks like:

 

 application
PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" “http://java.sun.com/dtd/application_1_3.dtd">

 

 

Edward

 



Edward Gemar

ForwardVue Technologies,
Inc.

Austin, TX

Vox: 512-482-5126

Fax: 512-651-3209



 

-Original Message-
From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]

Sent: Tuesday, March 05, 2002 10:46 AM
To: 'Edward Gemar'; Jboss-User
(E-mail)
Subject: RE: [JBoss-user] How do I
run JBoss when deployment descriptor dtd's are unavailable?

 



Hello.





 





All DTDs should be
on your local machine in jboss' jar files. I've never encountered such a
problem running locally. How does JBoss complain on it?





 





alex





-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Edward Gemar
Sent: Tuesday, March 05, 2002 5:58 PM
To:
[EMAIL PROTECTED]
Subject: [JBoss-user] How do I run
JBoss when deployment descriptor dtd's are unavailable?

Hi all,

We are setting up a
laptop to take to customer sites and demo our J2EE app.═ We may or may not have
internet connectivity at our customer sites so it’s important that we can
run the server offline (i.e. – not connected to the internet)══ The
problem is that JBoss when running offline, JBoss complains that it can’t
the application deployment descriptor dtd at ═http://java.sun.com/dtd/application_1_3.dtd.═
What is the correct way, if any, to turn off deployment descriptor dtd
validation in JBoss?═ Any assistance is greatly appreciated.

 

Edward

 

 










RE: [JBoss-user] How do I run JBoss when deployment descriptor dtd's are unavailable?

2002-03-05 Thread Alex Loubyansky



Hello.
 
All 
DTDs should be on your local machine in jboss' jar files. I've never 
encountered such a problem running locally. How does JBoss complain on 
it?
 
alex

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Edward 
  GemarSent: Tuesday, March 05, 2002 5:58 PMTo: 
  [EMAIL PROTECTED]Subject: [JBoss-user] How do I run 
  JBoss when deployment descriptor dtd's are unavailable?
  
  Hi 
  all,
  We are setting up a laptop to take 
  to customer sites and demo our J2EE app.  
  We may or may not have internet connectivity at our customer sites so 
  it’s important that we can run the server offline (i.e. – not connected to the 
  internet)   The problem is that JBoss when running offline, JBoss complains that it can’t the application deployment 
  descriptor dtd at  http://java.sun.com/dtd/application_1_3.dtd.  What is the correct way, if any, to turn 
  off deployment descriptor dtd validation in JBoss?  Any 
  assistance is greatly appreciated.
   
  Edward
   
   


[JBoss-user] How do I run JBoss when deployment descriptor dtd's are unavailable?

2002-03-05 Thread Edward Gemar








Hi all,

We are setting up a laptop to take
to customer sites and demo our J2EE app. 
We may or may not have internet connectivity at our customer sites so it’s
important that we can run the server offline (i.e. – not connected to the
internet)   The problem is that JBoss when running offline, JBoss
complains that it can’t the application deployment descriptor dtd at  http://java.sun.com/dtd/application_1_3.dtd.  What is the correct way, if any, to turn off
deployment descriptor dtd validation in JBoss?  Any assistance
is greatly appreciated.

 

Edward

 

 








WG: [JBoss-user] JBoss.net setup problem: http://localhost:8080/axis/servlet/AxisS ervlet gives 404

2002-03-05 Thread Jung , Dr. Christoph
Title: JBoss.net setup problem: http://localhost:8080/axis/servlet/AxisServlet
gives 404









 

 

-Ursprüngliche Nachricht-
Von: Jung , Dr. Christoph 
Gesendet: Dienstag, 5. März 2002
16:25
An: 'JD Brennan'
Betreff: AW: [JBoss-user]
JBoss.net setup problem: http://localhost:8080/axis/servlet/AxisS ervlet gives
404

 

Hi JD,

 

head rev is currently not
in a too healthy state (at least from the jboss.net perspective). So you did
nothing wrong ...

 

The mentioned problem is
fixed since Friday (a change in the deployer structure was 

letting the AxisServlet being
half-deployed in jetty), but ear-integrated wsr-deployment 

is still hanging
sometimes ... I´m trying to fix that ASAP.

 

For playing around with
the axis-examples, it does however work fine.

 

CGJ

 

-Ursprüngliche Nachricht-
Von: JD Brennan [mailto:[EMAIL PROTECTED]]

Gesendet: Montag, 4. März 2002
19:00
An: JBoss Users (E-mail)
Betreff: [JBoss-user] JBoss.net
setup problem: http://localhost:8080/axis/servlet/AxisS ervlet gives 404

 

I'm trying to get JBoss.net working by following the
instructions 
at http://www.jboss.org/developers/jboss-net.jsp


I checked out the lastest jboss-all module from CVS.

Thanks for including 4 ways to
build JBoss.net because 
only of them worked (the 3rd one:
build -Dgroups=optional) 

The build installed the jboss-net.sar file. I started
JBoss with 
build run-jboss. I think the output
in run.log shows that 
the Axis stuff successfully loaded:


09:34:27,249 INFO  [MainDeployer] Successfully
completed deployment of package: file:/home/brennan/dev/jboss-all/build/output/jboss-3.0.0beta2/lib/axis.jar

09:35:05,777 INFO  [AxisService] Seting
RootContext to axis. 
09:35:07,440 INFO 
[AxisService] About to deploy axis web application from
org.jboss.deployment.DeploymentInfo@a86b795c{ url=file:/home/brennan/dev/jboss-all/build/output/jboss-3.0.0beta2/server/default/tmp/deploy/_axis_/axis/
} under context /axis/*.

09:35:07,441 INFO  [MainDeployer] Starting
deployment of package: file:/home/brennan/dev/jboss-all/build/output/jboss-3.0.0beta2/server/default/tmp/deploy/_axis_/axis/

09:35:07,444 INFO  [MainDeployer] Successfully
completed deployment of package: file:/home/brennan/dev/jboss-all/build/output/jboss-3.0.0beta2/server/default/tmp/deploy/_axis_/axis/

Running the Admin servlet (http://localhost:8082) shows
jboss.net with 

service=Adaptor 
service=Axis 

When I try to fetch http://localhost:8080/axis/servlet/AxisServlet

I get: 

HTTP ERROR: 404 Could not find resource for
/axis/servlet/AxisServlet 
RequestURI=/axis/servlet/AxisServlet


I'm totally new to JBoss, so I'm not sure where to
start to figure out 
what I did wrong.  Any
suggestions on what I might do or where I could 
learn more would be appreciated.


Also I can't figure out how to build the jboss.net
test suite, the 
instructions (in the web page) say:


build -Dmodules=plugins/jboss.net/testsuite tests


Which yields: Target `tests' does not exist in this
project. 

Tx! 
JD Brennan 
Principle Software Engineer

Rendition Networks 
[EMAIL PROTECTED]









Re: [JBoss-user] ejb jar deploys earlier the datasource is bounded

2002-03-05 Thread Dave Smith

Just I qucik thought. The server dir is really a partitioning of the 
jboss application. ../../deploy would be system level resources 
applcable to all partitions. I would suggest ./app-deploy for the 
applications and ./deploy for the jboss services. What you have will 
work it just a semantic thing.

My 0.02$ .


David Jencks wrote:
> On 2002.03.05 05:25:53 -0500 Alex Loubyansky wrote:
> 
>>  Hello :)
>>
>>  Yes, David you're right. I just created deploy directory in the
>>%jboss_home% directory. And in the jboss-service.xml such attributes are
>>already defined:
>>
>>  ./deploy,
>>  ../../deploy
>>
>>  It could be the solution: to drop service xml files to ../../deploy (or
>>rename it accordingly) and application files to ./deploy. Or are there
>>some
>>hidden nuances I don't see?
>>
> 
> If there are, I don't see them either;-)
> 
> david jencks
> 
>>alex
>>
>>
>>
>>>-Original Message-
>>>From: [EMAIL PROTECTED]
>>>[mailto:[EMAIL PROTECTED]]On Behalf Of
>>>David Jencks
>>>Sent: Monday, March 04, 2002 10:23 PM
>>>To: [EMAIL PROTECTED]
>>>Subject: Re: [JBoss-user] ejb jar deploys earlier the datasource is
>>>bounded
>>>
>>>
>>>This is a problem I'm thinking about.  Right now there is no
>>>way to have an
>>>ejb or an ejb module depend on any other mbeans.  There is
>>>also no way at
>>>all to have anything wait for something to be bound into jndi.  I was
>>>thinking that there might be a way to set up automatic
>>>dependencies for
>>>mbeans that bind into jndi, but this idea has not gone over
>>>too well with
>>>other developers.
>>>
>>>you might be able to add another deploy directory for your
>>>application that
>>>would get scanned after the main deploy dir.
>>>
>>>david jencks
>>>
>>>On 2002.03.04 14:00:16 -0500 Alex Loubyansky wrote:
>>>
  Hello,

  I use Jboss-3.0.0beta2. I have an ejb jar file with beans

>>>that access
>>>
datasource. When I start Jboss and after deploy my jar file

>>>everything
>>>
works
fine. But if my ejb jar file remains in the deployed

>>>directory, after
>>>
restart ejb jar is deployed earlier then datasource is

>>>bounded. Should I
>>>
use
some dependecies? I am not familiar with it. Sorry, if I it

>>>was already
>>>
been
discussed and I missed it.

  Thank you in advance,

alex


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



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



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



Re: [JBoss-user] ejb jar deploys earlier the datasource is bounded

2002-03-05 Thread David Jencks

On 2002.03.05 05:25:53 -0500 Alex Loubyansky wrote:
>   Hello :)
> 
>   Yes, David you're right. I just created deploy directory in the
> %jboss_home% directory. And in the jboss-service.xml such attributes are
> already defined:
> 
>   ./deploy,
>   ../../deploy
> 
>   It could be the solution: to drop service xml files to ../../deploy (or
> rename it accordingly) and application files to ./deploy. Or are there
> some
> hidden nuances I don't see?

If there are, I don't see them either;-)

david jencks
> 
> alex
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of
> > David Jencks
> > Sent: Monday, March 04, 2002 10:23 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] ejb jar deploys earlier the datasource is
> > bounded
> >
> >
> > This is a problem I'm thinking about.  Right now there is no
> > way to have an
> > ejb or an ejb module depend on any other mbeans.  There is
> > also no way at
> > all to have anything wait for something to be bound into jndi.  I was
> > thinking that there might be a way to set up automatic
> > dependencies for
> > mbeans that bind into jndi, but this idea has not gone over
> > too well with
> > other developers.
> >
> > you might be able to add another deploy directory for your
> > application that
> > would get scanned after the main deploy dir.
> >
> > david jencks
> >
> > On 2002.03.04 14:00:16 -0500 Alex Loubyansky wrote:
> > >   Hello,
> > >
> > >   I use Jboss-3.0.0beta2. I have an ejb jar file with beans
> > that access
> > > datasource. When I start Jboss and after deploy my jar file
> > everything
> > > works
> > > fine. But if my ejb jar file remains in the deployed
> > directory, after
> > > restart ejb jar is deployed earlier then datasource is
> > bounded. Should I
> > > use
> > > some dependecies? I am not familiar with it. Sorry, if I it
> > was already
> > > been
> > > discussed and I missed it.
> > >
> > >   Thank you in advance,
> > >
> > > alex
> > >
> > >
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> > >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 

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



[JBoss-user] "required" tx methods in 3.0.0beta

2002-03-05 Thread Alex Loubyansky

  Hello.

  I wrote an entity bean Section with local interfaces and a session bean
Catalog with remote interfaces to access it. All methods in the entity and
session beans are marked as "Required". In the session bean I have a method
addSection(SectionData data) that calls create on the entity's local home.
  I've made some tests:
1. adding 'throw new EJBException("thrown by jalex")' just before 'return
null' in the entity beans's local home create method causes the transaction
to be rolled back and datasource is untouched, as it was supposed.
2. but adding 'throw new EJBException("thrown by jalex")' in the session
bean's method addSection(SectionData data) after the call to bean's local
home create method doesn't properly rolls back the transaction.

This is entity bean's local home create method:
public String ejbCreate(SectionData data) {
  setSectionId(data.getSectionId());
  setSectionData(data);
  return null;
}

This is session bean's addSection(SectionData data) method:
public void addSection(SectionData data) {
  try {
SectionLocalHome homeLocal = SectionUtil.getLocalHome();
String pk = data.getSectionId();
if(pk == null) {
  pk = PrimaryKeyGenerator.getUUID(data);
  data.setSectionId(pk);
}
SectionLocal local = homeLocal.create(data);
System.out.println("CatalogBean: section added: " +
local.getSectionData().toString());
throw new EJBException("thrown by jalex");
  } catch(Exception e) {
throw new EJBException(e);
  }
}

And the log is:
2002-03-05 14:11:32,885 DEBUG
[org.jboss.ejb.plugins.EnterpriseContextCachePolicy] Resized cache for bean
Document: old capacity = 100, new capacity = 50
2002-03-05 14:11:40,326 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.Section] Create:
pk=1
2002-03-05 14:11:40,326 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.Section] Executing
SQL: SELECT COUNT(*) FROM Section WHERE sectionId=?
2002-03-05 14:11:40,366 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.Section] Executing
SQL: INSERT INTO Section (sectionId, parentId, name, creationDate,
lastModifiedDate, docLifetime) VALUES (?, ?, ?, ?, ?, ?)
2002-03-05 14:11:40,376 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.Section] Create:
Rows affected = 1
2002-03-05 14:11:40,416 ERROR [org.jboss.ejb.GlobalTxEntityMap] Store failed
on entity: 1
javax.ejb.EJBException: Error getting application tx data map.
Embedded Exception
Already marked for rollback
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.getApplicationTxDataMap(JDBC
StoreManager.java:207)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.synchronizeRelationData(JDBC
StoreManager.java:434)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.storeEntity(JDBCStoreManager
.java:430)
at
org.jboss.ejb.plugins.CMPPersistenceManager.storeEntity(CMPPersistenceManage
r.java:428)
at org.jboss.ejb.EntityContainer.storeEntity(EntityContainer.java:676)
at org.jboss.ejb.GlobalTxEntityMap.syncEntities(GlobalTxEntityMap.java:177)
at
org.jboss.ejb.GlobalTxEntityMap$GlobalTxEntityMapCleanup.beforeCompletion(Gl
obalTxEntityMap.java:315)
at org.jboss.tm.TxCapsule.doBeforeCompletion(TxCapsule.java:1317)
at org.jboss.tm.TxCapsule.rollback(TxCapsule.java:430)
at org.jboss.tm.TransactionImpl.rollback(TransactionImpl.java:88)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:180)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61)
at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:12
7)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
at
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.jav
a:308)
at org.jboss.ejb.Container.invoke(Container.java:668)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:363)
at java.lang.reflect.Method.invoke(Native Method)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
at sun.rmi.transport.Transport$1.run(Transport.java:152)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:148)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:465)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:7
06)
at java.lang.Thread.run(Thread.java:484)
javax.transaction.RollbackException: Already marked for rollback
at org.jboss.tm.TxCapsule.registerSynchronization(TxCapsule.java:729)
at
org.jboss.tm.TransactionImpl.registerSynchronization(TransactionImpl.java:13
3)
at
org.jboss.ejb.plugins.cmp.jdb

[JBoss-user] JBoss 2.4.3 Benchmarks by CSIRO published for free

2002-03-05 Thread Hugo José Pinto

Guys,

CSIRO is publishing a performance comparison report among application
servers. They provide the JBoss test results for free at:

http://www.cmis.csiro.au/adsat/jboss.htm

Enjoy.

HJP


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



RE: [JBoss-user] ejb jar deploys earlier the datasource is bounded

2002-03-05 Thread Alex Loubyansky

  Hello :)

  Yes, David you're right. I just created deploy directory in the
%jboss_home% directory. And in the jboss-service.xml such attributes are
already defined:

  ./deploy,
  ../../deploy

  It could be the solution: to drop service xml files to ../../deploy (or
rename it accordingly) and application files to ./deploy. Or are there some
hidden nuances I don't see?

alex


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> David Jencks
> Sent: Monday, March 04, 2002 10:23 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] ejb jar deploys earlier the datasource is
> bounded
>
>
> This is a problem I'm thinking about.  Right now there is no
> way to have an
> ejb or an ejb module depend on any other mbeans.  There is
> also no way at
> all to have anything wait for something to be bound into jndi.  I was
> thinking that there might be a way to set up automatic
> dependencies for
> mbeans that bind into jndi, but this idea has not gone over
> too well with
> other developers.
>
> you might be able to add another deploy directory for your
> application that
> would get scanned after the main deploy dir.
>
> david jencks
>
> On 2002.03.04 14:00:16 -0500 Alex Loubyansky wrote:
> >   Hello,
> >
> >   I use Jboss-3.0.0beta2. I have an ejb jar file with beans
> that access
> > datasource. When I start Jboss and after deploy my jar file
> everything
> > works
> > fine. But if my ejb jar file remains in the deployed
> directory, after
> > restart ejb jar is deployed earlier then datasource is
> bounded. Should I
> > use
> > some dependecies? I am not familiar with it. Sorry, if I it
> was already
> > been
> > discussed and I missed it.
> >
> >   Thank you in advance,
> >
> > alex
> >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user


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