Re: [JBoss-user] JBoss and loading of DTDs -- How do I work offline?

2001-05-15 Thread Chris Rossi

> Date: Wed, 16 May 2001 07:46:27 +1200
> From: Toby Allsopp <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] JBoss and loading of DTDs -- How do I work offline?
> Reply-To: [EMAIL PROTECTED]
> 
> On Tue, May 15, 2001 at 02:15:38PM -0400, Chris Rossi wrote:
> > Hello.  I was trying to do some development the other day without being
> > connected to the internet.  But I got stuck when JBoss started trying to
> > load DTDs.  Is there an easy way to ask JBoss not to validate XML files,
> > or a way to have it use local copies of the DTDs it wants?
> 
> It is intended that JBoss use local copies of the DTDs.  If it's going
> out to the 'net for them then there is a bug somewhere.  If you could
> log a detailed bug report at SourceForge, including a complete example
> that shows this, that would be really helpful.
> 
Oops, sorry for the false alarm.  Your message caused me to check for
DTDs in deployment descriptor files and sure enough my partner in crime
had put a reference to the SUN ejb-jar DTD in our ejb-jar.xml.  Easily
fixed.  Not a bug.

thanks,
chris rossi

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



[JBoss-user] JBoss and loading of DTDs -- How do I work offline?

2001-05-15 Thread Chris Rossi

Hello.  I was trying to do some development the other day without being
connected to the internet.  But I got stuck when JBoss started trying to
load DTDs.  Is there an easy way to ask JBoss not to validate XML files,
or a way to have it use local copies of the DTDs it wants?

thanks,
chris rossi

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



[JBoss-user] Re: MySQL and Minerva

2001-05-09 Thread Chris Rossi

Ok, I figured it out.  Sorry about that.  The problem had to do with
mysql permissions.  I'm sure everybody already knows this, but it would
be nice if Minerva could percolate up any SQL exceptions it might get
when trying to connect to a database.  It appears to be catching the
SQLException and then not doing anything with it.  

chris rossi


Chris Rossi wrote:
> 
> I am using:
> 
>   JBoss 2.2.1
>   Java 1.3
>   Linux 2.4.3
>   mm.mysql-2.0.4-bin.jar
> 
> Hello, I too am trying to set up MySQL under JBoss.  I've imitated
> pretty well the configurations posted in another recent thread.  When I
> start JBoss it can't create the pool.  Namely, minerva is producing a
> NullPointerException.  The startup looks like this:

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



[JBoss-user] MySQL and Minerva

2001-05-09 Thread Chris Rossi

I am using:

  JBoss 2.2.1
  Java 1.3 
  Linux 2.4.3 
  mm.mysql-2.0.4-bin.jar

Hello, I too am trying to set up MySQL under JBoss.  I've imitated
pretty well the configurations posted in another recent thread.  When I
start JBoss it can't create the pool.  Namely, minerva is producing a
NullPointerException.  The startup looks like this:

[JDBC provider] Initializing
[JDBC provider] Loaded JDBC-driver:org.gjt.mm.mysql.Driver
[JDBC provider] Initialized
[MySQLPool] Initializing
[MySQLPool] Initialized

 ...much snip...

[JDBC provider] Starting
[JDBC provider] Started
[MySQLPool] Starting
[MySQLPool] XA Connection pool MySQLPool bound to java:/MySQLPool
[MySQLPool] Stopped
[MySQLPool] java.lang.NullPointerException
[MySQLPool] at
org.opentools.minerva.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java:165)
[MySQLPool] at
org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:330)
[MySQLPool] at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
[MySQLPool] at java.lang.reflect.Method.invoke(Native Method)
[MySQLPool] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[MySQLPool] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[MySQLPool] at
org.jboss.util.ServiceControl.start(ServiceControl.java:97)
[MySQLPool] at java.lang.reflect.Method.invoke(Native Method)
[MySQLPool] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[MySQLPool] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[MySQLPool] at org.jboss.Main.(Main.java:203)
[MySQLPool] at org.jboss.Main$1.run(Main.java:107)
[MySQLPool] at java.security.AccessController.doPrivileged(Native
Method)
[MySQLPool] at org.jboss.Main.main(Main.java:103)
[Service Control] Could not start
DefaultDomain:service=XADataSource,name=MySQLPool
[Service Control] java.lang.NullPointerException
[Service Control]   at
org.opentools.minerva.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java:165)
[Service Control]   at
org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:330)
[Service Control]   at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
[Service Control]   at java.lang.reflect.Method.invoke(Native
Method)
[Service Control]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Service Control]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Service Control]   at
org.jboss.util.ServiceControl.start(ServiceControl.java:97)
[Service Control]   at java.lang.reflect.Method.invoke(Native
Method)
[Service Control]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Service Control]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Service Control]   at org.jboss.Main.(Main.java:203)
[Service Control]   at org.jboss.Main$1.run(Main.java:107)
[Service Control]   at
java.security.AccessController.doPrivileged(Native Method)
[Service Control]   at org.jboss.Main.main(Main.java:103)

The JDBC portion of my jboss.jcml looks like this:

  
 org.gjt.mm.mysql.Driver
  

  
MySQLPool
org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl
jdbc:mysql://cricket/chutney
chutney
mango
  

Any ideas?  This is driving me nuts. 

chris rossi
[EMAIL PROTECTED]

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



[JBoss-user] JAWS: Is this a bug, or is there another rational explanation.

2001-05-07 Thread Chris Rossi

Hello.  I have an entity bean.  Let's call it, Joemama.  It uses CMP. 
I'm trying to create an instance of that entity bean, so I call a create
method on its home interface.  When JBoss attempts to insert a row into
the database for this new bean instance, it calls
PreparedStatement.setBinaryStream() for a column and the JDBC driver
throws an exception saying that 'InputStream as parameter not
supported'.  I have a feeling JBoss might be trying to call
setBinaryStream() on a column for which setBinaryStream wouldn't make
sense.  In fact, the table definition for storing the Joemama bean,
created by JBoss using the PostGreSQL mapping is as follows:

Table "joemama"
 Attribute |  Type   | Modifier 
---+-+--
 version   | integer | 
 catalog   | text| 
 modified  | oid | 
 type  | oid | 
 created   | oid | 
 id| integer | 

It's not clear to me that you'd want to call setBinaryStream() on any of
those columns, but then again, I'm not sure about those oid columns. 
The actual stack trace from the server log looks like this:

[Joemama] BaseItemBean: ejbCreate()
[JAWS] InputStream as parameter not supported
[JAWS]  at
org.postgresql.jdbc2.PreparedStatement.setBinaryStream(PreparedStatement.java:417)
[JAWS]  at
org.opentools.minerva.jdbc.PreparedStatementInPool.setBinaryStream(PreparedStatementInPool.java:252)
[JAWS]  at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.setParameter(JDBCCommand.java:326)
[JAWS]  at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCreateEntityCommand.setParameters(JDBCCreateEntityCommand.java:165)
[JAWS]  at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:159)
[JAWS]  at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCreateEntityCommand.execute(JDBCCreateEntityCommand.java:135)
[JAWS]  at
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.createEntity(JAWSPersistenceManager.java:122)
[JAWS]  at
org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:207)
[JAWS]  at
org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:441)
[JAWS]  at java.lang.reflect.Method.invoke(Native Method)
[JAWS]  at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:639)
[JAWS]  at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:160)
[JAWS]  at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:87)
(snipped to protect the innocent reader from what in reality is a very
long call stack)

At any rate, I'm not really sure why this is happening or what I can do
about it.  It looks like it might be a bug in JBoss's CMP code, or it
may be the result of something screwy I've done.  Any ideas?

I've tried to run JBoss in jdb, but that didn't work for some reason. 
Hung when I asked it list threads.  I may download Forte and check out
that debugger.  

This is very strange, though, since I have another entity bean which is
effectively identical to Joemama, same table structure, same CMP fields,
and it works fine.  The table in the database is identical, the code in
the Bean class is identical, and I even copied the same deployment
descriptor and only changed the name.  Go figure.  If anybody has any
ideas, please let me know.  I'll include the deployment descriptor for
Joemama below.
 
Thanks,
Chris Rossi

   
  
An item
  
  Joemama
  com.webslingerZ.chutney.beans.JoemamaHome
  com.webslingerZ.chutney.beans.Joemama
  com.webslingerZ.chutney.beans.JoemamaBean
  Container
  
 
com.webslingerZ.chutney.beans.ItemPK
  False
  catalog
  version
  id
  type
  created
  modified
  
ejb/Catalog
Entity
com.webslingerZ.chutney.beans.CatalogHome
com.webslingerZ.chutney.beans.Catalog
Catalog
  
  
DataSource for the database
jdbc/PostgresqlTest
javax.sql.DataSource
Container
  


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