RE: [JBoss-user] Finder problem

2001-11-12 Thread Lutz Hilken

The % is part of the data, that is queried. So, put it to the values, that
are passed to the finder when it is called.

Cheers, Lutz.

-Original Message-
From: Imran Bohoran [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 10, 2001 7:02 PM
To: Jboss-User (E-mail)
Subject: [JBoss-user] Finder problem



Hi

has any one out there used the LIKE condition when customizing the finders
in JAWS. I have this finder:
  finder
  namefindByFirstNameAny/name
  query
FIRST_NAME LIKE '%{0}%'
  /query
  order/order
  /finder

But the SQL statement which JAWS interprets;
[JAWS] findByFirstNameAny command executing: SELECT CONTRACTOR_USERS.USER_ID
FROM CONTRACTOR_USERS where
FIRST_NAME LIKE '%?%'

[JAWS] Set parameter: idx=1, jdbcType=VARCHAR, value='dd' throws an Error
which lookis like:

[JAWS] java.sql.SQLException: Cannot convert class java.lang.String to SQL
type requested
[JAWS]  at
org.gjt.mm.mysql.PreparedStatement.setObject(PreparedStatement.java:930)
[JAWS]  at
org.gjt.mm.mysql.PreparedStatement.setObject(PreparedStatement.java:936)
[JAWS]  at
org.jboss.pool.jdbc.PreparedStatementInPool.setObject(PreparedStatementInPoo
l.java:282)
[JAWS]  at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.setParameter(JDBCCommand.java:33
4)
[JAWS]  at
org.jboss.ejb.plugins.jaws.jdbc.JDBCDefinedFinderCommand.setParameters(JDBCD
efinedFinderCommand.java:259)
[JAWS]  at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:159
)
[JAWS]  at
org.jboss.ejb.plugins.jaws.jdbc.JDBCFinderCommand.execute(JDBCFinderCommand.
java:87)
[JAWS]  at
org.jboss.ejb.plugins.jaws.jdbc.JDBCFindEntitiesCommand.execute(JDBCFindEnti
tiesCommand.java:153)
[JAWS]  at
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.findEntities(JAWSPersisten
ceManager.java:144)
[JAWS]  at
org.jboss.ejb.plugins.CMPPersistenceManager.findEntities(CMPPersistenceManag
er.java:305)
[JAWS]  at org.jboss.ejb.EntityContainer.find(EntityContainer.java:567)
[JAWS]  at java.lang.reflect.Method.invoke(Native Method)
[JAWS]  at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContaine
r.java:843)
[JAWS]  at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySync
hronizationInterceptor.java:231)
[JAWS]  at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInt
erceptor.java:154)
[JAWS]  at
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor
.java:108)
[JAWS]  at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:135)
[JAWS]  at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:307)
[JAWS]  at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86)
[JAWS]  at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav
a:103)
[JAWS]  at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106)
[JAWS]  at
org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:420)
[JAWS]  at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContai
nerInvoker.java:437)
[JAWS]  at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:23
7)
[JAWS]  at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182)
[JAWS]  at $Proxy195.findByFirstNameAny(Unknown Source)
[JAWS]  at
com.zeborg.labor.ejb.session.purchaseOrderManager.PurchaseOrderManagerSB.sea
rchContractorProfile(PurchaseOrderManagerSB.java:1026)
[JAWS]  at java.lang.reflect.Method.invoke(Native Method)
[JAWS]  at
org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulS
essionContainer.java:650)
[JAWS]  at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:12
8)
[JAWS]  at
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSess
ionInstanceInterceptor.java:243)
[JAWS]  at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
[JAWS]  at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:247)
[JAWS]  at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
[JAWS]  at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
[JAWS]  at
org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:
341)
[JAWS]  at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
nvoker.java:393)
[JAWS]  at java.lang.reflect.Method.invoke(Native Method)
[JAWS]  at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
[JAWS]  at sun.rmi.transport.Transport$1.run(Transport.java:152)
[JAWS]  at java.security.AccessController.doPrivileged(Native Method)
[JAWS]  at sun.rmi.transport.Transport.serviceCall(Transport.java:148)
[JAWS]  at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:465)
[JAWS]  at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:7
06)
[JAWS]  at 

RE: [JBoss-user] UserTransaction from client side

2001-09-24 Thread Lutz Hilken

Ok, to make it complete:

I do it like you suggested. Here is the code:

   public static MyBean loadOrCreateMyBean (MyBeanHome h, String key)
   {
  MyBean ret = null;
  try {
 try {
ret = h.findByPrimaryKey (key);
 }
 catch (ObjectNotFoundException ex){
log.info (Object not found, create new one...);
 }
 if (ret == null) {
ret = h.create (key);
 }
 return ret;
  }
  catch (Exception e) {
 log.error (...went wrong!, e);
  }
  return ret;
   }   

The bean in the cache is ok, but the transport to DB seems to be broken...

That a vaule is missing is one part of the problem, the other is, that the
sencond execution of this code blocks the client during commit (even with
timeout settings, where the server reports the timeout, but the client still
hangs...).

Some more ideas? ... and thanks so far...Lutz


-Original Message-
From: Ole Husgaard [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 22, 2001 6:21 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] UserTransaction from client side


Hi,

Your UT lookup seems correct.
Maybe you have hit a bug in the cache like the one
reported at:
https://sourceforge.net/tracker/index.php?func=detailaid=463548group_id=22
866atid=376685

If this is the case, and your loadOrCreateMyBean()
method tries to create the bean before looking it
up, you might be able to get around it by doing
it the other way: Looking it up, and then create
if not found.


Best Regards,

Ole Husgaard


Lutz Hilken wrote:
 
 Ok, I cut the piece for getting the TA: it's this:
 
public static UserTransaction getTransaction ()
{
   initContext ();
   UserTransaction ta = null;
   if (jndiContext != null) {
  try {
 ta = (UserTransaction)jndiContext.lookup(UserTransaction);
  }
  catch (javax.naming.NamingException e) {
 log.error(Exception while getting a transaction. Exception:
,
 e);
  }
   }
   return ta;
}
 
 ...and it's fore sure a different VM. What's funny is, that only the last
 value got lost...
 
 -Original Message-
 From: Ole Husgaard [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 19, 2001 5:36 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] UserTransaction from client side
 
 Hi,
 
 Not sure if you lookup the UT correctly.
 
 Please be aware that the current stand-alone
 client UT _only_ works correctly if the client
 executes in a VM other than the server VM.
 
 There is a UT test in the CTS tests in the
 jbosstest test suite.
 That may be useful as a starting point.
 
 Best Regards,
 
 Ole Husgaard.
 
 Lutz Hilken wrote:
 
  Hi,
 
  I want to use Client-controlled transactions by using UserTransaction.
 When
  testing it, some problems occured. See this code:
 
   UserTransaction ta = null;
   try {
  String key = null;
  MyBean b = null;
  ta = EJBUtil.getTransaction ();
  ta.setTransactionTimeout(5) ;
  ta.begin ();
  MyBeanHome home = (MyBeanHome)EJBUtil.findHome (MyBean);
  boolean doRollback = args[0].equals(x);
  for (int i = 1; iargs.length; i++) {
 key = args[i];
 b = loadOrCreateMyBean (home, key);
 b.setValue (Some vaule...+key);
 log.info (Value is: +b.getValue());
  }
  if (doRollback) {
 ta.rollback();
  }
  else {
 ta.commit ();
  }
   }
   catch (Exception ex) {
  log.error (...Ooops, ex);
  try {
 ta.rollback();
  }
  catch (Exception rex) {
 log.error (ROLLBACK failed!, rex);
  }
   }
 
  Now, when calling the code the first time, the objects are created, at
 least
  they are complete in JBoss memory cache, BUT the value of the last
created
  bean is not present in the database!
  The second call to this code, using the same keys updating the beans,
 hangs
  in the commit() call and does not return, allthough the timeout is set
to
 5
  secs (I got a trace message on the server console, but the client keeps
  hanging).
 
  What's wrong?
 
  I'm using JBoss 2.4.0, CMP for the beans, no specific
 Transaction-attribute
  (so all are Required) and Oracle.
 
  So, please help, we need this feature urgently
 
  Thanks, Lutz.
 
  Lutz Hilken
  IT-Consult
  IVU Traffic Technologies AG
  Bundesallee 88, D-12161 Berlin
  Telefon: +49.30.85 906-450, Telefax: +49.30.85 906-499
  [EMAIL PROTECTED], www.ivu.de
 
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https

RE: [JBoss-user] UserTransaction from client side

2001-09-20 Thread Lutz Hilken

Ok, I cut the piece for getting the TA: it's this:

   public static UserTransaction getTransaction ()
   {
  initContext ();
  UserTransaction ta = null;
  if (jndiContext != null) {
 try {
ta = (UserTransaction)jndiContext.lookup(UserTransaction);
 }
 catch (javax.naming.NamingException e) {
log.error(Exception while getting a transaction. Exception: ,
e);
 }
  }
  return ta;
   }

...and it's fore sure a different VM. What's funny is, that only the last
value got lost...


-Original Message-
From: Ole Husgaard [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 19, 2001 5:36 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] UserTransaction from client side


Hi,

Not sure if you lookup the UT correctly.

Please be aware that the current stand-alone
client UT _only_ works correctly if the client
executes in a VM other than the server VM.

There is a UT test in the CTS tests in the
jbosstest test suite.
That may be useful as a starting point.


Best Regards,

Ole Husgaard.


Lutz Hilken wrote:
 
 Hi,
 
 I want to use Client-controlled transactions by using UserTransaction.
When
 testing it, some problems occured. See this code:
 
  UserTransaction ta = null;
  try {
 String key = null;
 MyBean b = null;
 ta = EJBUtil.getTransaction ();
 ta.setTransactionTimeout(5) ;
 ta.begin ();
 MyBeanHome home = (MyBeanHome)EJBUtil.findHome (MyBean);
 boolean doRollback = args[0].equals(x);
 for (int i = 1; iargs.length; i++) {
key = args[i];
b = loadOrCreateMyBean (home, key);
b.setValue (Some vaule...+key);
log.info (Value is: +b.getValue());
 }
 if (doRollback) {
ta.rollback();
 }
 else {
ta.commit ();
 }
  }
  catch (Exception ex) {
 log.error (...Ooops, ex);
 try {
ta.rollback();
 }
 catch (Exception rex) {
log.error (ROLLBACK failed!, rex);
 }
  }
 
 Now, when calling the code the first time, the objects are created, at
least
 they are complete in JBoss memory cache, BUT the value of the last created
 bean is not present in the database!
 The second call to this code, using the same keys updating the beans,
hangs
 in the commit() call and does not return, allthough the timeout is set to
5
 secs (I got a trace message on the server console, but the client keeps
 hanging).
 
 What's wrong?
 
 I'm using JBoss 2.4.0, CMP for the beans, no specific
Transaction-attribute
 (so all are Required) and Oracle.
 
 So, please help, we need this feature urgently
 
 Thanks, Lutz.
 
 Lutz Hilken
 IT-Consult
 IVU Traffic Technologies AG
 Bundesallee 88, D-12161 Berlin
 Telefon: +49.30.85 906-450, Telefax: +49.30.85 906-499
 [EMAIL PROTECTED], www.ivu.de
 
 ___
 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



AW: [JBoss-user] dtd error or deployment error?II

2001-05-30 Thread Lutz Hilken

This DTD is not correct! There is a DOCTYPE entry, that should not appear in
a DTD. We posted a bug report to Sun already, but it seems to be still
present. When you look it with XMLSpy, it will report

Cheers, Lutz

-Ursprüngliche Nachricht-
Von: mroosendaal [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 29. Mai 2001 13:42
An: [EMAIL PROTECTED]
Betreff: Re: [JBoss-user] dtd error or deployment error?II


Sorry, the file web.xml (J2EE) is looking for is
http://java.sun.com/dtd/web-app_2_3.dtd
And i can locate and see it so there shouldn't be a problem.
- Original Message -
From: Nicolai P Guba [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 29, 2001 12:18 PM
Subject: Re: [JBoss-user] dtd error or deployment error?


  m == mroosendaal  [EMAIL PROTECTED] writes:

 m Hi,

 'ello

 m When i deploy the petstore in Jboss i get the following error:

 m [J2EE Deployer Default] Starting module petstore.war [Auto deploy]
 m XmlMapper: Can't find resource for entity: -//Sun Microsystems, In
 m c.//DTD Web Application 2.3//EN --
 m http://java.sun.com/dtd/web-app_2_3.dtd nul l 2001-05-29 11:38:06
 m - ContextManager: Adding context Ctx( /estore ) [Auto deploy] ERROR
 m reading C:\jboss\tmp\deploy\Default\petstore.ear\web1002\WEB
 m -INF\web.xml [Auto deploy] At External parameter entity %[dtd];
 m has characters after markup .

 m But the error remains. Does anyone know what the problem is?

 What DTD's does the web.xml refer to?  Looks like it cannot find the
 web-app DTD (not surprised, especially when you use the PUBLIC id and
 are not connected to the net.  I suggest you install them on the box
 and use the SYSTEM id instead) and that there appears to be an error
 with a DTD entity itself.  Haven't got the petstore demo, but I hope
 this gives you some pointers.

 Happy Hacking
 --
   Nicolai P Gubahttp://www.gnu.org
http://www.frontwire.com
 mailgo:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
 GSM: +44 (0)7909 960 751   DDI: +44 (0)20 7368
9708

 ___
 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



AW: [JBoss-user] tools for ear

2001-05-23 Thread Lutz Hilken

We've got problems with the newest deploytool (version 1.3) due to the new
dtd of web-app (2.3), which has a bug and cannot be parsed by crimson
parser. But the deploytool from 1.2.1 works pretty good.

-Ursprüngliche Nachricht-
Von: David Ward [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 23. Mai 2001 15:21
An: [EMAIL PROTECTED]
Betreff: Re: [JBoss-user] tools for ear


You can also use the j2eesdk's deploytool (if you prefer GUIs), but 
don't forget to add your jboss.xml's into the META-INF dirs.  I 
personally like ant much better.



--

Per Lewau wrote:

 On Wed, 23 May 2001, Jim Downing wrote:
 
 
 Yes, Ant can. The ejbjar task is one of the optional tasks.
 
 
 AFAIK that task only produces ejb jars and not ear files. An ear file is
 trivial to create with a little copy and the ordinary jar task. Building
 the modules contained in the ear file can be done with the ejbjar and war
 tasks.
 
 
 
 
 jim
 
 - Original Message - 
 From: ALex Loubyansky [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, May 23, 2001 11:24 AM
 Subject: [JBoss-user] tools for ear
 
 
 
 Hello!
 
 can anyone suggest me a tool for creating ear files? can Ant create ear
 files?
 
 thanks
 
 ALex
 
 
 ___
 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
 
 
 
 ---
 Per Lewau ([EMAIL PROTECTED]) 
 
 Why waste time learning, when ignorance is instantaneous?
   - Hobbes
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user


-- 

---
David Ward[EMAIL PROTECTED]
Senior Software Engineer  http://www.dotech.com
Distributed Object Technologies, Inc. 716-381-8320 (phone)
500 Linden Oaks, Rochester, NY 14625  716-381-0598 (fax)


___
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 parsing web-app_2.3.dtd

2001-05-15 Thread Lutz Hilken

Hi,

I'm using jboss-tomcat-2.2.

Crimson crashes when parsing the new web-app dtd (2.3). I've packaged my
.ear 
file with deploy-tool of j2ee from sun and got this after deploying:

[Auto deploy] Auto deploy of
file:/D:/jboss-tomcat-2.2/jboss-2.2/deploy/CD.ear
[J2EE Deployer Default] Deploy J2EE application:
file:/D:/jboss-tomcat-2.2/jboss-2.2/deploy/CD.ear
[J2EE Deployer Default] Create application CD.ear
[J2EE Deployer Default] inflate and install module CDWeb.war
[J2EE Deployer Default] install module CD.jar
[J2EE Deployer Default] add all ejb jar files to the common classpath
[J2EE Deployer Default] Starting module CDWeb.war
2001-05-14 01:48:49 - ContextManager: Adding context Ctx( /CDWeb.war )
[Auto deploy] XmlMapper: Can't find resource for entity: -//Sun
Microsystems, Inc.//DTD Web Applicat
ion 2.3//EN -- http://java.sun.com/dtd/web-app_2_3.dtd null
[Auto deploy] ERROR reading
D:\jboss-tomcat-2.2\jboss-2.2\tmp\deploy\Default\CD.ear\web1002\WEB-INF\
web.xml
[Auto deploy] At org.apache.crimson.parser/P-059 [dtd]

[Auto deploy] ERROR reading
D:\jboss-tomcat-2.2\jboss-2.2\tmp\deploy\Default\CD.ear\web1002\WEB-INF\
web.xml
[Auto deploy] org.xml.sax.SAXParseException:
org.apache.crimson.parser/P-059 [dtd]
[Auto deploy]   at
org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035)
[Auto deploy]   at
org.apache.crimson.parser.Parser2.fatal(Parser2.java:3029)
[Auto deploy]   at
org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.java:2757)
[Auto deploy]   at
org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1154)
[Auto deploy]   at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:488)
[Auto deploy]   at
org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
[Auto deploy]   at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
[Auto deploy]   at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
[Auto deploy]   at javax.xml.parsers.SAXParser.parse(SAXParser.java:317)
[Auto deploy]   at javax.xml.parsers.SAXParser.parse(SAXParser.java:260)
[Auto deploy]   at
org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:214)
[Auto deploy]   at
org.apache.tomcat.context.WebXmlReader.processWebXmlFile(WebXmlReader.java:2
02)
[Auto deploy]   at
org.apache.tomcat.context.WebXmlReader.contextInit(WebXmlReader.java:109)
[Auto deploy]   at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
[Auto deploy]   at
org.jboss.tomcat.TomcatEntry.initContext(TomcatEntry.java:132)
[Auto deploy]   at
org.jboss.tomcat.EmbeddedTomcatService.deploy(EmbeddedTomcatService.java:103
)
[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(J2eeDeployer.java:416)
[Auto deploy]   at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
[Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Auto deploy]   at
org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
[Auto deploy]   at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
[Auto deploy]   at java.lang.Thread.run(Thread.java:484)
[Container factory]
Deploying:file:/D:/jboss-tomcat-2.2/jboss-2.2/tmp/deploy/Default/CD.ear
[Verifier] Verifying
file:/D:/jboss-tomcat-2.2/jboss-2.2/tmp/deploy/Default/CD.ear/ejb1003.jar
[Container factory] Deploying CDBean
[Container factory] Deploying CDCollectionBean
[Bean Cache] Cache policy scheduler started
[Container factory] Deployed application:
file:/D:/jboss-tomcat-2.2/jboss-2.2/tmp/deploy/Default/CD.
ear
[J2EE Deployer Default] J2EE application:
file:/D:/jboss-tomcat-2.2/jboss-2.2/deploy/CD.ear is deplo
yed.
[Auto deploy] Auto undeploy of
file:/D:/jboss-tomcat-2.2/jboss-2.2/deploy/CDWeb.war

Any ideas?

Thanks, Lutz

Lutz Hilken 
IT-Consult 
IVU Traffic Technologies AG 
Bundesallee 88, D-12161 Berlin 
Telefon: +49.30.85 906-450, Telefax: +49.30.85 906-499 
[EMAIL PROTECTED], www.ivu.de

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



[JBoss-user] Problem parsing web-app_2.3.dtd

2001-05-14 Thread Lutz Hilken

Hi,

I'm using jboss-tomcat-2.2.

Crimson crashes when parsing the new web-app dtd (2.3). I've packaged my
.ear 
file with deploy-tool of j2ee from sun and got this after deploying:

[Auto deploy] Auto deploy of
file:/D:/jboss-tomcat-2.2/jboss-2.2/deploy/CD.ear
[J2EE Deployer Default] Deploy J2EE application:
file:/D:/jboss-tomcat-2.2/jboss-2.2/deploy/CD.ear
[J2EE Deployer Default] Create application CD.ear
[J2EE Deployer Default] inflate and install module CDWeb.war
[J2EE Deployer Default] install module CD.jar
[J2EE Deployer Default] add all ejb jar files to the common classpath
[J2EE Deployer Default] Starting module CDWeb.war
2001-05-14 01:48:49 - ContextManager: Adding context Ctx( /CDWeb.war )
[Auto deploy] XmlMapper: Can't find resource for entity: -//Sun
Microsystems, Inc.//DTD Web Applicat
ion 2.3//EN -- http://java.sun.com/dtd/web-app_2_3.dtd null
[Auto deploy] ERROR reading
D:\jboss-tomcat-2.2\jboss-2.2\tmp\deploy\Default\CD.ear\web1002\WEB-INF\
web.xml
[Auto deploy] At org.apache.crimson.parser/P-059 [dtd]

[Auto deploy] ERROR reading
D:\jboss-tomcat-2.2\jboss-2.2\tmp\deploy\Default\CD.ear\web1002\WEB-INF\
web.xml
[Auto deploy] org.xml.sax.SAXParseException:
org.apache.crimson.parser/P-059 [dtd]
[Auto deploy]   at
org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035)
[Auto deploy]   at
org.apache.crimson.parser.Parser2.fatal(Parser2.java:3029)
[Auto deploy]   at
org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.java:2757)
[Auto deploy]   at
org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1154)
[Auto deploy]   at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:488)
[Auto deploy]   at
org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
[Auto deploy]   at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
[Auto deploy]   at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
[Auto deploy]   at javax.xml.parsers.SAXParser.parse(SAXParser.java:317)
[Auto deploy]   at javax.xml.parsers.SAXParser.parse(SAXParser.java:260)
[Auto deploy]   at
org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:214)
[Auto deploy]   at
org.apache.tomcat.context.WebXmlReader.processWebXmlFile(WebXmlReader.java:202)
[Auto deploy]   at
org.apache.tomcat.context.WebXmlReader.contextInit(WebXmlReader.java:109)
[Auto deploy]   at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
[Auto deploy]   at
org.jboss.tomcat.TomcatEntry.initContext(TomcatEntry.java:132)
[Auto deploy]   at
org.jboss.tomcat.EmbeddedTomcatService.deploy(EmbeddedTomcatService.java:103)
[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(J2eeDeployer.java:416)
[Auto deploy]   at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
[Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Auto deploy]   at
org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
[Auto deploy]   at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
[Auto deploy]   at java.lang.Thread.run(Thread.java:484)
[Container factory]
Deploying:file:/D:/jboss-tomcat-2.2/jboss-2.2/tmp/deploy/Default/CD.ear
[Verifier] Verifying
file:/D:/jboss-tomcat-2.2/jboss-2.2/tmp/deploy/Default/CD.ear/ejb1003.jar
[Container factory] Deploying CDBean
[Container factory] Deploying CDCollectionBean
[Bean Cache] Cache policy scheduler started
[Container factory] Deployed application:
file:/D:/jboss-tomcat-2.2/jboss-2.2/tmp/deploy/Default/CD.
ear
[J2EE Deployer Default] J2EE application:
file:/D:/jboss-tomcat-2.2/jboss-2.2/deploy/CD.ear is deplo
yed.
[Auto deploy] Auto undeploy of
file:/D:/jboss-tomcat-2.2/jboss-2.2/deploy/CDWeb.war

Any ideas?

Thanks, Lutz

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