Re: [JBoss-user] simple config for 2 session beans to postgres db, please (tc3.2.2+jb2.2.2)

2001-06-18 Thread Guy Rouillier

Note sure why you don't like the answers you found in the archives, but here
is the same answer again.  This example uses Oracle - substitute your DBMS
of choice.

Given a reference like this in your code:

 Connection connection = ((DataSource)new
InitialContext().lookup("java:comp/env/jdbc/OracleDB")).getConnection();

Here are the entries in ejb-jar.xml:

   
A jdbc connection for the DbTester
bean
jdbc/OracleDB
javax.sql.DataSource
Container
   

and here are the entries in jboss.xml:

  

  java:/OracleDB
  jdbc/OracleDB

  

And here is the entry in jboss.jcml:

  
OracleDB
org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l
jdbc:oracle:thin:@localhost:1521:homedb
true


  

Also in jboss.jcml, add the oracle driver to the list of JDBC drivers:
oracle.jdbc.driver.OracleDriver

- Original Message -
From: "Jim Clayson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 6:19 AM
Subject: [JBoss-user] simple config for 2 session beans to postgres db,
please (tc3.2.2+jb2.2.2)


> Hi,
>
> Forgive me if this topic has been covered somewhere before (or to death)
> but I haven't been able to find any pertinent past postings and there's
> a lot of conficting info in the archives - mainly due to version
> differences.
>
> I have Tomcat 3.2.2 + JBoss 2.2.2 (as one), JDK1.3 and posgresql db v7.x
> on Suse 7.1
>
> All I'm tring to do is to setup two stateless session beans which are
> able to do the basics of db access via the jdbc driver(i.e. read, write
> and delete). I don't think I'm even going to bother giving any details
> of how far I have gone in recent days because I think I'm starting to
> get confused by some of the past postings and I would rather start from
> scratch with the simplest of setups. All I can say is my bean code does
> deploy (although at the moment, I'm having to restart the server to do
> this - the autodeploy is not working for some reason) and can be
> contacted by my servlet client-code.
>
>
> I ran the test client(straight out the online manual) successfully
> against the test bean but there was no db interaction there. If some
> kind soul could give me a brief sketch of the configuration of the
> simplest of stateless session beans running against a db, I'd be mighty
> grateful.
>
> Cheers
> Jim Clayson
> 
>
> ___
> 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] Errors Deploying CMP example from RMH book

2001-06-18 Thread Hiep Luong

I just got started with jboss and trying examples from the RMH
Enterprise JavaBeans book.

I get a boat load of errors when I deploy the cabinbean example with
JBOSS using Oracle 8i.  When first deployed the bean Jboss was set with
Hypersonic as the datasource(DefaultDS).  I next switched to Oracle by
changing the oracle datasource to DefaultDS in jboss.jcml file.
deployment gives this:

[Default] JBoss 2.3 BETA Started in 0m:33s
[Auto deploy] Auto deploy of file:/usr/local/jboss/deploy/cabin.jar
[J2EE Deployer Default] Deploy J2EE application:
file:/usr/local/jboss/deploy/cabin.jar
[J2EE Deployer Default] Create application cabin.jar
[J2EE Deployer Default] install module cabin.jar
[Container factory]
Deploying:file:/usr/local/jboss/tmp/deploy/Default/cabin.jar
[Verifier] Verifying
file:/usr/local/jboss/tmp/deploy/Default/cabin.jar/ejb1003.jar
[Container factory] Deploying CabinBean
[Container Management Proxy] Initializing
[Container Management Proxy] Initialized
[Container Management Proxy] Starting
[Container Management Proxy] Started
[Container factory] XAException: tx=XidImpl [FormatId=257,
GlobalId=barney//0, BranchQual=] errorCode=XAER_NOTA
[Container factory] oracle.jdbc.xa.OracleXAException
[Container factory]  at
oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:483)
[Container factory]  at
oracle.jdbc.xa.client.OracleXAResource.end(OracleXAResource.java:285)
[Container factory]  at
org.jboss.tm.TxCapsule.endResource(TxCapsule.java:1129)
[Container factory]  at
org.jboss.tm.TxCapsule.delistResource(TxCapsule.java:523)
[Container factory]  at
org.jboss.tm.TransactionImpl.delistResource(TransactionImpl.java:99)
[Container factory]  at
org.jboss.pool.jdbc.xa.XAConnectionFactory$2.closeConnection(XAConnectionFactory.java:97)

[Container factory]  at
org.jboss.pool.jdbc.xa.XAConnectionFactory$2.connectionClosed(XAConnectionFactory.java:82)

[Container factory]  at
oracle.jdbc.pool.OraclePooledConnection.callListener(OraclePooledConnection.java:241)

[Container factory]  at
oracle.jdbc.pool.OraclePooledConnection.logicalClose(OraclePooledConnection.java:215)

[Container factory]  at
oracle.jdbc.driver.OracleConnection.logicalClose(OracleConnection.java:1955)

[Container factory]  at
oracle.jdbc.driver.OracleConnection.close(OracleConnection.java:904)
[Container factory]  at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:180)

[Container factory]  at
org.jboss.ejb.plugins.jaws.jdbc.JDBCInitCommand.execute(JDBCInitCommand.java:122)

[Container factory]  at
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.init(JAWSPersistenceManager.java:103)

[Container factory]  at
org.jboss.ejb.plugins.CMPPersistenceManager.init(CMPPersistenceManager.java:109)

[Container factory]  at
org.jboss.ejb.EntityContainer.init(EntityContainer.java:210)
[Container factory]  at
org.jboss.ejb.Application.init(Application.java:201)
[Container factory]  at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:340)
[Container factory]  at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:278)
[Container factory]  at java.lang.reflect.Method.invoke(Native Method)
[Container factory]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)

[Container factory]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)

[Container factory]  at
org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:489)
[Container factory]  at
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:467)

[Container factory]  at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:211)
[Container factory]  at java.lang.reflect.Method.invoke(Native Method)
[Container factory]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)

[Container factory]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)

[Container factory]  at
org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
[Container factory]  at
org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)
[Container factory]  at java.lang.Thread.run(Thread.java:484)
[Container factory] XAException: tx=XidImpl [FormatId=257,
GlobalId=barney//0, BranchQual=] errorCode=XAER_NOTA
[Container factory] oracle.jdbc.xa.OracleXAException
[Container factory]  at
oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:483)
[Container factory]  at
oracle.jdbc.xa.client.OracleXAResource.end(OracleXAResource.java:285)
[Container factory]  at
org.jboss.tm.TxCapsule.endResource(TxCapsule.java:1129)
[Container factory]  at
org.jboss.tm.TxCapsule.endResources(TxCapsule.java:1187)
[Container factory]  at
org.jboss.tm.TxCapsule.commit(TxCapsule.java:291)
[Container factory]  at
org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:76)
[Container factory]  at
org.jboss.tm.TxManager.commit(TxManager.java:121)
[Container factory]  at
org.jboss.ejb.plugins.jaws.jdbc.JDBCInitCommand.execute(JDBCInitCommand.java:123)

[Container factory]  at
org.

Re: [JBoss-user] does jboss support this?

2001-06-18 Thread Guy Rouillier

What do you mean by "and this client is an separate application"?  JBoss
DataSource's are meant to be used only from within the JVM under which JBoss
is running.   It most definitely will NOT work if you try to access this
connection from Java  code running on a different JVM.   See very many
message threads on this same subject  in the archives.

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 5:07 AM
Subject: [JBoss-user] does jboss support this?


> Good day everyone:
>
>
>   I created a CMP entity bean successfully,now,use oracle.
>  the message in console is:
> 
> [OracleDB] Starting
> [Hypersonic] Server 1.4 is running
> [Hypersonic] Press [Ctrl]+[C] to abort
> [OracleDB] XA Connection pool OracleDB bound to java:/OracleDB
> [OracleDB] Started
> 
>
> but I still can not use a client to access the datasource "OracleDB",
> and this client is an seperate application.
> After getInitialContext() the code is following
> ...
>
> Context ctx = new E001TestClient1().getInitialContext();
> DataSource ds= (DataSource)ctx.lookup("java:/OracleDB");
> Connection c=ds.getConnection();
> ...
>
> Exception is
> javax.naming.NameNotFoundException: OracleDB not bound
> at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:245)
> at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
> at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
> at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349)
> at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
> at javax.naming.InitialContext.lookup(InitialContext.java:350)
> at weblogictest.E001TestClient1.main(E001TestClient1.java:436)
> Exception in thread "main"
>
>
> Does jboss support this?
> can I use the datasource in jboss,out of the enviroment of jboss?
> thank you all.
>
> [EMAIL PROTECTED]
> --end of this message-
>
> _
> [×ã²»³ö»§ ÇáËÉÉÏÍø] ÉÏÍøרÓúţº95963£¬Óû§Ãû/ÃÜÂ룺263
> Ìػݾ«Æ·¿Õµ÷ÂòÓÖËÍ  http://shopping.263.net/hotsale/aircondition/index.asp
>
> ___
> 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] MLET absolute path and MalformedObjectNameException

2001-06-18 Thread Jakob Braeuchi

when i try to set an absolute logging path, i get the following exception:

javax.management.MalformedObjectNameException: ObjectName: Invalid value ->
d:/java/jboss/log/

i changed the logging path from ../../log/ to d:/java/jboss/log/



   


thanks
jakob



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



[JBoss-user] Clustering, where do we stand now?

2001-06-18 Thread ZHU Jia

Hi there,

I know there is JBossHA, but is anybody using it in a Production
environment? And what's the experience? How about the clustering support
in the JBoss 3.x release, what clustering features are supposed to be
included(load balancing, fail over...)?
I also have a general question on clustering - it's not very clear to
me, what does a programmer have to do for their programmes to work
properly in a cluster? Is there anything crucial to watch out, or will
it simply "work"? I couldn't find it mentioned anywhere in the articles
concerning clustering, or in my EJB books:-(
Many thanks in advance!

regards
ZHU Jia

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



Re: [JBoss-user] How to specify relationships between CMP EJBs?

2001-06-18 Thread Fred Loney

Do you find the M-H pattern worthwhile in practice? More often than not, the 
presentation layer initiates the Bar access with respect to a non-EJB form bean or 
data object rather than the EJB itself, if for no other reason than to avoid network 
round trips (cf. http://theserverside.com/patterns/thread.jsp?thread_id=79). In that 
case, the Bar access alternatives are:

  FooData fd = foo.getData();
  BarData bar = null;
  if (fd.getBarId() != 0) {
 foo = getFooHome().findByPrimaryKey(new Integer(fooId));
 Bar bar = foo.getBar();
 bd = bar.getData();
  }

vs.

  FooData fd = foo.getData();
  BarData bar = null;
  if (fd.getBarId() != 0) {
 Bar bar = getFooHome().findByPrimaryKey(new Integer(barId));
 bd = bar.getData();
  }

The second form is slightly simpler than the first and considerably more efficient.

Adam Young wrote:

> The Monson-Haefel book suggests using the foreign keys as properties of
> the beans, and then have accessors that get the related objects.
> if foo
> ...
> int getBarId()
> void setBarId(int id)
> Bar getBar();
> ..
>
> and then in the FooBean:
> private Bar bar;
> public Bar getBar(){
>   if (null == bar){
>   foo = getBarHome().findByPrimaryKey(new Integer(foodId));
>   }
>   return foo;
> }
>
> I am ignoring exception handling and the accessor for getBarHome.
>
> Is this the way that most people  are handling relationships?
>
> Kar YEOW wrote:
>
> >The relationship stuff is in EJB2.0 and it is still in DRAFT.  It is not yet
> >supported in JBOSS.
> >Kar
> >- Original Message -
> >From: "Richard Kasperowski" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Tuesday, June 19, 2001 7:34 AM
> >Subject: [JBoss-user] How to specify relationships between CMP EJBs?
> >
> >
> >I'm trying to understand how container managed persistence make this
> >happen.  I have two EJBs like so:
> >
> >-
> >public interface Foo extends EJBObject {
> > Long getId() throws RemoteException;
> > void setId(Long param) throws RemoteException;
> > String getName() throws RemoteException;
> > void setName(String param) throws RemoteException;
> > Bar getBar() throws RemoteException;
> > void setBar(Bar param) throws RemoteException;
> >}
> >
> >public interface Bar extends EJBObject {
> > Long getId() throws RemoteException;
> > void setId(Long param) throws RemoteException;
> > String getName() throws RemoteException;
> > void setName(String param) throws RemoteException;
> >}
> >-
> >
> >The idea here is that a Foo has a Bar.  The Bar must already exist.
> >
> >I want this to work through CMP.  I can't quite figure out how to tell
> >JBoss that there's a relationship between Foo and Bar.  I've been
> >playing around with the tags "relationships" and "cmr-field", but I
> >haven't been able to get it right.
> >
> >Does anyone have an example that I could follow?
> >
> >Thanks,
> >
> >--
> >Richard Kasperowski (mailto:[EMAIL PROTECTED])
> >Tel: 617-576-1552, Fax: 617-576-2441
> >http://www.altisimo.com/
> >
> >
> >___
> >JBoss-user mailing list
> >[EMAIL PROTECTED]
> >http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
> >___
> >JBoss-user mailing list
> >[EMAIL PROTECTED]
> >http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

--
Fred Loney
Spirited Software, Inc.
[EMAIL PROTECTED]



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



Re: [JBoss-user] JBoss hosting

2001-06-18 Thread Emmanuel Charpentier


  I'm not sure at all, about 10~20 visitors a day, but it could grow quickly.

  In any case, if it's a disturbance I have no trouble uninstalling it. If the
  load or the cpu are too high, removal is definitely the best remedy :-)
  
  Contact me directly at [EMAIL PROTECTED] if you are willing to
  have me as a *temporary* and hopefully undisturbing passenger...

  Thx in advance.

  Manu.


Peter Routtier-Wone [[EMAIL PROTECTED]] wrote: 
> How much traffic are you expecting? I could host this if it's not too high.
> - Original Message -
> From: "marc fleury" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 19, 2001 3:21 AM
> Subject: RE: [JBoss-user] JBoss hosting
> 
> 
> > Yes I recommend wantjava.com, it will cost you though...
> >
> > marcf
> >
> > |-Original Message-
> > |From: [EMAIL PROTECTED]
> > |[mailto:[EMAIL PROTECTED]]On Behalf Of Mike Davis
> > |Sent: Monday, June 18, 2001 1:03 PM
> > |To: [EMAIL PROTECTED]
> > |Subject: RE: [JBoss-user] JBoss hosting
> > |
> > |
> > |www.wantjava.com
> > |
> > |I don't think the site mentions it, but if you contact them I think they
> > |actually do host it. They run Oracle and MySql, but ask them about
> > |PostgresSQL, I think they'll do about anything you want them to.
> > |
> > |They are the ones who host jboss.org and servlets.com
> > |
> > |Mike Davis
> > |
> > |-Original Message-
> > |From: [EMAIL PROTECTED]
> > |[mailto:[EMAIL PROTECTED]]On Behalf Of Emmanuel
> > |Charpentier
> > |Sent: Monday, June 18, 2001 9:53 AM
> > |To: [EMAIL PROTECTED]
> > |Subject: [JBoss-user] JBoss hosting
> > |
> > |
> > |
> > |  Hello everybody
> > |
> > |  I'm looking for server space, free or cheap, where I could install a
> demo
> > |of
> > |  a project based on JBoss and PostgreSQL (could be tweaked to work with
> > |  another db).
> > |
> > |  The project is called VeniVidiVoti, you can find a description of it
> > |(static
> > |  pages copied from a running VeniVidiVoti Library) at http://vvv.sf.net
> > |
> > |  In a few words:
> > |  VVV is the motor of a collaborative writing web site, based on three
> > |  principles offering a mix of representative and participative
> > |democracies.
> > |  I often describe it as «Direct Democracy», although it's slightly
> > |different
> > |  in some respects (representation is indirect).
> > |  With VVV, a community should be able to democratically write any sort
> of
> > |  text: petition, book of laws, constitution, poem, novel, newspaper,
> > |weblog...
> > |  from the bottom-up!
> > |
> > |  I believe it could be revolutionary (I'm biased, ok :-), but there is
> no
> > |way
> > |  I can convince a community to use it if they don't see what it offers
> > |  beforehand.
> > |
> > |  Any body can help me???
> > |
> > |  Manu.
> > |
> > |  -
> > |  VVV is GPL...

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



[JBoss-user] Re: jboss and O-R mapping tools (plug)

2001-06-18 Thread Kenneth Bowen

> Send JBoss-user mailing list submissions to
>   [EMAIL PROTECTED]

> ...
> or will we have to buy, (gulp) CocoBase O/R mapping product? (Seems to
> be the only one that supports jBoss).

Why wouldn't Toplink work with Jboss? 

I work for Tricoron Networks, and our O <> R mapping product (PRO-Object gen)
has been tested with jboss. It's not free, but you can buy the source. We're
pretty close to releasing a new version that includes jboss examples (along
with Weblogic, jrun, and enhydra examples.) See www.tricoron.com for (old)
details. The new release is in Q/A now, along with improved documentation.

kb

-- 
Kenneth Bowen [EMAIL PROTECTED] /\ moc.xobop@newobk newoB htenneK
http://www.pobox.com/~kbowen  /  \ newobk~/ten.xobop.www//:ptth
Powered by Debian 2.2 | Mcq! /\ !qcM | 2.2 naibeD yb derewoP


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



Re: [JBoss-user] Jaws.xml DTD

2001-06-18 Thread Keerthi P

It's here..
http://www.jboss.org/doco_files/jaws.dtd

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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



Fwd: Re: [JBoss-user] inconsistent (but frequent) InitialContext.lookup() problems

2001-06-18 Thread Greg Merrill

I was able to solve my problem by upping the max # of
tcp connections allowed, as suggested. (Thanks for the
diagnosis & recommendation, Scott.) Here's a URL
describing how to do this, in case anyone else is
interested.

http://www.proxyplus.cz/faq/articles/EN/art10002.htm

I'm still concerned, though - is there anything I
could be doing programatically to cause this
proliferation of connections?  Or is it to be expected
with anything more than a trivial application?

Note: forwarded message attached.


__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/


Actually, I'm only instantiating two InitialContexts
during the lifetime of the application, so I don't
think that they're consuming all the availble
connections.  

Is there a relationship between number of beans
fetched & tcp connections, or are InitialContexts the
only factor?  E.g., if I retrieve 100 EntityBeans,
will that eat up a similar number of tcp connections? 
I do have some queries that pull up a bunch of beans
...

--- Scott M Stark <[EMAIL PROTECTED]> wrote:
> That is a windows tcp error:
> WSAENOBUFS(10055): 
> An operation on a socket could not be performed
> because the system lacked sufficient buffer space or
> because a queue was full. 
> 
> Your creating too many connections for your OS. Try
> keeping one InitialContext
> around instead of creating every time or look into
> tweaking the OS tcp
> parameters.
> 
> - Original Message - 
> From: "Greg Merrill" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, June 15, 2001 12:19 PM
> Subject: [JBoss-user] inconsistent (but frequent)
> InitialContext.lookup() problems
> 
> 
> > I have recently begun having serious problems
> > retrieving beans from JNDI.  For some reason,
> > InitialContext.lookup() keeps throwing a
> > CommunicationException.  However, it doesn't
> always
> > happen!  (Although after it happens once, it
> happens
> > fairly consistently until a re-deploy or restart
> > JBoss, at which times it will *sometimes*
> recover.) 
> > Has anyone seen this (or anything like this)
> before? 
> > I'm stumped.  
> > 
> > My context properties are:
> >
>
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
> > java.naming.provider.url=localhost:1099
> > java.naming.factory.url.pkgs=org.jboss.naming
> > 
> > Here is the stack trace:
> > javax.naming.CommunicationException.  Root
> exception
> > is java.rmi.ConnectIOException: Exception creating
> > connection to: 24.250.12.187; nested exception is:
> 
> > java.net.SocketException: no further
> information
> > (code=10055)
> > java.net.SocketException: no further information
> > (code=10055)
> > at
> java.net.PlainSocketImpl.socketConnect(Native
> > Method)
> > at
> 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
>
http://lists.sourceforge.net/lists/listinfo/jboss-user


__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/

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



Re: [JBoss-user] JBoss hosting

2001-06-18 Thread Peter Routtier-Wone

How much traffic are you expecting? I could host this if it's not too high.
- Original Message -
From: "marc fleury" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 19, 2001 3:21 AM
Subject: RE: [JBoss-user] JBoss hosting


> Yes I recommend wantjava.com, it will cost you though...
>
> marcf
>
> |-Original Message-
> |From: [EMAIL PROTECTED]
> |[mailto:[EMAIL PROTECTED]]On Behalf Of Mike Davis
> |Sent: Monday, June 18, 2001 1:03 PM
> |To: [EMAIL PROTECTED]
> |Subject: RE: [JBoss-user] JBoss hosting
> |
> |
> |www.wantjava.com
> |
> |I don't think the site mentions it, but if you contact them I think they
> |actually do host it. They run Oracle and MySql, but ask them about
> |PostgresSQL, I think they'll do about anything you want them to.
> |
> |They are the ones who host jboss.org and servlets.com
> |
> |Mike Davis
> |
> |-Original Message-
> |From: [EMAIL PROTECTED]
> |[mailto:[EMAIL PROTECTED]]On Behalf Of Emmanuel
> |Charpentier
> |Sent: Monday, June 18, 2001 9:53 AM
> |To: [EMAIL PROTECTED]
> |Subject: [JBoss-user] JBoss hosting
> |
> |
> |
> |  Hello everybody
> |
> |  I'm looking for server space, free or cheap, where I could install a
demo
> |of
> |  a project based on JBoss and PostgreSQL (could be tweaked to work with
> |  another db).
> |
> |  The project is called VeniVidiVoti, you can find a description of it
> |(static
> |  pages copied from a running VeniVidiVoti Library) at http://vvv.sf.net
> |
> |  In a few words:
> |  VVV is the motor of a collaborative writing web site, based on three
> |  principles offering a mix of representative and participative
> |democracies.
> |  I often describe it as «Direct Democracy», although it's slightly
> |different
> |  in some respects (representation is indirect).
> |  With VVV, a community should be able to democratically write any sort
of
> |  text: petition, book of laws, constitution, poem, novel, newspaper,
> |weblog...
> |  from the bottom-up!
> |
> |  I believe it could be revolutionary (I'm biased, ok :-), but there is
no
> |way
> |  I can convince a community to use it if they don't see what it offers
> |  beforehand.
> |
> |  Any body can help me???
> |
> |  Manu.
> |
> |  -
> |  VVV is GPL...
> |
> |
> |___
> |JBoss-user mailing list
> |[EMAIL PROTECTED]
> |http://lists.sourceforge.net/lists/listinfo/jboss-user
> |
> |
> |___
> |JBoss-user mailing list
> |[EMAIL PROTECTED]
> |http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user



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



Re: [JBoss-user] Unique constraint problem

2001-06-18 Thread David Jencks

Hi,
Could you show the code in which you expect to catch the sqlexception? Does
everything work if you drop the unique constraint?
thanks

david jencks

On 2001.06.18 18:50:33 -0400 Bob Mancarella wrote:
> I am using Interbase with a BMP bean. If I have a column with a unique
> constraint and attempt to add another row with the same value I don't get
> a
> SQLException. JBoss seems to throw some internal errors which I am unable
> to
> catch. The output is below. 
>  
> Has anyone had any luck with unique constraints errors in JBoss?
>  
> -Bob
> 
> 
> [com.faq.ejb.UserMasterHome] TRANSACTION ROLLBACK EXCEPTION:null; nested
> exception is:
> javax.ejb.EJBException
> [com.faq.ejb.UserMasterHome] java.lang.ClassCastException:
> java.lang.VerifyError
> 
> [com.faq.ejb.UserMasterHome]at
> org.jboss.ejb.plugins.BMPPersistenceManager.c
> reateEntity(BMPPersistenceManager.java:151)
> [com.faq.ejb.UserMasterHome]at
> org.jboss.ejb.EntityContainer.createHome(Enti
> tyContainer.java:441)
> [com.faq.ejb.UserMasterHome]at java.lang.reflect.Method.invoke(Native
> Method
> )
> 
> 
> 
> 
> 
> 
> 
> 
> 
> I am using Interbase with a BMP bean. If I have a column with a 
> uniqueconstraint and attempt to add another row with the same value I
> don't 
> get aSQLException. JBoss seems to throw some internal errors which I
> am 
> unable tocatch. The output is below. 
> 
>  
> Has anyone had any luck with unique 
> constraints errors in JBoss?
>  
>  size=2>-Bob
> [com.faq.ejb.UserMasterHome] TRANSACTION ROLLBACK
> EXCEPTION:null; 
> nestedexception is:    
> javax.ejb.EJBException[com.faq.ejb.UserMasterHome] 
> 
>java.lang.ClassCastException:java.lang.VerifyError[com.faq.ejb.UserMasterHome]   
> 
> 
>atorg.jboss.ejb.plugins.BMPPersistenceManager.createEntity(BMPPersistenceManager.java:151)[com.faq.ejb.UserMasterHome]   
> 
> 
>atorg.jboss.ejb.EntityContainer.createHome(EntityContainer.java:441)[com.faq.ejb.UserMasterHome]   
> 
> at java.lang.reflect.Method.invoke(NativeMethod)
> 


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



RE: [JBoss-user] How to specify relationships between CMP EJBs?

2001-06-18 Thread Paul McLachlan
Title: RE: [JBoss-user] How to specify relationships between CMP EJBs?






I was just about to ask if this is going to be implemented in 3.0?


or will we have to buy, (gulp) CocoBase O/R mapping product? (Seems to be the only one that supports jBoss).


What about synching 2 object caches. Is there any infrastructure planned for that? I know Persistence's (Powertier is the product) have a service they call power-sync, don't know about Cocobase.

Paul. 


> -Original Message-

> From: Kar YEOW [mailto:[EMAIL PROTECTED]]

> Sent: Tuesday, 19 June 2001 9:25 AM

> To: [EMAIL PROTECTED]

> Subject: Re: [JBoss-user] How to specify relationships 

> between CMP EJBs?

> 

> 

> The relationship stuff is in EJB2.0 and it is still in DRAFT. 

>  It is not yet

> supported in JBOSS.

> Kar

> - Original Message -

> From: "Richard Kasperowski" <[EMAIL PROTECTED]>

> To: <[EMAIL PROTECTED]>

> Sent: Tuesday, June 19, 2001 7:34 AM

> Subject: [JBoss-user] How to specify relationships between CMP EJBs?

> 

> 

> I'm trying to understand how container managed persistence make this

> happen.  I have two EJBs like so:

> 

> -

> public interface Foo extends EJBObject {

>  Long getId() throws RemoteException;

>  void setId(Long param) throws RemoteException;

>  String getName() throws RemoteException;

>  void setName(String param) throws RemoteException;

>  Bar getBar() throws RemoteException;

>  void setBar(Bar param) throws RemoteException;

> }

> 

> public interface Bar extends EJBObject {

>  Long getId() throws RemoteException;

>  void setId(Long param) throws RemoteException;

>  String getName() throws RemoteException;

>  void setName(String param) throws RemoteException;

> }

> -

> 

> The idea here is that a Foo has a Bar.  The Bar must already exist.

> 

> I want this to work through CMP.  I can't quite figure out how to tell

> JBoss that there's a relationship between Foo and Bar.  I've been

> playing around with the tags "relationships" and "cmr-field", but I

> haven't been able to get it right.

> 

> Does anyone have an example that I could follow?

> 

> Thanks,

> 

> --

> Richard Kasperowski (mailto:[EMAIL PROTECTED])

> Tel: 617-576-1552, Fax: 617-576-2441

> http://www.altisimo.com/

> 

> 

> ___

> JBoss-user mailing list

> [EMAIL PROTECTED]

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

> 

> 

> ___

> JBoss-user mailing list

> [EMAIL PROTECTED]

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

> 





[JBoss-user] Postgres Datasource problems

2001-06-18 Thread Russell Chan

Hi there,

I'm hoping someone can help me track down my Posgresql datasource problems:

The error is occuring trying to create the table for my CMP EJB automatically,
and it seems to be indicating that the postgres data object catalog is unavailable.
Here's the stack trace:

[LeaseoutDS] Pool LeaseoutDS [1/3/3] gave out pooled object: 
org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@c436b[LeaseoutDS] Pool 
LeaseoutDS [0/3/3] returned object 
org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@c436b to the pool.
[LeaseoutDS] Resource 'org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl@1989b5' 
enlisted for 'org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@c436b'.
[LeaseoutDS] Pool LeaseoutDS [1/3/3] gave out pooled object: 
org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@c436b[JAWS] 
java.sql.SQLException: ERROR:  Unable to locate type name 'object' in catalog
[JAWS] 
[JAWS]  at org.postgresql.Connection.ExecSQL(Connection.java)
[JAWS]  at org.postgresql.jdbc1.Statement.execute(Statement.java)
[JAWS]  at org.postgresql.jdbc1.Statement.executeUpdate(Statement.java)
[JAWS]  at org.postgresql.jdbc1.PreparedStatement.executeUpdate(PreparedStatement.java)
[JAWS]  at 
org.opentools.minerva.jdbc.PreparedStatementInPool.executeUpdate(PreparedStatementInPool.java:82)
[JAWS]  at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCUpdateCommand.executeStatementAndHandleResult(JDBCUpdateCommand.java:49)
[JAWS]  at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:160)
[JAWS]  at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCInitCommand.execute(JDBCInitCommand.java:122)
[JAWS]  at 
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.init(JAWSPersistenceManager.java:97)
[JAWS]  at 
org.jboss.ejb.plugins.CMPPersistenceManager.init(CMPPersistenceManager.java:105)
[JAWS]  at org.jboss.ejb.EntityContainer.init(EntityContainer.java:198)
[JAWS]  at org.jboss.ejb.Application.init(Application.java:183)
[JAWS]  at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:337)
[JAWS]  at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:275)
[JAWS]  at java.lang.reflect.Method.invoke(Native Method)
[JAWS]  at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[JAWS]  at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[JAWS]  at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:435)
[JAWS]  at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
[JAWS]  at java.lang.reflect.Method.invoke(Native Method)
[JAWS]  at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[JAWS]  at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[JAWS]  at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
[JAWS]  at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
[JAWS]  at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:332)
[JAWS]  at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
[JAWS]  at java.lang.reflect.Method.invoke(Native Method)
[JAWS]  at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[JAWS]  at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[JAWS]  at org.jboss.util.ServiceControl.start(ServiceControl.java:97)
[JAWS]  at java.lang.reflect.Method.invoke(Native Method)
[JAWS]  at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[JAWS]  at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[JAWS]  at org.jboss.Main.(Main.java:203)
[JAWS]  at org.jboss.Main$1.run(Main.java:107)
[JAWS]  at org.jboss.Main.main(Main.java:103)
[JAWS] Could not create table FORUMMESSAGE: ERROR:  Unable to locate type name 
'object' in catalog


I've tried this with both postgresql 6.5.3 and postgresql 7.1release 4 with the same 
result.
The version of the postgresql jdbc driver is 7.0.2-3, if that helps.
I'm running this all under Debian linux, "testing" version.

The jboss version is : JBoss-2.2.1_Tomcat-3.2.1

Note that a similar error occurs whilst trying to unload the ear, as a result of 
trying to delete
the associated table.

Here are the relevant sections in jboss.jcml:
  
 org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,org.postgresql.Driver
  

  
LeaseoutDS
org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl

jdbc:postgresql://eagle/lotest
120
russ
russ 
3
false
false
false
true
12
180
false
true
1.0
3
  


And, here are my jaws.xml overrides:

java:/LeaseoutDS
PostgreSQL
true

true
true
false
false
300
false



ForumMessage
FORUMMESSAGE

id
ID

   

[JBoss-user] jboss/tomcat + cocoon

2001-06-18 Thread joey castillo

hi there,

is there a "how-to" re:cocoon 1.8.2 integration with jboss-tomcat?
i had cocoon running on tomcat3.2.2.  but was not successful with
jboss-tomcat.

thanks,
joey castillo

__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/

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



RE: RE: [JBoss-user] standalone J2EE java client

2001-06-18 Thread Tahir Awan

Your guess seems right. Sorry for earlier confusion as there was no mention
of j2ee-clients as per spec/dtd.

Tahir

> -Original Message-
> From: Victor Lan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 18, 2001 7:12 PM
> To: [EMAIL PROTECTED]
> Subject: Re: RE: [JBoss-user] standalone J2EE java client
> 
> 
> Hi Chris,
> 
> I believe what you and Tahir described is simply a fat client, not a 
> J2EE client, the most important difference being that the latter has 
> access to the java:comp/ namespace.  The 
> application-client.xml file can 
> be thought of as a deployment descriptor for the J2EE client, wherein 
> references to other J2EE resources are defined.
> 
> As Keith said, other app servers, such as the RI, do have support for 
> this.  I have asked this same question before, and got no 
> response, so 
> I'm guessing that JBoss does not have support for this.
> 
> Victor
> 
> 
> 
> - Original Message -
> From: "Kimpton,C (Chris)" <[EMAIL PROTECTED]>
> Date: Monday, June 18, 2001 11:36 am
> Subject: RE: [JBoss-user] standalone J2EE java client
> 
> > Hi,
> > 
> > I am not sure to what facility you are referring - are you looking 
> > to run
> > the client in the same VM as the JBoss server?  In which case, you 
> > can do
> > this - but obviously only one client can do this, the other 
> > clients will
> > presumably want to talk to the same JBoss VM?  Or is it a single 
> > user kind
> > of app anyway?
> > 
> > I don't remember anything about the application-client.xml - 
> > perhaps someone
> > with experience of this can answer you.
> > 
> > JBoss does support ejb-refs that allow you to connect to server 
> > resources,if that is what you are after.
> > 
> > HTH,
> > Chris
> > 
> > > -Original Message-
> > > From: Keith Kee [mailto:[EMAIL PROTECTED]]
> > > 
> > > Hi Chris,
> > >I also like to use the ejb-ref specified in the 
> > > application-client.xml,
> > > and the container security. The J2EE reference 
> > > implementation, weblogic and
> > > iplanet have this facility, so that the fat client can be 
> run in an
> > > application container. I wonder if JBoss has such a thing as well.
> > > 
> > > Thanks,
> > > keith
> > > 
> > 
> > 
> > > >From: "Kimpton,C (Chris)" <[EMAIL PROTECTED]>
> > > >If by this, you mean a standalone application/VM that talks 
> > > to another VM
> > > >running JBoss, then yes, it does.  Such as a fat client GUI...
> > > >
> > > >You "just" need to have the jboss client jars in your 
> > standalone apps
> > > >classpath and have it configured to find your jndi server - 
> > which is
> > > >probably your jboss server machine.
> > > >
> > 
> > 
> > > 
> > > > -Original Message-
> > > > From: Keith Kee [mailto:[EMAIL PROTECTED]]
> > > >   I have been searching the mailing list archive and the=20
> > > > manual, but do not
> > > > seem to be able to find any mention about the support for=20
> > > > standalone J2EE
> > > > java client. Does JBoss support that?
> > > >=20
> > 
> > 
> ==
> ==
> 
> > This electronic message (email) and any attachments to it are 
> > subject to copyright and are sent for the personal attention of 
> > the addressee. Although you may be the named recipient, it may 
> > become apparent that this email and its contents are not intended 
> > for you and an addressing error has been made. This email may 
> > include information that is legally privileged and exempt from 
> > disclosure. If you have received this email in error, please 
> > advise us immediately and delete this email and any attachments 
> > from your computer system.Rabobank International is the trading 
> > name of Coöperatieve Centrale Raiffeisen-Boerenleenbank B.A. which 
> > is incorporated in the Netherlands. Registered with the Registrar 
> > of Companies for England & Wales No. BR002630 and regulated by the 
> > SFA for the conduct of investment business in the UK.
> > 
> > The presence of this footnote also confirms that this email has 
> > been automatically checked by Rabobank International for the 
> > presence of computer viruses prior to it being sent, however, no 
> > guarantee is given or implied that this email is virus free upon 
> > delivery.
> > ==
> > 
> > 
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 

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



[JBoss-user] JAAS/Caching?

2001-06-18 Thread Han-Shen Yuan
Title: JAAS/Caching?





Is there anyway we can change the configuration of the caching policy when using JAAS based security in JBoss?  It seems to default to a 30 minute policy?





Re: [JBoss-user] How to specify relationships between CMP EJBs?

2001-06-18 Thread Adam Young

The M-H book also suggests that you not expos the remote interface to 
your entity beans.  I think I tend to agree with this:  Only the Session 
beans should be visiblie to the outside world, and the entity beans 
should just be the persistance mechanism.  However, since JBoss does not 
require you to provide an implementation of the Home interface, you have 
no way of avoiding doing the JNDI lookup.  Or do you? Is there a way you 
can take advantage of CMP without having to provide a remote interface?



Kar YEOW wrote:

>The relationship stuff is in EJB2.0 and it is still in DRAFT.  It is not yet
>supported in JBOSS.
>Kar
>- Original Message -
>From: "Richard Kasperowski" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, June 19, 2001 7:34 AM
>Subject: [JBoss-user] How to specify relationships between CMP EJBs?
>
>
>I'm trying to understand how container managed persistence make this
>happen.  I have two EJBs like so:
>
>-
>public interface Foo extends EJBObject {
> Long getId() throws RemoteException;
> void setId(Long param) throws RemoteException;
> String getName() throws RemoteException;
> void setName(String param) throws RemoteException;
> Bar getBar() throws RemoteException;
> void setBar(Bar param) throws RemoteException;
>}
>
>public interface Bar extends EJBObject {
> Long getId() throws RemoteException;
> void setId(Long param) throws RemoteException;
> String getName() throws RemoteException;
> void setName(String param) throws RemoteException;
>}
>-
>
>The idea here is that a Foo has a Bar.  The Bar must already exist.
>
>I want this to work through CMP.  I can't quite figure out how to tell
>JBoss that there's a relationship between Foo and Bar.  I've been
>playing around with the tags "relationships" and "cmr-field", but I
>haven't been able to get it right.
>
>Does anyone have an example that I could follow?
>
>Thanks,
>
>--
>Richard Kasperowski (mailto:[EMAIL PROTECTED])
>Tel: 617-576-1552, Fax: 617-576-2441
>http://www.altisimo.com/
>
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>



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



Re: [JBoss-user] How to specify relationships between CMP EJBs?

2001-06-18 Thread Adam Young

The Monson-Haefel book suggests using the foreign keys as properties of 
the beans, and then have accessors that get the related objects.
if foo
...
int getBarId()
void setBarId(int id)
Bar getBar();
..

and then in the FooBean:
private Bar bar;
public Bar getBar(){
  if (null == bar){
  foo = getBarHome().findByPrimaryKey(new Integer(foodId));
  }
  return foo;
}

I am ignoring exception handling and the accessor for getBarHome.


Is this the way that most people  are handling relationships?




Kar YEOW wrote:

>The relationship stuff is in EJB2.0 and it is still in DRAFT.  It is not yet
>supported in JBOSS.
>Kar
>- Original Message -
>From: "Richard Kasperowski" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, June 19, 2001 7:34 AM
>Subject: [JBoss-user] How to specify relationships between CMP EJBs?
>
>
>I'm trying to understand how container managed persistence make this
>happen.  I have two EJBs like so:
>
>-
>public interface Foo extends EJBObject {
> Long getId() throws RemoteException;
> void setId(Long param) throws RemoteException;
> String getName() throws RemoteException;
> void setName(String param) throws RemoteException;
> Bar getBar() throws RemoteException;
> void setBar(Bar param) throws RemoteException;
>}
>
>public interface Bar extends EJBObject {
> Long getId() throws RemoteException;
> void setId(Long param) throws RemoteException;
> String getName() throws RemoteException;
> void setName(String param) throws RemoteException;
>}
>-
>
>The idea here is that a Foo has a Bar.  The Bar must already exist.
>
>I want this to work through CMP.  I can't quite figure out how to tell
>JBoss that there's a relationship between Foo and Bar.  I've been
>playing around with the tags "relationships" and "cmr-field", but I
>haven't been able to get it right.
>
>Does anyone have an example that I could follow?
>
>Thanks,
>
>--
>Richard Kasperowski (mailto:[EMAIL PROTECTED])
>Tel: 617-576-1552, Fax: 617-576-2441
>http://www.altisimo.com/
>
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>



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



[JBoss-user] Sorry, wrong place: Was FYI: search in jboss-user is broken

2001-06-18 Thread Alexander Kogan

Oops,

Sorry. Searched in wrong place.
But anyway, I think the links in the
bottom of each message must be updated.
Someone can get confused as me.

sorry again.


Alexander Kogan wrote:
> 
> Hello,
> 
> sorry for putting it to the jboss list, but
> it seems that jboss-user list @ lists.sourceforge.net
> is broken:
> 
> >Your search for
> >
> >   htsearch detected an error. Please report this to the returned matches
> >   webmaster of this site. The error message is:
> >
> >   Unable to read configuration file '/bigassraid/htdig//conf/10767.conf'
> 
> Unfortunately, the webmasters email is not mentioned
> on this page.
> 
> --
> __
> Alexander Kogan  PTC   www.ptc.com
> [EMAIL PROTECTED]140 Kendrick St. Needham MA 02494

-- 
__
Alexander Kogan  PTC   www.ptc.com
[EMAIL PROTECTED]140 Kendrick St. Needham MA 02494

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



[JBoss-user] FYI: search in jboss-user is broken

2001-06-18 Thread Alexander Kogan

Hello,

sorry for putting it to the jboss list, but
it seems that jboss-user list @ lists.sourceforge.net
is broken:

>Your search for 
>
>   htsearch detected an error. Please report this to the returned matches
>   webmaster of this site. The error message is:
>
>   Unable to read configuration file '/bigassraid/htdig//conf/10767.conf'


Unfortunately, the webmasters email is not mentioned
on this page.



-- 
__
Alexander Kogan  PTC   www.ptc.com
[EMAIL PROTECTED]140 Kendrick St. Needham MA 02494

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



Re: [JBoss-user] How to specify relationships between CMP EJBs?

2001-06-18 Thread Kar YEOW

The relationship stuff is in EJB2.0 and it is still in DRAFT.  It is not yet
supported in JBOSS.
Kar
- Original Message -
From: "Richard Kasperowski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 19, 2001 7:34 AM
Subject: [JBoss-user] How to specify relationships between CMP EJBs?


I'm trying to understand how container managed persistence make this
happen.  I have two EJBs like so:

-
public interface Foo extends EJBObject {
 Long getId() throws RemoteException;
 void setId(Long param) throws RemoteException;
 String getName() throws RemoteException;
 void setName(String param) throws RemoteException;
 Bar getBar() throws RemoteException;
 void setBar(Bar param) throws RemoteException;
}

public interface Bar extends EJBObject {
 Long getId() throws RemoteException;
 void setId(Long param) throws RemoteException;
 String getName() throws RemoteException;
 void setName(String param) throws RemoteException;
}
-

The idea here is that a Foo has a Bar.  The Bar must already exist.

I want this to work through CMP.  I can't quite figure out how to tell
JBoss that there's a relationship between Foo and Bar.  I've been
playing around with the tags "relationships" and "cmr-field", but I
haven't been able to get it right.

Does anyone have an example that I could follow?

Thanks,

--
Richard Kasperowski (mailto:[EMAIL PROTECTED])
Tel: 617-576-1552, Fax: 617-576-2441
http://www.altisimo.com/


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


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



Re: RE: [JBoss-user] standalone J2EE java client

2001-06-18 Thread Victor Lan

Hi Chris,

I believe what you and Tahir described is simply a fat client, not a 
J2EE client, the most important difference being that the latter has 
access to the java:comp/ namespace.  The application-client.xml file can 
be thought of as a deployment descriptor for the J2EE client, wherein 
references to other J2EE resources are defined.

As Keith said, other app servers, such as the RI, do have support for 
this.  I have asked this same question before, and got no response, so 
I'm guessing that JBoss does not have support for this.

Victor



- Original Message -
From: "Kimpton,C (Chris)" <[EMAIL PROTECTED]>
Date: Monday, June 18, 2001 11:36 am
Subject: RE: [JBoss-user] standalone J2EE java client

> Hi,
> 
> I am not sure to what facility you are referring - are you looking 
> to run
> the client in the same VM as the JBoss server?  In which case, you 
> can do
> this - but obviously only one client can do this, the other 
> clients will
> presumably want to talk to the same JBoss VM?  Or is it a single 
> user kind
> of app anyway?
> 
> I don't remember anything about the application-client.xml - 
> perhaps someone
> with experience of this can answer you.
> 
> JBoss does support ejb-refs that allow you to connect to server 
> resources,if that is what you are after.
> 
> HTH,
> Chris
> 
> > -Original Message-
> > From: Keith Kee [mailto:[EMAIL PROTECTED]]
> > 
> > Hi Chris,
> >I also like to use the ejb-ref specified in the 
> > application-client.xml,
> > and the container security. The J2EE reference 
> > implementation, weblogic and
> > iplanet have this facility, so that the fat client can be run in an
> > application container. I wonder if JBoss has such a thing as well.
> > 
> > Thanks,
> > keith
> > 
> 
> 
> > >From: "Kimpton,C (Chris)" <[EMAIL PROTECTED]>
> > >If by this, you mean a standalone application/VM that talks 
> > to another VM
> > >running JBoss, then yes, it does.  Such as a fat client GUI...
> > >
> > >You "just" need to have the jboss client jars in your 
> standalone apps
> > >classpath and have it configured to find your jndi server - 
> which is
> > >probably your jboss server machine.
> > >
> 
> 
> > 
> > > -Original Message-
> > > From: Keith Kee [mailto:[EMAIL PROTECTED]]
> > >   I have been searching the mailing list archive and the=20
> > > manual, but do not
> > > seem to be able to find any mention about the support for=20
> > > standalone J2EE
> > > java client. Does JBoss support that?
> > >=20
> 
> 


> This electronic message (email) and any attachments to it are 
> subject to copyright and are sent for the personal attention of 
> the addressee. Although you may be the named recipient, it may 
> become apparent that this email and its contents are not intended 
> for you and an addressing error has been made. This email may 
> include information that is legally privileged and exempt from 
> disclosure. If you have received this email in error, please 
> advise us immediately and delete this email and any attachments 
> from your computer system.Rabobank International is the trading 
> name of Coöperatieve Centrale Raiffeisen-Boerenleenbank B.A. which 
> is incorporated in the Netherlands. Registered with the Registrar 
> of Companies for England & Wales No. BR002630 and regulated by the 
> SFA for the conduct of investment business in the UK.
> 
> The presence of this footnote also confirms that this email has 
> been automatically checked by Rabobank International for the 
> presence of computer viruses prior to it being sent, however, no 
> guarantee is given or implied that this email is virus free upon 
> delivery.
> ==
> 
> 
> ___
> 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 when restart JBoss !!

2001-06-18 Thread David Cao

Hi guys,

I am running Jbos2.2+tomcat on Win2000, and I got very strange problem,
after I stop the server, and start it (after a break), it give me problems
when deploy ( the existing) application, the error message is:

[Container factory] java.rmi.ServerException: Could not bind either home or
invo
ker; nested exception is:
[Container factory] java.rmi.server.ExportException: Port already in
use: 40
40; nested exception is:
[Container factory] java.net.BindException: Address in use: JVM_Bind
[Container factory] java.rmi.server.ExportException: Port already in use:
4040;
nested exception is:
[Container factory] java.net.BindException: Address in use: JVM_Bind
[Container factory] java.net.BindException: Address in use: JVM_Bind
[Container factory] at java.net.PlainSocketImpl.socketBind(Native
Method)
[Container factory] at
java.net.PlainSocketImpl.bind(PlainSocketImpl.java:39

I do check there is no Java running, and the default part is  for RMI, I
catch the problem, and change the port into 4040, the first and second time
it works fine, and the it failed again and again. I  use a TCP View program,
and didn't find anything bind with 4040 or , does anybody know what's
the problem with JBoss?

David Cao
- Energizing by Thinking



-Original Message-
From: Julian Gosnell [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 4:12 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] jetty vs tomcat



Thanks Guys,

It was getting a bit lonely out there .!!


Jules


Torsten Terp wrote:

> > >
> > > Oh, come on! If you wanna be flamed, you can't go and _qualify_ your
> > > assertions ('no ... evidence ...' '... MAY ...') 8^})
> >
> > We have run our test scripts against our app running under both
jBoss/Jetty
> > and jBoss/Tomcat. We have yet to take actual measurements, but watching
the
> > looping scripts fly by shows us that Jetty is like a Porsch Boxter while
> > Tomcat more rsembles a Chevy Nova...
> >
> > Someday we'll take the trouble to actually measure it and I'll post the
> > resumts.
> >
> > Jim
> >
>
> Exactly our experience too, we have been running both, but the differrence
> in performance was so obvious, that we havent yet felt the need to make
any
> measurements. You should at least do yourself the favour and try out
Jetty!
>
> ^terp
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


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


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

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



[JBoss-user] Unique constraint problem

2001-06-18 Thread Bob Mancarella



I am using Interbase with a BMP bean. If I have a column with a 
uniqueconstraint and attempt to add another row with the same value I don't 
get aSQLException. JBoss seems to throw some internal errors which I am 
unable tocatch. The output is below. 

 
Has anyone had any luck with unique 
constraints errors in JBoss?
 
-Bob
[com.faq.ejb.UserMasterHome] TRANSACTION ROLLBACK EXCEPTION:null; 
nestedexception is:    
javax.ejb.EJBException[com.faq.ejb.UserMasterHome] 
java.lang.ClassCastException:java.lang.VerifyError[com.faq.ejb.UserMasterHome]    
atorg.jboss.ejb.plugins.BMPPersistenceManager.createEntity(BMPPersistenceManager.java:151)[com.faq.ejb.UserMasterHome]    
atorg.jboss.ejb.EntityContainer.createHome(EntityContainer.java:441)[com.faq.ejb.UserMasterHome]    
at java.lang.reflect.Method.invoke(NativeMethod)


Re: [JBoss-user] ClassCastException when getting Home Interface from within Servlet (Jetty)

2001-06-18 Thread Julian Gosnell

Matt ,

I'm afraid I'm going to have to ask you to try running this up in the
latest JBoss-TomCat.

So much ServletContainer integration code has now become shared that I
would be surprised if it didn't share exactly the same problem. If you
find that it does then you will substantially increase the number of
people who are interested in helping you, and you will give us a much
better idea of where the problem lies.

If you are deploying an EAR then you should be able to deploy it in
exactly the same way (I think).


Let me know how it goes,


 Thanks for using Jetty !!! 

Jules




"Tilchen, Matt" wrote:

>
>
> Hello all,
>
> I am running JBoss 2.2.2 and Jetty3.1 RC5. I am getting the
> following stacktrace after using PortableRemoteObject.narrow() and
> casting the return value to the expected home interface.
>
>   **
>
> [Jetty] java.lang.ClassCastException: $Proxy6
> [Jetty] at
> 
>main._0002fmain_0002findex_0002ejspindex_jsp_0._jspService(_0002fmain_0002findex_0002ejspindex_jsp_0.java:109)
>
> [Jetty] at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> [Jetty] at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> [Jetty] at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:176)
>
> [Jetty] at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:307)
>
> [Jetty] at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
> [Jetty] at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> [Jetty] at
> com.mortbay.Jetty.Servlet.ServletHolder.handle(ServletHolder.java:488)
>
> [Jetty] at
> com.mortbay.Jetty.Servlet.ServletHandler.handle(ServletHandler.java:488)
>
> [Jetty] at
> com.mortbay.Jetty.Servlet.ServletHandler.handle(ServletHandler.java:317)
>
> [Jetty] at
> com.mortbay.HTTP.HandlerContext.handle(HandlerContext.java:956)
> [Jetty] at
> com.mortbay.HTTP.HandlerContext.handle(HandlerContext.java:913)
> [Jetty] at
> com.mortbay.HTTP.Handler.ResourceHandler.handleGet(ResourceHandler.java:361)
>
> [Jetty] at
> com.mortbay.HTTP.Handler.ResourceHandler.handle(ResourceHandler.java:265)
>
> [Jetty] at
> com.mortbay.HTTP.HandlerContext.handle(HandlerContext.java:956)
> [Jetty] at
> com.mortbay.HTTP.HandlerContext.handle(HandlerContext.java:913)
> [Jetty] at
> com.mortbay.HTTP.HttpServer.service(HttpServer.java:703)
> [Jetty] at
> com.mortbay.HTTP.HttpConnection.service(HttpConnection.java:508)
> [Jetty] at
> com.mortbay.HTTP.HttpConnection.handle(HttpConnection.java:347)
> [Jetty] at
> com.mortbay.HTTP.SocketListener.handleConnection(SocketListener.java:107)
>
> [Jetty] at
> com.mortbay.Util.ThreadedServer.handle(ThreadedServer.java:294)
> [Jetty] at
> com.mortbay.Util.ThreadPool$PoolThreadRunnable.run(ThreadPool.java:613)
>
> [Jetty] at java.lang.Thread.run(Thread.java:484)
>
>
> **
>
>   So I'm getting back the class "$Proxy6" which I'm assuming is the
> stub for the JBoss implementation of my home interface. This "$Proxy6"
> class is also what is bound in the JNDI tree to the name declared in
> jboss.xml.
>
>   Here is a clue. When I try to execute the same code from a remote
> client through the network I have no problem. I'm thinking that this
> may have something to do with JBoss and Jetty living in the same JVM.
> What do you all think?
>
>   I know you all are as busy as I am and I appreciate your time. Kudos
> to those who work on this excellent app server!!!
>
>  -Matt Tilchen


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


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



Re: [JBoss-user] jetty vs tomcat

2001-06-18 Thread Julian Gosnell


Thanks Guys,

It was getting a bit lonely out there .!!


Jules


Torsten Terp wrote:

> > >
> > > Oh, come on! If you wanna be flamed, you can't go and _qualify_ your
> > > assertions ('no ... evidence ...' '... MAY ...') 8^})
> >
> > We have run our test scripts against our app running under both jBoss/Jetty
> > and jBoss/Tomcat. We have yet to take actual measurements, but watching the
> > looping scripts fly by shows us that Jetty is like a Porsch Boxter while
> > Tomcat more rsembles a Chevy Nova...
> >
> > Someday we'll take the trouble to actually measure it and I'll post the
> > resumts.
> >
> > Jim
> >
>
> Exactly our experience too, we have been running both, but the differrence
> in performance was so obvious, that we havent yet felt the need to make any
> measurements. You should at least do yourself the favour and try out Jetty!
>
> ^terp
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


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


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



Re: [JBoss-user] jetty vs tomcat

2001-06-18 Thread Julian Gosnell

"danch (Dan Christopherson)" wrote:

Don't believe my bare-faced and self-proclaimed bigotry - suck it and
see - then tell us all how it tasted.


Jules


> Julian Gosnell wrote:
>
> > Firstly - I am the JBoss-Jetty maintainer and my mate
> > Greg is Jetty's author - so take everything I say with
> > a pinch of salt.
> >
> > 1. Jetty serves both static and dynamic content via
> > the same infrastructure. AFAIK you need Tomcat AND
> > Apache in order to otherwise achieve this.
>
> Not completely true - Tomcat can serve static content, it's just slow
> enought that most people seem to assume they need apache.
>
> >
> > 2. Jetty is designed to be small, lightweight, simple
> > and embeddable. Apache and TomCat have a larger
> > footprint.
> >
> > 3. Apache is de-facto industry standard, with an
> > enormous user community, whereas Jetty is not. TomCat
> > also has a far bigger user community than Jetty.
>
> Isn't Tomcat the reference implementation these days?
>
> >
> > 
> > 5. I believe, although I have no substantiating
> > evidence, that using Jetty MAY give you a higher
> > throughput. This is due to it's emphasis on simplicity
> > and lightweightedness. I am sure that TomCat is
> > probably demonstrably more functional.
> > 
>
> Oh, come on! If you wanna be flamed, you can't go and _qualify_ your
> assertions ('no ... evidence ...' '... MAY ...') 8^})
>
> -danch
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


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


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



[JBoss-user] Repost:Fw: byte[] fields with oracle blob problem

2001-06-18 Thread Kar YEOW



I didn't get any responses on the previous post and 
I have tried JAWS mailing list and still no response. 
I do suspect there is a bug or a config 
problem somewhere.  Anyone?
Kar
 
- Original Message - 
From: Kar YEOW 

To: [EMAIL PROTECTED] 
Sent: Monday, June 18, 2001 9:09 AM
Subject: Fw: byte[] fields with oracle blob problem

I post this on the JBOSS list and got no response, 
so I thought I post it here.
Anyway, I kind of got it to work but with the 
following HACK in the JDBCCommand.java and change the JAW mapping for 
java.lang.Object to BLOB.
    
    
java.lang.Object    
BLOB    
BLOB    

 
 
    if( 
bytes == null ) 
{    result = 
null;    } if (destination == 
byte[].class) 
{    result = 
bytes;    } else 
{   // We should 
really reuse these guys
 
    
ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
 
   // Use the 
class loader to deserialize
 
    try 
{ObjectInputStream ois = new 
ObjectInputStream(bais);
 
 
 
- Original Message - 
From: Kar YEOW 

To: [EMAIL PROTECTED] 

Sent: Thursday, June 14, 2001 8:20 AM
Subject: byte[] fields with oracle blob problem

I am having some problems using byte[] field with 
Oracle Blob.
I have an EJB with a field id of type String and 
bytes of type byte[].
I found that there is 2 problems:
 
1.  if the bytes field is null during creation 
you get exception of 'Invalid column type'.
2.  if you sucessfully 'inserted' something in 
the Blob and subsequently re-deploy the bean to retrieve the field you get a 
CorruptStreamException.
 
I had a look at the source.  The first 
exception is cause by setNull on a JAVA_OBJECT type.  And the second 
exception is caused by trying to read in a byte[] as Java Serializable 
object.
 
I had this problem in JBOSS-2.0-FINAL but I thought 
it was fixed in JBOSS-2.2.1.  Anyone?
 
Any help is appreciated.
 
Kar
 
- Invalid 
column exception 
[JAWS] Exists command executing: SELECT COUNT(*) 
FROM BYTEARRAY WHERE id=?[JAWS] Set parameter: idx=1, jdbcType=VARCHAR, 
value=hello[JAWS] Create, id is hello[JAWS] Exists command executing: 
SELECT COUNT(*) FROM BYTEARRAY WHERE id=?[JAWS] Set parameter: idx=1, 
jdbcType=VARCHAR, value=hello[JAWS] Create command executing: INSERT INTO 
BYTEARRAY (bytes,id) VALUES (?,?)[JAWS] Set parameter: idx=1, 
jdbcType=JAVA_OBJECT, value=NULL[JAWS] java.sql.SQLException: Invalid column 
type[JAWS]  at 
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)[JAWS] 
 at 
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)[JAWS] 
 at 
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:273)[JAWS] 
 at 
oracle.jdbc.driver.OracleStatement.get_internal_type(OracleStatement.java:4560)[JAWS] 
 at 
oracle.jdbc.driver.OraclePreparedStatement.setNull(OraclePreparedStatement.java:869)[JAWS] 
 at 
org.opentools.minerva.jdbc.PreparedStatementInPool.setNull(PreparedStatementInPool.java:92)[JAWS] 
 at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.setParameter(JDBCCommand.java:280)[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)[JAWS] 
 at 
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:135)[JAWS] 
 at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:263)[JAWS] 
 at 
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86)[JAWS] 
 at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:164)[JAWS] 
 at 
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106)[JAWS] 
 at 
org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:316)[JAWS] 
 at 
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContainerInvoker.java:369)[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.ru

Re: [JBoss-user] newbie stuff >> jboss vs. simple classes

2001-06-18 Thread Allen fogleson



take a look at the J2EE blueprints on 
java.sun.com thats a good start. Although i disagree with their 
implementation of Data Access Objects, It is a good start on EJB. 
 
you should never be just dropping classes around. A 
good design phase up front will save you a lot of issues later, such as 
scalability, performace, etc. 
 
Al

  - Original Message - 
  From: 
  Gabriel Mihalache 

  To: [EMAIL PROTECTED] 
  
  Sent: Monday, June 18, 2001 4:44 PM
  Subject: [JBoss-user] newbie stuff 
  >> jboss vs. simple classes
  
  Hi!
  I'm developing a simple site using Tomcat with 
  JSP and Servlets.
  JSP uses JavaBeans wrote as classes, put in the 
  WEB-INF folder.
   
  Why and where should a j2ee sollution be used 
  instead of just droping classes around?
  I've just downloaded jboss because I want to know 
  more about beans. Any good docs?


Re: [JBoss-user] is there a t3:// for JBoss

2001-06-18 Thread Allen fogleson

t3 is the weblogic specific wire protocol. switch to straight RMI. Even
better, if you are using the JBoss/tomcat or JBoss/jetty package you dont
even need to populate your initialcontext call. Im not a big fan of that
method anyway, since you end up tying your app to a single container...

al

- Original Message -
From: Scott Bermon <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 3:17 PM
Subject: [JBoss-user] is there a t3:// for JBoss


> We are porting an application to JBoss from Weblogic.
>
> When we connect to the Weblogic server the, PROVIDER_URL was
> t3://localhost:7001.
>
> What is the equivalent in JBoss? Where is this set?
>
> Thanks
>
> -Scott
>
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


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



Re: [JBoss-user] is there a t3:// for JBoss

2001-06-18 Thread Allen fogleson

or jnp... heh. I always forget that one. 


- Original Message - 
From: Scott M Stark <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 3:41 PM
Subject: Re: [JBoss-user] is there a t3:// for JBoss


> jnp://localhost:1099
> 
> - Original Message - 
> From: "Scott Bermon" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 18, 2001 12:17 PM
> Subject: [JBoss-user] is there a t3:// for JBoss
> 
> 
> > We are porting an application to JBoss from Weblogic.
> > 
> > When we connect to the Weblogic server the, PROVIDER_URL was
> > t3://localhost:7001.
> > 
> > What is the equivalent in JBoss? Where is this set?
> > 
> > Thanks
> > 
> > -Scott
> > 
> > 
> > 
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


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



Re: [JBoss-user] does jboss.jcml have a DTD ?

2001-06-18 Thread Mike Hoolehan

I don't think I've ever come across one, but here's my best guess by looking
at org.jboss.configuration.ConfigurationService, which parses jboss.jcml.
Someone's going to have to check me on the  and
 bits, I had no idea those were valid parts of jboss.jcml,
but they seem to be parsed.  
I didn't actually try to validate any jboss.jcml files with this dtd, so 
there might be errors/typos.  Post it back if you correct anything!

Mike  

















On (18/06/01 15:20), Patrick Smtih wrote:
> I am trying to modify the port settings for JBoss/Tomcat on the fly in
> case any ports are in use at the time of installation. I am hoping that
> there is a DTD available for jboss.jcml as it is a well formed xml file.
> Any idea if there is one and where I could get a hold of it ?
> 
> thanks,
> Patrick Smith
> 
> ___
> 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] How to specify relationships between CMP EJBs?

2001-06-18 Thread Richard Kasperowski

I'm trying to understand how container managed persistence make this 
happen.  I have two EJBs like so:

-
public interface Foo extends EJBObject {
 Long getId() throws RemoteException;
 void setId(Long param) throws RemoteException;
 String getName() throws RemoteException;
 void setName(String param) throws RemoteException;
 Bar getBar() throws RemoteException;
 void setBar(Bar param) throws RemoteException;
}

public interface Bar extends EJBObject {
 Long getId() throws RemoteException;
 void setId(Long param) throws RemoteException;
 String getName() throws RemoteException;
 void setName(String param) throws RemoteException;
}
-

The idea here is that a Foo has a Bar.  The Bar must already exist.

I want this to work through CMP.  I can't quite figure out how to tell 
JBoss that there's a relationship between Foo and Bar.  I've been 
playing around with the tags "relationships" and "cmr-field", but I 
haven't been able to get it right.

Does anyone have an example that I could follow?

Thanks,

-- 
Richard Kasperowski (mailto:[EMAIL PROTECTED])
Tel: 617-576-1552, Fax: 617-576-2441
http://www.altisimo.com/


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



Re: [JBoss-user] Want to see the SQL DDL generated by JBoss

2001-06-18 Thread danch (Dan Christopherson)

Richard Kasperowski wrote:

> Thanks, that's what I wanted.
> 
> Others should note that the SQL stuff is logged in "server.log", and 
> doesn't show up in stdout.
> 

That's a difference in logging threshold levels between the two - the 
file based log has DEBUG threshold and the stdout has INFO

-danch

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



[JBoss-user] Jaws.xml DTD

2001-06-18 Thread Da-Ming Duan

Can somebody tell me where to find the Jaws.xml DTD?

Thanks

Da-Ming


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



Re: [JBoss-user] Want to see the SQL DDL generated by JBoss

2001-06-18 Thread Richard Kasperowski

Thanks, that's what I wanted.

Others should note that the SQL stuff is logged in "server.log", and 
doesn't show up in stdout.

-- 
Richard Kasperowski (mailto:[EMAIL PROTECTED])
Tel: 617-576-1552, Fax: 617-576-2441
http://www.altisimo.com/



danch (Dan Christopherson) wrote:

> You should be able to see this if you put 'true' in 
> jaws.xml or standardjaws.xml. This will come out at DEBUG level, though, 
> so make sure that you have one of your logs (log4j.properties in recent 
> versions, the logger MBean setups in jboss.conf in older) set to output 
> DEBUG level and above.
> 
> Richard Kasperowski wrote:
> 
>> When JBoss creates a table for my CMP EJB, I want to see the DDL code 
>> Jboss creates.  Is there a switch I can flip somewhere to make the DDL 
>> code visible?



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



[JBoss-user] newbie stuff >> jboss vs. simple classes

2001-06-18 Thread Gabriel Mihalache



Hi!
I'm developing a simple site using Tomcat with JSP 
and Servlets.
JSP uses JavaBeans wrote as classes, put in the 
WEB-INF folder.
 
Why and where should a j2ee sollution be used 
instead of just droping classes around?
I've just downloaded jboss because I want to know 
more about beans. Any good docs?


[JBoss-user] Problem running the Upload client for CDbean example

2001-06-18 Thread DurhamJG

Hi,

Thanks for fixing the links to the Documentation zip files.

I have the CD bean deployed and I am trying to run the Upload client, but I
am getting the following error on the client side (I am running this in
JBuilder)

---
OK

Upload: javax.naming.NoInitialContextException: Cannot instantiate class:
org.jnp.interfaces.NamingContextFactory  [Root exception is
java.lang.ClassNotFoundException: org/jnp/interfaces/NamingContextFactory ]


The Class org/jnp/interfaces/NamingContextFactory is in my path for this.
What is happening?

Thanks for your help.


Jennifer




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



Re: [JBoss-user] Sybase Datasource problem

2001-06-18 Thread Jason Wells

John,

You didn't give out your JdbcProvider section, so i'm not sure what JDBC
driver you're using. I've had good luck with the Sybase JConnect JDBC
drivers. If you're using that, this is what the relevant sections of
jboss.jcml looks like for my configuration:


  
 org.hsql.jdbcDriver,com.sybase.jdbc2.jdbc.SybDriver
  


  
SybasePool
org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
jdbc:sybase:Tds:servername:7100?ELIMINAT_010SM=true
username
password
0
10
false
120
12
false
false
true
false
false
180
1.0
  

I'm currently running JBoss 2.3 beta, but i used this with JBoss PRE-2.1 and
it worked then too (albeit with some minor tweaks IIRC). Hope this helps.

Jason

- Original Message -
From: "John DeStefano" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 10:25 AM
Subject: [JBoss-user] Sybase Datasource problem


> Hi,
>
> I'm having a problem with creating a Sybase connection pool. I'm using
JBoss 2.2.2 and JDK1.3.1. The startup output looks like this:
>
> [JNDIView] Starting
> [JNDIView] Started
> [Transaction manager] Starting
> [Transaction manager] Started
> [JAAS Security Manager] Starting
> [JAAS Security Manager] JAAS.startService, cachePolicy=null
> [JAAS Security Manager] JAAS.startService,
SecurityProxyFactory=org.jboss.security.SubjectSecurityProxyFactory@4b6009
> [JAAS Security Manager] Started
> [JDBC provider] Starting
> [JDBC provider] Started
> [Hypersonic] Starting
> [Hypersonic] Database started
> [Hypersonic] Started
> [DefaultDS] Starting
> [Hypersonic] Server 1.4 is running
> [Hypersonic] Press [Ctrl]+[C] to abort
> [DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
> [DefaultDS] Started
> [CensusDS] Starting
> [CensusDS] XA Connection pool CensusDS bound to java:/CensusDS
>
> It hangs at the attempt to bind the Sybase datasource.
>
> The jboss.jcml section for the sysbase database looks like this:
>
> 
> CensusDS
> org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l
> jdbc:sybase:Tds:localhost:2638/census_file_db
> dba
> 2
> 1
> sql
> 
> false
> false
> false
> true
> 12
> 180
> false
> false
> 1.0
>   
>
> The sybase driver does load according to the server startup output.
>
> Any help would be appreciated.
>
> Thanks
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


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



Re: [JBoss-user] Want to see the SQL DDL generated by JBoss

2001-06-18 Thread danch (Dan Christopherson)

You should be able to see this if you put 'true' in 
jaws.xml or standardjaws.xml. This will come out at DEBUG level, though, 
so make sure that you have one of your logs (log4j.properties in recent 
versions, the logger MBean setups in jboss.conf in older) set to output 
DEBUG level and above.

Richard Kasperowski wrote:

> When JBoss creates a table for my CMP EJB, I want to see the DDL code 
> Jboss creates.  Is there a switch I can flip somewhere to make the DDL 
> code visible?
> 
> Thanks,
> 



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



RE: [JBoss-user] jetty vs tomcat

2001-06-18 Thread Torsten Terp

> >
> > Oh, come on! If you wanna be flamed, you can't go and _qualify_ your
> > assertions ('no ... evidence ...' '... MAY ...') 8^})
> 
> We have run our test scripts against our app running under both jBoss/Jetty 
> and jBoss/Tomcat. We have yet to take actual measurements, but watching the 
> looping scripts fly by shows us that Jetty is like a Porsch Boxter while 
> Tomcat more rsembles a Chevy Nova...
> 
> Someday we'll take the trouble to actually measure it and I'll post the 
> resumts.
> 
> Jim
> 

Exactly our experience too, we have been running both, but the differrence 
in performance was so obvious, that we havent yet felt the need to make any
measurements. You should at least do yourself the favour and try out Jetty!

^terp


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



[JBoss-user] Ann: Super gets Kaleidoscopes and SuperEnvironment!

2001-06-18 Thread Wei Jiang

Super gets Kaleidoscopes and SuperEnvironment!

Announcement: Super 1.4 - an EJB/J2EE monitoring tool with
   SuperPeekPoke
   SuperLogging
   SuperStress
   SuperEnvironment

It is free for open source J2ee/Ejb servers (JOnAS, J2EE-RI and jBoss).
It is free for evaluation (no expiration date).

You can anomyously down load a perpetual evaluation copy from:
   http://www.acelet.com.

Super is a component based administration tool for EJB
Servers. It provides built-in functionality as well as 
extensions, as SuperComponents. Users can install 
SuperComponents onto it, or uninstall them from it.

Super has the following functions:
 * An EJB monitor.
 * A gateway to EJB servers from different vendors.
 * A framework holding user defined SuperComponents.
 * A PeekPoke tool to read/write attributes from EJBs.
 * A full-featured logging/tracing tool for centralized, chronological logging.
 * A Stress test tool.
 * A global environment tool.

It is written in pure Java.
The current version support:
* Bluestone 7.2
* Borland AppServer 4.5
* JOnAS
* J2EE RI from Sun.
* Universal servers.
* Weblogic 5.1
* Weblogic 6.0
* jBoss


What is new:

Version 1.40 June, 2001
Enhancement:
1. Add SuperEnvironment which is a Kaleidoscope with TableView, TimeSeriesView
and PieView for GlobalProperties. 
GlobalProperties is an open source program from Acelet.
2. SuperPeekPoke adds Kaleidoscope with TableView, TimeSeriesView and PieView.
Changes:
1. The structure of log database changed. You need delete old installation and
install everything new.
2. The format of time stamp of SuperLogging changed. It is not locale
dependent: better for report utilities.
3. Time stamp of SuperLogging added machine name: better for clustering
environment.
Bug fix:
1. Under JDK 1.3, when you close Trace Panel, the timer may not be stopped and
Style Panel may not show up. 

Version 1.30 May, 2001 
Enhancement: 
1. Add ConnectionPlugin support. 
2. Add support for Borland AppServer. 

Version 1.20 April, 2001
Enhancement:
1. Redress with option to save a backup file
2. More data validation on Dump Panel.
3. Add uninstall for Super itself.
4. Add Log Database Panel for changing the log database parameters.
5. Register Class: you can type in name or browse on file system.
6. New tour with new examples.

Bug fix:
1. Redress: save file may fail.
2. Install Bean: some may fail due to missing manifest file. Now, it is treated
as foreign beans.
3. Installation: Both installServerSideLibrary and installLogDatabase can be
worked on the original file, do not need copy to a temporary directory anymore.
4. PeekPoke: if there is no stub available, JNDI list would be empty for
Weblogic5-6. Now it pick up all availble ones and give warning messages.
5. Stress: Launch>Save>Cancel generated a null pointer exception.

Changes:
1. installLogDatabase has been changed from .zip file to .jar file.
2. SuperLogging: If the log database is broken, the log methods will not try to
access the log database. It is consistent with the document now.
3. SuperLogging will not read system properties now. You can put log database
parameters in SuperLoggingEJB's deployment descriptor.


Version 1.10 Feb., 2001
Enhancement:
1. Re-written PeekPoke with Save/Restore functions.
2. New SuperComponent: SuperStress for stress test.
3. Set a mark at the highlighted line on the Source Code
   Panel (as a work-a-round for JDK 1.3).
4. Add support for WebLogic 6.0
Bug fix:
1. Uninstall bean does physically delete the jar file now.
2. WebLogic51 Envoy may not always list all JNDI names. This is fixed.

Version 1.00 Oct., 2000
Enhancement:
1. Support  Universal server (virtual all EJB servers).
2. Add Lost and Found for JNDI names, in case you need it.
3. JNDI ComboBox is editable now, so you can PeekPoke not listed JNDI name
(mainly for Envoys which do not support JNDI list).

Version 0.90: Sept, 2000
Enhancement:
1. PeekPoke supports arbitrary objects (except for Vector, Hashtable 
   and alike) as input values.
2. Reworked help documents.
Bug fix:
1. Clicking Cancel button on Pace Panel set 0 to pace. It causes 
further time-out.
2. MDI related bugs under JDK 1.3.

Version 0.80: Aug, 2000
Enhancement:
1. With full-featured SuperLogging.

Version 0.72: July, 2000
Bug fix:
1. Ignore unknown objects, so Weblogic5.1 can show JNDI list.

Version 0.71: July, 2000
Enhancement:
1. Re-worked peek algorithm, doing better for concurent use.
2. Add cacellable Wait dialog, showing Super is busy.
3. Add Stop button on Peek Panel.
4. Add undeploy example button.
Bug fix:
1. Deletion on Peek Panel may cause error under JDK 1.3. Now it works for both
1.2 and 1.3

Version 0.70: July, 2000 
Enhancement: 
1. PeekPoke EJBs without programming. 
Bug fix: 
1. Did not show many windows under JDK 1.3. Now it works for both 1.2 and 1.3 
Changes: 
1. All changes are backward compatible, but you may need to recompile monitor
windows defined by you. 

Version 0.61: June, 2000
Bug fix:
1. First time if you choose BUFFER as lo

[JBoss-user] Ann: open source GlobalEnvironment

2001-06-18 Thread Wei Jiang

GlobalEnvironment is a family of utility classes. It consists of: 
GlobalDouble, 
GlobalHashtable, 
GlobalLong, 
GlobalObject,  
GlobalProperties.

This family provides globally shared key-value pairs. These pairs are 
available for different: 
Java threads, 
JVMs, 
EJBs (Enterprise Java Beans), 
JSPs (Java Server Pages), 
Java applications, 
non-Java applications. 

It is written entirely in Java and is platform and vendor neutral. 
It is an open source software.

You can downlod it from http://www.acelet.com

__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/

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



Re: [JBoss-user] is there a t3:// for JBoss

2001-06-18 Thread Scott M Stark

jnp://localhost:1099

- Original Message - 
From: "Scott Bermon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 12:17 PM
Subject: [JBoss-user] is there a t3:// for JBoss


> We are porting an application to JBoss from Weblogic.
> 
> When we connect to the Weblogic server the, PROVIDER_URL was
> t3://localhost:7001.
> 
> What is the equivalent in JBoss? Where is this set?
> 
> Thanks
> 
> -Scott
> 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


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



Re: [JBoss-user] EJB and JBoss security

2001-06-18 Thread Scott M Stark

See the JAAS tutorial:
http://www.jboss.org/documentation/HTML/ch11s83.html

- Original Message - 
From: "Nick Taylor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 4:36 AM
Subject: [JBoss-user] EJB and JBoss security


> I am trying to get to grips with security issues with JBoss and in
> particular how the getCallerPrincipal and isCallerInRole methods are used.
> After going through  various bits of fragemented documentation it appeared
> that the best (preferred) way to authenticate callers would be external to
> the beans in a servlet that then delegates the callers request to an EJB.
> The only way I can see that authentication details can be propagated to the
> EJB is through the InitialContext something like this:
> 
> Properties props = System.getProperties();
> props.put(Context.SECURITY_PRINCIPAL, username);
> props.put(Context.SECURITY_CREDENTIALS, role);
> InitialContext ic = new InitialContext(props);
> 
> where username and role derived from a user database or suchlike.
> 
> I thought that the role would then correspond to the security-role and
> method-permission entries in the ejb-jar.xml file but this doesn't seem to
> be the case: 
> isCallerInRole always returns false and getCallerPrincipal throws a
> "java.lang.IllegalStateException: No security context set"
> 
> Could anyone give me some info on how to set up a security context as my
> take on it appears to be way out!
> 
> Cheers
> Nick
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


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



Re: [JBoss-user] HELP - jboss and interbase

2001-06-18 Thread Toby Allsopp

On Mon, Jun 18, 2001 at 05:36:59PM +0200, [EMAIL PROTECTED] wrote:
> Hi,
> 
> I've found the problem with your bean, but before some InteBase history.
> 
[good info snipped]
> 
> So, how does it relates to your situation? 
> 
> You open the connection (and implicitly start the transaction) in the
> AccountEJB.setEntityContext method, and return the connection to the pool in
> the AccountEJB.unsetEntityContext method (implicitly performing the commit).
> So, between the setEntityContext and unsetEntityContext invocations you do
> have *the same* transaction. 

This is a limitation of JBoss and JBossPool (Minerva).  The case of a bean
that holds onto a connection across method calls should be handled
correctly, but is not.

That said, I think it is a better practice to hold onto connections only
when they are needed, i.e. treat them as a scarce resource that should be
used and then returned as quickly as possible.

Toby.

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



[JBoss-user] does jboss.jcml have a DTD ?

2001-06-18 Thread Patrick Smtih

I am trying to modify the port settings for JBoss/Tomcat on the fly in
case any ports are in use at the time of installation. I am hoping that
there is a DTD available for jboss.jcml as it is a well formed xml file.
Any idea if there is one and where I could get a hold of it ?

thanks,
Patrick Smith

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



[JBoss-user] is there a t3:// for JBoss

2001-06-18 Thread Scott Bermon

We are porting an application to JBoss from Weblogic.

When we connect to the Weblogic server the, PROVIDER_URL was
t3://localhost:7001.

What is the equivalent in JBoss? Where is this set?

Thanks

-Scott



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



Re: [JBoss-user] jetty vs tomcat

2001-06-18 Thread Jim Archer



--On Monday, June 18, 2001 12:26 PM -0500 "danch (Dan Christopherson)" 
<[EMAIL PROTECTED]> wrote:

>> 
>> 5. I believe, although I have no substantiating
>> evidence, that using Jetty MAY give you a higher
>> throughput. This is due to it's emphasis on simplicity
>> and lightweightedness. I am sure that TomCat is
>> probably demonstrably more functional.
>> 
>
>
> Oh, come on! If you wanna be flamed, you can't go and _qualify_ your
> assertions ('no ... evidence ...' '... MAY ...') 8^})

We have run our test scripts against our app running under both jBoss/Jetty 
and jBoss/Tomcat. We have yet to take actual measurements, but watching the 
looping scripts fly by shows us that Jetty is like a Porsch Boxter while 
Tomcat more rsembles a Chevy Nova...

Someday we'll take the trouble to actually measure it and I'll post the 
resumts.

Jim


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



Re: [JBoss-user] too much logging!

2001-06-18 Thread David Ward

Not from our code...  any other ideas anyone?

--

Jeffrey Thomas Liu wrote:

> Are you sure it's not debugging code?
> 
> Jeff Liu ([EMAIL PROTECTED])
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user




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



Re: [JBoss-user] :-) EJB2.0 RunAs

2001-06-18 Thread Scott M Stark


- Original Message - 
From: "Lewis Henderson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 17, 2001 2:56 AM
Subject: RE: [JBoss-user] :-) EJB2.0 RunAs


> Scott,
> 
> Why do you have anything to add to the jboss-web.xml?
> 
> Surely the only entry that needs adding is the  element in the
>  tag in the web.xml to provide this feature. The current entries
> (web.xml and jboss-web.xml) allow you to set up security...so the only thing
> missing is the  element to supply a  for 'unauthorised'
> access, and to also override the current Principal if there is an
> authenticated user. (Am I missing something?)
> 
Yes, you are missing that run-as is a new element in servlet 2.3. This means
it does not work with servlet 2.2 containers like Jetty and Tomcat 3.2.x.

> This, in fact, solves my WAR-EJB security issues. I provide internal roles
> for my hidden EJB's and map to them in the WAR file's  entries. My
> WAR users are not members of these roles.
> 
> My other problem...(Scheduler)...is now solved...I did as you said and set
> it up as a regular client and hey-presto!
> 
> ...and aside...The principal/credentials supplied in the environment during
> a JNDI lookup seem to be ignored...Is there a use for them or does JAAS
> replace them?
> 
No, any authentication information passed to the InitialContext is ignored
by JBoss as JAAS is the only public hook for the specification of such
information.



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



Re: [JBoss-user] XML and XSL hell

2001-06-18 Thread Scott M Stark

This hell is due to the packaging of the xml components by
the various parsers, and xml based derivatives. Everyone tends
to bundle the core xml classes in one jar and incompatabilities
arise. No one bundles the core java.* packages in their code.
The fact that the xml based products bundle the core xml classes
is due to a lack of a standard api for obtaining parsers and transformers.
Now that JAXP 1.1 is out there is no reason for this. Start complaining
to the product bundlers about this.

- Original Message - 
From: "Lionel Siau" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 15, 2001 5:59 PM
Subject: [JBoss-user] XML and XSL hell


> Hi Guys,
> 
> could the fellow/architect doing the XML stuff give some indication where
> jboss is going with XML and which ones are being targeted.
> 
> I've been testing integration with quite a number of products and getting
> XML conflicts all over the place. The worse is Cocoon 2 (the newest one!).
> There are workarounds but almost all involve deleting parsers and replacing
> them from the normal installs which is a bad bad idea since something
> usu breaks.
> 
> 
> Lionel
> 
> 
> - Original Message -
> From: "Saint-Martin Cecile" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, June 15, 2001 10:12 PM
> Subject: RE: [JBoss-user] xalan 'n' stuff
> 
> 
> > Putting all your libraries in jre/lib/ext is not a good solution. It's the
> > best way for having version conflicts...especially with XML or XSL
> parsers.
> >
> > You should have a classpath contaning all jars needed per application. For
> > tomcat and Jboss, modify .bat by adding needed libraries in local
> classpath.
> >
> > SAINT-MARTIN Cecile
> > [EMAIL PROTECTED]
> >
> > >
> > > > I put my xerces.jar, xalan.jar and jaxp.jar in the jre/lib/ext as I
> use
> > > them
> > > > for all kinds of projects!
> > > >
> > > > It should have worked in the /jboss/lib/extwhat class is it
> > > failing to
> > > > find?
> > > >
> > > > Lewis
> > > >
> > > > -Original Message-
> > > > From: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Timo
> > > > Kauppinen
> > > > Sent: 15 June 2001 13:09
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [JBoss-user] xalan 'n' stuff
> > > >
> > > >
> > > > Hello!
> > > >
> > > > I know this may be a common problem (or maybe not). At least I think I
> > > > have seen this thing discussed here.. but I ask it anyway:
> > > >
> > > > If I want to use xalan as the xsl-parser in my servlet (I'm using
> > > > Jboss-2.2.2 with tomcat), where should I put the xalan.jar? Tomcat
> > > > can't find the needed classes if I put it in [inst-dir]/tomcat/lib and
> > > > [inst-dir]/jboss/lib/ext doesnt't work either. I thought that
> > > it wouldn't
> > > > do in the "starting classpath" either (in run_with_tomcat.bat).
> > > >
> > > > So if those options don't work, I'm a little out of ideas. Can
> > > anyone give
> > > > suggestions?
> > > >
> > > > Cheers!
> > > >
> > > > Timo
> > > >
> > > >
> > > > ___
> > > > JBoss-user mailing list
> > > > [EMAIL PROTECTED]
> > > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > > >
> > > >
> > > > ___
> > > > JBoss-user mailing list
> > > > [EMAIL PROTECTED]
> > > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > > >
> > >
> > >
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> > >
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


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



Re: [JBoss-user] Why the redundancy in DataSource mbean tag?

2001-06-18 Thread Scott M Stark

One is an attribute of the MBean ObjectName that can be used as a query
key when searching for the MBean, the other is an attribute of the MBean.

- Original Message - 
From: "Ferguson, Doug" <[EMAIL PROTECTED]>
To: "JBoss User (E-mail)" <[EMAIL PROTECTED]>
Sent: Saturday, June 16, 2001 3:27 PM
Subject: [JBoss-user] Why the redundancy in DataSource mbean tag?


> 
> Why are there two different locations for the name of the DS?
> Thanks.
> 
> ..  See the name Falcon ..
> 
> name="DefaultDomain:service=XADataSource,name=Falcon">
> Falcon
>  ...
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


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



Re: [JBoss-user] Benchmark????

2001-06-18 Thread Vinay Menon

Do you have a rough idea as to how the application is laid out and
whether it is going to be IO bound or CPU bound and stuff?

Emerson wrote:
> 
> probably it will be deployed on HP-UX machines...
> certainly big ones
> 
> At 11:44 17/06/01 +0100, you wrote:
> >Hello Emerson,
> >I have done some amount of benchmarking on JBoss. What
> >platform are you looking at deploying JBoss on? If you can let me know
> >what kind of deployment scenario you have, I might be able to help.
> >
> >Regards
> >
> >Vinay
> >
> >Emerson wrote:
> >>
> >> I´m going to propose using JBoss in our app. Anyone has a kind of
> >> benchmark. We have a peak of 100.000 concurrent users. (we´re the electoral
> >> courty of Brazil).
> >>
> >> So I have to have some arguments, wou know ;)
> >>
> >> Emerson Cargnin
> >> TRE-SC
> >> Setor de Desenvolvimento
> >> Tel: (48) 251-3700 - Ramal 3134
> >>
> >> ___
> >> 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
> >
> >
> Emerson Cargnin
> TRE-SC
> Setor de Desenvolvimento
> Tel: (48) 251-3700 - Ramal 3134
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

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



RE: [JBoss-user] JBoss hosting

2001-06-18 Thread John Menke

I also have JBoss working at AOIndustries.

john

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of epeterson
> Sent: Monday, June 18, 2001 1:22 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Cc: AO Industries, Inc. Support
> Subject: Re: [JBoss-user] JBoss hosting
>
>
> Manu,
> My company, Ardec Corporation, uses aoindustries.com to do this. It is not
> part of their standard service yet, but we are working with them
> to make it
> so.
>
> Erik
>
>
> - Original Message -
> From: "Emmanuel Charpentier" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 18, 2001 10:52 AM
> Subject: [JBoss-user] JBoss hosting
>
>
> >
> >   Hello everybody
> >
> >   I'm looking for server space, free or cheap, where I could install a
> demo of
> >   a project based on JBoss and PostgreSQL (could be tweaked to work with
> >   another db).
> >
> >   The project is called VeniVidiVoti, you can find a description of it
> (static
> >   pages copied from a running VeniVidiVoti Library) at http://vvv.sf.net
> >
> >   In a few words:
> >   VVV is the motor of a collaborative writing web site, based on three
> >   principles offering a mix of representative and participative
> democracies.
> >   I often describe it as «Direct Democracy», although it's slightly
> different
> >   in some respects (representation is indirect).
> >   With VVV, a community should be able to democratically write
> any sort of
> >   text: petition, book of laws, constitution, poem, novel, newspaper,
> weblog...
> >   from the bottom-up!
> >
> >   I believe it could be revolutionary (I'm biased, ok :-), but
> there is no
> way
> >   I can convince a community to use it if they don't see what it offers
> >   beforehand.
> >
> >   Any body can help me???
> >
> >   Manu.
> >
> >   -
> >   VVV is GPL...
> >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


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



Re: [JBoss-user] How to inegrate JBoss with other databases

2001-06-18 Thread toby cabot

> Please give me the steps to follow i.e files to change or edit
> for
> integrating JBoss2.2.2 with some other database(other than
> Hssql)like Mysql or Oracle.

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




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



Re: [JBoss-user] JBoss hosting

2001-06-18 Thread epeterson

Manu,
My company, Ardec Corporation, uses aoindustries.com to do this. It is not
part of their standard service yet, but we are working with them to make it
so.

Erik


- Original Message -
From: "Emmanuel Charpentier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 10:52 AM
Subject: [JBoss-user] JBoss hosting


>
>   Hello everybody
>
>   I'm looking for server space, free or cheap, where I could install a
demo of
>   a project based on JBoss and PostgreSQL (could be tweaked to work with
>   another db).
>
>   The project is called VeniVidiVoti, you can find a description of it
(static
>   pages copied from a running VeniVidiVoti Library) at http://vvv.sf.net
>
>   In a few words:
>   VVV is the motor of a collaborative writing web site, based on three
>   principles offering a mix of representative and participative
democracies.
>   I often describe it as «Direct Democracy», although it's slightly
different
>   in some respects (representation is indirect).
>   With VVV, a community should be able to democratically write any sort of
>   text: petition, book of laws, constitution, poem, novel, newspaper,
weblog...
>   from the bottom-up!
>
>   I believe it could be revolutionary (I'm biased, ok :-), but there is no
way
>   I can convince a community to use it if they don't see what it offers
>   beforehand.
>
>   Any body can help me???
>
>   Manu.
>
>   -
>   VVV is GPL...
>
>
> ___
> 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] Persistant Timer Service using a DBStorage

2001-06-18 Thread Burkhard Vogel

Hi,
hmm, this is going to get a bit lengthy. What I did so far. I implemented my
own timer service extending the javax.management.timer class, to intercept
timer addNotification calls and store these in a database before handing
them to the Timer (super-)class. If JBoss somehow fails I restore all
upcoming Notifications and add a Listener class. For convinience reasons I
want to use a Listener which does an lookup to a previously deployed
enterprise bean and hands the Notification to this bean. So far so good.
I got the TimerDB class starting fine, addNotifications stores Notifications
in the DB, on restart all Notifications are restored BUT the Listener class
gives me a Headache. The Bean to look after is provided by an MBean
attribute tag, and (after throwing a jar with only Home and Remote
interfaces into lib/ext) lookups fine. To be fully independent regarding
this given paramenter I cast the looked up class to javax.ejb.EJBHome which
works fine, but EJBHome has no create method to get the Remote interface. So
I try to use the Reflection API and yes I can get the create method of the
Bean, BUT in order to invoke this method I need to call
Method.invoke(Object, Object[] args). I'm quite sure this is going to work
if anyone can tell me how to invoke giving nothing as parameter (as create
usually does). invoke(null, null) gives a NPE, invoke(java.lang.Void.TYPE,
new Object[]{java.lang.Void.TYPE}) gives IllegalArgumentException: object is
not an instance of declaring class.
BTW: The Bean I lookup implements a special interface which extends
SessionBean and NotificationHandle.
To help making things clearer here are the mbean entry in jboss.jcml, the
relevant parts of the TimerDB class and all interfaces I use.

  
OracleRemoteDB
ejb/TimerListener
  
(Yes, I repackage jboss.jar...)

**
Timer DB Class
**
public class TimerDB extends Timer implements TimerDBMBean,
org.jboss.util.Service {
public class Listener implements NotificationListener
{
private TimerDBListener timerListener;
public Listener(String ListenerBean) throws Exception {
try {
javax.ejb.EJBHome m_TLH = (javax.ejb.EJBHome) new
InitialContext().lookup(ListenerBean);
log.log("Listener create: Lookup succesful");
log.log("Listener create: HomeInterface: " +
m_TLH.getEJBMetaData().getHomeInterfaceClass());
java.lang.reflect.Method obj =
m_TLH.getClass().getMethod("create", null);
Object test = obj.invoke(java.lang.Void.TYPE, new
Object[]{java.lang.Void.TYPE});
log.log("Listener create: Create succesful: " +
test.getClass());
timerListener = (TimerDBListener)test;
log.log("Listener create: Cast succesful");
} catch(NamingException Ex) {
log.error("The ListenerBean \"" + ListenerBean +"\" could
not be found.");
log.exception(Ex);
throw Ex;
}
}
public void handleNotification(Notification pNotification, Object
pHandback) {
try {
log.debug("Timer hit:");
timerListener.handleNotification(pNotification, pHandback);
} catch (Exception Ex) {
log.exception(Ex);
}
}
}
[ leaving out loads of DB and Service relevant stuff]
protected void startService() throws Exception {
super.start();
// Now setting all future notifications from the DB.
Connection con=null; PreparedStatement prepStmt=null; ResultSet
rs=null;
try {
InitialContext context = new InitialContext();
log.debug("Using Database " + dataSourceName);
dataSource = (DataSource)new
InitialContext().lookup(dataSourceName);
con = dataSource.getConnection();
prepStmt = con.prepareStatement("SELECT TIMERTYPE, TIMERMESSAGE,
TIMERDATA, TIMERDATE, " +
"TIMERDELAY, TIMERREPEAT FROM TIMERDB WHERE
TIMERDATE >= ?" );
prepStmt.setTimestamp(1, new java.sql.Timestamp(new
Date().getTime()));
rs = prepStmt.executeQuery();
while( rs.next() ) {
Object obj = Deserialize(rs.getBytes("TIMERDATA"));
log.error("Restoring: " + rs.getString("TIMERTYPE") + ", " +
rs.getString("TIMERMESSAGE") + ", " + obj + ", " +
rs.getTimestamp("TIMERDATE") + ", "
+ rs.getLong("TIMERDELAY") + ", " + rs.getLong("TIMERREPEAT"));
super.addNotification(rs.getString("TIMERTYPE"),
rs.getString("TIMERMESSAGE"), obj,
rs.getTimestamp("TIMERDATE"),
rs.getLong("TIMERDELAY"), rs.getLong("TIMERREPEAT"));
}
try {
listener = new Listener(listenerBeanName);
  

Re: [JBoss-user] jetty vs tomcat

2001-06-18 Thread danch (Dan Christopherson)

Julian Gosnell wrote:

> Firstly - I am the JBoss-Jetty maintainer and my mate
> Greg is Jetty's author - so take everything I say with
> a pinch of salt.
>  
> 1. Jetty serves both static and dynamic content via
> the same infrastructure. AFAIK you need Tomcat AND
> Apache in order to otherwise achieve this.


Not completely true - Tomcat can serve static content, it's just slow
enought that most people seem to assume they need apache.


> 
> 2. Jetty is designed to be small, lightweight, simple
> and embeddable. Apache and TomCat have a larger
> footprint.
> 
> 3. Apache is de-facto industry standard, with an
> enormous user community, whereas Jetty is not. TomCat
> also has a far bigger user community than Jetty.


Isn't Tomcat the reference implementation these days?


> 
> 
> 5. I believe, although I have no substantiating
> evidence, that using Jetty MAY give you a higher
> throughput. This is due to it's emphasis on simplicity
> and lightweightedness. I am sure that TomCat is
> probably demonstrably more functional.
> 


Oh, come on! If you wanna be flamed, you can't go and _qualify_ your 
assertions ('no ... evidence ...' '... MAY ...') 8^})

-danch



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



[JBoss-user] Sybase Datasource problem

2001-06-18 Thread John DeStefano

Hi,

I'm having a problem with creating a Sybase connection pool. I'm using JBoss 2.2.2 and 
JDK1.3.1. The startup output looks like this:

[JNDIView] Starting
[JNDIView] Started
[Transaction manager] Starting
[Transaction manager] Started
[JAAS Security Manager] Starting
[JAAS Security Manager] JAAS.startService, cachePolicy=null
[JAAS Security Manager] JAAS.startService, 
SecurityProxyFactory=org.jboss.security.SubjectSecurityProxyFactory@4b6009
[JAAS Security Manager] Started
[JDBC provider] Starting
[JDBC provider] Started
[Hypersonic] Starting
[Hypersonic] Database started
[Hypersonic] Started
[DefaultDS] Starting
[Hypersonic] Server 1.4 is running
[Hypersonic] Press [Ctrl]+[C] to abort
[DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
[DefaultDS] Started
[CensusDS] Starting
[CensusDS] XA Connection pool CensusDS bound to java:/CensusDS

It hangs at the attempt to bind the Sybase datasource.

The jboss.jcml section for the sysbase database looks like this:


CensusDS
org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl
jdbc:sybase:Tds:localhost:2638/census_file_db
dba
2
1
sql

false
false
false
true
12
180
false
false
1.0
  

The sybase driver does load according to the server startup output.

Any help would be appreciated.

Thanks


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



RE: [JBoss-user] JBoss hosting

2001-06-18 Thread marc fleury

Yes I recommend wantjava.com, it will cost you though...

marcf

|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of Mike Davis
|Sent: Monday, June 18, 2001 1:03 PM
|To: [EMAIL PROTECTED]
|Subject: RE: [JBoss-user] JBoss hosting
|
|
|www.wantjava.com
|
|I don't think the site mentions it, but if you contact them I think they
|actually do host it. They run Oracle and MySql, but ask them about
|PostgresSQL, I think they'll do about anything you want them to.
|
|They are the ones who host jboss.org and servlets.com
|
|Mike Davis
|
|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of Emmanuel
|Charpentier
|Sent: Monday, June 18, 2001 9:53 AM
|To: [EMAIL PROTECTED]
|Subject: [JBoss-user] JBoss hosting
|
|
|
|  Hello everybody
|
|  I'm looking for server space, free or cheap, where I could install a demo
|of
|  a project based on JBoss and PostgreSQL (could be tweaked to work with
|  another db).
|
|  The project is called VeniVidiVoti, you can find a description of it
|(static
|  pages copied from a running VeniVidiVoti Library) at http://vvv.sf.net
|
|  In a few words:
|  VVV is the motor of a collaborative writing web site, based on three
|  principles offering a mix of representative and participative
|democracies.
|  I often describe it as «Direct Democracy», although it's slightly
|different
|  in some respects (representation is indirect).
|  With VVV, a community should be able to democratically write any sort of
|  text: petition, book of laws, constitution, poem, novel, newspaper,
|weblog...
|  from the bottom-up!
|
|  I believe it could be revolutionary (I'm biased, ok :-), but there is no
|way
|  I can convince a community to use it if they don't see what it offers
|  beforehand.
|
|  Any body can help me???
|
|  Manu.
|
|  -
|  VVV is GPL...
|
|
|___
|JBoss-user mailing list
|[EMAIL PROTECTED]
|http://lists.sourceforge.net/lists/listinfo/jboss-user
|
|
|___
|JBoss-user mailing list
|[EMAIL PROTECTED]
|http://lists.sourceforge.net/lists/listinfo/jboss-user



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



Re: [JBoss-user] too much logging!

2001-06-18 Thread Jeffrey Thomas Liu

Are you sure it's not debugging code?

Jeff Liu ([EMAIL PROTECTED])

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



Re: [JBoss-user] jetty vs tomcat

2001-06-18 Thread Julian Gosnell

Firstly - I am the JBoss-Jetty maintainer and my mate
Greg is Jetty's author - so take everything I say with
a pinch of salt.

If you stick to JSDK 2.2 and JSP 1.1 you _SHOULD_
(please let me know if you don't) find that the WAR
part of your EARs deploys and runs fine in either
web-container. This is the idea of having standard
APIs.

Those are the similarities.

These are the differences:

1. Jetty serves both static and dynamic content via
the same infrastructure. AFAIK you need Tomcat AND
Apache in order to otherwise achieve this.

2. Jetty is designed to be small, lightweight, simple
and embeddable. Apache and TomCat have a larger
footprint.

3. Apache is de-facto industry standard, with an
enormous user community, whereas Jetty is not. TomCat
also has a far bigger user community than Jetty.

4. Internal Jetty components are exposed to JBoss' JMX
Agent. AFAIK this is not YET the case with TomCat, but
probably not of much practical use !


5. I believe, although I have no substantiating
evidence, that using Jetty MAY give you a higher
throughput. This is due to it's emphasis on simplicity
and lightweightedness. I am sure that TomCat is
probably demonstrably more functional.


In conclusion, there is no clear winner - otherwise
one of us would have thrown in the towel. We represent
different approaches and ideologies.

If you are not particularly worried about serving high
volume static pages,would benefit from the simplicity
of running your entire setup from within one Java
process and are not worried by the fact that the rest
of the world has not chosen the same path as you - try
Jetty (the mailing list is actually very responsive).
If not go with Tomcat.

If you are not worried about static content, try both
and post your comparisons to this list so we may all
benefit from your experience.

Greg may want to add a little here...

Hope that helps,



Jules


--- Sky Yin <[EMAIL PROTECTED]> wrote: > hi :^)
> I am a new comer to JBoss. I notice that JBoss
> releases with alternative two servlet/jsp engine:
> jetty and tomcat. Can anyone make a comparation
> between them? How can I choose from?
> 
> regards
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
>
http://lists.sourceforge.net/lists/listinfo/jboss-user



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

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



Re: [JBoss-user] How to inegrate JBoss with other databases

2001-06-18 Thread danch (Dan Christopherson)

start here:

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

A warning: don't add a JdbcProvider section to jboss.jcml; add your 
driver to the list in the current one.

chitrapandian wrote:

> Hi,
> 
> Please give me the steps to follow i.e files to change or edit
> for
> integrating JBoss2.2.2 with some other database(other than Hssql)like
> Mysql or Oracle.
> 
> Thanks ,
> Chithu N
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 



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



Re: [JBoss-user] JMS Hung

2001-06-18 Thread pra

On 18 Jun, Robert Yen wrote:
> Hi All,
> 
> The platform is Sun SPARC with Solaris 2.7, JBoss 2.2.1.
> When I turned on "java.naming.provider.url=localhost" in jndi.properties,
> the jboss startup hung at - 
> "[JBossMQ] Starting".  It works fine if I turn it off and using a
> environment file (system property) setting.  Can anybody help me out?
> 

I know this problem, and it is verry iritating, since JBossMQ won't say
a word. It has to do with how RMI and hostname is resolved, as far as I
know. 

Try setting java.rmi.server.hostname=localhost either on the commanline
or in jboss.properties

//Peter

> Thanks in advance.
> 
> 
> Robert Yen
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

-- 

Peter Antman Technology in Media, Box 34105 100 26 Stockholm
Systems ArchitectWWW: http://www.tim.se
Email: [EMAIL PROTECTED]WWW: http://www.backsource.org
Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942 



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



RE: [JBoss-user] JBoss hosting

2001-06-18 Thread Mike Davis

www.wantjava.com

I don't think the site mentions it, but if you contact them I think they
actually do host it. They run Oracle and MySql, but ask them about
PostgresSQL, I think they'll do about anything you want them to.

They are the ones who host jboss.org and servlets.com

Mike Davis

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Emmanuel
Charpentier
Sent: Monday, June 18, 2001 9:53 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] JBoss hosting



  Hello everybody

  I'm looking for server space, free or cheap, where I could install a demo
of
  a project based on JBoss and PostgreSQL (could be tweaked to work with
  another db).

  The project is called VeniVidiVoti, you can find a description of it
(static
  pages copied from a running VeniVidiVoti Library) at http://vvv.sf.net

  In a few words:
  VVV is the motor of a collaborative writing web site, based on three
  principles offering a mix of representative and participative democracies.
  I often describe it as «Direct Democracy», although it's slightly
different
  in some respects (representation is indirect).
  With VVV, a community should be able to democratically write any sort of
  text: petition, book of laws, constitution, poem, novel, newspaper,
weblog...
  from the bottom-up!

  I believe it could be revolutionary (I'm biased, ok :-), but there is no
way
  I can convince a community to use it if they don't see what it offers
  beforehand.

  Any body can help me???

  Manu.

  -
  VVV is GPL...


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


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



Re: [JBoss-user] xalan 'n' stuff

2001-06-18 Thread Fred Loney

This, however, begs the question of how to deploy a web app into an arbitrary 
container and guarantee expected classpath resolution. Is it sufficient to package 
every auxiliary jar in the war lib directory? I have my doubts that this yields a 
deterministic servlet class resolution order. I faintly recall some j2ee spec proposal 
to address this. Anybody know the status?

Timo Kauppinen wrote:

> Victory
>
> So the mystery unfolds
>
> I indeed had jaxp.jar in jboss' classpath, so I removed it. I also added
> xalan.jar in the startup .bat file (run_with_tomcat.bat) and now it works!
> Thank you all, thank you... world is a nice place to be again!:)
>
> ..weird that jboss didn't found it from jboss/lib/ext ..what might be the
> reason? If crimson.jar is loaded first, could this somehow cause xalan.jar
> to be ignored.
>
> Cheers,
>
> Timo
>
> On Sun, 17 Jun 2001, Lewis Henderson wrote:
>
> > Arghhh!
> >
> > Aren't classpaths a nightmare!!
> >
> > The only things I can suggest is that you check...
> > 1) No earlier version of xalan.jar,jaxp.jar exists on the classpath.
> > 2) jaxp.jar does exist on the classpath
> >
> > Re another of your posts...
> > a)The classpath is the same for JBoss & Tomcat if you are using the embedded
> > Tomcat.
> > b)If you put the jars in WEB-INF/lib they should be picked up by that WAR
> > onto its classpath.
> >
> > Lewis
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Timo
> > Kauppinen
> > Sent: 17 June 2001 08:09
> > To: [EMAIL PROTECTED]
> > Subject: RE: [JBoss-user] xalan 'n' stuff
> >
> >
> > Yes, I've checked that the class really is in the jar-file.. kinda
> > frustrating, isn't it.
> >
> > The jars are the ones from xml.apache.org/xalan-j, file
> > xalan-j_2_1_0.zip. It has all the neccessary jars (xerces, xalan, etc.),
> > I've checked.
> >
> > Is the classpath described in run_with_tomcat.bat -file the one tomcat
> > uses? I haven't found the classpath configuration from any of the tomcats
> > configuration files, so does jboss and tomcat use the same classpath when
> > the Tomcat is run as embedded?
> >
> > Earlier I haven't had any difficulties with classpaths, but this makes me
> > really puzzled..
> >
> > Timo
> >
> >
> >
> > On Fri, 15 Jun 2001, Lewis Henderson wrote:
> >
> > > It looks as though the config is correct! Do you have the correct version
> > of
> > > xalan.jar...(Does this class exist in the jar)?
> > >
> > > Mine is 705k 15-Mar-2001 14:21
> > >
> > >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of Timo
> > > Kauppinen
> > > Sent: 15 June 2001 14:20
> > > To: [EMAIL PROTECTED]
> > > Subject: RE: [JBoss-user] xalan 'n' stuff
> > >
> > >
> > > Well, the error stack is this:
> > >
> > >
> > > javax.xml.transform.TransformerFactoryConfigurationError:
> > > java.lang.ClassNotFoundException:
> > > org.apache.xalan.processor.TransformerFactoryImpl
> > > at
> > >
> > javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:1
> > > 21)
> > >
> > >
> > > I also thought that it would be enough if I put xalan.jar in
> > > jboss/lib/ext.. how wrong I was...
> > >
> > >
> > >
> > >
> > > On Fri, 15 Jun 2001, Lewis Henderson wrote:
> > >
> > > > I put my xerces.jar, xalan.jar and jaxp.jar in the jre/lib/ext as I use
> > > them
> > > > for all kinds of projects!
> > > >
> > > > It should have worked in the /jboss/lib/extwhat class is it failing
> > to
> > > > find?
> > > >
> > > > Lewis
> > > >
> > > > -Original Message-
> > > > From: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Timo
> > > > Kauppinen
> > > > Sent: 15 June 2001 13:09
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [JBoss-user] xalan 'n' stuff
> > > >
> > > >
> > > > Hello!
> > > >
> > > > I know this may be a common problem (or maybe not). At least I think I
> > > > have seen this thing discussed here.. but I ask it anyway:
> > > >
> > > > If I want to use xalan as the xsl-parser in my servlet (I'm using
> > > > Jboss-2.2.2 with tomcat), where should I put the xalan.jar? Tomcat
> > > > can't find the needed classes if I put it in [inst-dir]/tomcat/lib and
> > > > [inst-dir]/jboss/lib/ext doesnt't work either. I thought that it
> > wouldn't
> > > > do in the "starting classpath" either (in run_with_tomcat.bat).
> > > >
> > > > So if those options don't work, I'm a little out of ideas. Can anyone
> > give
> > > > suggestions?
> > > >
> > > > Cheers!
> > > >
> > > > Timo
> > > >
> > > >
> > > > ___
> > > > 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] How to inegrate JBoss with other databases

2001-06-18 Thread chitrapandian

Hi,

Please give me the steps to follow i.e files to change or edit
for
integrating JBoss2.2.2 with some other database(other than Hssql)like
Mysql or Oracle.

Thanks ,
Chithu N


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



FW: [JBoss-user] No Descriptive Deployment of Datasources.

2001-06-18 Thread Ferguson, Doug

I am reposting

Does anybody know of a way to map DS jndi names at deploytime
that will bind the name to the global namespace?

See the post below.

d.

-Original Message-
From: Ferguson, Doug [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 16, 2001 5:22 PM
To: JBoss User (E-mail)
Subject: [JBoss-user] No Descriptive Deployment of Datasources.


Is there no way to change the jndi name for a datasource a deploytime other
than on a perbean basis?

For example. The current DB JAAS login module requires a jndi name for 
configuring the DS to use to obtain login credentials.

The problem is that this security code isn't an ejb so it doesn't have acces
to java:comp/env/ so there is no way to remap the datasource name (that
I can figure out at least).

Thanks,
d.

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

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



Re: [JBoss-user] JMS and MessageDrivenBean

2001-06-18 Thread pra

On 18 Jun, Griffin, Michael wrote:
> This makes sense to me, but I can't seem to get it working.  
> 
> How do I use the JMS Connector?  
> 
> I created a resource reference in ejb-jar.xml, and linked the reference to
> QueueConnectionFactory in jboss.xml. The bean obtains the
> QueueConnectionFactory using java:comp/env/jms/Qcf.  The send on the replyTo
> destination is still not transactional.

Check:

http://sourceforge.net/tracker/index.php?func=detail&aid=419301&group_id=22866&atid=381174

Or check the jmsra test in jbosstest.

//Peter
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, June 17, 2001 2:04 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] JMS and MessageDrivenBean
> 
> 
> On 15 Jun, Griffin, Michael wrote:
>> JBoss-User,
>> 
>> I have created a MessageDrivenBean that serves as the responder in a
> request
>> / reply scenario.  I get the reply Destination from the JMSReplyTo
> property
>> on the message.  The handling of the onMessage code is simple.
>> 
>> I lookup the QueueConnectionFactory, create a QueueConnection, create a
>> QueueSession (with true, Session.AUTO_ACKNOWLEDGE), create a QueueSender
> and
>> ultimately send the message.
>> 
>> The MessageDrivenBean is deployed using Container managed transaction,
> with
>> all methods (*) marked as Required.  The messages sent from the
>> MessageDrivenBean are not delivered to the queue until I explicitly call
>> commit on the QueueSession.  It is my understanding (of the EJB 2.0 Spec)
>> that when a Container managed transaction is active, any use of a JMS
>> Session will be part of the containers transaction.
>> 
>> Does anyone have any experience to share concerning this issue?
> 
> If you are using jboss 2.2.x or are using the developers version, but do
> not utilize the JMS connector, then your JMS sessions will NOT be part
> of any transaction.
> 
> Looking up a QueueConnectionFactory through JNDI will only (ever) give
> you a normal (non J2EE) JMS session.
> 
> //Peter
>> 
>> Regards,
>> Michael
>> 
>> 
>> ___
>> JBoss-user mailing list
>> [EMAIL PROTECTED]
>> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 

-- 

Peter Antman Technology in Media, Box 34105 100 26 Stockholm
Systems ArchitectWWW: http://www.tim.se
Email: [EMAIL PROTECTED]WWW: http://www.backsource.org
Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942 



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



RE: [JBoss-user] Oracle connection failure

2001-06-18 Thread Reynir Hübner

I guess there is something wrong with your JDBC connection URL.

the most common error is haveing the wrong Instancename (the last part
of the URL).
 
Note : it´s not the databaseName (as documented somewhere).

This is what I have in my Jboss.jcml and it´s enough to have this
running :
  
  
 oracle.jdbc.driver.OracleDriver
   
  
ISDB
org.opentools.minerva.jdbc.xa.wrapper.XADataSourc
eImpl
 
jdbc:oracle:thin:@somehost.somedomain.com:1521:dbinstName
dbmm
dbmmlock
true
  

hope it helps, 

Reynir Þór Hübner
[EMAIL PROTECTED]
Hugsmiðjan, 
Skúlagata 32-34
www.hugsmidjan.is




-Original Message-
From: Chong Joon lee [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 3:55 PM
To: [EMAIL PROTECTED]
Cc: Robert Butcher
Subject: [JBoss-user] Oracle connection failure


Hi all,

I am working with JBoss version 2.2.1 and I am trying to connect to the
Oracle database. I have configured the jboss.jcml file as well as the
jboss.conf file however, it is causing the following error. 

[OracleDS] Starting
[OracleDS] XA Connection pool OracleDS bound to java:/OracleDS
[OracleDS] Stopped
[OracleDS] java.lang.NullPointerException
[OracleDS]  at
org.opentools.minerva.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataS
ourc
e.java:165)
[OracleDS]  at
org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:3
30)
[OracleDS]  at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
[OracleDS]  at java.lang.reflect.Method.invoke(Native Method)
[OracleDS]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[OracleDS]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[OracleDS]  at
org.jboss.util.ServiceControl.start(ServiceControl.java:97)
[OracleDS]  at java.lang.reflect.Method.invoke(Native Method)
[OracleDS]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[OracleDS]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[OracleDS]  at org.jboss.Main.(Main.java:203)
[OracleDS]  at org.jboss.Main$1.run(Main.java:107)
[OracleDS]  at java.security.AccessController.doPrivileged(Native
Method)
[OracleDS]  at org.jboss.Main.main(Main.java:103)
[Service Control] Could not start
DefaultDomain:service=XADataSource,name=OracleDS
[Service Control] java.lang.NullPointerException
[Service Control]   at
org.opentools.minerva.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataS
ourc
e.java:165)
[Service Control]   at
org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:3
30)
[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)

Can anyone suggest anything?

Thanks

CJ

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

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



Re: [JBoss-user] Deploying .ear

2001-06-18 Thread Fred Loney

Sounds like a problem with the application.xml ear deployment descriptor. It should 
resemble the following:


  myapp

  
my.war
/myapp
  


  my.jar



The ejb module declaration puts my.jar in the web app's classpath.

[EMAIL PROTECTED] wrote:

> Hi all,
>
> have problem, I trying deploy my.ear application at JBoss 2.2.2 with Tomcat 3.2.2. 
>my.ear contains my.war archive with 3 JSP files
> and 1 java controller class, then my.jar archive with 1 Entity EJB. After deploy, I 
>start first JSP, this JSP instancied
> controller class (no problem), then controller class try found EJB and stopped when 
>try lookup EJB (no message at JBoss screen,
> ServletException in Browser).
> Interesant is when I put out my.jar archive from ear to \deploy directory, and then 
>into JBoss starting .bat file I insert
> classpath for this my.jar, aplication work without problems.
> I think problem is with some classpath settings, maybe in XML files, but don't known 
>where. Have any1 some ideas?
>
> Miro
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

--
Fred Loney
Spirited Software, Inc.
[EMAIL PROTECTED]



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



[JBoss-user] RE: In-browser Java applet client to jBoss?

2001-06-18 Thread Hutson, Philip

I am using an applet as a client to a jboss server.
The client foot print size can actually be fairly small for jboss. The jar
file (ejipt_client.jar) for connecting to jboss is 82k (well within dialup
size). My total client size is 3megs (it has a very elaborate GUI) which is
fine because my user base usually has a t1 or better connection. The only
real problem I've run across is the file access permissions for the jndi
look up (which has been discussed here by others and I think there was a
decent solution provided).
Another nice way of doing a client would be with webstart, a new product
from sun.
http://java.sun.com/products/javawebstart/index.html

-Philip

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



RE: [JBoss-user] JBoss hosting

2001-06-18 Thread Bowo M Oenar

Try www.webappcabaret.com, they say they will put JBOSS on their hosting
service.

Regards,

Bowo M. Oenar

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Emmanuel
Charpentier
Sent: Monday, June 18, 2001 10:53 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] JBoss hosting



  Hello everybody

  I'm looking for server space, free or cheap, where I could install a demo
of
  a project based on JBoss and PostgreSQL (could be tweaked to work with
  another db).

  The project is called VeniVidiVoti, you can find a description of it
(static
  pages copied from a running VeniVidiVoti Library) at http://vvv.sf.net

  In a few words:
  VVV is the motor of a collaborative writing web site, based on three
  principles offering a mix of representative and participative democracies.
  I often describe it as «Direct Democracy», although it's slightly
different
  in some respects (representation is indirect).
  With VVV, a community should be able to democratically write any sort of
  text: petition, book of laws, constitution, poem, novel, newspaper,
weblog...
  from the bottom-up!

  I believe it could be revolutionary (I'm biased, ok :-), but there is no
way
  I can convince a community to use it if they don't see what it offers
  beforehand.

  Any body can help me???

  Manu.

  -
  VVV is GPL...


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


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



Re: [JBoss-user] JDBC prob.

2001-06-18 Thread danch (Dan Christopherson)

Paul Ryan wrote:

> Hi,
> 
> We would like to test our J2EE app. on a JBoss-Tomcat platform. We have 
> a mixture of servlets and EJB's and I have used the deployment tool to 
> generate a jboss.xml file. When this is packaged in our ear file the 
> deployment seems to go ok and I can see the file being exploded and the 
> web context being created.
> 
> My problem is that I can't seem to access a database connection pool 
> from within the first servlet. We are using an Oracle 8i database with a 
> thin ( type 4) driver.
> 

Assuming that you have jboss.jcml set up for the datasource, you'll need 
a 'jboss-web.xml' (in your war's META-INF directory) with something like 
this in it.


   
 jdbc/mcs_general
 javax.sql.DataSource
 java:/MyOracleDataSource
   


Where MyOracleDataSource is whatever name you used for your Oracle 
connection pool in jboss.jcml. You may (will unless you're using 
DefaultDS) also need to do something similar in a jboss.xml for your 
beans - that's a little more complicated (you need both a resource-ref 
in your bean's section and a resource-manager in a resource-managers 
section), but better documented in jboss.dtd and in the list archives 
(go through the archive links at jboss.org, not sourceforge)

-danch

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



Re: [JBoss-user] quick tutorial

2001-06-18 Thread adam

We actually found the same problem in our company's application.  Is 
this something that should be changed in Jasper?


danch wrote:

> I believe that the ClassNotFound exceptions are limited to when Jasper 
> (the Tomcat JSP engine) calls out to javac to compile the JSP - when 
> the code actually runs in JBoss/Tomcat, the interface classes are 
> loaded from the EJB-jar's classloader. Not that this helps you make a 
> portable ear...
>
> -danch
>
> Matthew Devaney wrote:
>
>> The documentation for weblogic, as shown at:
>>  http://e-docs.bea.com/wls/docs60/ejb/EJB_deployover.html
>> .. talks about the class loader issues I mentioned, in particular the
>> section on Diagnosing ClassCastException errors it states:
>>   "To correct such ClassCastException errors, EJB and servlet developers
>> must ensure that no two classloaders ever load an identical class.
>> Specifically, you should always ensure that EJB classes reside only 
>> in the
>> deployed EJB .jar file or EJB directory, and that they are not 
>> included in
>> other EJB .jar files or classpath definitions."
>>
>> If we assume that EJB classes includes the interfaces, and take into 
>> account
>> the fact it talks about servlets and this particular error in the lines
>> immediatly above.. my reading of it is that it's saying don't include 
>> EJB
>> classes in the web app either.. (Although if someone thinks I'm
>> misinterpreting, I'm more than happy to believe that given a reasonable
>> reason :)
>>
>> Any thoughts?
>> .Matt
>>
>>> -Original Message-
>>> From: Allen fogleson [mailto:[EMAIL PROTECTED]]
>>> Sent: 18 June 2001 14:51
>>> To: [EMAIL PROTECTED]
>>> Subject: Re: [JBoss-user] quick tutorial
>>>
>>>
>>> Hmmm well I think you could include them in the lib directory, it isnt
>>> platform independent then, but it should work in JBoss. (I havent 
>>> tested
>>> that)
>>>
>>> Those classes do have to be available to the client, be it an 
>>> application
>>> client or a web client, so they should be in the war file. I 
>>> deployed the
>>> example on weblogic 6 and didnt get any errors, I havent tested any 
>>> other
>>> containers though.
>>>
>>> Al
>>>
>>> - Original Message -
>>> From: Matthew Devaney <[EMAIL PROTECTED]>
>>> To: <[EMAIL PROTECTED]>
>>> Sent: Monday, June 18, 2001 7:25 AM
>>> Subject: RE: [JBoss-user] quick tutorial
>>>
>>>
>>>
 Hi,
 Thanks for the example Al, but is there anyway to get it working
>>>
>>>
>>> without
>>>
 including the ejb home and remote classes inside the WAR file?.

 The reason for wanting to do this is that I've been given 
>>>
>>>
>>> to understand
>>> that
>>>
 doing so can cause class loader exceptions when using the 
>>>
>>>
>>> ear file in
>>> other
>>>
 containers. This is due to the container trying to load the 
>>>
>>>
>>> same class
>>> twice
>>>
 (once from the EJB, once from the war file)

 So far my attempts at something like this at JBoss 2.2.2 
>>>
>>>
>>> have all met with
>>>
 classNotFound exceptions within the jsp page during compile 
>>>
>>>
>>> time - however
>>>
 it seemed to work without problems at JBoss 2.2.1.

 Thanks,
 Matt


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



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



Re: [JBoss-user] My Jdbc pool doesn't work,help!

2001-06-18 Thread Dexter Legaspi


if your "client" is not within the JBoss container,
DataSource lookup will fail.

--- Guy Rouillier <[EMAIL PROTECTED]> wrote:
> Please read the docs and/or search the archives. 
> There are very many
> message covering required configuration for working
> with Oracle (I've posted
> them myself at least a half dozen times.)
> 
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, June 15, 2001 1:18 AM
> Subject: [JBoss-user] My Jdbc pool doesn't
> work,help!
> 
> 
> > Hello everyone:
> >
> >
> >   I have config a connection pool for oracle8i in
> jboss.cml
> > and when jboss started, the message in the console
> is:
> > 
> > [OracleDB] Initializing
> > [OracleDB] Initialized
> > 
> > [OracleDB] Starting
> > [OracleDB] XA Connection pool OracleDB bound to
> java:/OracleDB
> > [OracleDB] Started
> > 
> >
> >
> >  name="DefaultDomain:service=JdbcProvider">
> >  
name="Drivers">oracle.jdbc.driver.OracleDriver
> > 
> > 
name="DefaultDomain:service=XADataSource,name=OracleDB">
> >   OracleDB
> >   
name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
> l
> >   
name="URL">jdbc:oracle:thin:@***.***.***.***:1521:ora8i
> >   ***
> >   ***
> > 
> >
> >
> > and now, how can I use Jndi to locate the
> datasouce and use it.
> >
> > this is my client code:
> >
> > 
> > Properties env=new Properties();
> >
> > env.setProperty("java.naming.factory.initial",
> "org.jnp.interfaces.NamingContextFactory");
> > env.setProperty("java.naming.provider.url",
> "***.***.***.***:1099");
> >
> env.setProperty("java.naming.factory.url.pkgs", 
> "org.jboss.naming");
> > new InitialContext(env).lookup("OracleDB")
> > 
> > but this doesn't work
> > and I have try the last line to  look up
> > ("java:/OracleDB");
> > ("/OracleDB");
> > ("java:comp/jdbc/OracleDB");
> > ("java:comp/OracleDB");
> > Still doesn't work.
> >
> > how to make it work???
> > help me pls.
> >
> >
> >
> > Kammi from [EMAIL PROTECTED]
> > 2001-06-1512:50:42
> >
> > _
> > [×ã²»³ö»§ ÇáËÉÉÏÍø]
> ÉÏÍøרÓúţº95963£¬Óû§Ãû/ÃÜÂ룺263
> > Ìػݾ«Æ·¿Õµ÷ÂòÓÖËÍ 
>
http://shopping.263.net/hotsale/aircondition/index.asp
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> >
>
http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
>
http://lists.sourceforge.net/lists/listinfo/jboss-user


__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/

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



Re: [JBoss-user] JDBC prob.

2001-06-18 Thread Paul Ryan

Paul Ryan wrote:

> Hi,
> 
> We would like to test our J2EE app. on a JBoss-Tomcat platform. We 
> have a mixture of servlets and EJB's and I have used the deployment 
> tool to generate a jboss.xml file. When this is packaged in our ear 
> file the deployment seems to go ok and I can see the file being 
> exploded and the web context being created.
> 
> My problem is that I can't seem to access a database connection pool 
> from within the first servlet. We are using an Oracle 8i database with 
> a thin ( type 4) driver.
> 
> Note: We have sucessfully deployed this app to Orion, Weblogic & 
> iPlanet servers.
> 
> The relevant entries are
> 
> 1) In jboss.jcml I have added
> 
>  
>   name="DefaultDomain:service=JdbcProvider">
>oracle.jdbc.driver.OracleDriver
>  
> 
>   name="DefaultDomain:service=XADataSource,name=mcs">
>   jdbc/mcs_general
>
>name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl
> 
> 
>   jdbc:oracle:thin:@test:1521:test
>   test
>   test
>  
> 
> 2) Our web.xml has the following entry
> 
>   
>   Data source
>   jdbc/mcs_general
>   javax.sql.DataSource
>   Container
>   
> 
> 3) Finally out code is calling the connection like this
> 
> 
>   try {
>   if (lookupName != null) {
>   if (jndiContext == null) {  // Double Check Locking
>   synchronized (lockObject) {
>   if (jndiContext == null) {
>   jndiContext = new InitialContext();
>   }
>   }
>   }
> 
>DataSource dataSource = (DataSource)
>jndiContext.lookup("java:comp/env/"
>  + lookupName);
> 
>   Note: In the above line the variable lookupName evaluates to 
> "jdbc/mcs_general"
> 
> 
> 
> I have used a debugger to try to compare the Context object returned 
> by JBoss and the object returned by an Orion server but it didn't help.
> 
> 
> Any help would be appreciated.
> 
> Paul Ryan
> 
> 
> Apologies,


I forgot to list the error, we get a javax.naming.NameNotFoundException 
: jdbc not bound.

Paul.

> 
> 



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



[JBoss-user] Best security for JBoss2.2.1?

2001-06-18 Thread Matt Vincent




 
I got JAAS in JBoss-2.2.2_Tomcat-3.2.2 to work 
(thanks to an excellent tutorial on jboss.org!!) and it is works 
FLAWLESSLY!  However, I then discovered what others have found out:  
that the basic "interest" example ejb will not work, because "interest/Interest" 
is not bound (I checked in localhost:8082->JndiView->list and 
Interest does not exist anywhere).  See http://www.mail-archive.com/jboss-user@list.working-dogs.com/msg13087.html
 
As a result, I'm going to use 
JBoss-2.2.1_Tomcat-3.2.1 and Tomcat's JDBCRealm (yes only securing the servlet, 
and not using db pooling, and not having a jndi security resource) to do 
Authentication&Authorization using a database and wait until the newer JAAS 
in in JBoss-2.2.2_Tomcat-3.2.2 is released in a non-beta version of 
JBoss.
 
Q1:  Is this a good thought process or am I 
way off base?
Q2:  Did I ready the JAAS in JBoss-2.2.1 
correctly... you can only deploy beans with users.properties and 
roles.properties?  (e.g. there is no database interface?).  

Q3:  If going with Tomcat's JDBCRealm is a 
good temp solution, how to you restart *just* the JDBCRealm (instead of the 
restarting all of JBoss) when I get the message:
 
2001-06-18 10:28:42 - ContextManager: JDBCRealm: 
The database connection is null or was found to be closed. Trying to re-open 
it.
 
Thank you,
 
Matt Vincent
 


[JBoss-user] JBossCX tutorial

2001-06-18 Thread Daryl Beattie

Dear JBoss Users,

Hey, I hate to be a pain, but is there a tutorial for how to use
JBossCX? If so, where can I find it? If not, uh.. nevermind.
Also, I seem to be having trouble learning about the Java Connector
architecture in general. Is there a better place to learn about it besides
the white-paper?
I would appreciate any suggestions the community has to offer.
Thanks!

Sincerely,

Daryl.


Daryl Beattie
Java Developer/Research and Development
ScreamingMedia
601 West 26 Street 13 Floor
New York New York 10001
T 212 691 7900 F 212 691 1483
Direct 212 659 1895
www.screamingmedia.com 

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



[JBoss-user] JMS Hung

2001-06-18 Thread Robert Yen

Hi All,

The platform is Sun SPARC with Solaris 2.7, JBoss 2.2.1.
When I turned on "java.naming.provider.url=localhost" in jndi.properties,
the jboss startup hung at - 
"[JBossMQ] Starting".  It works fine if I turn it off and using a
environment file (system property) setting.  Can anybody help me out?

Thanks in advance.


Robert Yen


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



[JBoss-user] JDBC prob.

2001-06-18 Thread Paul Ryan

Hi,

We would like to test our J2EE app. on a JBoss-Tomcat platform. We have 
a mixture of servlets and EJB's and I have used the deployment tool to 
generate a jboss.xml file. When this is packaged in our ear file the 
deployment seems to go ok and I can see the file being exploded and the 
web context being created.

My problem is that I can't seem to access a database connection pool 
from within the first servlet. We are using an Oracle 8i database with a 
thin ( type 4) driver.

Note: We have sucessfully deployed this app to Orion, Weblogic & iPlanet 
servers.

The relevant entries are

1) In jboss.jcml I have added

  
  
oracle.jdbc.driver.OracleDriver
  

  
   jdbc/mcs_general
   org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl
   jdbc:oracle:thin:@test:1521:test
   test
   test
  

2) Our web.xml has the following entry

   
   Data source
   jdbc/mcs_general
   javax.sql.DataSource
   Container
   

3) Finally out code is calling the connection like this


   try {
   if (lookupName != null) {
   if (jndiContext == null) {  // Double Check Locking
   synchronized (lockObject) {
   if (jndiContext == null) {
   jndiContext = new InitialContext();
   }
   }
   }
 
  
   DataSource dataSource = (DataSource)
jndiContext.lookup("java:comp/env/"
  + lookupName);

   Note: In the above line the variable lookupName evaluates to 
"jdbc/mcs_general"



I have used a debugger to try to compare the Context object returned by 
JBoss and the object returned by an Orion server but it didn't help.


Any help would be appreciated.

Paul Ryan



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



RE: [JBoss-user] In-browser Java applet client to jBoss?

2001-06-18 Thread RRokytskyy

Hi, 

Here's my ideas to the last issue:

> 4. Is this just a bad idea in general, and should a 
> rich-client applet 
> be communicating via HTTP and a Servlet (and perhaps XML or SOAP), as 
> opposed to RMI directly?

If you use standard RMI, you expose your, probably sensible, data to the
packet sniffer unles you make RMI use the HTTPS connection (not sure if this
is possible in standard RMI implementation).

I would use the XML/SOAP solution with encrypted content. But that's just my
opinion.

Regards,
Roman

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



Re: [JBoss-user] too much logging!

2001-06-18 Thread David Ward

I haven't seen an answer to this yet; please help!

--

David Ward wrote:

> I've successfully hooked up Apache to the JBoss/Tomcat bundled version 
> using mod_jk ajpv13.  My JkLogLevel is set to error, and I haven't 
> changed any debug flags in tomcat's server.xml.  How come, then, do I 
> all of sudden get 10+ lines of debug from JBoss' stdout every time I 
> make an http request into it?  How/where can I turn this down/off?
> 
> 2001-06-08 11:06:01 - path="/dsi" :jsp: init
> 2001-06-08 11:06:01 - path="/dsi" :NavController: init
> 2001-06-08 11:06:04 - JspEngine --> /common/html/index.jsp
> 2001-06-08 11:06:04 -ServletPath: /common/html/index.jsp
> 2001-06-08 11:06:04 -   PathInfo: null
> 2001-06-08 11:06:04 -   RealPath:
> 
>/data/packages/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/dsi.ear/web1003/common/html/index.jsp
> 
> 
> 2001-06-08 11:06:04 - RequestURI: /dsi/common/html/index.jsp
> 2001-06-08 11:06:04 -QueryString: null
> 2001-06-08 11:06:04 - Request Params:
> 2001-06-08 11:06:04 - Classpath according to the Servlet Engine is:
> 
>/data/packages/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/dsi.ear/web1003/WEB-INF/lib/corp.jar:/data/packages/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/dsi.ear/web1003/WEB-INF/lib/mim.jar:/data/packages/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/dsi.ear/web1003/WEB-INF/lib/webdocs.jar:/data/packages/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/dsi.ear/web1003/WEB-INF/lib/classes12.jar:/data/packages/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/dsi.ear/web1003/WEB-INF/lib/iText.jar:/data/packages/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/dsi.ear/web1003/WEB-INF/lib/jconn2.jar:/data/packages/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/dsi.ear/web1003/WEB-INF/lib/rowset.jar
> 
> 
> 
> Thanks,
> David



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



Re: [JBoss-user] standalone J2EE java client

2001-06-18 Thread danch (Dan Christopherson)

Kimpton,C (Chris) wrote:

> Hi,
> 
> I am not sure to what facility you are referring - are you looking to run
> the client in the same VM as the JBoss server?  In which case, you can do
> this - but obviously only one client can do this, the other clients will
> presumably want to talk to the same JBoss VM?  Or is it a single user kind
> of app anyway?
> 
> I don't remember anything about the application-client.xml - perhaps someone
> with experience of this can answer you.

This is part of the 'client-container' specs from one of the newer J2EE 

specifications. It basically gives clients the same portability as server

side code has (theoretically) in J2EE.

No, it's not in JBoss right now, but it'll have to be sooner or later.

-danch




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



[JBoss-user] Oracle connection failure

2001-06-18 Thread Chong Joon lee

Hi all,

I am working with JBoss version 2.2.1 and I am trying to connect to the
Oracle database. I have configured the jboss.jcml file as well as the
jboss.conf file however, it is causing the following error. 

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

Can anyone suggest anything?

Thanks

CJ

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



Re: [JBoss-user] how to access MS Access via CMP in jboss

2001-06-18 Thread Burkhard Vogel

To ensure the things said before:
You should change the mbean name= AND the PoolName-tag consistantly. The
pool is bound to the name specified in PoolName and can be explored by
JNDIView under the mbean name tag.
Burkhard
- Original Message -
From: "danch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 6:16 AM
Subject: Re: [JBoss-user] how to access MS Access via CMP in jboss


> Lewis Henderson wrote:
>
> > You should be looking up "java:comp/env/InterBaseDS" according to the
> > jboss.jcml you have supplied!
>
> In jaws.xml, that would be simply "java:/InterBaseDS"
>
>
> >
> > -Original Message-
> > *From:* [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]*On Behalf Of *still
> > *Sent:* 17 June 2001 15:08
> > *To:* jboss-user
> > *Subject:* [JBoss-user] how to access MS Access via CMP in jboss
> >
> > i want to access a MS access Table in JBOSS.
> >
> > so i modify the jboss.jcml to add a new MBean.
> >
> > so it will load  jdbc:odbc driver(Sun's) with initializing.
> >
> >
> >
> >   >
"org.jboss.jdbc.JdbcProvider"name="DefaultDomain:service=JdbcProvider">
> >  org.hsql.jdbcDriver
> >   
> >
> >
> >
> > and also i add lines to add a data source in jboss.jcml
> >
> >
> >
> >  >
code="org.jboss.jdbc.XADataSourceLoader"name="DefaultDomain:service=XADataSo
urce,name=JetEngineDB">
> >   >
name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l
> >  InterBaseDS
> >  jdbc:odbc:EjbDataSource
> >   
> >  
> >  
> >
> > EjbDataSouce is the DNS in windows.
> >
> >
> >
> > all the things sees ok when i start jboss.and successfully it load
> > the sun's jdbc odbc driver.
> >
> >
> >
> > so i write a entity bean and in the jaws.xml i specify the table
> > name in the datasoure.when
> >
> > i try to deploy it.the jboss throw exceptions:
> >
> > EjbDataSource not bound.
> >
> >
> >
> > why? how can i do now??
> >
> > any one have some experience pls help me out.
> >
> >
> >
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


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



Re: [JBoss-user] HOW TO DISABLE ENTITY-BEAN CACHING?

2001-06-18 Thread Burkhard Vogel

Use 1.
- Original Message -
From: "Frank Villarreal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 15, 2001 4:52 PM
Subject: RE: [JBoss-user] HOW TO DISABLE ENTITY-BEAN CACHING?


> K.V. Vinay Menon [mailto:[EMAIL PROTECTED]] wrote :
> > For what its worth did you try changing the following section in
> > standardjboss.xml
> >
> > 
> > 50
> > 1000
> > 300
> > 600
> > 400
> >
> 60
> >
> 1
> > 0.75
> > 
> >
> > to set min/max-capacity to 0?
> >
> > Vinay
>
> Thanks Vinay, but I tried setting the min/max capacity to 0 and it
resulted
> in the following jboss startup exception...
>
> 
> [Container factory] org.jboss.ejb.DeploymentException: Can't import policy
> configuration, Cause:org.jboss.ejb.DeploymentException: Min cache capacity
> can't be <= 0
> [Container factory] at
>
org.jboss.ejb.plugins.AbstractInstanceCache.importXml(AbstractInstanceCache.
> java:311)
> [Container factory] at
>
org.jboss.ejb.ContainerFactory.createInstanceCache(ContainerFactory.java:762
> )
> [Container factory]
> 
>
> Any other ideas?
>
> - Frank
>
> ___
> 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] JBoss hosting

2001-06-18 Thread Emmanuel Charpentier


  Hello everybody

  I'm looking for server space, free or cheap, where I could install a demo of
  a project based on JBoss and PostgreSQL (could be tweaked to work with
  another db).

  The project is called VeniVidiVoti, you can find a description of it (static
  pages copied from a running VeniVidiVoti Library) at http://vvv.sf.net

  In a few words:
  VVV is the motor of a collaborative writing web site, based on three
  principles offering a mix of representative and participative democracies.
  I often describe it as «Direct Democracy», although it's slightly different
  in some respects (representation is indirect).
  With VVV, a community should be able to democratically write any sort of
  text: petition, book of laws, constitution, poem, novel, newspaper, weblog...
  from the bottom-up!

  I believe it could be revolutionary (I'm biased, ok :-), but there is no way
  I can convince a community to use it if they don't see what it offers
  beforehand.

  Any body can help me???

  Manu.

  -
  VVV is GPL...
 

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



RE: [JBoss-user] standalone J2EE java client

2001-06-18 Thread Kimpton,C (Chris)

Hi,

I am not sure to what facility you are referring - are you looking to run
the client in the same VM as the JBoss server?  In which case, you can do
this - but obviously only one client can do this, the other clients will
presumably want to talk to the same JBoss VM?  Or is it a single user kind
of app anyway?

I don't remember anything about the application-client.xml - perhaps someone
with experience of this can answer you.

JBoss does support ejb-refs that allow you to connect to server resources,
if that is what you are after.

HTH,
Chris

> -Original Message-
> From: Keith Kee [mailto:[EMAIL PROTECTED]]
> 
> Hi Chris,
>I also like to use the ejb-ref specified in the 
> application-client.xml,
> and the container security. The J2EE reference 
> implementation, weblogic and
> iplanet have this facility, so that the fat client can be run in an
> application container. I wonder if JBoss has such a thing as well.
> 
> Thanks,
> keith
> 


> >From: "Kimpton,C (Chris)" <[EMAIL PROTECTED]>
> >If by this, you mean a standalone application/VM that talks 
> to another VM
> >running JBoss, then yes, it does.  Such as a fat client GUI...
> >
> >You "just" need to have the jboss client jars in your standalone apps
> >classpath and have it configured to find your jndi server - which is
> >probably your jboss server machine.
> >


> 
> > -Original Message-
> > From: Keith Kee [mailto:[EMAIL PROTECTED]]
> >   I have been searching the mailing list archive and the=20
> > manual, but do not
> > seem to be able to find any mention about the support for=20
> > standalone J2EE
> > java client. Does JBoss support that?
> >=20


This electronic message (email) and any attachments to it are subject to copyright and 
are sent for the personal attention of the addressee. Although you may be the named 
recipient, it may become apparent that this email and its contents are not intended 
for you and an addressing error has been made. This email may include information that 
is legally privileged and exempt from disclosure. If you have received this email in 
error, please advise us immediately and delete this email and any attachments from 
your computer system.Rabobank International is the trading name of Coöperatieve 
Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands. 
Registered with the Registrar of Companies for England & Wales No. BR002630 and 
regulated by the SFA for the conduct of investment business in the UK.

The presence of this footnote also confirms that this email has been automatically 
checked by Rabobank International for the presence of computer viruses prior to it 
being sent, however, no guarantee is given or implied that this email is virus free 
upon delivery.

==


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



RE: [JBoss-user] HELP - jboss and interbase

2001-06-18 Thread RRokytskyy

Hi,

I've found the problem with your bean, but before some InteBase history.

InterBase uses the optimistic concurency control. To avoid locking on
_reads_, it uses very interesting approach: records are not updated
directly, rather they are versioned using the transaction id (maybe this is
not strictly true, but your transaction id is related to the version of the
record you see). So, when two transaction start, each of them see the most
relevant version of the record. 

For example, when transaction A starts, and then transaction B starts, they
see the same version of the record because no modification vere made since
transaction start (here we assume the default transaction isolation,
"read_commited"). 

Now user1 modifies the record in the transaction A. In order to achive the
serializability of the results, InterBase instead of placing the lock on the
record, just creates the version of the same record for the transaction A
and modifies it. 

Whithin the transaction A, user1 sees the modified version of the record.
However, user2 within the transaction B sees the *old* version of the
record. 

When user1 commits the transaction A, the *new* record version is saved into
the database, and on the subsequent select in the transaction B user 2 will
see the modification. 

If user2 modifies the same record in the transaction B, then we have the
_write_ conflict, that results in rollback for one of the transactions
(depends on the time of commit, i think).

So, how does it relates to your situation? 

You open the connection (and implicitly start the transaction) in the
AccountEJB.setEntityContext method, and return the connection to the pool in
the AccountEJB.unsetEntityContext method (implicitly performing the commit).
So, between the setEntityContext and unsetEntityContext invocations you do
have *the same* transaction. 

Then if you open some external tool (JDBCExplorer, IBConsole, etc.) and look
into the table, you do see the *old* version of the record (because your
commit was not performed). (However I wonder why you see that record at all,
but maybe this is something that I miss in the versioning).

I modified your code to obtain the connection before the statement execution
and to close the connection right after statement execution and everything
works fine. Also, con.commit() works too. 

I'm not sure if this is correct behaviour of the JBoss, because I would
expect that commit on connection happens when the normal commit is executed
on the bean. I'm using CMP, so I do not have problems with commit, because
JAWS performs commit for me. 

So you need to think on the commit/rollback issue in case of BMP. I'm not
guru in this topic, so ask somebody else.

Best regards,
Roman

P.S. I also made slight changes in your jboss.xml - I removed the
 tag, because there were the reference to the
"Standard CMP EntityBean", while you, probably, should use the "Standard BMP
EntityBean", however I was not sure about this and let JBoss choose the
right persistence manager itself.

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



[JBoss-user] In-browser Java applet client to jBoss?

2001-06-18 Thread Bryan Field-Elliot

The strategy of building an EJB client out of a Java applet which uses 
RMI to communicate directly with an EJB server is (IMHO) technically 
elegant, but not very popular. I am wondering  if people have tried it 
with jBoss with success and with stories to tell? This is in a 
Joe-Public-Internet-User scenario.

We don't need to rehash the standard "firewall issues" with RMI; I think 
those issues are pretty well established.

What I'm more concerned with are questions like:

1. What's the footprint of the client files needed? Is there a .Jar file 
within jBoss specifically meant for clients? Is it too big that the 
average public Internet user would get annoyed downloading it?

2. Does it function well on various Java-enabled browsers, such as 
different versions of MSIE, Netscape, Mozilla, etc?

3. What if the client's browser's JDK is 1.2, but my jBoss server's JDK 
is 1.3? Any issues there?

4. Is this just a bad idea in general, and should a rich-client applet 
be communicating via HTTP and a Servlet (and perhaps XML or SOAP), as 
opposed to RMI directly?

Opinions appreciated,

Bryan


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



RE: [JBoss-user] standalone J2EE java client

2001-06-18 Thread Keith Kee

Hi Chris,
   I also like to use the ejb-ref specified in the application-client.xml,
and the container security. The J2EE reference implementation, weblogic and
iplanet have this facility, so that the fat client can be run in an
application container. I wonder if JBoss has such a thing as well.

Thanks,
keith

>From: "Kimpton,C (Chris)" <[EMAIL PROTECTED]>
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: RE: [JBoss-user] standalone J2EE java client
>Date: Mon, 18 Jun 2001 15:27:36 +0100
>Reply-To: [EMAIL PROTECTED]
>
>Hi,
>
>If by this, you mean a standalone application/VM that talks to another VM
>running JBoss, then yes, it does.  Such as a fat client GUI...
>
>You "just" need to have the jboss client jars in your standalone apps
>classpath and have it configured to find your jndi server - which is
>probably your jboss server machine.
>
>HTH,
>Chris

> -Original Message-
> From: Keith Kee [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 18 June 2001 15:06
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] standalone J2EE java client
>=20
>=20
> Hi:
>   I have been searching the mailing list archive and the=20
> manual, but do not
> seem to be able to find any mention about the support for=20
> standalone J2EE
> java client. Does JBoss support that?
>=20
> Thanks in advance,
> keith
>=20
>=20
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>=20


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



RE: [JBoss-user] JMS and MessageDrivenBean

2001-06-18 Thread Griffin, Michael

This makes sense to me, but I can't seem to get it working.  

How do I use the JMS Connector?  

I created a resource reference in ejb-jar.xml, and linked the reference to
QueueConnectionFactory in jboss.xml. The bean obtains the
QueueConnectionFactory using java:comp/env/jms/Qcf.  The send on the replyTo
destination is still not transactional.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 17, 2001 2:04 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] JMS and MessageDrivenBean


On 15 Jun, Griffin, Michael wrote:
> JBoss-User,
> 
> I have created a MessageDrivenBean that serves as the responder in a
request
> / reply scenario.  I get the reply Destination from the JMSReplyTo
property
> on the message.  The handling of the onMessage code is simple.
> 
> I lookup the QueueConnectionFactory, create a QueueConnection, create a
> QueueSession (with true, Session.AUTO_ACKNOWLEDGE), create a QueueSender
and
> ultimately send the message.
> 
> The MessageDrivenBean is deployed using Container managed transaction,
with
> all methods (*) marked as Required.  The messages sent from the
> MessageDrivenBean are not delivered to the queue until I explicitly call
> commit on the QueueSession.  It is my understanding (of the EJB 2.0 Spec)
> that when a Container managed transaction is active, any use of a JMS
> Session will be part of the containers transaction.
> 
> Does anyone have any experience to share concerning this issue?

If you are using jboss 2.2.x or are using the developers version, but do
not utilize the JMS connector, then your JMS sessions will NOT be part
of any transaction.

Looking up a QueueConnectionFactory through JNDI will only (ever) give
you a normal (non J2EE) JMS session.

//Peter
> 
> Regards,
> Michael
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

-- 

Peter Antman Technology in Media, Box 34105 100 26 Stockholm
Systems ArchitectWWW: http://www.tim.se
Email: [EMAIL PROTECTED]WWW: http://www.backsource.org
Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942 



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

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



Re: [JBoss-user] Updated JBoss/Jetty bundle

2001-06-18 Thread Daren R. Sefcik

Humm..yeah..not sure why but Netscape seemed to have a problem
overwriting the original file.
I deleted the original and then re-downloaded..seems fine now.

thanks,
Daren


On Fri, 15 Jun 2001, Scott M Stark wrote:

> Don't know what is going on. I just downloaded it and retried it on my RedHat7.0
> box and it comes up fine. The old files are still there so are you sure you grabbed
> JBoss-2.2.2_Jetty-3.1.RC5-3.tgz :
> bash-2.04$ cksum JBoss-2.2.2_Jetty-3.1.RC5-3.tgz
> 132996107 10168751 JBoss-2.2.2_Jetty-3.1.RC5-3.tgz


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



Re: [JBoss-user] The sample Interest bean can't be depoyed After some changes to jboss.jcml

2001-06-18 Thread danch (Dan Christopherson)

xiaohong wrote:

> Hello
> 
> I'm new user of JBoss, here is my problem, can anyone help me out? thanks.
> 
> 
> Buf after I add the following lines to $JBOSS_HOME/etc/default/jboss.jcml to
> add data sources to mySQL.
> 
> 
> 
>   
>   
>name="DefaultDomain:service=JdbcProvider">
> org.gjt.mm.mysql.Driver
>   


I assume you literally added this? If so you should take it out
and simply add ",org.gjt.mm.mysql.Driver" to the original
JdbcProvider section in jboss.xml. What you're doing here is
your overriding the original and now the JdbcProvider isn't
loading the InstantDB and HyperSQL drivers.


> 
>name="DefaultDomain:service=XADataSource,name=mySQLDB">
>   name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
> l
>  mySQLDS
>  jdbc:mysql://localhost/test
>  root
>  
>   
> 

> [InstantDB] Starting
> [InstantDB] XA Connection pool InstantDB bound to java:/InstantDB

It's hanging here trying to connect to InstantDB - it probably
can't find an appropriate driver for the URL.

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



[JBoss-user] jetty vs tomcat

2001-06-18 Thread Sky Yin

hi :^)
I am a new comer to JBoss. I notice that JBoss releases with alternative two 
servlet/jsp engine:
jetty and tomcat. Can anyone make a comparation between them? How can I choose from?

regards


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



Re: [JBoss-user] Manual suggestions

2001-06-18 Thread Allen fogleson

there is a servlet... helloServlet mapped to /hello

Al

- Original Message -
From: Saint-Martin Cecile <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 10:19 AM
Subject: RE: [JBoss-user] Manual suggestions


I read your mail after sending mine, so sorry.
Your example is interesting, it will be perfect if there were a servlet :)

SAINT-MARTIN Cecile
[EMAIL PROTECTED]

> -Message d'origine-
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de Allen
> fogleson
> Envoyé : lundi 18 juin 2001 15:29
> À : [EMAIL PROTECTED]
> Objet : Re: [JBoss-user] Manual suggestions
>
>
> hmmm when you say a full app do you mean with security? I wrote
> up a simple
> ear app and posted it here. it has servlet, jsp and a session
> bean. I could
> expand on that (And really the write up was rather quick so not 100% great
> docs :)
>
> Al


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


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



RE: [JBoss-user] standalone J2EE java client

2001-06-18 Thread Tahir Awan

sure, jboss does support standalone java clients.
Below is a sample batch file I normally use to run my test client. (I have
jboss.properties file in the same folder as this batch file with naming
properties setup).

java -classpath .;
   c:\jboss-2.2.2_tomcat-3.2.2\jboss\client\jboss-client.jar;
   c:\jboss-2.2.2_tomcat-3.2.2\jboss\client\jbosssx-client.jar;
   c:\jboss-2.2.2_tomcat-3.2.2\jboss\client\jnp-client.jar;
   c:\jboss-2.2.2_tomcat-3.2.2\jboss\lib\ext\ejb.jar 
loginbean.test.TestClient testuser testpassword


Tahir

> -Original Message-
> From: Keith Kee [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 18, 2001 10:06 AM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] standalone J2EE java client
> 
> 
> Hi:
>   I have been searching the mailing list archive and the 
> manual, but do not
> seem to be able to find any mention about the support for 
> standalone J2EE
> java client. Does JBoss support that?
> 
> Thanks in advance,
> keith
> 
> 
> ___
> 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



  1   2   >