[JBoss-user] deploying from a directory

2001-05-01 Thread Ivan

Hi,

Has any one been able to deploy an EAR, JAR, or WAR as an expanded
directory.  If so do you know of a location on the web with instructions.

It seems just placing the directory in the deploy folder does not do
anything.

Thanks
Ivan


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



[JBoss-user] Integrating Tomcat and jBoss security logon

2001-05-01 Thread Bennett, Peter

I have looked in user manuals, FAQs and mailing list archives but cannot
find the answer to a deceptively simple question that I hope you can help
with ...

How do I allow a user to logon to my Tomcat server and then pass their logon
username and password transparently down to any enterprise beans that the
JSP uses on their behalf ?

My detailed scenario is as follows :-

I am starting with an application that I am running in Tomcat 3.2.1 as a
JSP.

Security is configured so that the web browser pops up a dialog asking the
user to logon to a web security realm (as opposed to having a JSP I have
written to do the logon - at which point I could cache the username/password
myself). 

This is a model I favour and it allows users of my application to use
features in browsers that let them cache their log on preferences. 

The JSP then makes uses of a JavaBean which accesses my database directly
via JDBC. The JSP checks permissions for a given username once they have
logged on by checking the UserPrincipal.

I wish to migrate this application to an EJB application server and have
installed the jBoss 2.1/Tomcat 3.2.1 integrated environment.

I have sucessfully ported functionality from my JavaBean to an Entity Bean
and enabled JAAS security on the jBoss container. A standalone client can
now log-on directly and securely via this mechanism to the Entity Bean.

I have sucessfully deployed a .war file with my JSPs and Entity Beans
bundled together and can view the JSP via the Tomcat web server. If I
disable security on the Entity Bean, the JSP will talk to it fine.

However I have not been able to allow a user to logon to the JSP page (via a
pop-up dialog) and then enable the JSP to pass the username/password onto
JAAS to talk to the entity bean. Can someone point me at a resource that
explains how to do this, surely it must be a common problem faced in
deploying web applications ?

Thanks in advance for your help,
Pete

--
Pete Bennett (mailto:[EMAIL PROTECTED])
Principal Architect, Synomics Ltd.
http://www.synomics.com  

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



Re: [JBoss-user] Scary dumb question, classpaths..help..

2001-05-01 Thread JbossKnut

NamingContextFactory  could be found in ...jboss\client\jnp-client.jar or
..jboss\lib\ext\jnpserver.jar

- Original Message -
From: Lisa Stuart [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 01, 2001 11:20 AM
Subject: [JBoss-user] Scary dumb question, classpaths..help..


 I'm so stuck on a simple application that creates a couple of Products
 using an entity bean.
 This worked yesterday, was deployed and i was happy.
 Today on the other hand everything is broken and i am going around in
 circles trying to fix things only to find more problems.
 At the moment i can't even compile my app because I'm getting a
 javax.naming.NoInitialContextException: cannot instanciate class:
 org.jnp.interfaces.NamingContextFactory [Root exception is
 java.lang.ClassNotFoundException:
 org.jnp.interfaces.NamingContextFactory]

 from what i can find out about this it is a classpath problem, so,
 if anyone can be bothered could they please tell me what basic classpath
 I have to set for this to work

 sanks, Lisa



 ___
 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] entity bean relationships?

2001-05-01 Thread Steve Zhang

Hi, folks:
how I can create relationships between two CMP entity beans
(voucher_master,voucher_details) 
I am using java j2sdkee1.2 that might supports EJB 1.1 
whether it is possible in EJB1.1 or I have to move towards EJB2.0 
if there is an alternative way in EJB1.1 than plaese tell me. 


Any idea will be appreciated 

Thanks in advance 

Best Wishes

Steve Zhang
Software Developer
http://www.ensemble-systems.com



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



Re: [JBoss-user] It never finds beans in another *.jar's

2001-05-01 Thread Guy Rouillier



I'm going to be doing this in the near future, so I took a 
look at the docs. It said to use a jndi-name like this:

jndi-namet3://otherserver/application/beanB/jndi-name 

If I understand this correctly, the JNDI name is the name 
we use in the ctx.lookup() call. With the above, a lookup for an external 
EJB on the same JBoss is different from a lookup for the same EJB on a different 
JBoss. Wouldn't that require a source code change? That would not be 
good.

  - Original Message - 
  From: 
  Vinay Menon 
  
  To: JBOSS 
  Sent: Sunday, April 29, 2001 11:47 
  AM
  Subject: Re: [JBoss-user] It never finds 
  beans in another *.jar's
  
  Hi,
   Check out the section 'External EJB Reference' 
  in chapter 6 in the online documentation for jboss at www.jboss.org\documentation\HTML\ch06s05.html
  
  Vinay


Re: [JBoss-user] Problem with MySQL driver

2001-05-01 Thread Todd Chaffee

Here's a message I sent off-list to another person that asked this 
question.  Following are the relevant sections of my jboss.jcml file:


!-- JDBC --
!- NOTE: This section should already exist, you just need to add 
org.git.mm.mysql.Driver --
mbean code=org.jboss.jdbc.JdbcProvider name=DefaultDomain:service=JdbcProv
ider
attribute name=Driversorg.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.id
bDriver,org.gjt.mm.mysql.Driver/attribute
/mbean


!-- mySQL - Added 4/16/01 by Todd Chaffee --
!-- NOTE: I put this all the way at the end of the file --

mbean code=org.jboss.jdbc.XADataSourceLoader name=DefaultDomain:service=XA
DataSource,name=EstoreDB
attribute name=PoolNameEstoreDB/attribute
attribute name=DataSourceClassorg.opentools.minerva.jdbc.xa.wrapper.XADa
taSourceImpl/attribute
attribute name=Properties/attribute
attribute name=URLjdbc:mysql://localhost:3306/petstore/attribute
attribute name=GCMinIdleTime120/attribute
attribute name=JDBCUserroot/attribute
attribute name=MaxSize10/attribute
attribute name=Passwordparallax1/attribute
attribute name=GCEnabledfalse/attribute
attribute name=InvalidateOnErrorfalse/attribute
attribute name=TimestampUsedfalse/attribute
attribute name=Blockingtrue/attribute
attribute name=GCInterval12/attribute
attribute name=IdleTimeout180/attribute
attribute name=IdleTimeoutEnabledfalse/attribute
attribute name=LoggingEnabledfalse/attribute
attribute name=MaxIdleTimeoutPercent1.0/attribute
attribute name=MinSize0/attribute
/mbean


You'll also need to make sure that you copy the class containing 
org.git.mm.mysql.Driver (or whatever driver you use) to the 
$JBOSS_HOME/lib/ext directory. For example, I have a copy of 
'mm.mysql-2.0.4-bin.jar' in my '/usr/local/jboss/ext/lib' directory.

Also, you don't need anything concerning mysql in your jboss.conf file or 
jboss.properties file, so disregard anything in the docs about that.

Hope this helps.

- Todd Chaffee

P.S.  From what I can see, you've got port 3306 in the wrong place - it 
should come right after localhost.  That may not be the only problem but 
I'm sure you can compare my jboss.jcml to yours to get it working.  Good luck.


Hello,

I've read the archives about how to set up the MySQL database pool,
but I'm still having problems. Once the pool is set up, the server
hangs. The last messages I see on startup are:

[JDBC provider] Starting
[JDBC provider] Started
[Hypersonic] Starting
[Hypersonic] Server 1.4 is running
[Hypersonic] Database started
[Hypersonic] Started
[MySqlDS] Starting
[MySqlDS] XA Connection pool MySqlDS bound to java:/MySqlDS
[Hypersonic] Press [Ctrl]+[C] to abort


That's it. The system hangs afterwards. If I take out the JDBC pool,
everything is fine.

I'm using:

jBoss 2.2
MySQL driver mm.mysql-2.0.4-bin.jar
RedHat 2.2.12-20 384MB RAM
MySQL-3.23.37-1.i386.rpm

What to do?

Thanks.

jboss.jcml:

mbean code=org.jboss.jdbc.JdbcProvider
name=DefaultDomain:service=JdbcProvider
  attribute
name=Driversorg.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,g.gjt.mm.mysql.Driver/attribute
   /mbean
.
.
.
.
   mbean code=org.jboss.jdbc.XADataSourceLoader
name=DefaultDomain:service=XADataSource,name=MySqlDS
 attribute name=PoolNameMySqlDS/attribute
 attribute
name=DataSourceClassorg.opentools.minerva.jdbc.xa.wrapper.XADataSourcmpl/attribute
 attribute name=Properties /
 attribute
namre=URLjdbc:mysql://localhost/pht:3306/attribute
 attribute name=GCMinIdleTime120/attribute
 attribute name=JDBCUsermysql/attribute
 attribute name=MaxSize10/attribute
 attribute name=Passwordmysql/attribute
 attribute name=GCEnabledfalse/attribute
 attribute name=InvalidateOnErrorfalse/attribute
 attribute name=TimestampUsedfalse/attribute
 attribute name=Blockingtrue/attribute
 attribute name=GCInterval12/attribute
 attribute name=IdleTimeout180/attribute
 attribute name=IdleTimeoutEnabledfalse/attribute
 attribute name=LoggingEnabledfalse/attribute
 attribute name=MaxIdleTimeoutPercent1.0/attribute
 attribute name=MinSize0/attribute
   /mbean




__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.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] JSP's not finding classes in application

2001-05-01 Thread Leonard Kierstead


I can't get JBoss/Tomcat to find classes that are in my application war
file.  When I access any  of the JSP's in application I get the following 
error: 
Class com.cerulean.amstel1.UnitInfoHome not found in import

The class is in both my application jar file and the special jar file that
allows
optimized interactions across container boundaries.  The manifest file in my
war archive (META-INF\MANIFEST.MF) specifies the class path as
follows:

Class-Path: ./ejb-client.jar

ejb-client.jar is the  special jar file that allows optimized interactions
across 
container boundaries.  

I'm running on Windows 2000 with version 2.2.1 of JBoss.

Here is the complete error message:

2001-05-01 09:11:59 - Ctx( /amstel ): JasperException: R( /amstel +
/UnitInfoTestCreate.jsp + null) Unable to compile class f
or
JSPC:\JBoss-2.2.1_Tomcat-3.2.1\tomcat\work\localhost_8080%2Famstel\_0002fUni
tInfoTestCreate_0002ejspUnitInfoTestCreate_jsp
_32.java:23: Class com.cerulean.amstel1.UnitInfoHome not found in import.
import com.cerulean.amstel1.UnitInfoHome;

Thanks for any help anyone can offer,

Leonard

PS. please reply back to [EMAIL PROTECTED]


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



Re: [JBoss-user] Scary dumb question, classpaths..help..

2001-05-01 Thread Vinay Menon
It *is* an issue with the class not being found the classpath. The jnp-client.jar should have this class in it.  Vinay   - Original Message - From:Lisa Stuart Sent:Tuesday, May 01, 2001 10:33 AM To:[EMAIL PROTECTED] Subject:[JBoss-user] Scary dumb question, classpaths..help.. I'm so stuck on a simple application that creates a couple of Productsusing an entity bean.This worked yesterday, was deployed and i was happy.Today on the other hand everything is broken and i am going around incircles trying to fix things only to find more problems.At the moment i can't even compile my app because I'm getting ajavax.naming.NoInitialContextException: cannot instanciate class:org.jnp.interfaces.NamingContextFactory [Root exception isjava.lang.ClassNotFoundException:org.jnp.interfaces.NamingContextFactory]from what i can find out about this it is a classpath problem, so,if anyone can be bothered could they please tell me what basic classpathI have to set for this to worksanks, Lisa___JBoss-user mailing list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-user Get your FREE download of MSN Explorer at http://explorer.msn.com


Re: [JBoss-user] deploying from a directory

2001-05-01 Thread Vinay Menon
You should be able to simply unjar the jar file that you use for usual deployments into the JBOSS_DEPLOY directory [you can change this if you wanted]  Vinay   - Original Message - From:Ivan Sent:Tuesday, May 01, 2001 9:53 AM To:[EMAIL PROTECTED] Subject:[JBoss-user] deploying from a directory Hi,Has any one been able to deploy an EAR, JAR, or WAR as an expandeddirectory. If so do you know of a location on the web with instructions.It seems just placing the directory in the deploy folder does not doanything.ThanksIvan___JBoss-user mailing list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-user Get your FREE download of MSN Explorer at http://explorer.msn.com


Re: [JBoss-user] principal=null problem

2001-05-01 Thread Jeffrey Wescott

Are you speaking of EmbeddedTomcat?  If so, in the contrib/tomcat 
module, there is a RequestInterceptor called 
org.jboss.tomcat.security.JbossRealm that will alleviate this problem.

It's difficult to explain in words, but if you study the use-case 
diagrams on the JBoss website, it's easier to understand.  The basic 
idea (I think) is that JAAS expects it's client to be in a separate 
VM.  The code in the server login modules in JBoss that are responsible 
for setting the principal that normally gets called during a login 
never gets called when the client is in the same VM.  Study the diagrams 
-- I found them infinitely understandable.

++jeff

Khaled Aboudan wrote:

 Hello,
 
  
 
 I wrote LoginModules for JAAS Authentication. Calling secured EJBs 
 from a local client works fine. However, calling the same EJBs from a 
 Tomcat causes a security exception stating that the principal is null.
 
  
 
 I have seen this discussed in many different threads. But I still have 
 not seen any final verdict about the subject. Some people suggested to 
 use 'Tomcat Style login Interceptor' ...is this the way to go? Could 
 someone explain why this happens?
 
  
 
 Thanks in advance for your help.
 
  
 
 Regards,
 
 Khaled
 



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



[JBoss-user] Problem building JBoss-modified Petstore

2001-05-01 Thread Shriver, Ryan

Hey all,
I'm new JBoss and I'm trying to get the PetStore v1.1.1 to run in JBoss. 
I'm following the directions at:

http://www.jboss.org/documentation/petstore-1.1.1-01.html

but not having luck building the petstore application after I apply the
JBoss patch. Ant can't seem to find these two classes that are imported in
JBossSecurityAdapter:

org.jboss.security.SecurityAssociation
org.jboss.security.SimplePrincipal

Looking around the petstore build.xml file (replaced by the patch), I see
JBoss/lib/ext/jboss.jar and JBoss/bin/run.jar are added to the classpath,
but neither .jar seems to contain these classes. Does anyone know where they
reside?

-ryan

PS. Note to the authors of the petstore-1.1.1-01.html file. It appears the
jboss.home property in build.xml needs to be changed to point to your JBoss
root dir. There's no mention of this in the directions. Possibly someone can
add it?

PPS. Platform is Win NT 4.0, Sun JDK 1.3, JBoss 2.2.1 w/Tomcat 3.2.1

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



RE: [JBoss-user] Scary dumb question, classpaths..help..

2001-05-01 Thread Reid Beckett

you need to put the jnpserver.jar file in your classpath
it is located in %JBOSS_HOME%/lib/ folder.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Lisa Stuart
Sent: Tuesday, May 01, 2001 5:21 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Scary dumb question, classpaths..help..


I'm so stuck on a simple application that creates a couple of Products
using an entity bean.
This worked yesterday, was deployed and i was happy.
Today on the other hand everything is broken and i am going around in
circles trying to fix things only to find more problems.
At the moment i can't even compile my app because I'm getting a
javax.naming.NoInitialContextException: cannot instanciate class:
org.jnp.interfaces.NamingContextFactory [Root exception is
java.lang.ClassNotFoundException:
org.jnp.interfaces.NamingContextFactory]

from what i can find out about this it is a classpath problem, so,
if anyone can be bothered could they please tell me what basic classpath
I have to set for this to work

sanks, Lisa



___
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] What is optimized?

2001-05-01 Thread toby cabot

 I have downloade the jboss version which comes with tomcat, when i
 execute the example the page says:
 
 ...and once with the inVM optimization..

http://jboss.org/documentation/HTML/ch06s08.html

Look for the explanation of the container-invoker-conf element.




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



RE: [JBoss-user] Does anyone know what this error means?

2001-05-01 Thread Jason Dillon

Have you gotten it to work yet?  If not what version of JBoss are you using?
Did you look at the online manual (specifically chapter 3:
http://jboss.org/documentation/HTML/ch03.html)?  This gives a fairly
straight forward description of what you need to get a JDBC datasource
running in JBoss.

Things you need to make sure of:

  o You have classes12.zip in the lib/ext directory, or you have setup a
ClassPathExtention MLET to include this archive.

  o Make sure you list oracle.jdbc.driver.OracleDriver as one of the
Drivers for the JdbcProvider.

I have JBoss working with Oracle (v2.0 and up) and I did not have todo
anything magical to get it working.  Perhaps a little patience...

--jason


On Tue, 1 May 2001, Micky I. Mimo wrote:

 I am just trying to connect Jboss to oracle.

 Michael Mimo
 Systems Specialist
 Voice: 781-457-1317
 [EMAIL PROTECTED]





 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Jason Dillon
 Sent: Monday, April 30, 2001 10:36 PM
 To: [EMAIL PROTECTED]
 Subject: RE: [JBoss-user] Does anyone know what this error means?


 Why are you trying to setup an XADataSource with the classpath extender?

 --jason


  I put classes12.zip in the ../lib/ext directory and added this entry
  to
  the jboss.conf file:
 
  MLET CODE = org.jboss.util.ClassPathExtension
  ARCHIVE=jboss.jar,classes12.zip,minerva-1_0b3.jar
  CODEBASE=../../lib/ext/
   ARG TYPE=java.lang.String VALUE=thinPool
   ARG TYPE=java.lang.String
  VALUE=org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl
  /MLET


 ___
 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] JAAS Tutorial for Jetty??

2001-05-01 Thread Joel Boehland

Hi Julian,
Well, it looks like the main thing I would need is to
figure out how to add the equivalent to a tomcat
Request Interceptor to Jetty. All of the Tomcat
examples seem to use this as a way of binding the
Tomcat Realm to a Jboss realm. Below is an excerpt
from an earlier message describing how to do this for
tomcat, is there a similar configuration we can do
with Jetty? Thanks,
Joel

##
To integrate the security with tomcat as well;

Get the cvs download and copy
contrib/tomcat/tomcat-service.jar to
jboss2.2/lib/ext (there is a bug in the 2.2
distribution)

Edit the tomcat/conf/server.xml file


RequestInterceptor
className=org.apache.tomcat.request.JDBCRealm
debug=99
driverName=org.hsql.jdbcDriver

connectionURL=jdbc:HypersonicSQL:hsql://localhost:1476
connectionName=sa
connectionPassword=
userTable=principals
userNameCol=PrincipalID
userCredCol=password
userRoleTable=roles
roleNameCol=role /

  RequestInterceptor 
className=org.jboss.tomcat.security.JbossRealm
/



--- Julian Gosnell [EMAIL PROTECTED] wrote:
 If you let me know exactly what you expect from
 JBoss-Jetty in this
 respect, I'll look at getting it into the next
 release.
 
 Jules
 
 
 Joel Boehland wrote:
 
  Hi--
  I have seen the response to this question, and it
  seems the path is fairly clear for using jass +
 tomcat
  + jboss, but I was wondering if anyone has also
 done
  this with jaas + Jetty + Jboss... anyone??
 
  Thanks,
  Joel
 
  --- John P. Coffey [EMAIL PROTECTED] wrote:
   I'm very new at using JBoss and my first task is
 to
   attempt to secure an
   existing set of EJB beans via roles and users. 
 I
   intend using a database to
   store these in.
 
  __
  Do You Yahoo!?
  Yahoo! Auctions - buy the things you want at great
 prices
  http://auctions.yahoo.com/
 
  ___
  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


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

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



[JBoss-user] Jboss archive

2001-05-01 Thread Micky I. Mimo

Does anyone now where I can find old archive binary versions of Jboss?
jboss.org seems to only have the latest and greatest.
I am looking for jboss 2.0.  

Michael Mimo
Systems Specialist
Voice: 781-457-1317 
[EMAIL PROTECTED]

 

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



Re: [JBoss-user] from mod_jserv to mod_jk problems

2001-05-01 Thread Vinay Menon
 This is some documentation I prepared as I configured my Apache-Tomcat instances. You might find it helpful. Also, remember that you can configure servlet aliases with your web.xml file.   Setting up Apache to use Tomcat as its servlet/JSP engine. 1. Copy mod_jk.dll/mod_jk.so to the 'modules' directory under Apache.  The mod files can be got from For NT:http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/win32/i386/ For Linux:http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/linux/i386/ 2. Add the following block to your TOMCAT_HOME/conf/server.xml file. Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/ Parameter name="port" value="8009"//ConnectorNOTE: Do not remove the Connector setting for Ajp12 as it is required to shut down Tomcat  [otherwise it would throw a truck load exception!] 3. Edit the TOMCAT_HOME\conf\workers.properties file to set the following up correctly,workers.tomcat_home=TOMCAT_HOMEworkers.java_home=JAVA_HOMEps=\ eg: for NTworkers.tomcat_home=D:\Applications\jboss-tomcat-2.1-beta\jakarta-tomcat-3.2.1\ workers.java_home=D:\Applications\jdk1.3.0_02ps=\ or,  workers.tomcat_home=%TOMCAT_HOME%workers.java_home=%JAVA_HOME%ps=\eg: for Linuxworkers.tomcat_home=$TOMCAT_HOMEworkers.java_home=$JAVA_HOMEps=/ 4. At the end of the APACHE_HOME\conf\httpd.conf file add NOTE:The actual values for your system can be obtained from the TOMCAT_HOME\conf\mod_jk.conf-auto file.  LoadModule jk_module modules/mod_jk.dllJkWorkersFile "D:/Applications/jboss-tomcat-2.1-beta/jakarta-tomcat-3.2.1/conf/workers.properties"JkLogFile "D:/Applications/jboss-tomcat-2.1-beta/jakarta-tomcat-3.2.1/logs/mod_jk.log"JkLogLevel errorJkMount /*.jsp ajp13JkMount /servlet/* ajp13NOTE: This would change from system to system depending on the applications that you have configuredJkMount /webappname/servlet/* ajp13JkMount /webappname/*.jsp ajp13eg: for partmodelJkMount /partmodel/servlet/* ajp13JkMount /partmodel/*.jsp ajp13 5. Restart Tomcat/jBoss-Tomcat and Apache. You should be able to access your servlets and jsps at default Apache Web Server port] The complete configuration information is available at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html or at TOMCAT_HOME\doc\mod_jk-howto.html- Original Message - From:Filip Hanik Sent:Tuesday, May 01, 2001 8:21 PM To:[EMAIL PROTECTED] Subject:RE: [JBoss-user] from mod_jserv to mod_jk problems this is a Tomcat question, if you get it to work on standalone tomcat, it isguaranteed to work on the embedded one tootake a look at the tomcat documentation (RTFM :)Filip~Namaste - I bow to the divine in you~Filip HanikSoftware Architect[EMAIL PROTECTED]www.filip.net -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Marcel Schepers Sent: Tuesday, May 01, 2001 10:59 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] from mod_jserv to mod_jk problems Hi everybody, this is not directly a jboss related question, but I think it is relevant. I am now using apache in conjunction with mod_jserv to serve servlets on my webserver. These servlets are in a variety of directories, however none of them called .../servlet/.. Because I want to migrate to the combination of apache and the integrated jboss/tomcat architecture in order to deploy EJBs, I would like to know if it is possible to create "custom" subdirectories from which to serve my old servlets, so I don't have to rewrite the existing sites. Maybe I should say URLs instead of subdirectories. For instance a login servlet with the url http://myserver/modules/Login... Creating http://myserver/modules/servlet/Login is very straightforward, but I am at a loss at how to get the old URL operational. It would also be very helpful if I could leave the filestructures of the old sites intact, but all help will be greatly appreciated. Thank you very much in advance, Jeroen  Marcel ___ 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 Get your FREE download of MSN Explorer at http://explorer.msn.com


Re: [JBoss-user] Docs for JBoss Test suite

2001-05-01 Thread Scott M Stark

There isn't any documentation for the tests currently. The tests manage their
own dependencies by deploying the j2ee units they test against using the JMX
connector interface. Only the security-tests target has a non-trivial setup step
that must be performed once against a JBoss server dist before it can be run.

- Original Message - 
From: Brett Palmer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 01, 2001 7:12 AM
Subject: [JBoss-user] Docs for JBoss Test suite


 I've recently downloaded the latest suite of tests for JBoss. Are there any 
 docs for these tests or is the documentation in the tests?  It would be nice 
 to know what the dependencies are for each tests (e.g. Bean1 must be 
 deployed prior to running test1, etc)?
 
 Any information on the subject would be appreciated.
 
 Brett
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.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: [JBoss-user] It never finds beans in another *.jar's

2001-05-01 Thread Vinay Menon
Have had quitea few chaps usually put the jndi names in something as simple as a resource bundle/properties file. Then it wouldn't need a recompile of code an option you might want to try? However, I must add that it is recommended by folks at jboss that ejbs that are referenced by one another be bundled together in a single jar...  Your views?  Vinay   - Original Message - From:Guy Rouillier Sent:Tuesday, May 01, 2001 8:07 PM To:[EMAIL PROTECTED] Subject:Re: [JBoss-user] It never finds beans in another *.jar's I'm going to be doing this in the near future, so I took a look at the docs. It said to use a jndi-name like this:  jndi-namet3://otherserver/application/beanB/jndi-name  If I understand this correctly, the JNDI name is the name we use in the ctx.lookup() call. With the above, a lookup for an external EJB on the same JBoss is different from a lookup for the same EJB on a different JBoss. Wouldn't that require a source code change? That would not be good.  - Original Message -  From: Vinay Menon  To: JBOSS  Sent: Sunday, April 29, 2001 11:47 AM Subject: Re: [JBoss-user] It never finds beans in another *.jar's  Hi,  Check out the section 'External EJB Reference' in chapter 6 in the online documentation for jboss at www.jboss.org\documentation\HTML\ch06s05.html  Vinay Get your FREE download of MSN Explorer at http://explorer.msn.com


[JBoss-user] Transaction Problem.

2001-05-01 Thread Roman Brouk

i am having problems resolving programmatic transactions. What i am running
into is that if you have to create two entity beans in your transaction
block between begin and commit,  database connection which i get from
Datasouce for the second bean is not able to understand that i already have
one connection created by first entity bean.  So it assigns new connection
object for the second entity bean.  Then if transaction block did not
succeed then rollback fails because it can not deal with two connection
objects.

any thoughts?

I am using programmatic approach. (i assume i don't need to put anything
additional for that in ejb-jar for the transactions. Right?)

-roman.


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



Re: [JBoss-user] SUPPORT OF JBOSS --IMPORTANT-- PLEASE READ

2001-05-01 Thread Alexander Kogan

Mark,

You can count on me. 

I guess Chris sad it right:

Trawick, James wrote:
 I can see how that kind of experience can be useful to the JBoss group.
 I'll be willing to help out part-time as long as it doesn't interfere with
 my current full-time work.


About myself: I've been working with jboss since summer 2000.
I'm on sort of an web-based engineering application center for
our company (www.ptc.com). The preliminary design stage is
finished and prototype has been built (tomcat, jboss with MDBs
and custom MBeans). Also I'm a bit familiar with jboss and jnp code.

regards,

-- 
__
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] deploying from a directory

2001-05-01 Thread Ivan



Unjaring the jar file into the deploy directory does not 
seem to generate an autodeploy. 

I think the docs metioned that the autodeployer looks for 
either ear, jar, war OR an xml deployment descriptor( i think i read 
that)

However possibly because the deployment descriptor is 
within a META-INF directory it is not finding.

Either way I am pretty sure that when I just unjar a jar 
into deploy directory nothing happens.

It sure would be good in development to just make changes 
to a folder and not have to rejar, when developing ear files this need is 
increased because of having to do this twice.

Any more thoughts on this topic are greatly 
appreciated

Ivan

  - Original Message - 
  From: 
  Vinay Menon 
  
  To: JBOSS 
  Sent: Tuesday, May 01, 2001 7:04 AM
  Subject: Re: [JBoss-user] deploying from 
  a directory
  
  You should be able to simply unjar the jar file that you use for usual 
  deployments into the JBOSS_DEPLOY directory [you can change this if you 
  wanted]
  
  Vinay
  
  
- Original Message -
From:Ivan
Sent:Tuesday, May 01, 2001 9:53 
AM
To:[EMAIL PROTECTED]
Subject:[JBoss-user] deploying 
from a directory
Hi,Has any one been able to deploy an EAR, JAR, or 
WAR as an expandeddirectory. If so do you know of a location on 
the web with instructions.It seems just placing the directory in the 
deploy folder does not 
doanything.ThanksIvan___JBoss-user 
mailing 
list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-user

  
  
  Get your FREE download of MSN Explorer at http://explorer.msn.com
  


Re: [JBoss-user] should all ejbs be specified in one ejb-jar.xml file

2001-05-01 Thread danch



purushottam naktode wrote:
 
 Hi,
   I am trying to deploy multiple ejbs, each packaged
 in a seperate jar and having their own ejb-jar.xml and
 jboss.xml file ( Q 1. Should it also have jaws.xml ?
 Q2. Should jaws.xml be derived from
 \conf\standardjaws.xml Q3. Should all ejbs be
 specified in only one ejb-jar.xml file ?)

A 1: Only if you have CMP entity beans. From the error below, you don't
seem to need it.
A 2: Only put in jaws.xml what you need to be different from
standardjaws.xml, and
CMP entity specific stuff (field-column mappings, etc.)
A 3: There are a lot of advantages to packaging related EJBs in a single
jar file. That's how I do it.


I get the error  bean found in jaws.xml but is not
 cmp-managed in ejb-jar.xml file (not exact message).
 What could be the problem. Please help.
If you have no CMP beans, you have no nead for JAWS.

-danch
Confidential e-mail for addressee only.  Access to this e-mail by anyone else is 
unauthorized.
If you have received this message in error, please notify the sender immediately by 
reply e-mail 
and destroy the original communication.


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



Re: [JBoss-user] Problem building JBoss-modified Petstore

2001-05-01 Thread danch

These are in jbosssx-client.jar

Shriver, Ryan wrote:
 
 Hey all,
 I'm new JBoss and I'm trying to get the PetStore v1.1.1 to run in JBoss.
 I'm following the directions at:
 
 http://www.jboss.org/documentation/petstore-1.1.1-01.html
 
 but not having luck building the petstore application after I apply the
 JBoss patch. Ant can't seem to find these two classes that are imported in
 JBossSecurityAdapter:
 
 org.jboss.security.SecurityAssociation
 org.jboss.security.SimplePrincipal
 
 Looking around the petstore build.xml file (replaced by the patch), I see
 JBoss/lib/ext/jboss.jar and JBoss/bin/run.jar are added to the classpath,
 but neither .jar seems to contain these classes. Does anyone know where they
 reside?
 
 -ryan
 
 PS. Note to the authors of the petstore-1.1.1-01.html file. It appears the
 jboss.home property in build.xml needs to be changed to point to your JBoss
 root dir. There's no mention of this in the directions. Possibly someone can
 add it?
 
 PPS. Platform is Win NT 4.0, Sun JDK 1.3, JBoss 2.2.1 w/Tomcat 3.2.1
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
Confidential e-mail for addressee only.  Access to this e-mail by anyone else is 
unauthorized.
If you have received this message in error, please notify the sender immediately by 
reply e-mail 
and destroy the original communication.


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



Re: [JBoss-user] should all ejbs be specified in one ejb-jar.xml fil

2001-05-01 Thread Vinay Menon
Purushottam,  1. You need to have a jaws.xml file if you have entity beans. That's where you'd set up the datasource to use and the type mappings if you are not happy with the standardjaws.xml file, the bean fields and the mapping to the database columnsand so on and so forth. 2.To the best of my knowledge, jaws.xml settings would override settings in standardjaws.xml. I wouldn't really call it 'derived'. There is usually a great deal more of info in the standardjaws.xml filethan you'd ever have in the jaws.xml file :) 3. Would be best if you have the ejbs packaged in a single jar file, unless you have a very good reason. Vinay   - Original Message - From:purushottam naktode Sent:Tuesday, May 01, 2001 8:01 PM To:[EMAIL PROTECTED] Subject:[JBoss-user] should all ejbs be specified in one ejb-jar.xml fil Hi, I am trying to deploy multiple ejbs, each packagedin a seperate jar and having their own ejb-jar.xml andjboss.xml file ( Q 1. Should it also have jaws.xml ?Q2. Should jaws.xml be derived from\conf\standardjaws.xml Q3. Should all ejbs bespecified in only one ejb-jar.xml file ?) I get the error "bean found in jaws.xml but is notcmp-managed in ejb-jar.xml file" (not exact message).What could be the problem. Please help.Thanks,Puru.__Do You Yahoo!?Yahoo! Auctions - buy the things you want at great priceshttp://auctions.yahoo.com/___JBoss-user mailing list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-user Get your FREE download of MSN Explorer at http://explorer.msn.com


Re: [JBoss-user] JSP's not finding classes in application

2001-05-01 Thread danch

I believe the problem is that when Jasper compiles JSP, it includes
neither the ejb jar files 
nor any other application jar files in the compiler classpath. Try
unjarring them into the war's WEB-INF/classes directory.

HTH
-danch

Leonard Kierstead wrote:
 
 I can't get JBoss/Tomcat to find classes that are in my application war
 file.  When I access any  of the JSP's in application I get the following
 error:
 Class com.cerulean.amstel1.UnitInfoHome not found in import
 
 The class is in both my application jar file and the special jar file that
 allows
 optimized interactions across container boundaries.  The manifest file in my
 war archive (META-INF\MANIFEST.MF) specifies the class path as
 follows:
 
 Class-Path: ./ejb-client.jar
 
 ejb-client.jar is the  special jar file that allows optimized interactions
 across
 container boundaries.
 
 I'm running on Windows 2000 with version 2.2.1 of JBoss.
 
 Here is the complete error message:
 
 2001-05-01 09:11:59 - Ctx( /amstel ): JasperException: R( /amstel +
 /UnitInfoTestCreate.jsp + null) Unable to compile class f
 or
 JSPC:\JBoss-2.2.1_Tomcat-3.2.1\tomcat\work\localhost_8080%2Famstel\_0002fUni
 tInfoTestCreate_0002ejspUnitInfoTestCreate_jsp
 _32.java:23: Class com.cerulean.amstel1.UnitInfoHome not found in import.
 import com.cerulean.amstel1.UnitInfoHome;
 
 Thanks for any help anyone can offer,
 
 Leonard
 
 PS. please reply back to [EMAIL PROTECTED]
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
Confidential e-mail for addressee only.  Access to this e-mail by anyone else is 
unauthorized.
If you have received this message in error, please notify the sender immediately by 
reply e-mail 
and destroy the original communication.


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



Re: [JBoss-user] It never finds beans in another *.jar's

2001-05-01 Thread danch

The example you quote is for accessing a WebLogic managed bean from a
JBoss managed one. Bean to Bean within a JBoss instance is simpler (If
bean B is deployed in another application, but on the same jboss server,
the jndi-name you provide must be the name under which bean B is
deployed.). 

That JNDI name is the JNDI name that is bound to your reference, not the
one you look up. In your code you look up whatever you specified as
ejb-ref-name, prepended with 'java:comp/env/'

Hence, in the example you quote
(http://www.jboss.org/documentation/HTML/ch06s05.html), your code looks
up java:comp/env/ejb/myBean

-danch




I'm going to be doing this in the near future, so I took a look at the
docs.  It said to use a jndi-name like this:
 
jndi-namet3://otherserver/application/beanB/jndi-name
  
If I understand this correctly, the JNDI name is the name we use in the
ctx.lookup() call.  With the above, a lookup for an external

EJB on the same JBoss is different from a lookup for the same EJB on a
different JBoss.  Wouldn't that require a source code
change?  That would not be good.
Confidential e-mail for addressee only.  Access to this e-mail by anyone else is 
unauthorized.
If you have received this message in error, please notify the sender immediately by 
reply e-mail 
and destroy the original communication.


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



RE: [JBoss-user] ZOAP doc dead link

2001-05-01 Thread WMckean

I was under the impression that jboss ZOAP is on hold.  Look at Apache SOAP.
It works with Tomcat and jBoss EJBs.  I've tried it.  Works great.

Wes

-Original Message-
From: fractals [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 3:38 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] ZOAP doc dead link


I can't get a hold on the ZOAP info page: http://www.jboss.org/zoap/zoap.htm
Can somebody point me to a documentation resource concerning this
technology, which, BTW, seems to me of great interest to avoid dumb servlet
coding !!!

Thanks in advance

Candide Kemmler


___
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] jbosstest\mdb

2001-05-01 Thread WMckean

The MDB test in jbosstest is hanging.  Not sure what is causing it, but the
client hangs when it tries to return from Main.  This is with the CVS from
last night.

Wes



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



[JBoss-user] problem with implementing test mdb

2001-05-01 Thread kidong

hello,

i downloaded the latest jboss test jar file from cvs, and i tried
implementing a client (in mdbtest.bat)  for message driven bean, but the
following error is caught like this:
...
Deploying
javax.naming.ServiceUnavailableException: connect (code=10055).  Root
exception
is java.net.SocketException: connect (code=10055)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:323)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:136)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:123)
at java.net.Socket.init(Socket.java:273)
at java.net.Socket.init(Socket.java:100)
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:94)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:693)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:286)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:279)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at org.jboss.jmx.client.Deployer.deploy(Deployer.java:54)
at org.jboss.test.mdb.test.Main.setUp(Main.java:149)
at org.jboss.test.mdb.test.Main.main(Main.java:158)

_
Sorry, test failed.
...

I have no idea about this exception.
does anybody idea about it?

thanks in advance,

kidong


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



Re: [JBoss-user] It never finds beans in another *.jar's

2001-05-01 Thread Scott M Stark


That is not the correct understanding of the jndi-name element from the jboss.xml
descriptor. The docs show an example of an ejb-jar.xml of:
ejb-jar
  enterprise-beans
session
  ejb-nameBean A/ejb-name
  homeAHome/home
  remoteA/remote
  ejb-classABean/ejb-class
  session-typeStateful/session-type
  transaction-typeContainer/transaction-type
  ejb-ref
ejb-ref-nameejb/myBean/ejb-ref-name
ejb-ref-typeEntity/ejb-ref-type
homeBHome/home
remoteB/remote
  /ejb-ref
/session

  /enterprise-beans
  ...
/ejb-jar

with a jboss.xml of:
jboss
  enterprise-beans
session
  ejb-nameBean A/ejb-name
  ejb-ref
ejb-ref-nameejb/myBean/ejb-ref-name
jndi-namet3://otherserver/application/beanB/jndi-name
  /ejb-ref
/session
  enterprise-beans
/jboss

In the bean code the external EJB is retrieved from JNDI exactly the same as an 
internal
bean and the only JNDI names in the code are those used in the ejb-jar.xml descriptor:

Context ctx = new InitialContext();
BHome home = (BHome) ctx.lookup(java:comp/env/ejb/myBean);

The jndi-name value is only used by the deployment framework to specify what
the binding for the java:comp/env/ejb/myBean name is since this cannot be
specified via an ejb-link which points to another bean in the same ejb-jar.

- Original Message -
From: Guy Rouillier
To: [EMAIL PROTECTED]
Sent: Tuesday, May 01, 2001 8:55 AM
Subject: Re: [JBoss-user] It never finds beans in another *.jar's


I'm going to be doing this in the near future, so I took a look at the docs.  It said 
to use a jndi-name like this:

jndi-namet3://otherserver/application/beanB/jndi-name

If I understand this correctly, the JNDI name is the name we use in the ctx.lookup() 
call.  With the above, a lookup for an external
EJB on the same JBoss is different from a lookup for the same EJB on a different 
JBoss.  Wouldn't that require a source code change?
That would not be good.
- Original Message -
From: Vinay Menon
To: JBOSS
Sent: Sunday, April 29, 2001 11:47 AM
Subject: Re: [JBoss-user] It never finds beans in another *.jar's


Hi,
 Check out the section 'External EJB Reference' in chapter 6 in the online 
documentation for jboss at
www.jboss.org\documentation\HTML\ch06s05.html

Vinay


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



Re: [JBoss-user] javax/rmi/PortableRemoteObject

2001-05-01 Thread Toby Allsopp

On Tue, May 01, 2001 at 01:40:29PM -0700, Ivan wrote:
 Hi all,
 
 My servlet is trying to access a deployed ejb, but the servlet is getting
 the error
 
 java.lang.NoClassDefFoundError: javax/rmi/PortableRemoteObject
 
 I found that class in the file j2ee.jar and tried adding it to the class
 path.but the error remains
 
 Does anyone know how to get embedded tomcat to read that jar and find the
 PortableRemoteObject class?
 
 I also tried adding the j2ee.jar to the lib folder of tomcat but that
 crashed the startup of jboss tomcat.
 
 If you have any suggestions, they would be most welcome.

1.  Check the list archives before posting a question.
2.  DO NOT BRING j2ee.jar INTO CONTACT WITH JBOSS!!!
3.  You need either Java 1.3 or the RMI/IIOP thingy from Sun.

Toby.

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



Re: [JBoss-user] Integrating Tomcat and jBoss security logon

2001-05-01 Thread Scott M Stark

Use the bundled JBoss/tomcat binary release to ensure you get a correctly
configured tomcat setup. 
http://prdownloads.sourceforge.net/jboss/JBoss-2.2.1_Tomcat-3.2.1.zip

- Original Message - 
From: Bennett, Peter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 01, 2001 1:53 AM
Subject: [JBoss-user] Integrating Tomcat and jBoss security logon


 I have looked in user manuals, FAQs and mailing list archives but cannot
 find the answer to a deceptively simple question that I hope you can help
 with ...
 
 How do I allow a user to logon to my Tomcat server and then pass their logon
 username and password transparently down to any enterprise beans that the
 JSP uses on their behalf ?



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



Re: [JBoss-user] It never finds beans in another *.jar's

2001-05-01 Thread Vinay Menon
My oversight!  Yes. You might as well use an environmental variable. But most organizations drive applications from a config cache that store application variables. Just a practice and its definitely easier to manage... rather than editing config files across multiple machines! So yes, you could use it but in a real deployment scenarios won't we want to centralize maintanence of the config values.   Since the t3 protocol is a weblogic thingey, the protocol for jboss would just be java: and the complete url be java:comp/env/ejb/ejb_name_to_lookup. Vinay   - Original Message - From:Steve Swing Sent:Tuesday, May 01, 2001 10:28 PM To:[EMAIL PROTECTED] Subject:Re: [JBoss-user] It never finds beans in another *.jar's Could you use an environment entry? env-entry env-entry-nameReallyRemoteBean/env-entry-name env-entry-typejava.lang.String/env-entry-type env-entry-valuet3://otherserver/application/beanB/env-entry-value /env-entry // this could be done one time and cached // I'm not certain if you need the java:comp/ prefix here String jndiName := (String)ctx.lookup("java:comp/env/ReallyRemoteBean"); BHome home = (BHome)ctx.lookup(jndiName); B bean = home.create(pk);You're doing two lookups but at least you don't have to change code. Theenvironment entry name is hard coded instead. This is an alternative toVinay's acceptable solution. The advantage here is the jndi name isn't in aseparate properties file that must also be edited, deployed,  managed. It'sin the DD where Bean B is hosted and the DD (in two or more elements) foreach client of Bean B.My $1/50.Steve- Original Message -From: Vinay MenonTo: JBOSSSent: Tuesday, May 01, 2001 4:02 pmSubject: Re: [JBoss-user] It never finds beans in another *.jar'sHave had quite a few chaps usually put the jndi names in something as simpleas a resource bundle/properties file. Then it wouldn't need a recompile ofcode an option you might want to try? However, I must add that it isrecommended by folks at jboss that ejbs that are referenced by one anotherbe bundled together in a single jar...Your views?Vinay- Original Message -From: Guy RouillierSent: Tuesday, May 01, 2001 8:07 PMTo: [EMAIL PROTECTED]Subject: Re: [JBoss-user] It never finds beans in another *.jar'sI'm going to be doing this in the near future, so I took a look at the docs.It said to use a jndi-name like this:jndi-namet3://otherserver/application/beanB/jndi-nameIf I understand this correctly, the JNDI name is the name we use in thectx.lookup() call. With the above, a lookup for an external EJB on the sameJBoss is different from a lookup for the same EJB on a different JBoss.Wouldn't that require a source code change? That would not be good.- Original Message -From: Vinay MenonTo: JBOSSSent: Sunday, April 29, 2001 11:47 AMSubject: Re: [JBoss-user] It never finds beans in another *.jar'sHi, Check out the section 'External EJB Reference' in chapter 6 in theonline documentation for jboss atwww.jboss.org\documentation\HTML\ch06s05.htmlVinay___JBoss-user mailing list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-user  Get your FREE download of MSN Explorer at http://explorer.msn.com


Re: [JBoss-user] Integrating Apache+Tomcat+jBoss, can't see jBoss web apps

2001-05-01 Thread Todd Chaffee

When jboss deploys a tomcat app it has no way deploying it to a specific
virtual hosts. You can get more details by searching the message
archives with 'apache tomcat virtual host'. You should find a very
detailed message with my findings about how to work around this
limitation. Good luck.

- Todd Chaffee

At 12:58 PM 05/01/01 -0400, you wrote:

I was able to get
Apache to Serve Tomcat applications with the following configuration in
my httpd.conf, however applications deployed through jBoss are not
visible to Apache since the .war file is placed in jBoss deployment
directly, anyone know what I should do to make applications deployed in
jBoss available to Apache?

Thanks! 

httpd.conf 
= 

DocumentRoot
/opt/JBoss-2.2.1_Tomcat-3.2.1/jakarta-tomcat-3.2.1/webapps


# Configure mod_jk 
# 

JkWorkersFile
/opt/JBoss-2.2.1_Tomcat-3.2.1/jakarta-tomcat-3.2.1/conf/workers.

properties 
JkLogFile
/usr/local/apache/logs/mod_jk.log 
JkLogLevel warn 

# First Virtual Host. 
# 
VirtualHost 10.0.0.1:80 
 DocumentRoot
/opt/JBoss-2.2.1_Tomcat-3.2.1/jakarta-tomcat-3.2.1/webapps 
 ServerName foo.bar.com 
 JkMount /* ajp13 
 JkMount /*.jsp ajp13 
 JkMount /servlet/* ajp13 
/VirtualHost 


[JBoss-user] COM.cloudscape.coreRmiJdbcDriver

2001-05-01 Thread Shriver, Ryan

Thanks for the answer about where to find the org.jboss.security classes. I
found them in jboss-jaas.jar and was able to build a patched Petstore
successfully.

Now I'm running to problems deploying the patched petstore.ear in JBoss
2.2.1 w/ Tomcat 3.2.1. I get this exception when starting JBoss:

[EmbeddedTomcat] Starting
[EmbeddedTomcat] Starting EmbeddedTomcat
2001-05-01 05:09:36 - ContextManager: Adding context Ctx( /examples )
2001-05-01 05:09:36 - ContextManager: Adding context Ctx( /admin )
[EmbeddedTomcat] Starting tomcat. Check logs/tomcat.log for error messages
2001-05-01 05:09:36 - ContextManager: Adding context Ctx(  )
2001-05-01 05:09:36 - ContextManager: Adding context Ctx( /test )
[EmbeddedTomcat] java.lang.RuntimeException: JDBCRealm.start.readXml:
java.lang.ClassNotFoundException: COM.cloudscape.coreRmiJdbcDriver
[EmbeddedTomcat]at
org.apache.tomcat.request.JDBCRealm.contextInit(JDBCRealm.java:436)

It can't find COM.cloudscape.coreRmiJdbcDriver. I think someone made a typo
b/c this should be COM.cloudscape.core.RmiJdbcDriver (note the period; core
is a package) which is available in cloudscape.jar. I searched the archives
and didn't see any mention of this. Can anyone confirm this?

-ryan

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



Re: [JBoss-user] ZOAP doc dead link

2001-05-01 Thread fractals


 I was under the impression that jboss ZOAP is on hold.  Look at Apache
SOAP.
 It works with Tomcat and jBoss EJBs.  I've tried it.  Works great.

I was there already but I found nothing about interfacing with EJB's. Only
RPC and SMTP stuff which I know nothing about. Or do you know how to use
Apache SOAP with Jboss/is there a link you can provide me with ?

Yes indeed the ZOAP thing looks quite dead :-( I could get the thing only by
CVS...

Thanks for your answer :-)

Candide


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



Re: [JBoss-user] deploying from a directory

2001-05-01 Thread Vinay Menon
Do you want to give one last shot cleaning up the deploy directory - just remove the jar file and the tmp directoy files corresponding to the jar? Also, am assuming that the classes and the META-INF is not is the classpath otherwise??? I found that since Jboss uses the delegation model for class loaders if the classes or the META-INF are there in the system class path it will look up those classes directly without bothering about the stuff out into the deploy directory [parent classloader first and then the child classloader!]  If you want me to give the jar file a shot please feel free to send it across.   Vinay   - Original Message - From:Ivan Sent:Tuesday, May 01, 2001 10:50 PM To:[EMAIL PROTECTED] Subject:Re: [JBoss-user] deploying from a directory   Vinay,  Thank you again for your reply. I believe that the feature must work if it is working on your machine. However I have tried to do it a number of times and when i drop the jar into deploy folder all the messages come up and it says jar deployed, when i unjar the jar file to the deploy directory or copy the folders into the deploy no message at all is displayed on the console.  I have not changed the settings and my directory structure consists of META-INF with a ejb-jar.xml and then jbosstest with 4 class files inside. THe jar file version deploys so i assume the structure is ok.  H I guess I will just not worry about this feature for now, unless you have any other ideas.  Thanks again, Ivan  - Original Message -  From: Vinay Menon  To: JBOSS  Sent: Tuesday, May 01, 2001 1:35 PM Subject: Re: [JBoss-user] deploying from a directory  Ivan,  I am pretty sure that simply unjaring the fille as-is to the deploy directory should work because I have got it to deploy that way. The ejb-jar.xml etc which is in the META-INF directory is loaded by the class loader and should load without any problems. Do you get any message at all when you unjared the file to the deploy directory? I am assuming that if your jar file had the structure  class1.class pack1.pack2 class2.class pack1.pack2 ejb-jar.xml META-INF  you are unjarring to the deploy directory directly. So you basically have under the following structure in deploy  deploy  -pack1  -pack2  |  class1.class  class2.class  -META-INF  |  ejb-jar.xml  Also am assuming that you have *NOT* changed the jboss configuration to use a different deploy directory.  Vinay- Original Message - From:Ivan Sent:Tuesday, May 01, 2001 9:31 PM To:[EMAIL PROTECTED] Subject:Re: [JBoss-user] deploying from a directory Unjaring the jar file into the deploy directory does not seem to generate an autodeploy.   I think the docs metioned that the autodeployer looks for either ear, jar, war OR an xml deployment descriptor( i think i read that)  However possibly because the deployment descriptor is within a META-INF directory it is not finding.  Either way I am pretty sure that when I just unjar a jar into deploy directory nothing happens.  It sure would be good in development to just make changes to a folder and not have to rejar, when developing ear files this need is increased because of having to do this twice.  Any more thoughts on this topic are greatly appreciated  Ivan  - Original Message -  From: Vinay Menon  To: JBOSS  Sent: Tuesday, May 01, 2001 7:04 AM Subject: Re: [JBoss-user] deploying from a directory  You should be able to simply unjar the jar file that you use for usual deployments into the JBOSS_DEPLOY directory [you can change this if you wanted]  Vinay   - Original Message - From:Ivan Sent:Tuesday, May 01, 2001 9:53 AM To:[EMAIL PROTECTED] Subject:[JBoss-user] deploying from a directory Hi,Has any one been able to deploy an EAR, JAR, or WAR as an expandeddirectory. If so do you know of a location on the web with instructions.It seems just placing the directory in the deploy folder does not doanything.ThanksIvan___JBoss-user mailing list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-userGet your FREE download of MSN Explorer at http://explorer.msn.com Get your FREE download of MSN Explorer at http://explorer.msn.com  Get your FREE download of MSN Explorer at http://explorer.msn.com


Re: [JBoss-user] NoClassDefFoundError: javax/servlet/http/HttpServle

2001-05-01 Thread Vinay Menon
It is not loading servlet.jar cos that is only there in the tomcat lib. Just shove a copy of that under JBOSS_HOME/lib/ext and it should find it on restart.   Vinay   - Original Message - From:Norton Lam Sent:Tuesday, May 01, 2001 10:58 PM To:'[EMAIL PROTECTED]' Subject:[JBoss-user] NoClassDefFoundError: javax/servlet/http/HttpServle Can someone please help me with this exception I'm getting from my servlet?java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletat java.lang.ClassLoader.defineClass0(Native Method)at java.lang.ClassLoader.defineClass(ClassLoader.java, CompiledCode)atjava.security.SecureClassLoader.defineClass(SecureClassLoader.java, CompiledCode)at java.net.URLClassLoader.defineClass(URLClassLoader.java, CompiledCode)at java.net.URLClassLoader.access$1(URLClassLoader.java, CompiledCode)at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code)at java.security.AccessController.doPrivileged(Native Method)at java.net.URLClassLoader.findClass(URLClassLoader.java, CompiledCode)at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java,Compiled Code)at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)atorg.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java, Compiled Code)atorg.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoader.java, Compiled Code)atorg.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java,Compiled Code)at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java,Compiled Code)at org.apache.tomcat.core.Handler.service(Handler.java, CompiledCode)atorg.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, CompiledCode)atorg.apache.tomcat.core.ContextManager.internalService(ContextManager.java,Compiled Code)atorg.apache.tomcat.core.ContextManager.service(ContextManager.java, CompiledCode)atorg.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java, Compiled Code)atorg.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,Compiled Code)atorg.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,Compiled Code)at java.lang.Thread.run(Thread.java, Compiled Code)I'm running on Linux with Apache 1.3.19 delegating to Tomcat/Jboss. I'mrunningmy own version of tomcat (instead of the JBoss-Tomcat distribution) becauseIneed a virtual host configuration through apache.Jboss reports the TOMCAT_HOME/lib/servlet.jar being added to the classpathextension when it's started.[Classpath extension] Addedlibrary:file:/usr/local/jakarta-tomcat-3.2.1/lib/ant.jar[Classpath extension] Addedlibrary:file:/usr/local/jakarta-tomcat-3.2.1/lib/jaxp.jar[Classpath extension] Addedlibrary:file:/usr/local/jakarta-tomcat-3.2.1/lib/servlet.jar[Classpath extension] Addedlibrary:file:/usr/local/jakarta-tomcat-3.2.1/lib/parser.jar[Classpath extension] Addedlibrary:file:/usr/local/jakarta-tomcat-3.2.1/lib/webserver.jar[Classpath extension] Addedlibrary:file:/usr/local/jakarta-tomcat-3.2.1/lib/jasper.jar[Classpath extension] Added library:file:/usr/local/jdk1.2.2/lib/tools.jarThe servlet works fine when run via tomcat alone, but not with thejboss/tomcatcombination.Is there something else I should check?Thanx for your help.Norton___JBoss-user mailing list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-user Get your FREE download of MSN Explorer at http://explorer.msn.com


[JBoss-user] org.xml.sax.SAXParseException: Document root element is missing

2001-05-01 Thread Jason Durst



I am new to JBOSS and EJB's in general. I have 
created several beans and "jarr'ed" them along with the corresponding home 
interfaces, remote interfaces and the deployment descriptor. When I drop my jar 
file in the deploy folder, this is the error I get. I would appreciate it if 
anyone could give me a clue as to what the error is referring to with: 
org.xml.sax.SAXParseException: Document root element is missing. If additional 
information is necessary I would be glad to provide it. Thank you in advance for 
your help.

I suspect that the problem is with my ejb-jar.xml 
file but I cannot find a reference to this error.

jason

the error message continues but I thought that this 
was the relevant part.

[J2EE Deployer Default] Starting[J2EE Deployer 
Default] Cleaning up deployment directory[J2EE Deployer Default] 
Started[Auto deploy] Starting[Auto deploy] Watching 
E:\jboss-tomcat-2.2\jboss-2.2\deploy[Auto deploy] Auto deploy of 
file:/E:/jboss-tomcat-2.2/jboss-2.2/deploy/musicdb.jar[J2EE Deployer 
Default] Deploy J2EE application: 
file:/E:/jboss-tomcat-2.2/jboss-2.2/deploy/musicdb.jar[J2EE Deployer 
Default] Create application musicdb.jar[J2EE Deployer Default] install 
module musicdb.jar[Container factory] 
Deploying:file:/E:/jboss-tomcat-2.2/jboss-2.2/tmp/deploy/Default/musicdb.jar[Container 
factory] Document root element is missing.:-1:1[Container factory] 
org.xml.sax.SAXParseException: Document root element is missing.[Container 
factory] at 
org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035)[Container 
factory] at 
org.apache.crimson.parser.Parser2.fatal(Parser2.java:3023)[Container 
factory] at 
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java, Compiled 
Code)[Container factory] at 
org.apache.crimson.parser.Parser2.parse(Parser2.java:304)[Container 
factory] at 
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)[Container 
factory] at 
org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:179)[Container 
factory] at 
javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:86)[Container 
factory] at 
org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:148)[Container 
factory] at 
org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:132)[Container 
factory] at 
org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:89)[Container 
factory] at 
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java, Compiled 
Code)[Container factory] at 
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java, Compiled 
Code)[Container factory] at 
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java, Compiled 
Code)[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.startApplication(J2eeDeployer.java, Compiled 
Code)[Container factory] at 
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)[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:358)[Container 
factory] at 
org.jboss.ejb.AutoDeployer.run(AutoDeployer.java, Compiled Code)[Container 
factory] at 
org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java, Compiled 
Code)[Container factory] at 
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)[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.util.ServiceControl.start(ServiceControl.java, Compiled 
Code)[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.Main.init(Main.java, 
Compiled Code)[Container factory] at 
org.jboss.Main$1.run(Main.java:107)[Container 
factory] at 
java.security.AccessController.doPrivileged(Native Method)[Container 
factory] at org.jboss.Main.main(Main.java, Compiled 
Code)[Container factory] org.jboss.ejb.DeploymentException: Document root 
element is missing., Cause:org.xml.sax.SAXParseException: Document root element 
is missing.


RE: [JBoss-user] COM.cloudscape.coreRmiJdbcDriver

2001-05-01 Thread Richard Feit

Yes, that was the problem; at least, I ran into this yesterday and adding
the period fixed it.

Rich


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Shriver,
Ryan
Sent: Tuesday, May 01, 2001 3:40 PM
To: '[EMAIL PROTECTED]'
Subject: [JBoss-user] COM.cloudscape.coreRmiJdbcDriver


Thanks for the answer about where to find the org.jboss.security classes. I
found them in jboss-jaas.jar and was able to build a patched Petstore
successfully.

Now I'm running to problems deploying the patched petstore.ear in JBoss
2.2.1 w/ Tomcat 3.2.1. I get this exception when starting JBoss:

[EmbeddedTomcat] Starting
[EmbeddedTomcat] Starting EmbeddedTomcat
2001-05-01 05:09:36 - ContextManager: Adding context Ctx( /examples )
2001-05-01 05:09:36 - ContextManager: Adding context Ctx( /admin )
[EmbeddedTomcat] Starting tomcat. Check logs/tomcat.log for error messages
2001-05-01 05:09:36 - ContextManager: Adding context Ctx(  )
2001-05-01 05:09:36 - ContextManager: Adding context Ctx( /test )
[EmbeddedTomcat] java.lang.RuntimeException: JDBCRealm.start.readXml:
java.lang.ClassNotFoundException: COM.cloudscape.coreRmiJdbcDriver
[EmbeddedTomcat]at
org.apache.tomcat.request.JDBCRealm.contextInit(JDBCRealm.java:436)

It can't find COM.cloudscape.coreRmiJdbcDriver. I think someone made a typo
b/c this should be COM.cloudscape.core.RmiJdbcDriver (note the period; core
is a package) which is available in cloudscape.jar. I searched the archives
and didn't see any mention of this. Can anyone confirm this?

-ryan

___
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] No valid deployment descriptor

2001-05-01 Thread Chris Wilson
Title: No valid deployment descriptor






here's a weird one...


i have several ejb's that deploy and work fine when i am connected to my local area network. however, when i'm dialed up to my companies isp (which has some firewall restrictions on port usage), jboss attempts to deploy my ejb jar file but i get a big long stack trace saying that there is No valid deployment descriptor found in my jar. why does this work when i'm on my lan, but not over my modem? is jboss loading the jar from my file system using some port that is blocked when i'm using my modem?

anyone got any clues?


cheers,

chris


| chris wilson || web dev ||| [EMAIL PROTECTED] || | www.wondergeek.com | | 





RE: [JBoss-user] org.xml.sax.SAXParseException: Document root element is missing

2001-05-01 Thread Filip Hanik



looks 
like you have crimson.jar in your classpath and this may conflict with some 
other JAXP implementation (Xerces, jaxp.jar, parser.jar)

Filip

~Namaste - I bow to the divine in you~Filip 
HanikSoftware Architect[EMAIL PROTECTED]www.filip.net 

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Jason 
  DurstSent: Tuesday, May 01, 2001 3:14 PMTo: 
  [EMAIL PROTECTED]Subject: [JBoss-user] 
  org.xml.sax.SAXParseException: Document root element is 
  missing
  I am new to JBOSS and EJB's in general. I have 
  created several beans and "jarr'ed" them along with the corresponding home 
  interfaces, remote interfaces and the deployment descriptor. When I drop my 
  jar file in the deploy folder, this is the error I get. I would appreciate it 
  if anyone could give me a clue as to what the error is referring to with: 
  org.xml.sax.SAXParseException: Document root element is missing. If additional 
  information is necessary I would be glad to provide it. Thank you in advance 
  for your help.
  
  I suspect that the problem is with my ejb-jar.xml 
  file but I cannot find a reference to this error.
  
  jason
  
  the error message continues but I thought that 
  this was the relevant part.
  
  [J2EE Deployer Default] Starting[J2EE 
  Deployer Default] Cleaning up deployment directory[J2EE Deployer Default] 
  Started[Auto deploy] Starting[Auto deploy] Watching 
  E:\jboss-tomcat-2.2\jboss-2.2\deploy[Auto deploy] Auto deploy of 
  file:/E:/jboss-tomcat-2.2/jboss-2.2/deploy/musicdb.jar[J2EE Deployer 
  Default] Deploy J2EE application: 
  file:/E:/jboss-tomcat-2.2/jboss-2.2/deploy/musicdb.jar[J2EE Deployer 
  Default] Create application musicdb.jar[J2EE Deployer Default] install 
  module musicdb.jar[Container factory] 
  Deploying:file:/E:/jboss-tomcat-2.2/jboss-2.2/tmp/deploy/Default/musicdb.jar[Container 
  factory] Document root element is missing.:-1:1[Container factory] 
  org.xml.sax.SAXParseException: Document root element is missing.[Container 
  factory] at 
  org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035)[Container 
  factory] at 
  org.apache.crimson.parser.Parser2.fatal(Parser2.java:3023)[Container 
  factory] at 
  org.apache.crimson.parser.Parser2.parseInternal(Parser2.java, Compiled 
  Code)[Container factory] at 
  org.apache.crimson.parser.Parser2.parse(Parser2.java:304)[Container 
  factory] at 
  org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)[Container 
  factory] at 
  org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:179)[Container 
  factory] at 
  javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:86)[Container 
  factory] at 
  org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:148)[Container 
  factory] at 
  org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:132)[Container 
  factory] at 
  org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:89)[Container 
  factory] at 
  org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java, Compiled 
  Code)[Container factory] at 
  org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java, Compiled 
  Code)[Container factory] at 
  org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java, Compiled 
  Code)[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.startApplication(J2eeDeployer.java, Compiled 
  Code)[Container factory] at 
  org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)[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:358)[Container 
  factory] at 
  org.jboss.ejb.AutoDeployer.run(AutoDeployer.java, Compiled Code)[Container 
  factory] at 
  org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java, Compiled 
  Code)[Container factory] at 
  org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)[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.util.ServiceControl.start(ServiceControl.java, Compiled 
  Code)[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 
  

Re: [JBoss-user] javax/rmi/PortableRemoteObject

2001-05-01 Thread Ivan

Toby,

It seems it takes me 2 tries on everyting.  After reinstalling JDK 1.3
everything worked.  Thanks

Ivan

- Original Message -
From: Toby Allsopp [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 01, 2001 1:54 PM
Subject: Re: [JBoss-user] javax/rmi/PortableRemoteObject


 On Tue, May 01, 2001 at 01:40:29PM -0700, Ivan wrote:
  Hi all,
 
  My servlet is trying to access a deployed ejb, but the servlet is
getting
  the error
 
  java.lang.NoClassDefFoundError: javax/rmi/PortableRemoteObject
 
  I found that class in the file j2ee.jar and tried adding it to the class
  path.but the error remains
 
  Does anyone know how to get embedded tomcat to read that jar and find
the
  PortableRemoteObject class?
 
  I also tried adding the j2ee.jar to the lib folder of tomcat but that
  crashed the startup of jboss tomcat.
 
  If you have any suggestions, they would be most welcome.

 1.  Check the list archives before posting a question.
 2.  DO NOT BRING j2ee.jar INTO CONTACT WITH JBOSS!!!
 3.  You need either Java 1.3 or the RMI/IIOP thingy from Sun.

 Toby.

 ___
 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] org.xml.sax.SAXParseException: Document root el

2001-05-01 Thread Vinay Menon
crimson.jar*is* required and is added in classpath by the run script. Might be worthwhile looking at other xml parsers you may have in classpath. So if your run.bat has something like  set CLASSPATH=%CLASSPATH%;new items to put in cp  remove the %CLASSPATH% to start jboss with a clean classpath. All that is needed is run.jar and crimson.jar.  Vinay- Original Message - From:Filip Hanik Sent:Tuesday, May 01, 2001 11:44 PM To:[EMAIL PROTECTED] Subject:RE: [JBoss-user] org.xml.sax.SAXParseException: Document root el looks like you have crimson.jar in your classpath and this may conflict with some other JAXP implementation (Xerces, jaxp.jar, parser.jar)  Filip  ~Namaste - I bow to the divine in you~Filip HanikSoftware Architect[EMAIL PROTECTED]www.filip.net   -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jason DurstSent: Tuesday, May 01, 2001 3:14 PMTo: [EMAIL PROTECTED]Subject: [JBoss-user] org.xml.sax.SAXParseException: Document root element is missing I am new to JBOSS and EJB's in general. I have created several beans and "jarr'ed" them along with the corresponding home interfaces, remote interfaces and the deployment descriptor. When I drop my jar file in the deploy folder, this is the error I get. I would appreciate it if anyone could give me a clue as to what the error is referring to with: org.xml.sax.SAXParseException: Document root element is missing. If additional information is necessary I would be glad to provide it. Thank you in advance for your help.  I suspect that the problem is with my ejb-jar.xml file but I cannot find a reference to this error.  jason  the error message continues but I thought that this was the relevant part.  [J2EE Deployer Default] Starting[J2EE Deployer Default] Cleaning up deployment directory[J2EE Deployer Default] Started[Auto deploy] Starting[Auto deploy] Watching E:\jboss-tomcat-2.2\jboss-2.2\deploy[Auto deploy] Auto deploy of file:/E:/jboss-tomcat-2.2/jboss-2.2/deploy/musicdb.jar[J2EE Deployer Default] Deploy J2EE application: file:/E:/jboss-tomcat-2.2/jboss-2.2/deploy/musicdb.jar[J2EE Deployer Default] Create application musicdb.jar[J2EE Deployer Default] install module musicdb.jar[Container factory] Deploying:file:/E:/jboss-tomcat-2.2/jboss-2.2/tmp/deploy/Default/musicdb.jar[Container factory] Document root element is missing.:-1:1[Container factory] org.xml.sax.SAXParseException: Document root element is missing.[Container factory] at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035)[Container factory] at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3023)[Container factory] at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java, Compiled Code)[Container factory] at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)[Container factory] at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)[Container factory] at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:179)[Container factory] at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:86)[Container factory] at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:148)[Container factory] at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:132)[Container factory] at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:89)[Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java, Compiled Code)[Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java, Compiled Code)[Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java, Compiled Code)[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.startApplication(J2eeDeployer.java, Compiled Code)[Container factory] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)[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:358)[Container factory] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java, Compiled Code)[Container factory] at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java, Compiled Code)[Container factory] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)[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 

Re: [JBoss-user] deploying from a directory

2001-05-01 Thread Ivan



Thank you very much for your help Vinay, It seems to work 
now as long as the folders are there before starting up JBoss.

I appreciate your support,
Ivan

  - Original Message - 
  From: 
  Vinay Menon 
  
  To: JBOSS 
  Sent: Tuesday, May 01, 2001 3:03 PM
  Subject: Re: [JBoss-user] deploying from 
  a directory
  
  Do you want to give one last shot cleaning up the deploy directory - just 
  remove the jar file and the tmp directoy files corresponding to the jar? Also, 
  am assuming that the classes and the META-INF is not is the classpath 
  otherwise??? I found that since Jboss uses the delegation model for class 
  loaders if the classes or the META-INF are there in the system class path it 
  will look up those classes directly without bothering about the stuff out into 
  the deploy directory [parent classloader first and then the child 
  classloader!]
  
  If you want me to give the jar file a shot please feel free to send it 
  across. 
  
  Vinay
  
  
- Original Message -
From:Ivan
Sent:Tuesday, May 01, 2001 10:50 
PM
To:[EMAIL PROTECTED]
Subject:Re: [JBoss-user] 
deploying from a directory


Vinay,

Thank you again for your reply. I believe that 
the feature must work if it is working on your machine. However I have 
tried to do it a number of times and when i drop the jar into deploy folder 
all the messages come up and it says jar deployed, when i unjar the jar file 
to the deploy directory or copy the folders into the deploy no message at 
all is displayed on the console.

I have not changed the settings and my directory 
structure consists of META-INF with a ejb-jar.xml and then jbosstest with 4 
class files inside. THe jar file version deploys so i assume the 
structure is ok.

H I guess I will just not worry about this 
feature for now, unless you have any other ideas.

Thanks again,
Ivan

  - Original Message - 
  From: 
  Vinay 
  Menon 
  To: JBOSS 
  Sent: Tuesday, May 01, 2001 1:35 
  PM
  Subject: Re: [JBoss-user] deploying 
  from a directory
  
  Ivan,
   I am pretty sure that simply unjaring the 
  fille as-is to the deploy directory should work because I have got it to 
  deploy that way. The ejb-jar.xml etc which is in the META-INF directory is 
  loaded by the class loader and should load without any problems. Do you 
  get any message at all when you unjared the file to the deploy directory? 
  I am assuming that if your jar file had the structure
  
  class1.class pack1.pack2
  class2.class pack1.pack2
  ejb-jar.xml META-INF
  
  you are unjarring to the deploy directory directly. So you basically 
  have under the following structure in deploy
  
  deploy
   -pack1
   -pack2
   |
   class1.class
   class2.class
   -META-INF
   |
   
  ejb-jar.xml
  
  Also am assuming that you have *NOT* changed the jboss configuration 
  to use a different deploy directory.
  
  Vinay
  
  
  
- Original Message -
From:Ivan
Sent:Tuesday, May 01, 2001 
9:31 PM
To:[EMAIL PROTECTED]
Subject:Re: [JBoss-user] 
deploying from a directory




Unjaring the jar file into the deploy directory 
does not seem to generate an autodeploy. 

I think the docs metioned that the autodeployer 
looks for either ear, jar, war OR an xml deployment descriptor( i think 
i read that)

However possibly because the deployment descriptor 
is within a META-INF directory it is not finding.

Either way I am pretty sure that when I just unjar 
a jar into deploy directory nothing happens.

It sure would be good in development to just make 
changes to a folder and not have to rejar, when developing ear files 
this need is increased because of having to do this twice.

Any more thoughts on this topic are greatly 
appreciated

Ivan

  - Original Message - 
  From: 
  Vinay 
  Menon 
  To: JBOSS 
  Sent: Tuesday, May 01, 2001 7:04 
  AM
  Subject: Re: [JBoss-user] 
  deploying from a directory
  
  You should be able to simply unjar the jar file that you use for 
  usual deployments into the JBOSS_DEPLOY directory [you can change this 
  if you wanted]
  
  Vinay
  
  
- Original Message -
From:Ivan
Sent:Tuesday, May 01, 
2001 9:53 AM
To:[EMAIL PROTECTED]
Subject:[JBoss-user] 
deploying from a directory

Re: [JBoss-user] No valid deployment descriptor

2001-05-01 Thread Vinay Menon
A wild thought! Can you ping localhost when dialling up? You should be able to get to the loopback 127.0.0.1 IP. Hmm, apart from that, what OS is this?  Vinay   - Original Message - From:Chris Wilson Sent:Wednesday, May 02, 2001 12:00 AM To:[EMAIL PROTECTED] Subject:[JBoss-user] No valid deployment descriptor   here's a weird one...  i have several ejb's that deploy and work fine when i am connected to my local area network. however, when i'm dialed up to my companies isp (which has some firewall restrictions on port usage), jboss attempts to deploy my ejb jar file but i get a big long stack trace saying that there is "No valid deployment descriptor" found in my jar. why does this work when i'm on my lan, but not over my modem? is jboss loading the jar from my file system using some port that is blocked when i'm using my modem? anyone got any clues?  cheers, chris  | chris wilson || web dev ||| [EMAIL PROTECTED] || | www.wondergeek.com | |  Get your FREE download of MSN Explorer at http://explorer.msn.com


Re: [JBoss-user] deploying from a directory

2001-05-01 Thread Vinay Menon
It should work even if JBoss is running. Just that it might have had the bean deployed via the JAR and found no changes in the classes [since they were from the same jar file!] and the Auto Deployer thought - well, its the same stuff so why bother redeploy!  Good that it is working !  Vinay   - Original Message - From:Ivan Sent:Wednesday, May 02, 2001 12:08 AM To:[EMAIL PROTECTED] Subject:Re: [JBoss-user] deploying from a directory   Thank you very much for your help Vinay, It seems to work now as long as the folders are there before starting up JBoss.  I appreciate your support, Ivan  - Original Message -  From: Vinay Menon  To: JBOSS  Sent: Tuesday, May 01, 2001 3:03 PM Subject: Re: [JBoss-user] deploying from a directory  Do you want to give one last shot cleaning up the deploy directory - just remove the jar file and the tmp directoy files corresponding to the jar? Also, am assuming that the classes and the META-INF is not is the classpath otherwise??? I found that since Jboss uses the delegation model for class loaders if the classes or the META-INF are there in the system class path it will look up those classes directly without bothering about the stuff out into the deploy directory [parent classloader first and then the child classloader!]  If you want me to give the jar file a shot please feel free to send it across.   Vinay   - Original Message - From:Ivan Sent:Tuesday, May 01, 2001 10:50 PM To:[EMAIL PROTECTED] Subject:Re: [JBoss-user] deploying from a directory   Vinay,  Thank you again for your reply. I believe that the feature must work if it is working on your machine. However I have tried to do it a number of times and when i drop the jar into deploy folder all the messages come up and it says jar deployed, when i unjar the jar file to the deploy directory or copy the folders into the deploy no message at all is displayed on the console.  I have not changed the settings and my directory structure consists of META-INF with a ejb-jar.xml and then jbosstest with 4 class files inside. THe jar file version deploys so i assume the structure is ok.  H I guess I will just not worry about this feature for now, unless you have any other ideas.  Thanks again, Ivan  - Original Message -  From: Vinay Menon  To: JBOSS  Sent: Tuesday, May 01, 2001 1:35 PM Subject: Re: [JBoss-user] deploying from a directory  Ivan,  I am pretty sure that simply unjaring the fille as-is to the deploy directory should work because I have got it to deploy that way. The ejb-jar.xml etc which is in the META-INF directory is loaded by the class loader and should load without any problems. Do you get any message at all when you unjared the file to the deploy directory? I am assuming that if your jar file had the structure  class1.class pack1.pack2 class2.class pack1.pack2 ejb-jar.xml META-INF  you are unjarring to the deploy directory directly. So you basically have under the following structure in deploy  deploy  -pack1  -pack2  |  class1.class  class2.class  -META-INF  |  ejb-jar.xml  Also am assuming that you have *NOT* changed the jboss configuration to use a different deploy directory.  Vinay- Original Message - From:Ivan Sent:Tuesday, May 01, 2001 9:31 PM To:[EMAIL PROTECTED] Subject:Re: [JBoss-user] deploying from a directory Unjaring the jar file into the deploy directory does not seem to generate an autodeploy.   I think the docs metioned that the autodeployer looks for either ear, jar, war OR an xml deployment descriptor( i think i read that)  However possibly because the deployment descriptor is within a META-INF directory it is not finding.  Either way I am pretty sure that when I just unjar a jar into deploy directory nothing happens.  It sure would be good in development to just make changes to a folder and not have to rejar, when developing ear files this need is increased because of having to do this twice.  Any more thoughts on this topic are greatly appreciated  Ivan  - Original Message -  From: Vinay Menon  To: JBOSS  Sent: Tuesday, May 01, 2001 7:04 AM Subject: Re: [JBoss-user] deploying from a directory  You should be able to simply unjar the jar file that you use for usual deployments into the JBOSS_DEPLOY directory [you can change this if you wanted]  Vinay   - Original Message - From:Ivan Sent:Tuesday, May 01, 2001 9:53 AM To:[EMAIL PROTECTED] Subject:[JBoss-user] deploying from a directory Hi,Has any one been able to deploy an EAR, JAR, or WAR as an expandeddirectory. If so do you know of a location on the web with instructions.It seems just placing the directory in the deploy folder does not doanything.ThanksIvan___JBoss-user mailing list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-userGet your FREE download of MSN Explorer at http://explorer.msn.com Get your FREE download of MSN Explorer at http://explorer.msn.com Get your FREE download of MSN Explorer at 

Re: [JBoss-user] javax/rmi/PortableRemoteObject

2001-05-01 Thread Ivan

When running the servlet, after reinstalling JDK 1.3 thanks to a tip on this
group the error went away

- Original Message -
From: Alexander Kogan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 01, 2001 4:00 PM
Subject: Re: [JBoss-user] javax/rmi/PortableRemoteObject


 When did you get this error:

 - compilation ?
 import javax.rmi.*; - i mean javax.rmi, not java.rmi

 -run time ?

be sure that tomcat is running under java 1.3
(tomcat can check for .tomcatrc for instance)

 which platform?
 embedded tomcat or standalone?




 Ivan wrote:
 
  Regarding number 3 below, I have Java 1.3 and its directory is set to
  JAVA_HOME.  Tomcat is still not finding the javax/rmi/RemoteObject or
the
  other RMI classes.
 
  Is there some setting I have to change to get Tomcat to recognize java
1.3
  libraries?
 
   1.  Check the list archives before posting a question.
   2.  DO NOT BRING j2ee.jar INTO CONTACT WITH JBOSS!!!
   3.  You need either Java 1.3 or the RMI/IIOP thingy from Sun.
  
   Toby.
  
 
  - Original Message -
  From: Toby Allsopp [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, May 01, 2001 1:54 PM
  Subject: Re: [JBoss-user] javax/rmi/PortableRemoteObject
 
   On Tue, May 01, 2001 at 01:40:29PM -0700, Ivan wrote:
Hi all,
   
My servlet is trying to access a deployed ejb, but the servlet is
  getting
the error
   
java.lang.NoClassDefFoundError: javax/rmi/PortableRemoteObject
   
I found that class in the file j2ee.jar and tried adding it to the
class
path.but the error remains
   
Does anyone know how to get embedded tomcat to read that jar and
find
  the
PortableRemoteObject class?
   
I also tried adding the j2ee.jar to the lib folder of tomcat but
that
crashed the startup of jboss tomcat.
   
If you have any suggestions, they would be most welcome.
  
 
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  http://lists.sourceforge.net/lists/listinfo/jboss-user

 --
 __
 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 mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Newbie question

2001-05-01 Thread Steve Zhang

May be u can use ejb-ref tag, please check the following to see if it is
helpful...

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


Best Wishes
Steve Zhang

Software Developer
http://www.ensemble-systems.com


-Original Message-
From: Kadir Wijaya [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 4:43 PM
To: '[EMAIL PROTECTED]'
Subject: [JBoss-user] Newbie question


Hi all,

Suppose I have two mbeans( mbean-A and mbeanB)
From mbean-B, I want to get the reference of Object-A which reside in
mbean-A.
Can I do this? if yes, how to achieve this?

thanks,
kadir



























































NOTICE: The information contained in this electronic mail message and any
attachments is confidential to Pavilion Technologies, Inc. or one of its
subsidiaries and may contain proprietary information or be legally
privileged. This message and any attachments are intended only for the
personal and confidential use of the designated recipient(s). If you are not
the intended recipient or an agent responsible for delivering it to the
intended recipient, you are hereby notified that you have recieved this
message in error, and that any review, dissemination, distribution or
copying of this message and any attachments is unauthorized and strictly
prohibited. If you have received this message in error, please notify me
immediately by telephone and electronic mail, and delete this message, any
attachments, and all copies thereof. Thank you very much  



___
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] SOAP Client to connect to ZOAP

2001-05-01 Thread Mir S Islam

Could someone please tell me how much interoperable zoap is with other soap
implo ementations out there? I wrote a zoap enabled sample ejb and deployed
it. But my client written in perl is spitting out this error:

Unrecognized/unsupported value of encodingStyle attribute
n1:Envelope n1:encodingStyle=http://soap.zoap.org/;
xmlns:n1=http://schemas.xmlsoap.org/soap/envelope/;n1:Body n2:null=true
xmlns:n2=http://www.w3.org/1999/XMLSchema-Instance;/n1:Body/n1:Envelope


My clients will be accessing this service from various different platforms.
So I do not necessarily want to be restricted to java based clients. Any
ideas suggestions?

Thanks.
Mir


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



[JBoss-user] Where to place java bean class of the same package?

2001-05-01 Thread DOREEN

hi all,

I am migrating a web-based application from Inprise Application Server to JBoss with 
Tomcat.  In my application, there are several CMP Entity Beans, and there is also a 
Stateless Session Bean which calls these CMP Entity Beans.  I use other Java Bean 
object to stored users' input for processing in Session Bean. For example, the 
following is what i have done:


* Session Bean: ses_userinfo
* cmp_user_info: CMP entity bean

[ses_userinfo] create()
[ses_userinfo] validateLogin(dordor,123)
[ses_userinfo] findByUserCode(dordor)
[cmp_user_info] findByPrimaryKey(erp.eshopping.bbsaleslead.bb_userinfoPK@4cd580)


the above is an object instance of java bean object:(bb_userinfo)

[cmp_user_info] Object with primary key erp.eshopping.bbsaleslead.bb_userinfoPK@
4cd580 not found in storage
[ses_userinfo] Exception(ses_userinfoBean) - findByUserCode :javax.ejb.ObjectNot
FoundException: Object with primary key erp.eshopping.bbsaleslead.bb_userinfoPK@
4cd580 not found in storage

-
the bb_userinfo java bean is packaged with the same package of entity bean and session 
bean, i have tried to 
1) package this java bean class with sessin and entity bean in the same jar file
2) separate this java bean class in other jar file and located it in embed tomcat \lib 
directory
3) separate this java bean class in other jar file and located it in jboss lib\ext, 
lib, client directory

but i found the same error found, what should i do???
and 
when i started up JBoss, i got following warning:
-
[Verifier] 
Bean   : cmp_user_info
Section: 9.2.9
Warning: The primary key class must override equals().

[Verifier] 
Bean   : cmp_user_info
Section: 9.2.9
Warning: The primary key class must override hashCode().

[Verifier] 
Bean   : cmp_sales_code
Section: 9.2.9
Warning: The primary key class must override equals().

[Verifier] 
Bean   : cmp_sales_code
Section: 9.2.9
Warning: The primary key class must override hashCode().

[Verifier] 
Bean   : cmp_user_profile
Section: 9.2.9
Warning: The primary key class must override equals().

[Verifier] 
Bean   : cmp_user_profile
Section: 9.2.9
Warning: The primary key class must override hashCode().

-
i have a java class file of the Primary Key of each CMP entity bean which is developed 
in JBuilder, the following is an example:
-
package erp.eshopping.bbsaleslead;

import java.io.*;

public class bb_userinfoPK implements Serializable {

  public String user_code;

  public bb_userinfoPK() {
  }

  public bb_userinfoPK(String key) {
user_code = key;
  }
}
-
i have saw examples of CMP in the web, they are quite different from what i have 
developedthey ususally use id for the record key. so i want to know is that any 
restriction of Primary key object used in JBoss?

I am looking forward for anyones' help coz all thess problems and examples made me 
crazy for nearly a week!!! Thanks in advance!!!

Doreen


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



[JBoss-user] Where to place java bean class

2001-05-01 Thread doreen_cheng


hi all,

I am migrating a web-based application from Inprise Application Server to JBoss with 
Tomcat. In my application, there are several CMP Entity Beans, and there is also a 
Stateless Session Bean which calls these CMP Entity Beans. I use other Java Bean 
object to stored users' input for processing in Session Bean. For example, the 
following is what i have done:


* Session Bean: ses_userinfo
* cmp_user_info: CMP entity bean

[ses_userinfo] create()
[ses_userinfo] validateLogin(dordor,123)
[ses_userinfo] findByUserCode(dordor)
[cmp_user_info] findByPrimaryKey(erp.eshopping.bbsaleslead.bb_userinfoPK@4cd580)


the above is an object instance of java bean object:(bb_userinfo)

[cmp_user_info] Object with primary key erp.eshopping.bbsaleslead.bb_userinfoPK@
4cd580 not found in storage
[ses_userinfo] Exception(ses_userinfoBean) - findByUserCode :javax.ejb.ObjectNot
FoundException: Object with primary key erp.eshopping.bbsaleslead.bb_userinfoPK@
4cd580 not found in storage

-
the bb_userinfo java bean is packaged with the same package of entity bean and session 
bean, i have tried to 
1) package this java bean class with sessin and entity bean in the same jar file
2) separate this java bean class in other jar file and located it in embed tomcat \lib 
directory
3) separate this java bean class in other jar file and located it in jboss lib\ext, 
lib, client directory

but i found the same error found, what should i do???
and 
when i started up JBoss, i got following warning:
-
[Verifier] 
Bean : cmp_user_info
Section: 9.2.9
Warning: The primary key class must override equals().

[Verifier] 
Bean : cmp_user_info
Section: 9.2.9
Warning: The primary key class must override hashCode().

[Verifier] 
Bean : cmp_sales_code
Section: 9.2.9
Warning: The primary key class must override equals().

[Verifier] 
Bean : cmp_sales_code
Section: 9.2.9
Warning: The primary key class must override hashCode().

[Verifier] 
Bean : cmp_user_profile
Section: 9.2.9
Warning: The primary key class must override equals().

[Verifier] 
Bean : cmp_user_profile
Section: 9.2.9
Warning: The primary key class must override hashCode().

-
i have a java class file of the Primary Key of each CMP entity bean which is developed 
in JBuilder, the following is an example:
-
package erp.eshopping.bbsaleslead;

import java.io.*;

public class bb_userinfoPK implements Serializable {

  public String user_code;

  public bb_userinfoPK() {
  }

  public bb_userinfoPK(String key) {
user_code = key;
  }
}
-
i have saw examples of CMP in the web, they are quite different from what i have 
developedthey ususally use id for the record key. so i want to know is that any 
restriction of Primary key object used in JBoss?

I am looking forward for anyones' help coz all thess problems and examples made me 
crazy for nearly a week!!! Thanks in advance!!!

Doreen

==
·s®ö§K¶O¹q¤l«H½c  http://sinamail.sina.com.hk




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



[JBoss-user] Cannot start jBoss2.2.1 container

2001-05-01 Thread Russell

  
  Hi all , 
  I am using RedHat6.1 , jdk1.3 and jBoss2.2.1.Recently i just
download 
  jBoss2.2.1 to my PC . 
  When i tried to run the using java -jar run.jar , it gave me the
error below :
 
[Info] Java version: 1.2.2,Sun Microsystems Inc.
[Info] Java VM: Classic VM 1.2.2,Sun Microsystems Inc.
[Info] System: Linux 2.2.13-0.13,i386
[Classpath extension] Added
directory:file:/mnt/fileserv/wt/JBoss-2.2.1/tmp/
[Classpath extension] Added
directory:file:/mnt/fileserv/wt/JBoss-2.2.1/db/
[Shutdown] Could not add shutdown hook
[Service Control] Registered with server
[Default] javax.xml.parsers.FactoryConfigurationError:
java.lang.ClassNotFoundException:
org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
[Default]   at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:118)
[Default]   at org.jboss.Main.init(Main.java:192)
[Default]   at org.jboss.Main$1.run(Main.java:107)
[Default]   at java.security.AccessController.doPrivileged(Native Method)
[Default]   at org.jboss.Main.main(Main.java:103)

 I have read through all jboss archived and follow some method like run
using run.sh
 Before startup jboss , i run the script. However it still give me the
error. below is my run.sh.
 Do i need to change the script below to success startup jboss ??
 
 Thanks

 #!/bin/sh

# Minimal jar file to get JBoss started.

JBOSS_CLASSPATH=$JBOSS_CLASSPATH:run.jar:../lib/crimson.jar

# Add all login modules for JAAS-based security
# and all libraries that are used by them here
JBOSS_CLASSPATH=$JBOSS_CLASSPATH

# Add the XML parser jars and set the JAXP factory names
# Crimson parser JAXP setup(default)
JBOSS_CLASSPATH=$JBOSS_CLASSPATH:../lib/crimson.jar
JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.Docume#ntBuilderFactoryImpl
JAXP=$JAXP
-Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXPa#rserFactoryImpl

echo JBOSS_CLASSPATH=$JBOSS_CLASSPATH

java -server $JAXP -classpath $JBOSS_CLASSPATH org.jboss.Main $@

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



RE: [JBoss-user] Cannot start jBoss2.2.1 container

2001-05-01 Thread Jonathan Ackerman

You say that you are using jdk1.3, yet the log is showing that you are using
jdk.1.2.2

I had some problems running JBoss under JDK 1.2, they went away when I
switched to JDK1.3

Also I noticed that you had some # characters in the name of some of your
classes in the shell script (i.e. Docume#ntBuilderFactoryImpl and
SAXPa#rserFactoryImpl).

Was that just a cut and paste (into the email) error ?

Jonathan

-Original Message-
From: Russell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 2 May 2001 5:37 p.m.
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Cannot start jBoss2.2.1 container


  
  Hi all , 
  I am using RedHat6.1 , jdk1.3 and jBoss2.2.1.Recently i just
download 
  jBoss2.2.1 to my PC . 
  When i tried to run the using java -jar run.jar , it gave me the
error below :
 
[Info] Java version: 1.2.2,Sun Microsystems Inc.
[Info] Java VM: Classic VM 1.2.2,Sun Microsystems Inc.
[Info] System: Linux 2.2.13-0.13,i386
[Classpath extension] Added
directory:file:/mnt/fileserv/wt/JBoss-2.2.1/tmp/
[Classpath extension] Added
directory:file:/mnt/fileserv/wt/JBoss-2.2.1/db/
[Shutdown] Could not add shutdown hook
[Service Control] Registered with server
[Default] javax.xml.parsers.FactoryConfigurationError:
java.lang.ClassNotFoundException:
org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
[Default]   at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.
java:118)
[Default]   at org.jboss.Main.init(Main.java:192)
[Default]   at org.jboss.Main$1.run(Main.java:107)
[Default]   at java.security.AccessController.doPrivileged(Native
Method)
[Default]   at org.jboss.Main.main(Main.java:103)

 I have read through all jboss archived and follow some method like run
using run.sh
 Before startup jboss , i run the script. However it still give me the
error. below is my run.sh.
 Do i need to change the script below to success startup jboss ??
 
 Thanks

 #!/bin/sh

# Minimal jar file to get JBoss started.

JBOSS_CLASSPATH=$JBOSS_CLASSPATH:run.jar:../lib/crimson.jar

# Add all login modules for JAAS-based security
# and all libraries that are used by them here
JBOSS_CLASSPATH=$JBOSS_CLASSPATH

# Add the XML parser jars and set the JAXP factory names
# Crimson parser JAXP setup(default)
JBOSS_CLASSPATH=$JBOSS_CLASSPATH:../lib/crimson.jar
JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.Docu
me#ntBuilderFactoryImpl
JAXP=$JAXP
-Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXPa#rserFacto
ryImpl

echo JBOSS_CLASSPATH=$JBOSS_CLASSPATH

java -server $JAXP -classpath $JBOSS_CLASSPATH org.jboss.Main $@

___
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