[JBoss-user] Configuring embedded Catalina

2002-02-08 Thread Jarecsni Jnos

Hi,

since I have to integrate JBoss with Apache I have to configure the embedded
tomcat service to emit the AJP configuration for Apache. The only question
is HOW? (I know fairly well how to do this with standalone catalina). I
inserted the following in my jboss.jcml

mbean code="org.jboss.web.catalina.EmbeddedCatalinaServiceSX"
name="DefaultDomain:service=EmbeddedTomcat"
  attribute name="Configuration"
file:/JBoss-2.4.4_Tomcat-4.0.2b/catalina/conf/server.xml
  /attribute
/mbean

It had absolutely no effect. (The server.xml in catalina's conf directory
has the necessary Listener tags, which work well if I run Catalina stand
alone.) I tried this because I saw this is how you'd configure Jetty (using
the attribute tag with a file URI pointing to the config file for Jetty).

Hope someone know how to do it :)

TIA
Jnos

--
Jarecsni, Jnos
MORGAN HILL CONSULTING, Internet Applications Unit
mailto:[EMAIL PROTECTED]
http://morganhillconsulting.hu/ :: Phone+Fax: + 36 1 484 0392


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



RE: [JBoss-user] Configuring embedded Catalina

2002-02-08 Thread Coetmeur, Alain



 -Message d'origine-
 De: Jarecsni Jnos [mailto:[EMAIL PROTECTED]]
 Date: vendredi 8 fvrier 2002 11:30
 : JBoss-List
 Objet: [JBoss-user] Configuring embedded Catalina
 
 
 Hi,
 
 since I have to integrate JBoss with Apache I have to 
 configure the embedded
 tomcat service to emit the AJP configuration for Apache. The 
 only question
 is HOW? (I know fairly well how to do this with standalone 
 catalina). I
 inserted the following in my jboss.jcml
 
 mbean code="org.jboss.web.catalina.EmbeddedCatalinaServiceSX"
 name="DefaultDomain:service=EmbeddedTomcat"
   attribute name="Configuration"
 file:/JBoss-2.4.4_Tomcat-4.0.2b/catalina/conf/server.xml
   /attribute
 /mbean
 
 It had absolutely no effect. (The server.xml in catalina's 
 conf directory
 has the necessary Listener tags, which work well if I run 
 Catalina stand
 alone.) 

the content of "Config" attribute (not configuration) is not an URL but 
an XML tree, with a single root element...

as you seems  to already know, server.xml is  not read in jboss244+catalina

in official jboss244+catalina only connector, connector/factory
and server/service/connector/listener are interpreted...
the rest is ignored without any warning.

so you may be able to do what you want by 

 mbean code="org.jboss.web.catalina.EmbeddedCatalinaServiceSX"
 name="DefaultDomain:service=EmbeddedTomcat"
   attribute name="Config"
server
 service
   connector ... ajp13 ...
 listener 
 /listener
   /connector
  /service
/server
   /attribute
 /mbean

note also that the default http conector still exists, since there is
no way in standard jboss244 to remove the implicit connector created
before the Config attribute 

I've proposed a patch to extend the kind of supported tags
(engine, hosts, valve, connector/listener instead of
server/service/connector/listener ).
it also gives an option not to creat the implicit connector
and depend fully on the Config attribute and embedded Connector tags.

I can send you source and even the binary catalina-engine.jar
so that you can use it on a binary distrib.

I'll check soon wether I can do what you propose, but I think
it is the case. otherwise I'll add one more function to
my patch.

could you send here the server.xml which you want to imitate,
so I can respond with a valid mbean config, and maybe even test it here...

 I tried this because I saw this is how you'd 
 configure Jetty (using
 the attribute tag with a file URI pointing to the config 
 file for Jetty).
you give me an idea... 
to have an indirect  Attribute
name="ConfigFile"../conf/catalina/catalina-service.xml/Attribute
or  Attribute
name="ConfigUrl"http://config.cluster.corp.com/catalina-service.xml/Attrib
ute
 Attribute
name="ConfigRessource"org/jboss/catalina/catalina-service.xml/Attribute 

or otherwise have something like
 Attribute name="Config"include
file="../conf/catalina/catalina-service.xml"//Attribute
 Attribute name="Config"include
url="http://config.cluster.corp.com/catalina-service.xml"//Attribute
 Attribute name="Config"include
ressource="org/jboss/catalina/catalina-service.xml"//Attribute

or maybe through process instruction
or entity ... but I have few knowledge on entity inclusion...

 Hope someone know how to do it :)

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



Re: [JBoss-user] Connection Factory not bound under JNDI

2002-02-08 Thread David Jencks

In the future, please start by indicating the exactjboss version you are
using.

In jboss 3, the attribute name=RARDeployer is not used. take it out.

If it is 3.0 alpha, you need to rename the oracle driver file ***.jar from
***.zip, and you need to change the depends optional-attribute-name= tags
to mbean-ref name=, and the object names inside these tags need to match
the actual object names: they start e.g. JCA: rather than jboss.jca.

If it is 3.0 from cvs, except for the extra RARDeployer, this looks ok.  

If this does not clear up the problem look at your server log carefully. It
should tell you what is happening and what if anything is going wrong with
the deployment.  If you still have problems post the relevant parts of the
log.

david  jencks

On 2002.02.08 07:21:18 -0500 Anna Verena Linder wrote:
 Hi,
 
 I am trying to set up JBoss so I can connect to a database from a session
 bean. When I run JBoss, it starts up without problems, but the
 ConnectionFactory doesn't get bound under JNDI. Can anybody help? I'm at
 the
 end of my wits.
 
 Thanks a lot in advance!
 Anna Verena Linder
 -
 Here is a description of my configuration:
 
 I have the oracle jdbc driver zip under JBOSS/lib/ext.
 
 The entry in ejb-jar.xml is:
 
 resource-ref
descriptionOracle User Data/description
res-ref-namejdbc/OracleUser/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authApplication/res-auth
 /resource-ref
 
 and the entries in jboss.xml are:
 
 resource-ref
res-ref-namejdbc/OracleUser/res-ref-name
resource-nameOracleUser/resource-name
 /resource-ref
 
 and
 
 resource-managers
 resource-manager res-class=
res-nameOracleUser/res-name
res-jndi-namejava:/OracleUser/res-jndi-name
 /resource-manager
 /resource-managers
 
 The Namespace of my bean contains an entry java:comp/env/jdbc/OracleUser,
 which points to java:/OracleUser, but in the java: Namespace, there is no
 OracleUser entry.
 
 The mbean entry in my jboss.jcml looks like this:
 
 mbean code=org.jboss.resource.ConnectionFactoryLoader
  name=jboss.jca:service=ConnectionFactoryLoader,name=OracleUser
 attribute name=JndiNameOracleUser/attribute
 attribute name=FactoryNameOracleUser/attribute
 attribute
 name=TransactionManagerNamejava:/TransactionManager/attribute
 
 attribute name=RARDeployerNameJCA:service=RARDeployer/attribute
 depends optional-attribute-name=ResourceAdapterName
 jboss.jca:service=RARDeployment,name=Minerva JDBC
 LocalTransaction
 ResourceAdapter
 /depends
 attribute name=ConnectionManagerFactoryName
   MinervaNoTransCMFactory
 /attribute
 
 attribute name=ManagedConnectionFactoryProperties
   ConnectionURL=jdbc:oracle:thin:@diablo:1521:olga
   Driver=oracle.jdbc.driver.OracleDriver
   TransactionIsolation=TRANSACTION_NONE
 /attribute
 
 depends optional-attribute-name=ConnectionManagerFactoryLoaderName
 
 jboss.jca:service=ConnectionManagerFactoryLoader,name=MinervaNoTransCMFactor
 y
 /depends
 
 attribute name=ConnectionManagerProperties
   MinSize=0
   MaxSize=10
   BlockingTimeoutMillis=5
   IdleTimeoutMinutes=30
   CleanupIntervalMinutes=10
   MaxIdleTimeoutPercent=1.0
 /attribute
 attribute name=PrincipalMappingClass
   org.jboss.resource.security.ManyToOnePrincipalMapping
 /attribute
 attribute name=PrincipalMappingProperties
 userName=myuser
 password=mypasswd
 /attribute
 /mbean
 
 In the session bean, I call
 
 InitialContext jndiContext = new InitialContext();
  DataSource source = (DataSource)
 jndiContext.lookup(java:comp/env/jdbc/OracleUser);
 
 which throws me a NameNotFoundException: OracleUser not bound.
 
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
 HTMLHEAD
 META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=iso-8859-1
 
 
 META content=MSHTML 5.00.2314.1000 name=GENERATOR/HEAD
 BODY
 DIVFONT face=Arial size=2SPAN 
 class=654355509-08022002Hi,/SPAN/FONT/DIV
 DIVFONT face=Arial size=2SPAN 
 class=654355509-08022002/SPAN/FONTnbsp;/DIV
 DIVFONT face=Arial size=2SPAN class=654355509-08022002I am trying
 to set 
 up JBoss so I can connect to a database from a session bean. When I run
 JBoss, 
 it starts up without problems, but the ConnectionFactory doesn't get
 bound under 
 JNDI. Can anybody help? I'm at the end of my wits./SPAN/FONT/DIV
 DIVFONT face=Arial size=2SPAN 
 class=654355509-08022002/SPAN/FONTnbsp;/DIV
 DIVFONT face=Arial size=2SPAN class=654355509-08022002Thanks a lot
 in 
 advance!/SPAN/FONT/DIV
 DIVFONT face=Arial size=2SPAN class=654355509-08022002Anna Verena 
 Linder/SPAN/FONT/DIV
 DIVSPAN class=654355509-08022002/SPANFONT size=2FONT
 face=Arial-SPAN 
 
class=654355509-08022002/SPAN/FONT/FONTnbsp;/DIV
 DIVFONT face=Arial size=2SPAN class=654355509-08022002Here is a 
 description of my 

[JBoss-user] Need document for integration of jboss with tomcat

2002-02-08 Thread Mahesh Agarwal

Hi all

Can anybody tell me where can I find the document describing the details of
integrating the jboss with tomcat

thanks a lot in advance
Mahesh

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



[JBoss-user] Transaction Timeout

2002-02-08 Thread Imran Bohoran


Hi All

I have a StatelessSession bean which is been called by a servlet. Here is my
problem.
I have two browsers from which I make calls to the StatlessSessionBean
method at the same time. At times this call at the same time causes a
Transaction Time Out and then the RemoteException is thrown. 
Also my transaction attributes for the session beans as well as the entity
beans are Required. Since the calls come from 2 servelets I believe they
will have their own Transaction contexts. But why would this consequence
calls to the bean cause a Transaction time out. 

Would appreciate any input from any one. 
Btw. I also tried giving the Isolation levels. But that did not help.

Cheers and TIA
Imran

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



[JBoss-user] Configuring logging with embedded Catalina

2002-02-08 Thread bryan hansen

Is JBoss by default supposed to also write the log to
the system.log file under logs? I looked at the
log4j.properties and it is setup to write to the
console and the system.log, but the system.log is
blank? Also there is a log4j.properties under
/jboss/jboss/conf/default/ and one under
/jboss/jboss/conf/catalina/. It seems that it is using
the log4j.properties from under catalina when you
start it with catalina, but that is what I would
expect.

Any insight would be greatful.

Thanks,

Bryan

__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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



[JBoss-user] MBeans

2002-02-08 Thread Rajeshwar Rao V

 Hi All,
 
   I have TWO MBeans named AxielleConfiguration and AxielleTest1. I
 registered them with MBeanServer. Now when i want to access those MBeans.
 When i say  mbeanServer.queryMBeans(null, null); I am getting all the
 MBeans in the Server. But I want only those MBeans written by me.
 How can i get them?
 
 Any help is much appreciated.
 
 
 ObjectName objectName = new
 ObjectName(DefaultDomain:service=AxielleConfiguration);
 ObjectName testName = new
 ObjectName(DefaultDomain:service=AxielleTest1);
 mbeanServer = MBeanServerDelegator.getMBeanServer();
 System.out.println(in the dopost method  Test1);
 
 object =  mbeanServer.invoke(objectName, registerMBean,
 new Object []{(Object)new First(), testName}, new
 String[]{java.lang.Object,javax.management.ObjectName});
 
 System.out.println(after invoking     =+object);
 ObjectInstance oInstance = (ObjectInstance)object;
 System.out.println(after invoking objectName 
 =+oInstance.getObjectName());
 
 
QueryExp qexp = Query.match(Query.attr(ObjectName),
 Query.value(DefaulDomain:service=Axielle*));
qexp.setMBeanServer(mbeanServer);
 System.out.println(** qexp=+qexp);
 ObjectName obj = new ObjectName(*:service=Axielle,*);
 Set set = mbeanServer.queryMBeans(obj, null);
 System.out.println(** setSize =+set.size());
 
 
 raj

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



[JBoss-user] JBoss+EmbeddedCatalina+Apache

2002-02-08 Thread Carlos Ferrão


Hello list,

It is known that in Jboss running embedded Catalina doesn't read the
server.xml file. I have successfully configured Catalina with Apache using
mod_webapp. However, with Catalina running inside Tomcat, Apache doesn't
know how to get to the contexts in $JBOSS_HOme/deploy. How do I configure
(jboss.jcml?) to make JBoss+EmbeddedCatalina+Apache work together??

Thanks in advance,

  Carlos Ferrão.


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



[JBoss-user] JBoss (JMX-RI) License Issue

2002-02-08 Thread Sheng Zou
Title: JBoss (JMX-RI) License Issue





Hi,


My company is going to using JBoss. Is there any license limitations on JMX-RI that JBoss uses? 


thanks,
sheng





Re: [JBoss-user] JBoss+EmbeddedCatalina+Apache

2002-02-08 Thread David Ward

Instructions here: http://main.jboss.org/thread.jsp?forum=50thread=1847

David

--

Carlos Ferrão wrote:

   Hello list,
 
   It is known that in Jboss running embedded Catalina doesn't read the
 server.xml file. I have successfully configured Catalina with Apache using
 mod_webapp. However, with Catalina running inside Tomcat, Apache doesn't
 know how to get to the contexts in $JBOSS_HOme/deploy. How do I configure
 (jboss.jcml?) to make JBoss+EmbeddedCatalina+Apache work together??
 
   Thanks in advance,
 
   Carlos Ferrão.
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 



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



[JBoss-user] Can't fine ejbPostCreate?

2002-02-08 Thread Hunter Hillegas

I just updated my CVS tree and tried to deploy some EBJs.

I got this message:

java.lang.NoSuchMethodException: Can't find ejb[Post]Create in
com.jacobstern.ejb.entity.PurchaseRequestBean
at 
org.jboss.ejb.plugins.CMPPersistenceManager.createMethodCache(CMPPersistence
Manager.java:166)
at 
org.jboss.ejb.plugins.CMPPersistenceManager.create(CMPPersistenceManager.jav
a:131)
at org.jboss.ejb.EntityContainer.create(EntityContainer.java:339)

That bean, PurchaseRequestBean, certainly DOES have an ejbPostCreate()
method...

Any ideas?


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



Re: [JBoss-user] Can't fine ejbPostCreate?

2002-02-08 Thread Hunter Hillegas

Nevermind. I restarted the server and it worked fine. It must have cached
something...

 From: Hunter Hillegas [EMAIL PROTECTED]
 Date: Fri, 08 Feb 2002 14:49:43 -0800
 To: JBoss 2 [EMAIL PROTECTED]
 Subject: [JBoss-user] Can't fine ejbPostCreate?
 
 I just updated my CVS tree and tried to deploy some EBJs.
 
 I got this message:
 
 java.lang.NoSuchMethodException: Can't find ejb[Post]Create in
 com.jacobstern.ejb.entity.PurchaseRequestBean
   at 
 org.jboss.ejb.plugins.CMPPersistenceManager.createMethodCache(CMPPersistence
 Manager.java:166)
   at 
 org.jboss.ejb.plugins.CMPPersistenceManager.create(CMPPersistenceManager.jav
 a:131)
   at org.jboss.ejb.EntityContainer.create(EntityContainer.java:339)
 
 That bean, PurchaseRequestBean, certainly DOES have an ejbPostCreate()
 method...
 
 Any ideas?
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user


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



[JBoss-user] Jboss3.0 alpha build question

2002-02-08 Thread Vishwas Raman

Hello all,

I recently checkedout the source tree of the 3.0alpha version of
jboss(jboss-all module). I have been trying to build it using ant but it
seems to complain that it cannot find a 'common.xml' file from the tools
module. 

I have no clue where to find this common.xml file. I have tried checking
out every possible module, but in no module can I find the common.xml
file. 

If somebody has encountered this problem before or if somebody knows
what I am doing wrong, I would appreciate it if you could let me know.

Thanks,

-Vishwas.

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



Re: [JBoss-user] Jboss3.0 alpha build question

2002-02-08 Thread Adrian Brock

Hi,

You should have a buildmagic-tasks.jar in jboss-all/tools/lib
It lives in there.

Regards,
Adrian


From: Vishwas Raman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Jboss3.0 alpha build question
Date: Fri, 08 Feb 2002 17:21:34 -0800

Hello all,

I recently checkedout the source tree of the 3.0alpha version of
jboss(jboss-all module). I have been trying to build it using ant but it
seems to complain that it cannot find a 'common.xml' file from the tools
module.

I have no clue where to find this common.xml file. I have tried checking
out every possible module, but in no module can I find the common.xml
file.

If somebody has encountered this problem before or if somebody knows
what I am doing wrong, I would appreciate it if you could let me know.

Thanks,

-Vishwas.

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




_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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



Re: [JBoss-user] Need document for integration of jboss with tomcat

2002-02-08 Thread Guy Rouillier

If you mean integrated JBoss with embedded Tomcat, it's already integrated.
If you mean JBoss with external Tomcat, there's no integration really.  Just
start up JBoss.  Before you start up Tomcat, make sure the JBoss client
files are in the classpath for Tomcat.  Then just do a normal lookup,
providing the proper URL for Jboss.


- Original Message -
From: Mahesh Agarwal [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 08, 2002 8:53 AM
Subject: [JBoss-user] Need document for integration of jboss with tomcat


 Hi all

 Can anybody tell me where can I find the document describing the details
of
 integrating the jboss with tomcat

 thanks a lot in advance
 Mahesh

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




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



[JBoss-user] MBeans problem in JBoss

2002-02-08 Thread Ramesh Gadde

Hi all

I have two MBeans(only mbeans, not services)
AxielleConfiguration, AxielleTest1.

I registered these two beans with the server.
when i query mbeanserver it is giving all the MBeans in the server.

i am querying like this

ObjectName obj = new ObjectName(AxielleDomain:service=* );
Set set = mbeanServer.queryMBeans(obj, null);

if i use the above code, it is giving malformed exception.

At the * what i need to pass, so that i can get above two beans

I tried by using queryexp  as follows

QueryExp qexp = Query.match(Query.attr(ObjectName),
Query.value(AxielleDomain:service=Axielle*));
Set set = mbeanServer.queryMBeans(null,qexp);
now i am getting set size as zero.

Is it properway of creating queryExp ?
If not what is the properway

any help is appreciated

regards
Ramesh


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



[JBoss-user] Re: [JBoss-dev] MBeans problem in JBoss

2002-02-08 Thread Andreas Schaefer

Hi

 I have two MBeans(only mbeans, not services)
 AxielleConfiguration, AxielleTest1.
 
 I registered these two beans with the server.
 when i query mbeanserver it is giving all the MBeans in the server.
 
 i am querying like this
 
 ObjectName obj = new ObjectName(AxielleDomain:service=* );

You cannot search inside a key-value pair. Use an object name like this
ObjectName obj = new ObjectName( AxielleDomain:* );
or
ObjectName obj = new ObjectName( AxielleDomain:service=mine,* );


 Set set = mbeanServer.queryMBeans(obj, null);
 
 if i use the above code, it is giving malformed exception.
 
 At the * what i need to pass, so that i can get above two beans
 
 I tried by using queryexp  as follows
 
 QueryExp qexp = Query.match(Query.attr(ObjectName),
 Query.value(AxielleDomain:service=Axielle*));

I think you should add a colon before the *
Query.value(AxielleDomain:service=Axielle,*));

 Set set = mbeanServer.queryMBeans(null,qexp);
 now i am getting set size as zero.
 
 Is it properway of creating queryExp ?
 If not what is the properway

Hope this helps

Andy



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