Re: [JBoss-user] Obtaining a transaction from outside JBoss in another VM Plan

2001-06-17 Thread Phan Anh Tran

Surprise...in the J2EE-1.3 PFD spec, section 4.2.5, it is stated that the
J2EE Product Provider is not required to support transaction management for
application clients.  However, transaction management needs to be provided
for web components.

This is strange, if a web componnent (a JSP or a servlet) runs in a separate
VM, the web component would look pretty much like an application client, so
one would think that if web components are supported, then application
clients should be supported as well...the spec does not seem
self-consistent.

Anh

- Original Message -
From: "Allen fogleson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 17, 2001 7:09 AM
Subject: Re: [JBoss-user] Obtaining a transaction from outside JBoss in
another VM Plan


> Actually I looked it up again, in the EJB spec it says only session beans
> (with bmt) however the J2EE spec says it should be available to servlets
and
> JSP pages. So I guess the question of when will it be available outside of
> Session EJB is valid :)
>
> - Original Message -
> From: Phan Anh Tran <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, June 17, 2001 3:30 AM
> Subject: Re: [JBoss-user] Obtaining a transaction from outside JBoss in
> another VM Plan
>
>
> > Are you talking about the JTS/JTA or the EJB specification?  Thanks.
> >
> > Anh
> >
> > - Original Message -
> > From: "Allen fogleson" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Saturday, June 16, 2001 11:25 PM
> > Subject: Re: [JBoss-user] Obtaining a transaction from outside JBoss in
> > another VM Plan
> >
> >
> > > Actually from a specification point the only thing required to support
> > > userTransaction is the session EJB. container providers --may-- chose
to
> > > allow access to the Usertransaction object outside of a session EJB
but
> it
> > > is not transportable accross vendors. It would seem that even the
> > > specification would want you to keep that logic in the Session EJB,
and
> > not
> > > move it from that tier.
> > > That would in general cover the why :)
> > >
> > > Al
> > >
> > > - Original Message -
> > > From: Phan Anh Tran <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Sunday, June 17, 2001 1:49 AM
> > > Subject: Re: [JBoss-user] Obtaining a transaction from outside JBoss
in
> > > another VM Plan
> > >
> > >
> > > > And the moment you put business logic in something else but EJB, you
> > need
> > > to
> > > > control transactions which takes us back to my original question to
> Marc
> > > > Fleury.  When does JBOSS plan to support the use of UserTransaction
> from
> > a
> > > > VM that is not running JBOSS?  Marc seems to discourage this usage
in
> > one
> > > > reply, so my second question is why?   Thanks.
> > > >
> > > > Anh
> > > >
> > > > - Original Message -
> > > > From: "Allen fogleson" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Saturday, June 16, 2001 10:25 PM
> > > > Subject: Re: [JBoss-user] Obtaining a transaction from outside JBoss
> in
> > > > another VM Plan
> > > >
> > > >
> > > > > well not necessarily just EJB... although i would put most of it
> > there.
> > > > > probably 99% of it would be in session EJB. I would use limited
> > servlets
> > > > for
> > > > > business logic. mostly i would do
> > > > >
> > > > > JSP -- Servlet --- EJB
> > > > > views  controllers  model/business logic
> > > > >
> > > > > Al
> > > > >
> > > > > - Original Message -
> > > > > From: Phan Anh Tran <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Sunday, June 17, 2001 12:53 AM
> > > > > Subject: Re: [JBoss-user] Obtaining a transaction from outside
JBoss
> > in
> > > > > another VM Plan
> > > > >
> > > > >
> > > > > > Basically, you are telling me to move all business logic from
APP
> to
> > > an
> > > > > EJB.
> > > > > > I just don't believe it is always desirable to keep all business
> > logic
> > > > > > within EJBs.  I don't think a business layer necessarily has to
> > > consist
> > > > of
> > > > > > EJBs alone.
> > > > > >
> > > > > > Anh
> > > > > >
> > > > > > - Original Message -
> > > > > > From: "David Jencks" <[EMAIL PROTECTED]>
> > > > > > To: <[EMAIL PROTECTED]>
> > > > > > Sent: Saturday, June 16, 2001 8:52 PM
> > > > > > Subject: Re: [JBoss-user] Obtaining a transaction from outside
> JBoss
> > > in
> > > > > > another VM Plan
> > > > > >
> > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > Ok, this is a slightly different question than the one I
thought
> > you
> > > > > were
> > > > > > > asking, and as you say, 2pc is not relevant.  Here are my
> thoughts
> > > on
> > > > > your
> > > > > > > proposed design:
> > > > > > >
> > > > > > > 1. I assume that you do not want to hold transactions open
while
> > > > waiting
> > > > > > > for human input.  If you need to for some reason, you are apt
to
> > be
> > > in
> > > > > > > trouble under high load as all those open transacti

Re: [JBoss-user] manual and business

2001-06-17 Thread Ivan Novick

last i checked borland and bea charge thousands of dollars for developer
licenses, they give you a 30 day free trial , but charge $ for developer
license.

Ivan
- Original Message -
From: "danch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 15, 2001 8:31 PM
Subject: Re: [JBoss-user] manual and business


> Digital Strider wrote:
>
> > This is an interesting experiment in the evolution of open-source and
the
> > kinds of future bricks and mortar that can lay the foundations for
tomorrows
> > future open-source evolutions.
> >
> > Most commercial software companies offer developer free implementations
in
> > the hopes of winning product loyalty which eventually leads to a revenue
> > stream.  Documentation is supplied in masse to assure the best odds for
your
> > assimilation.
>
> Check out BEA's pricing on developer licenses. Or Borlands (last time I
> checked - I think they're more likely to give free developer licenses
> than BEA)
>
>
> >
> > J-Boss appears to be twisting this, to a degree as it seeks to find a
middle
> > ground for "feeding the family" and living within the bounds of
> > "open-source" expectations.  Basically, the box is free.  The rest is a
> > wildcard.  But it appears that the "wisdom" of what makes J-Boss, boss
will
> > come at a price.
>
> Wisdom always comes at a price. Generally the price involves scars and
> interesting stories that you can laugh at later. With money, the best
> you can really do is rent a wise-man and let him warn you about those
> nasty head-bumping spots.
>
> -danch
>
>
> ___
> 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] EJBDoclet examples?

2001-06-17 Thread Pelle Poluha

Hello!

I'm trying to learn how to use EJBDoclet but didn't find 
any complete examples on EJBDoclet's site.

Anybody using it? Any good? How would a build.xml file look 
like? And how is the code commented?

Any help would be appreciated.

Regards,
Pelle
Poluha



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



[JBoss-user] CMP for NULL columns

2001-06-17 Thread MDemian

Hi all,

I have question, what settings CMP for access to database column with NULL values?

Miro


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



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

2001-06-17 Thread danch

This is very dependent on the architecture of your application. There 
are a lot of variables that can effect the ability of any application 
server to scale. You really should do some prototyping of the 
architecture you intend to build so that you know how _your_ design 
decisions effect performance.

-danch

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



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

2001-06-17 Thread danch

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=XADataSource,name=JetEngineDB">
>   
>name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl
>  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



Re: [JBoss-user] :-( Interbase transaction problems

2001-06-17 Thread David Jencks

Hi,
I looked at the ic2 code and think there may be a problem with setting
blobs on prepared statement input parameters, however all my tests so far
work fine.  If you can identify the statements used I would like to see
them, perhaps we can find out if there is an interclient bug. (I think this
may be an interclient bug because interclient is a jdbc 1 driver,
everything is always in a transaction)

There is a debug flag for jaws, but I do not remember how to set it.  You
can probably find it in documentation or by searching the archives.

david jencks

On 2001.06.17 12:07:44 -0400 Lewis Henderson wrote:
> Hi all,
> 
> I have an application working well under MSSQL7 but ported to InterBase 5
> I
> get the following...
> 
> I am calling an EJB method on a Stateful Session Bean with Tx Attr =
> 'Required'. It calls a findByPrimaryKey(key) on a BMP Entity Bean. It
> looks
> as though the ejbStore() is being called outside a Tx!!??
> 
> Is there any way of logging the 'EXACT' sql statements that are being
> called
> here to find out where the problem is?
> 
> Are does InterBase have any 'special needs' ?
> 
> Thx
> 
> Lewis
> 
> interbase.interclient.SQLException: [interclient][interbase] invalid
> transaction handle (expecting explicit transaction start)
> 
> at interbase.interclient.RecvMessage.createSQLException(Unknown
> Source)
> at interbase.interclient.RecvMessage.makeSQLException(Unknown
> Source)
> at interbase.interclient.RecvMessage._$m21(Unknown Source)
> at interbase.interclient.BlobInput.(Unknown Source)
> at interbase.interclient.JDBCNet.setBlobString(Unknown Source)
> at interbase.interclient.PreparedStatement.setString(Unknown
> Source)
> at
> org.opentools.minerva.jdbc.PreparedStatementInPool.setString(PreparedStateme
> ntInPool.java:182)
> at com.cf.rt.work.WorkitemBean._$293730(WorkitemBean.java:507)
> at com.cf.rt.work.WorkitemBean.ejbStore(WorkitemBean.java:162)
> at java.lang.reflect.Method.invoke(Native Method)
> at
> org.jboss.ejb.plugins.BMPPersistenceManager.storeEntity(BMPPersistenceManage
> r.java:331)
> at
> org.jboss.ejb.plugins.EntitySynchronizationInterceptor$InstanceSynchronizati
> on.beforeCompletion(EntitySynchronizationInterceptor.java:342)
> at org.jboss.tm.TxCapsule.doBeforeCompletion(TxCapsule.java:1228)
> at org.jboss.tm.TxCapsule.commit(TxCapsule.java:322)
> at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:76)
> at
> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
> java:418)
> at
> org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
> at
> org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
> at
> org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:
> 326)
> at
> org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
> nvoker.java:482)
> at
> org.jboss.ejb.plugins.jrmp.interfaces.StatefulSessionProxy.invoke(StatefulSe
> ssionProxy.java:150)
> at $Proxy17.readWorkitem(Unknown Source)
> at
> com.cf.rt.client.WfoWorkflowHelper.readWorkitem(WfoWorkflowHelper.java:127)
> at
> com.cf.rt.struts.WorkflowAquireAction.perform(WorkflowAquireAction.java:84)
> at
> org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja
> va:1726)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1536)
> at
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> at org.apache.tomcat.core.Handler.service(Handler.java:287)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
> 7)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:213)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> at java.lang.Thread.run(Thread.java:484)
> 
> 
> ___
> 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] Opta2000/Minerva pool combination, hang at startup

2001-06-17 Thread Vinay Menon

Believe that is because it actually tests the pool by reserving and
releasing a connection.

Vinay

"Laurens M. Fridael" wrote:
> 
> Hi,
> 
> I solved the problem. I must make sure SQL Server is running (I have it
> running on my development machine). If SQL Server is not running the Minerva
> pool driver hangs during startup.
> 
> Thanks for reading
> -Laurens
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Laurens M.
> Fridael
> Sent: zondag 17 juni 2001 19:01
> To: Jboss-User
> Subject: [JBoss-user] Opta2000/Minerva pool combination, hang at startup
> 
> Hi,
> 
> I'm having trouble with the Opta2000 (version 2.05) driver in conjunction
> with the Minerva pool. JBoss *sometimes* hangs at startup on my Windows98
> development machine. Other times it runs fine. The logs on the console say
> this:
> 
> [SQLServer] Starting
> [SQLServer] XA Connection pool SQLServer bound to java:/SQLServer
> 
> and then there is no message of SQLServer having been "started". There are
> no further messages about the applications being deployed and services being
> started and so forth.
> 
> The SQLServer pool is configured this way in jboss.jcml:
> 
>name="DefaultDomain:service=XADataSource,name=SQLServer">
> SQLServer
>  name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
> l
> 
>  name="URL">jdbc:inetdae:127.0.0.1?database=musicstore
> 120
> sa
> 1
> 10
> 
> false
> false
> false
> true
> 12
> 180
> false
> false
> 1.0
>   
> 
> I'm using the Minerva pool with the standard Opta2000 driver because I
> couldn't get a Opta2000 DataSource implementation to work. The version 2.05
> drivers do not support transactions. When I try to use a CMP bean the logs
> in the console explicitly state that the com.inet.tds.XDataSource does not
> support transactions.
> 
> Anyway, sometimes it works fine and other times it hangs. The configuration
> files are identical. I know Windows98 is probably not a good choice for
> deployment but it should work fine for development.
> 
> Thanks
> -Laurens
> 
> ___
> 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] Opta2000/Minerva pool combination, hang at startup

2001-06-17 Thread Laurens M. Fridael

Hi,


I solved the problem. I must make sure SQL Server is running (I have it
running on my development machine). If SQL Server is not running the Minerva
pool driver hangs during startup.


Thanks for reading
-Laurens

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Laurens M.
Fridael
Sent: zondag 17 juni 2001 19:01
To: Jboss-User
Subject: [JBoss-user] Opta2000/Minerva pool combination, hang at startup


Hi,


I'm having trouble with the Opta2000 (version 2.05) driver in conjunction
with the Minerva pool. JBoss *sometimes* hangs at startup on my Windows98
development machine. Other times it runs fine. The logs on the console say
this:

[SQLServer] Starting
[SQLServer] XA Connection pool SQLServer bound to java:/SQLServer

and then there is no message of SQLServer having been "started". There are
no further messages about the applications being deployed and services being
started and so forth.

The SQLServer pool is configured this way in jboss.jcml:

  
SQLServer
org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l

jdbc:inetdae:127.0.0.1?database=musicstore
120
sa
1
10

false
false
false
true
12
180
false
false
1.0
  

I'm using the Minerva pool with the standard Opta2000 driver because I
couldn't get a Opta2000 DataSource implementation to work. The version 2.05
drivers do not support transactions. When I try to use a CMP bean the logs
in the console explicitly state that the com.inet.tds.XDataSource does not
support transactions.

Anyway, sometimes it works fine and other times it hangs. The configuration
files are identical. I know Windows98 is probably not a good choice for
deployment but it should work fine for development.


Thanks
-Laurens


___
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] Tips for newbie: getting start with tomcat example in [jBoss+tomcat]

2001-06-17 Thread FengShuo Yu

Hi,

The following show you how to run the examples that come with tomcat under
[jBoss+tomcat]. It probably has been answered somewhere, but I try to make
it as simple as possible. enjoy!


How to run example that comes with tomcat using [jBoss + tomcat]
=
Assume that  is your installation home.

1. make sure that your jBoss starts without any question.
-
Start it using run_with_tomcat.bat under
\jboss-2.0-FINAL\bin\

You should see the following line appears on your screen
:
[Default] jBoss 2.0 FINAL Started

2. Copy .war file.
-

Go to \tomcat-3.2-b7\webapps directory
You should find a file called examples.war. Copy this file to
the deploy directory which is \jboss-2.0-FINAL\deploy
on my machine. After done copying, you should see some output
in the window console.

3. Testing.
---
Now, those examples are deployed under the environment and
you can use the following line to go to the menu page of those examples.

http://localhost:8080/examples/jsp/index.html

4. Question.
(1) If you see the following excepiton been thrown,
:
javax.servlet.ServletException: sun/tools/javac/Main
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
:
Fix: add /lib/tools.jar to your classpath and restart
everything.

(2) If you are curious where are those generated java source file for jsp
file,
they are in the following directory:
\tomcat-3.2-b7\work\localhost_8080%2Fexamples


Cheers,
FengShuo


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



RE: [JBoss-user] Tip for Newbies

2001-06-17 Thread FengShuo Yu

Hi,

That is good point to share as I am also a newbie too. Thanks. By the way,
when you say modifying, it would be more helpful that you can give us some
examples as to what to modify and for what thing. I have asked that with
jBoss + tomcat, how to run the example that comes with tomcat, but it seems
no one care to give a hint or point us which doc./place to look at. Anyway,
thanks for sharing your knowledge.

Regards,

Feng


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Anjan Rao
Sent: Friday, June 15, 2001 7:44 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Tip for Newbies


Hi,
This tip is if you have downloaded JBoss with Tomcat.

Please modify properties files in \conf\default when ur running
JBoss WITHOUT tomcat (click run.bat) and modify the properties files in
\conf\tomcat when running JBoss WITH tomcat (click
run_with_tomcat.bat). I did not realize this and spent quite some time
figuring this out. Please make a note of this and hopefully this saves some
time for some of u ppl out there.

Maybe i am a dumb head, but no documentation points to these subtle stuff.
It would be helpful if some readme pointed to these things.

Cheers,
Anjan


___
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] undeploy

2001-06-17 Thread Allen fogleson

you can just delete the ear from the deploy directory and it will be
undeployed automatically

Al

- Original Message -
From: Richard Bottoms <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 17, 2001 1:10 PM
Subject: [JBoss-user] undeploy


> So the next obvious question. How do you undeploy the Hello package?
>
>
> Thanks,
> r.b.
>
>
>
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


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



Re: [JBoss-user] JMS and MessageDrivenBean

2001-06-17 Thread pra

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] undeploy

2001-06-17 Thread Richard Bottoms

So the next obvious question. How do you undeploy the Hello package?


Thanks,
r.b.





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



[JBoss-user] Opta2000/Minerva pool combination, hang at startup

2001-06-17 Thread Laurens M. Fridael

Hi,


I'm having trouble with the Opta2000 (version 2.05) driver in conjunction
with the Minerva pool. JBoss *sometimes* hangs at startup on my Windows98
development machine. Other times it runs fine. The logs on the console say
this:

[SQLServer] Starting
[SQLServer] XA Connection pool SQLServer bound to java:/SQLServer

and then there is no message of SQLServer having been "started". There are
no further messages about the applications being deployed and services being
started and so forth.

The SQLServer pool is configured this way in jboss.jcml:

  
SQLServer
org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l

jdbc:inetdae:127.0.0.1?database=musicstore
120
sa
1
10

false
false
false
true
12
180
false
false
1.0
  

I'm using the Minerva pool with the standard Opta2000 driver because I
couldn't get a Opta2000 DataSource implementation to work. The version 2.05
drivers do not support transactions. When I try to use a CMP bean the logs
in the console explicitly state that the com.inet.tds.XDataSource does not
support transactions.

Anyway, sometimes it works fine and other times it hangs. The configuration
files are identical. I know Windows98 is probably not a good choice for
deployment but it should work fine for development.


Thanks
-Laurens


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



[JBoss-user] :-( Interbase transaction problems

2001-06-17 Thread Lewis Henderson

Hi all,

I have an application working well under MSSQL7 but ported to InterBase 5 I
get the following...

I am calling an EJB method on a Stateful Session Bean with Tx Attr =
'Required'. It calls a findByPrimaryKey(key) on a BMP Entity Bean. It looks
as though the ejbStore() is being called outside a Tx!!??

Is there any way of logging the 'EXACT' sql statements that are being called
here to find out where the problem is?

Are does InterBase have any 'special needs' ?

Thx

Lewis

interbase.interclient.SQLException: [interclient][interbase] invalid
transaction handle (expecting explicit transaction start)

at interbase.interclient.RecvMessage.createSQLException(Unknown
Source)
at interbase.interclient.RecvMessage.makeSQLException(Unknown
Source)
at interbase.interclient.RecvMessage._$m21(Unknown Source)
at interbase.interclient.BlobInput.(Unknown Source)
at interbase.interclient.JDBCNet.setBlobString(Unknown Source)
at interbase.interclient.PreparedStatement.setString(Unknown Source)
at
org.opentools.minerva.jdbc.PreparedStatementInPool.setString(PreparedStateme
ntInPool.java:182)
at com.cf.rt.work.WorkitemBean._$293730(WorkitemBean.java:507)
at com.cf.rt.work.WorkitemBean.ejbStore(WorkitemBean.java:162)
at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.ejb.plugins.BMPPersistenceManager.storeEntity(BMPPersistenceManage
r.java:331)
at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor$InstanceSynchronizati
on.beforeCompletion(EntitySynchronizationInterceptor.java:342)
at org.jboss.tm.TxCapsule.doBeforeCompletion(TxCapsule.java:1228)
at org.jboss.tm.TxCapsule.commit(TxCapsule.java:322)
at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:76)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:418)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
at
org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:
326)
at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
nvoker.java:482)
at
org.jboss.ejb.plugins.jrmp.interfaces.StatefulSessionProxy.invoke(StatefulSe
ssionProxy.java:150)
at $Proxy17.readWorkitem(Unknown Source)
at
com.cf.rt.client.WfoWorkflowHelper.readWorkitem(WfoWorkflowHelper.java:127)
at
com.cf.rt.struts.WorkflowAquireAction.perform(WorkflowAquireAction.java:84)
at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja
va:1726)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1536)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)


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



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

2001-06-17 Thread Timo Kauppinen


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 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
[EMA

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

2001-06-17 Thread Lewis Henderson



You should be looking up 
"java:comp/env/InterBaseDS" according to the jboss.jcml you have 
supplied!

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of 
  stillSent: 17 June 2001 15:08To: 
  jboss-userSubject: [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.hsql.jdbcDriver  

 
and also i add lines to add a data source in jboss.jcml
 
 org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl 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.
 
 

  

  
  


_IncrediMail - Email has finally 
  evolved - Click 
  Here 


Re: [JBoss-user] Obtaining a transaction from outside JBoss in another VM Plan

2001-06-17 Thread Allen fogleson

Actually I looked it up again, in the EJB spec it says only session beans
(with bmt) however the J2EE spec says it should be available to servlets and
JSP pages. So I guess the question of when will it be available outside of
Session EJB is valid :)

- Original Message -
From: Phan Anh Tran <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 17, 2001 3:30 AM
Subject: Re: [JBoss-user] Obtaining a transaction from outside JBoss in
another VM Plan


> Are you talking about the JTS/JTA or the EJB specification?  Thanks.
>
> Anh
>
> - Original Message -
> From: "Allen fogleson" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, June 16, 2001 11:25 PM
> Subject: Re: [JBoss-user] Obtaining a transaction from outside JBoss in
> another VM Plan
>
>
> > Actually from a specification point the only thing required to support
> > userTransaction is the session EJB. container providers --may-- chose to
> > allow access to the Usertransaction object outside of a session EJB but
it
> > is not transportable accross vendors. It would seem that even the
> > specification would want you to keep that logic in the Session EJB, and
> not
> > move it from that tier.
> > That would in general cover the why :)
> >
> > Al
> >
> > - Original Message -
> > From: Phan Anh Tran <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, June 17, 2001 1:49 AM
> > Subject: Re: [JBoss-user] Obtaining a transaction from outside JBoss in
> > another VM Plan
> >
> >
> > > And the moment you put business logic in something else but EJB, you
> need
> > to
> > > control transactions which takes us back to my original question to
Marc
> > > Fleury.  When does JBOSS plan to support the use of UserTransaction
from
> a
> > > VM that is not running JBOSS?  Marc seems to discourage this usage in
> one
> > > reply, so my second question is why?   Thanks.
> > >
> > > Anh
> > >
> > > - Original Message -
> > > From: "Allen fogleson" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Saturday, June 16, 2001 10:25 PM
> > > Subject: Re: [JBoss-user] Obtaining a transaction from outside JBoss
in
> > > another VM Plan
> > >
> > >
> > > > well not necessarily just EJB... although i would put most of it
> there.
> > > > probably 99% of it would be in session EJB. I would use limited
> servlets
> > > for
> > > > business logic. mostly i would do
> > > >
> > > > JSP -- Servlet --- EJB
> > > > views  controllers  model/business logic
> > > >
> > > > Al
> > > >
> > > > - Original Message -
> > > > From: Phan Anh Tran <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Sunday, June 17, 2001 12:53 AM
> > > > Subject: Re: [JBoss-user] Obtaining a transaction from outside JBoss
> in
> > > > another VM Plan
> > > >
> > > >
> > > > > Basically, you are telling me to move all business logic from APP
to
> > an
> > > > EJB.
> > > > > I just don't believe it is always desirable to keep all business
> logic
> > > > > within EJBs.  I don't think a business layer necessarily has to
> > consist
> > > of
> > > > > EJBs alone.
> > > > >
> > > > > Anh
> > > > >
> > > > > - Original Message -
> > > > > From: "David Jencks" <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Saturday, June 16, 2001 8:52 PM
> > > > > Subject: Re: [JBoss-user] Obtaining a transaction from outside
JBoss
> > in
> > > > > another VM Plan
> > > > >
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > Ok, this is a slightly different question than the one I thought
> you
> > > > were
> > > > > > asking, and as you say, 2pc is not relevant.  Here are my
thoughts
> > on
> > > > your
> > > > > > proposed design:
> > > > > >
> > > > > > 1. I assume that you do not want to hold transactions open while
> > > waiting
> > > > > > for human input.  If you need to for some reason, you are apt to
> be
> > in
> > > > > > trouble under high load as all those open transactions consume
> > server
> > > > > > resources for unknown and long periods of time.
> > > > > >
> > > > > > 2.  I like to think of the architecture of applications like
this,
> > in
> > > 5
> > > > > > layers.
> > > > > >
> > > > > > presentation layer  (what do I see)--- jsp
> > > > > >
> > > > > > presentation manager (workflow control, what do I see
> > > next) 
> > > > > > servlet
> > > > > >
> > > > > > service subsystem (business logic, data
> > > > manipulation) -session
> > > > > > ejb
> > > > > >
> > > > > > model subsystem (data model, system
> state) ---entity
> > > ejb
> > > > > >
> > > > > > persistence subsystem -(jdbc, db)
> > > > > >
> > > > > > I find this really clears up most of my questions about where to
> put
> > > > code,
> > > > > > and makes changes much simpler and more local.  In this
framework,
> I
> > > > > > haven't found a case where knowledge of transactions need to get
> > above
> > > > the
> > > > > > business logic layer.  I wo

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

2001-06-17 Thread still








  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.hsql.jdbcDriver  
  
   
  and also i add lines to add a data source in jboss.jcml
   
   org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl 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.
   
   





	
	
	
	
	
	
	




_IncrediMail - Email has finally 
evolved - Click 
Here



Re: [JBoss-user] very very new bee

2001-06-17 Thread Roman Kunert

Hi Jean,

if you downloaded the jboss-tomcat package you don't have to worry about
all these variables, simply unpack into a folder (doesn't matter what
name that folder has) and run the run_with_tomcat.bat/sh script in the
bin folder of jboss

make sure that 'java -version' run from the command line prints out the
correct java version needed to run jboss (I recommend JDK1.3, do not use
JDK1.4 beta, as it caused several crashes when running jboss)

if you have more than one JDK/JRE installed on your system, you either
should set up your PATH variable including the {JDK_PATH/JRE_PATH}/bin
directory you want to work with or set up JAVA_HOME pointing to
{JDK_PATH/JRE_PATH} and modify run.bat/sh in the jboss/bin directory so
that the last line starts with:

$JAVA_HOME/bin/java  (for UNIX/LINUX) or
%JAVA_HOME%\bin\java ... (for WINDOWS)

another way is to link the 'java' command directly to your JDK:
if you installed the JDK1.3 under c:\jdk1.3 then modify the run.bat and
write
c:\jdk1.3\bin\java ...

if run_with_tomcat.bat/sh starts you should see a lot of output on your
screen, ending with something like
"[Default] JBoss 2.2.2 Started in 0m:11s"

if you get to see this your JBOSS server is running

open your browser and point it to 'http://localhost:8080/jboss'.

if you don't see the jboss test page something went wrong and you should
browse through the output JBOSS has generated on your screen for error
messages.

hope this will work for you.

p.s.: to set up environement variables under windows simply use the
windows-help and look for environement, it will give you all the
information you need, under linux/unix there are several ways how to set
up those variables and you should buy a book on this issue or ask a
friend who knows more about this...

Ro.

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



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

2001-06-17 Thread Vinay Menon

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



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

2001-06-17 Thread Lewis Henderson

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 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] :-) EJB2.0 RunAs

2001-06-17 Thread Lewis Henderson

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?)

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?


Regards

Lewis

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Scott M
Stark
Sent: 15 June 2001 16:18
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] :-) EJB2.0 RunAs


What I implemented is the EJB2.0 run-as feature. The servlet 2.3 run-as
feature will be next, but I'm not sure it handles what your looking for.

> I have WAR clients that need to access EJB's via the WAR app and not
directly.
This case is an unauthenticated client accessinga servlet that in turn
accesses
an EJB. The servlet 2.3 run-as feature will allow you to specify a role to
use
for security purposes. The J2EE 1.3 spec also mentions supporting this in
different ways. See below.

> I also need to have a 'loaded-on-startup' servlet (A scheduler in a WAR)
to
> access EJB's without a 'real' user logging on. However if a 'real' user
does
> access the servlet, they need authenticating in the normal manner.
This is not handled by the servlet 2.3 run-as. You cannot conditionally fix
the
identity based on whether the caller to the servlet is authenticated. You
would have to deploy an unsecured version that has the fixed run-as identity
and a secured version that passes the caller identity. If your talking about
accessing
the EJB from a thread created by the servlet, then you have to set the
security
identity yourself as though your were a Java client.


The only docs for run-as are the servlet 2.3 spec. These are the two places
it
is mentions in the 2.3pfd2 spec:


SRV.12.7 Propagation of Security Identity in EJB Calls.
A security identity, or principal, must always be provided for use in a call
to an
enterprise bean. The default mode in calls to enterprise beans from web
applications
is for the security identity of a web user to be propagated to the EJB
container.
In other scenarios, web containers are required to allow web users that are
not
known to the web container or to the EJB container to make calls:
. Web containers are required to support access to web resources by clients
that
have not authenticated themselves to the container. This is the common mode
of access to web resources on the Internet.
. Application code may be the sole processor of signon and customization of
data based on caller identity.

In these scenarios, a web application deployment descriptor may specify a
run-as element. When it is specified, the container must propagate the
security
identity of the caller to the EJB layer in terms of the security role name
defined in
the run-as element. The security role name must one of the security role
names
defined for the web application.
For web containers running as part of a the J2EE platform, the use of run-as
elements is supported both for calls to EJBs within the same J2EE
application,
and for calls to EJBs deployed in other J2EE applications.






Now, the J2EE 1.3pfd3 spec talks about providing support for unauthenticated
users.
I am going to add support at the war level for specifying the
unauthenticated user
run-as role using a jboss-web.xml application level element.


J2EE.3.4.3 Unauthenticated Users
Web containers are required to support access to web resources by clients
that have
not authenticated themselves to the container. This is the common mode of
access to
web resources on the Internet.

A web container reports that no user has been authenticated by returning
null
from the HttpServletRequest method getUserPrincipal. This is different than
the corresponding result for EJB containers. The EJB specification requires
that
the EJBContext method getCallerPrincipal always return a valid Principal
object. The method can never return null.
Components running in a web container must be able to call enterprise beans
even when no user has been authenticated in the web container. When a call
is
made in such a case from a component in a web container to an enterprise
bean, a
J2EE product must provide a principal for use in the call.
A J2EE product may provide a principal for use by unauthenticated callers
using many approaches, including, but not limited to:
. Always use a single distinguis

[JBoss-user] very very new bee

2001-06-17 Thread jean



Hello, when I read about jboss I tough that it 
would bee very very easy.
 I have download"JBoss-2.2.2_Tomcat-3.2.2.zip    
..

  
  

  9.7M

  May 30, 2001
"
but I have trouble doing the following santences from jboss install . can 
somabody help ?
--

In order for jBoss to find Tomcat's classes, you need to set a couple of 
environment variables :

  TOMCAT_HOME must point to the base directory of Tomcat's binaries. 
  Typically, if you built Tomcat from jakarta/jakarta-tomcat, TOMCAT_HOME should 
  point to jakarta/build/tomcat. 
  SERVLETAPI_HOME must point to the source directory "jakarta-servletapi". 
  The file $SERVLETAPI_HOME/lib/servlet.jar will be required. 
  Your CLASSPATH must contain $JAVA_HOME/lib/tools.jar since Tomcat needs 
  this to compile JSPs. 
--
is Jboss should be extrated in a spacific directory structure ?if so how 
example c:\jboss\ ?
I will be very please to see an example of how to set TOMCAT_HOME = ?
and how to set SERVLETAPI_HOME = ?
and the CLASSPATH = ?
best regards


Re: [JBoss-user] Obtaining a transaction from outside JBoss in another VM Plan

2001-06-17 Thread Phan Anh Tran

Are you talking about the JTS/JTA or the EJB specification?  Thanks.

Anh

- Original Message -
From: "Allen fogleson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 16, 2001 11:25 PM
Subject: Re: [JBoss-user] Obtaining a transaction from outside JBoss in
another VM Plan


> Actually from a specification point the only thing required to support
> userTransaction is the session EJB. container providers --may-- chose to
> allow access to the Usertransaction object outside of a session EJB but it
> is not transportable accross vendors. It would seem that even the
> specification would want you to keep that logic in the Session EJB, and
not
> move it from that tier.
> That would in general cover the why :)
>
> Al
>
> - Original Message -
> From: Phan Anh Tran <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, June 17, 2001 1:49 AM
> Subject: Re: [JBoss-user] Obtaining a transaction from outside JBoss in
> another VM Plan
>
>
> > And the moment you put business logic in something else but EJB, you
need
> to
> > control transactions which takes us back to my original question to Marc
> > Fleury.  When does JBOSS plan to support the use of UserTransaction from
a
> > VM that is not running JBOSS?  Marc seems to discourage this usage in
one
> > reply, so my second question is why?   Thanks.
> >
> > Anh
> >
> > - Original Message -
> > From: "Allen fogleson" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Saturday, June 16, 2001 10:25 PM
> > Subject: Re: [JBoss-user] Obtaining a transaction from outside JBoss in
> > another VM Plan
> >
> >
> > > well not necessarily just EJB... although i would put most of it
there.
> > > probably 99% of it would be in session EJB. I would use limited
servlets
> > for
> > > business logic. mostly i would do
> > >
> > > JSP -- Servlet --- EJB
> > > views  controllers  model/business logic
> > >
> > > Al
> > >
> > > - Original Message -
> > > From: Phan Anh Tran <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Sunday, June 17, 2001 12:53 AM
> > > Subject: Re: [JBoss-user] Obtaining a transaction from outside JBoss
in
> > > another VM Plan
> > >
> > >
> > > > Basically, you are telling me to move all business logic from APP to
> an
> > > EJB.
> > > > I just don't believe it is always desirable to keep all business
logic
> > > > within EJBs.  I don't think a business layer necessarily has to
> consist
> > of
> > > > EJBs alone.
> > > >
> > > > Anh
> > > >
> > > > - Original Message -
> > > > From: "David Jencks" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Saturday, June 16, 2001 8:52 PM
> > > > Subject: Re: [JBoss-user] Obtaining a transaction from outside JBoss
> in
> > > > another VM Plan
> > > >
> > > >
> > > > > Hi,
> > > > >
> > > > > Ok, this is a slightly different question than the one I thought
you
> > > were
> > > > > asking, and as you say, 2pc is not relevant.  Here are my thoughts
> on
> > > your
> > > > > proposed design:
> > > > >
> > > > > 1. I assume that you do not want to hold transactions open while
> > waiting
> > > > > for human input.  If you need to for some reason, you are apt to
be
> in
> > > > > trouble under high load as all those open transactions consume
> server
> > > > > resources for unknown and long periods of time.
> > > > >
> > > > > 2.  I like to think of the architecture of applications like this,
> in
> > 5
> > > > > layers.
> > > > >
> > > > > presentation layer  (what do I see)--- jsp
> > > > >
> > > > > presentation manager (workflow control, what do I see
> > next) 
> > > > > servlet
> > > > >
> > > > > service subsystem (business logic, data
> > > manipulation) -session
> > > > > ejb
> > > > >
> > > > > model subsystem (data model, system
state) ---entity
> > ejb
> > > > >
> > > > > persistence subsystem -(jdbc, db)
> > > > >
> > > > > I find this really clears up most of my questions about where to
put
> > > code,
> > > > > and makes changes much simpler and more local.  In this framework,
I
> > > > > haven't found a case where knowledge of transactions need to get
> above
> > > the
> > > > > business logic layer.  I would be curious to know if you have an
> > example
> > > > > where this is appropriate.
> > > > >
> > > > > Thanks
> > > > > david jencks
> > > > >
> > > > > On 2001.06.16 21:07:20 -0400 Phan Anh Tran wrote:
> > > > > > Let's forget the 2PC stuff for now...Here is a scenaro:
> > > > > >
> > > > > > [APP/VM-1] <-> [EJB-1,EJB-2,...EJB-n/JBOSS/VM2] <-JDBC->
> > [DataStore-1]
> > > > > >
> > > > > > Each method of each of the EJBs forms a transaction by
themselves
> if
> > > > > > noone
> > > > > > else issues explicit transaction control a la
> "begin,commit,abort".
> > > > > >
> > > > > > APP takes on this role.  APP decides the set of EJBs' methods
will
> > > form
> > > > 1
> > > > > > transaction.  Same problem, replace APP with say a servle