Hi,
If you use Tomcat 3.2.1, you can put jndi.properties in the Tomcat CLASSPATH
and you do not need any System.setProperty(). That's how JNDI client has to
find its property. And that's the more proper usage of it since you do not
need to put JNP stuffs somewhere else.
But it really depends if
hi,
i tried to add my tomcat-lib to tha classpath using:
MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar"
CODEBASE="../../lib/ext/"
ARG TYPE="java.lang.String" VALUE="d:/java/jakarta-tomcat/lib/"
ARG TYPE="java.lang.String" VALUE="Tomcat"
/MLET
in jboss.conf. with the
Hello:
Nowadays, to run the client Interest Client for the Interest application
in a remote machine i have to include the interest.jar file (the same
as the file deployed on the JBoss Machine) or the structure of directorys
'com/web_tomorrow/interest/*.class' ...i supose that's not the
right
Hey,
hi,
i tried to add my tomcat-lib to tha classpath using:
MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar"
CODEBASE="../../lib/ext/"
ARG TYPE="java.lang.String" VALUE="d:/java/jakarta-tomcat/lib/"
ARG TYPE="java.lang.String" VALUE="Tomcat"
/MLET
Try
I am interested in hearing from those who are using Jboss in full web
application development.Much has been said about this project though ..( )
___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user
Hi!
Where can I found the source code of an RMI
implementation ?
Thanks
Joel
___
Do You Yahoo!? -- Pour dialoguer en direct avec vos amis,
Yahoo! Messenger : http://fr.messenger.yahoo.com
The client uses the home and remote interface of the bean and thus these
classes need to be available on the client machine. The bean
implementation, however, is not necessary for the client to run.
Ralph
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday,
Hi!
Download the source code for JDK 1.3 from java.sun.com/j2se. The RMI
implementation is included.
/Rickard
--
Rickard berg
Software Development Specialist
xlurc - Xpedio Linkping Ubiquitous Research Center
Author of "Mastering RMI"
Email: [EMAIL PROTECTED]
- Original Message -
Hi!
Your client simply needs the Home- and RemoteInterfaces ! You have
different options to make them available:
a) Have your working directory (.) included in the CLASSPATH and start
the client from the "root" of your sources. This way the needed
interfaces will be found as files.
b) Include
What about the source of the SUN SDK? It's part of the download (src.jar).
Ralph
- Original Message -
From: joel cordonnier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 4:24 PM
Subject: [JBoss-user] JRMP - RMI implementation (bis)
Hi!
Where can I found
I am interested in hearing from those who are using Jboss in full web
application development.Much has been said about this project though ..( )
Yep, me as well, I'm especially interested about any comments
on the mentioned article from Torben Jger, since that one didn't
sound very positive
(thank you very much, Ralph)
Another questions:
I wanna use MySQL database to store data with JBoss.
I have followed all the steps on the on-line documentation to
configure JDBC and a Pool and, at this point i wonder:
* which is the 'database name' that i must indicate in URL attribute?
*
Hi folks
We have problems with the standardjaws.xml mapping with the MS
SQLServer2000.
In some cases (java-types (Long, Float, Double)) we get a "load failed"
error when JBoss tries to fill the Entity Beans with DB data.
We think this comes from "a wrong" mapping in standardjaws.xml.
So, we
Please send patches to
http://sourceforge.net/tracker/?group_id=22866atid=376687
Thanks.
-- Juha
On Thu, 12 Apr 2001, Kristian Khler wrote:
Hi folks
We have problems with the standardjaws.xml mapping with the MS
SQLServer2000.
In some cases (java-types (Long, Float, Double)) we get a
Hi,
is there any support in JBoss yet to get access to an URL via JNDI (like
the JavaMail support), as shown in the J2EE tutorial:
try {
context = new InitialContext();
url = (URL)context.lookup("java:comp/env/url/MyURL");
Also useable with core jboss (no tomcat). Just make sure you have your jndi.properties
in your classpath.
/Lennart
- Original Message -
From: Vincent Harcq [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 8:29 AM
Subject: RE: [JBoss-user] Setting up the naming
Hey Peter,
it is already there, AFAIK. I remember I tried once, and it worked.
Simon
-Original Message-
From: Peter Antman [mailto:[EMAIL PROTECTED]]
Sent: giovedi 12 aprile 2001 12:44
To: [EMAIL PROTECTED]
Subject: [JBoss-user] HttpURLConnection via JNDI
Hi,
is there any
Hi,
Having a few problems getting the InterestClient to work. I get the
exception
javax.naming.CommunicationException [Root exception is
java.io.StreamCorruptedException:Type code out of range, is 125]
Now I am aware that this is probably a classpath problem but I am unable to
resolve which
Try this:
java -classpath $CLASSPATH:$JBOSS_HOME/client/jboss-client.jar:$JBOSS_HOME/client/jbosssx-client.jar:. InterestClient
* Note the ':.' after jbosssx-client.jar.
* Replace my '$JBOSS_HOME' with your path to Jboss home and
make sure you execute it at the same level of 'com' directory.
-classic is not availble in the JRE only in SDK. Make sure to have path specified to
your SDK installation, then -classic should work.
/Lennart
unfortunately - see below. Guess there's something wrong with my jre
setup. Any ideas? according to the jdk1.3 tools docs the classic flag
is
Hello:
I get the following java exception when i execute
run_lookup.sh or run_upload.sh:
Exception in thread main java.lang.NoClassDefFoundError:
org/jboss/security/SecurityAssociation
at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericProxy.java:184)
etc
Any sugestion?
Hi all,
I'm trying to run an Entity Bean (BMP) that accesses an Oracle8i data
source. I've managed to get jboss.jcml configured right (JBoss connects
OK on startup), but when I try to deploy the bean I get the message:
[Container factory] No resource manager found for jdbc/OracleDS
Am I
I want to have a MBean invoking methods on an stateless ejb.
The problem is that when I put the home and remote interfaces of the bean
(let's call it bean A) in the Mbean jar which I put in lib/ext (so it can
find those classes on runtime), the deployment of the beans themselves
fails, on
Hey,
It is there as far as I know. Just declare resource ref to url as in
tutorial you refer to.
Vladimir
On Thu, 12 Apr 2001, Peter Antman wrote:
Hi,
is there any support in JBoss yet to get access to an URL via JNDI (like
the JavaMail support), as shown in the J2EE tutorial:
Having followed the documentation "JAAS Based Security in JBoss", I get a
"ClassCastException" on the server during the authentication stage (no
matter whether the user logging in is authorized or not). The code seems
to be trying to cast a "SimplePrinciple" to a String. Has anyone else come
Hi,
I have a web application (with JServ+Apache+postgresql) written for few
newspapers for their distribution, subscription, commercial advertising,
article tracking etc and production scheduling system. I am in process of
porting it to a JBoss + tomcat+postgresql.
With JBoss I hope I can
Hello, All
The problem description:
There is two EJB: message-driven and stateful SB.
First case:
They are placed in two different jars.
On message coming (in MDB) I tried to lookup SSB and
failed( "not bound" ). It's necessary to say that
ejb-ref was present
Mike Boniface wrote:
Hi,
Having a few problems getting the InterestClient to work. I get the
exception
javax.naming.CommunicationException [Root exception is
java.io.StreamCorruptedException:Type code out of range, is 125]
That exception might indicate that you're using JDK 1.2.2 on
I have been debugging code for over twenty years and have always found
logging output statements much more useful than interactive debuggers. I
think that this is especially true in the EJB environment. What I would
suggest is the following:
1. instrument your EJB with log statements with
Swarr, Bob wrote:
snip!
Voila, you've handled an EJB server difference with the deployment
descriptor (and this is why we have deployment descriptors). You don't have
to recompile the EJB when you run in WebLogic or JBoss. You just need to
redeploy it with a different deployment
Anyone seen this before?
[java] java.rmi.ServerException: Transaction rolled back; nested
exception is:
[java] java.lang.SecurityException: Configuration Error:
[java] Line 96: expected '=', found ' name='
[java] java.rmi.ServerException: Transaction rolled
hi,
i use jboss2.2 with tomcat. Jboss use 2 datasources : 1 for orcale
and 1 for sybase databases.
in my jboss.jcml i put :
!-- JDBC --
mbean code="org.jboss.jdbc.JdbcProvider"
name="DefaultDomain:service=JdbcProvider"
attribute
Title: Re: [JBoss-user] FreeTDS and JBoss connection pooling
What's below worked for me in 2.1. It's
a cut and paste job. YMMV.
Darrin
Replace this section in jboss.jcml
mbean code=org.jboss.jdbc.JdbcProvider
name=DefaultDomain:service=JdbcProvider
attribute
I am attempting to deploy bean A with a ejb-ref to another bean B. The
ejb-ref element has a ejb-link element which references the deployed name
of the referenced bean B. It so happens that bean B is already deployed
but in another ejb.jar file. The deployer throws the exception:
I've had many problems with this as well and so have many other people on
the list yet there has never been an explanation/reasoning posted in reply
(that I can find anyway).
I have resorted to adding certain jars to the main Tomcat classpath (I
launch as an NT service so I add the jars to the
An 'Application' is defined as an .ear file. See the J2EE spec for
details on the structure of this.
Victor Langelo wrote:
I am attempting to deploy bean A with a ejb-ref to another bean B. The
ejb-ref element has a ejb-link element which references the deployed
name of the referenced bean
Hi JBoss users!
We have developed a web based order tracking system to be deployed in an IBM
AS/400 production environment.
Moving from the testing environment onto the production machine we
experienced a harsh performance reduction which renders our application virtually
unusable.
During the
Ok! another solved mistery! ;-) ...it was only a question of time.
The exception was due to a little bug in the scripts
inside cdEJB.zip source code:
We should add the 'jbosssx-client.jar' to 'run_list.sh', 'run_upload.sh' and
'run_lookup.sh'.
Here you are the upgraded scripts (attached).
Your remark is for when accessing JNDI server outside JBoss.
For the simple case : one jboss server being the JNDI server itself, if I
remember, from within one JBoss VM, it is better to specify nothing at all
and if nothing is found, the JNDI client will know the JNDI server is itself
and avoid
danch asked
How's that going for you? I'm very interested in any issues that crop up
under load.
I'm using JBoss 2.0 for my testing because it seems stable.
I'm still stabilizing the stress testing tool and tweaking the server
configurations, but the results so far for JBoss are impressive.
First, the EJB version _will_ be slower because of additional overhead
in transaction management, security etc. (even if you don't use security
- the interceptor is still there by default). In the case of an
application client, you also have the RMI layer to go through, which
imposes somewhere
Hi!
I have a couple of questions:
why i get this warning if i override the equals() and
the hashCode() method in my PK? Both are public ...
---
[Verifier]
Bean : Product
Section: 9.2.9
Warning: The primary key class must override equals().
I use the following in my weblogic-ejb-jar file. The EJB code is then able
to access the
datasource using the name java:comp/env/jdbc/OraclePool in both WebLogic and
JBoss.
Outside the container is another story. If you are outside the container in
JBoss, the name is java:/jdbc/OraclePool. If
Is there a changelog available for JBoss 2.2? I can't seem to find a
summary anywhere (although maybe I'm just not finding it) of new
features/bug fixes between 2.1 and 2.2.
Thanks,
Todd
___
JBoss-user mailing list
[EMAIL PROTECTED]
The "login config file" is what? The config file expected to be found by
the client? ($JBOSS_HOME/client/auth.conf) or the one for the server
($JBOSS_HOME/conf/tomcat/auth.conf)
I'm using jboss 2.2 with embedded tomcat.
Darrin
On 4/12/01, 1:13:49 PM, Scott M Stark [EMAIL PROTECTED] wrote
There isn't one as 2.2 was rather an arbitrary line drawn in the sand
to stop the never ending 2.1 beta state. We'll have a change log
for subsequent releases.
- Original Message -
From: "Todd Huss" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 11:19 AM
Subject:
The stack trace is from the server so it would be the $JBOSS_HOME/conf/tomcat/auth.conf
login config file.
- Original Message -
From: "Darrin Thompson" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 11:44 AM
Subject: Re: [JBoss-user] JBossSX exception
The
Hi,
Actually i am not using any EJBs in my application now. It just
servlet/jsp application. I have configured the connection pool with
jboss-tomcat(v2.2) but now i am confused that how can i use it in my servlet
or other java files???
Any input greatly appreciated. Thanks in advance.
Ashesh.
Hi,
I am using only servlet/jsp in my application not any EJBs. i have
created the Connection Pool with jboss but i dont know how to use this pool
in my serlvet/java classes only not with EJB. How can i make it work and get
the advantage of jboss?
Any input is appreciated,
TIA,
Ashesh.
Hi,
I need to flush the cache manually. I already know that there is a tag
overager-period that does an auto passivate on bean that are older
than the max-bean-age. But how can I do a passivate manually on every
bean in the cache when I need it.
Thanks for the help
Francois Archambault
FWIW, the real problem was in $JBOSS_HOME/conf/tomcat/jboss.properties.
For embedded tomcat the file should point to the auth.conf file in the
tomcat directory. As distributed the tomcat configuration still uses
auth.conf in the default directory. This is a bug I think. A VERY
annoying bug.
Can someone point me a documentation or examples on the standard way to
allow a EJB to access an external resource.
I looked at the EJB spec and it was less than helpful. I saw one example
of letting a bean access a JMS queue, but what about the ConnectionFactory
and such? Do I need to have a
I just upgraded to JBoss 2.2. Session and enity beans deploy fine but my
MessageDrivenBean throws a NoClassDefFound: javax/ejb/MessageDrivenBean
exception on deploy. It deploys fine under JBoss 2.1, but under 2.2 I get
the included exception.
I can't figure out why it can't find the
Swarr, Bob wrote:
I'm testing some EJBs in both WebLogic and JBoss and worked around this
problem by putting a serverVendor variable into the deployment descriptor.
Here's how to do it:
Please, everyone, read the EJB spec, section 19.4.
Code your EJB implementation to use
Yes that it bad. I'll fix it in the upcoming 2.2.1 patch release that will be out next
week.
- Original Message -
From: "Darrin Thompson" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 12, 2001 3:16 PM
Subject: Re: [JBoss-user] JBossSX exception
FWIW, the real problem
This is due to an inconsistency in module shared state introduced in 2.2 that will
be fixed next week. If you want something before then mail me and I'll send
you a new jboss-jass.jar that you can use to replace the current lib/jboss-jaas.jar
- Original Message -
From: "Andy Comley"
I'm trying to set up a JDBC driver, but when I update jboss.jcml nothing is
changed. I try to add the Oracle driver by putting the classes12.zip in
lib/ext, and then I add "oracle.jdbc.driver.OracleDriver" like so, along
with the mysql driver:
mbean code="org.jboss.jdbc.JdbcProvider"
Todd,
It must be something with your environment.
I didn't have any problems with MDBs in 2.2.
They're deploying just fine.
Sorry, I'm afraid it doesn't help, but just to let
you know.
best,
Todd Huss wrote:
I just upgraded to JBoss 2.2. Session and enity beans deploy fine but my
Roman Wittchen wrote:
Hi Toby !
Hi!
Thanks for your hint. Since I changed my code as you suggested, I am able to
receive a sdoadapter object.
Excellent.
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:/OracleDB");
con = ds.getConnection();
Jason,
Why not to think about an EJB as a plain client
for JMS? There is nothing special here.
I have a helper class (sort of ServiceLocator pattern)
which I'm using either on clients (servlets) and server (EJBs):
/
*
The mdb jar from the jbosstest cvs module deploys without any problems in
the 2.2.0 release as I just verified. Do you have something in your classpath
that may be interfering?
...
[Default] JBoss 2.2.0 FINAL Started in 0m:8s
[Auto deploy] Auto deploy of file:/G:/tmp/jboss-2.2/deploy/mdb.jar
That is more or less what I am going to be doing, but I wanted to know if
there was a standard way to provide the queue information to a bean. My
guess is that it should be as a resource, but I am not 100% sure.
--jason
On Thu, 12 Apr 2001, Alexander Kogan wrote:
Jason,
Why not to think
Hi
I'm new to JBoss. I'm trying to get JBoss to serve my JSP files from
a war file. To date, I haven't been successful. I keep getting 404
errors. I tried switching from JSP to servlets and it worked fine. I'm
thinking that JBoss is not compiling my JSP files when called. Does
JBoss
A ConnectionFactory is a resource factory and the spec talks about JMS
being located by convention under the java:comp/env/jms context. To
access a QueueConnectionFactory independent of which app server you
deploy in you would define an ejb-jar resource-ref as:
ejb-jar.xml:
ejb-jar
Yes, but it doesn't need InterestBean, which is also in the jar. There is
an interest-client.jar, which theoretically would be the correct jar to use.
But I just looked at it, and it also has InterestBean in it (as well as all
the .java files). What should really be done is to remove all the
See if there is a jboss.jcml-auto file in your conf/default directory. I
don't know how this file is getting generated, but I've found if it is
present that any additions I make to jboss.jcml won't get picked up. You
can just delete the jboss.jcml-auto file while jboss is shut down.
-
Thanks... so would I use something like this:
resource-env-ref
resource-env-ref-namejms/StockQueue/resource-env-ref-name
resource-env-ref-typejavax.jms.Queue/resource-env-ref-type
/resource-env-ref
to get at the queue/topic information to use with the connection factory
as configured below?
Hai here is a question from me
How to Bind Queries with Entity BEans
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 11:55 AM
To: [EMAIL PROTECTED]
Subject: JBoss-user digest, Vol 1 #219 - 14 msgs
Send JBoss-user
I am porting my NT based JBOSS 2.0 application to Red Hat 6.2 JBoss 2.2
and get the following error when executing my servlet program that
accesses an EJB:
javax.naming.ServiceUnavailableException: localhost [Root exception is
java.net.UnknownHostException: localhost]
-
Here is the
Theoretically yes, but resource-env-ref is an EJB2.0 spec addition that
has not been implemented yet. In the interim you would simply have to
use the global JNDI namespace:
new InitialContext().lookup("queue/StockQueue");
which is actually not as bad as it seems as Queues are administered
70 matches
Mail list logo