Re: [JBoss-user] [Messaging, JMS & JBossMQ] - Re: java.lang.ClassCircularityError first time subscribe to

2005-07-25 Thread Robert Augustyn
Adrian,
Can you point me to the actual work around example?
Thanks,
robert

--- "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

> Just for completeness, JBoss already jumps through
> hoops to try to avoid the problem
> including scheduling classloading across threads and
> retrying the classloading if it hits 
> the error.
> 
> But since the problem is non-deterministic (like all
> non-thread-safe bugs), any
> work around (except one that avoids concurrent
> usage) is not guaranteed to work.
> 
> View the original post :
>
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3886464#3886464
> 
> Reply to the post :
>
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3886464
> 
> 
>
---
> SF.Net email is sponsored by: Discover Easy Linux
> Migration Strategies
> from IBM. Find simple to follow Roadmaps,
> straightforward articles,
> informative Webcasts and more! Get everything you
> need to get up to
> speed, fast.
>
http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> ___
> JBoss-user mailing list
> JBoss-user@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/jboss-user
> 



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] [Datasource Configuration] - Re: JBoss & MSSQL d atabase server connection problem

2004-02-27 Thread Godley, Robert C
ta

-Original Message-
From: Dillinger [mailto:[EMAIL PROTECTED]
Sent: 27 February 2004 10:15
To: [EMAIL PROTECTED]
Subject: [JBoss-user] [Datasource Configuration] - Re: JBoss & MSSQL
database server connection problem


Well just forget it. Seems like the information about this essue is very
poor!! Have seen a whole lot of question about JBOSS and database
connections without any answers. 
I'll write my own database handler, and deploy that instead

View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3823233#3823233

Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3823233


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] j2sdk1.5 and jboss

2004-02-06 Thread Robert Marcano
On Fri, 2004-02-06 at 15:27, Jens Schumann wrote:
> On 2/5/04 3:37 PM Jens Schumann <[EMAIL PROTECTED]> wrote:
> 
> > Because you first might encounter a few JMX JDK Bugs, which will prevent
> > booting JBoss. I have reported them against build-32 and got a confirmation
> > that those are fixed, but haven't been able to check whether they made it in
> > the current build or not.
> 
> FYI:
> 
> The two important JMX bugs haven't been fixed yet.
> 
> I got a note at least one will be fixed in the next CAP release, which won't
> be available to the public.

Sorry for my ignorance, but what is a CAP release? :(




---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] JBoss example problem - new to J2EE

2003-12-05 Thread Robert Gallas
Thank a lot Adrian it helped me. I have just one more question.

In JBoss IDE Fibo tutorial there is binding to "ejb/tutorial/Fibo" and that
is exactly what JBoss shows when it deployes application.
But when connecting to client servlet, client looks for the
"java:/comp/env/ejb/Fibo" client call is succesfull even if the if the Fibo
ejb is bind to "ejb/tutorial/Fibo". What is interesting to me is that from
the servlet i`m able to make an instance of Fibo ejb, but when looking up
from for example HelloWorld client I`m not able to get the bounded object.
when looking up "java:/comp/env/ejb/Fibo".

so my qestion:
Where in the depl. descr. is told to bind Fibo bean to
"java:/comp/env/ejb/Fibo".

Thanks and redards
Robert



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Adrian Brock
Sent: Friday, December 05, 2003 1:07 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] JBoss example problem - new to J2EE


No, the bean is deployed into global jndi. You are confusing
the bean's jndi binding (not part of the spec) and ejb-refs.

> 08:56:22,843 INFO  [StatelessSessionContainer] Started
> jboss.j2ee:jndiName=ejb/HelloWorld,service=EJB

The global jndi name is ejb/HelloWorld.

Your second error is because you are missing something from your
classpath.
Try using client/jbossall-client.jar

Regards,
Adrian



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JBoss example problem - new to J2EE

2003-12-05 Thread Robert Gallas
ava:comp/env/ejb" and it
seems it is not there.

Questions:
1. could somebody explain me in what namespace look for the HelloWorld ejb
and why.
2. could somebody explain me how to make that example work and why it
doesn`t work now

Thanks a lot for help and sorry for long mail.

Regards Robert


>file: HelloWorld -
package com.mastertech.sample;

public interface HelloWorld extends javax.ejb.EJBObject {
public String hello() throws java.rmi.RemoteException;
}

>file: HelloWorldHome -
package com.mastertech.sample;

public interface HelloWorldHome extends javax.ejb.EJBHome {
 HelloWorld create() throws java.rmi.RemoteException,
javax.ejb.CreateException;
}

>file: HelloWorldBean -
package com.mastertech.sample;

import javax.ejb.SessionContext;

public class HelloWorldBean implements javax.ejb.SessionBean {
private SessionContext ctx;

public HelloWorldBean() {}
public void ejbActivate() throws javax.ejb.EJBException,
java.rmi.RemoteException {}
public void ejbCreate() throws javax.ejb.EJBException,
java.rmi.RemoteException {}
public void ejbPassivate() throws javax.ejb.EJBException,
java.rmi.RemoteException {}
public void ejbRemove() throws javax.ejb.EJBException,
java.rmi.RemoteException {}

public void setSessionContext(javax.ejb.SessionContext ctx) {
this.ctx = ctx;
}

public String hello() {
System.out.println("hello()");
return "Hello World!";
}
}

>file: HelloWorldClient ---
package com.mastertech.sample;

import javax.naming.Context;
import javax.naming.InitialContext;
import java.util.*;

public class HelloWorldClient {

public HelloWorldClient() {
}

public static void main(String[] args) {
Hashtable env  = new Hashtable();

env.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
env.put(Context.PROVIDER_URL, "jnp://localhost:1099");
env.put("java.naming.factory.url.pkgs",
"org.jboss.naming:org.jnp.interfaces");

try {
Context ctx = new InitialContext(env);

System.out.println("1");
Object obj = ctx.lookup("java:comp/env/ejb/HelloWorld");
System.out.println("2");
HelloWorldHome home =
(HelloWorldHome)javax.rmi.PortableRemoteObject.narrow(obj,
HelloWorldHome.class);
HelloWorld helloWorld = home.create();

System.out.println ( helloWorld.hello() );
helloWorld.remove();
} catch (Exception e) {
//e.printStackTrace();
System.out.println( "Exception: " + e.getMessage() );
}
}
}

>file: ejb-jar.xml --

http://java.sun.com/dtd/ejb-jar_2_0.dtd";>


JBoss Hello World Application
Hello World EJB


HelloWorld
com.mastertech.sample.HelloWorldHome
com.mastertech.sample.HelloWorld
com.mastertech.sample.HelloWorldBean
Stateless
Bean




>file: application.xml -

http://java.sun.com/dtd/application_1_3.dtd";>

   Sum Application
   
  HelloEJB.jar
   


>file: jboss.xml ---

http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd";>


   
  
 HelloWorld
 ejb/HelloWorld


  
   
   
   



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] ROOT.war

2003-11-12 Thread Robert Cauble
Sorry - I guess I didn't look hard enough.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:jboss-user-
> [EMAIL PROTECTED] On Behalf Of Scott M Stark
> Sent: Wednesday, November 12, 2003 11:05 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] ROOT.war
> 
> The context-root jboss-web.xml element discussed (I guess too briefly)
> in chap 9 is the answer:
> 
> The context-root element allows one to specify the prefix under which
web
> application is located. This is only applicable to stand-alone web
> application
> deployment as a WAR file. Web applications included as part of an EAR
must
> set
> the root using the context-root element of the EAR application.xml
> descriptor.
> 
> example jboss-jmx-console.war/WEB-INF/jboss-web.xml:
> 
> 
>   
>   
> 
> 
> --
> 
> Scott Stark
> Chief Technology Officer
> JBoss Group, LLC
> 
> 
> Robert Cauble wrote:
> 
> > If I take jboss 3.2.2 out-of-the-box and rename
> > server/default/deploy/jmx-console.war to ROOT.war and I  try going
to
> > the url
> >
> > http://localhost:8080 <http://localhost:8080/> I get a "HTTP Status
500
> > - No Content configured to process this request" response.
> >
> >
> >
> > I can then go to http://localhost:8080/ROOT and it works fine (goes
to
> > the jmx console as expected). What is the additional configuration I
> > need to do in order to define a root context? I couldn't find
anything
> > in the JBoss documentation which we purchased which describes how to
do
> > this.
> >
> >
> >
> > Any pointers here would be greatly appreciated.
> >
> >
> >
> > Thanks,
> >
> > Rob
> >
> 
> 
> 
> ---
> This SF.Net email sponsored by: ApacheCon 2003,
> 16-19 November in Las Vegas. Learn firsthand the latest
> developments in Apache, PHP, Perl, XML, Java, MySQL,
> WebDAV, and more! http://www.apachecon.com/
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] ROOT.war

2003-11-12 Thread Robert Cauble








If I take jboss 3.2.2 out-of-the-box
and rename server/default/deploy/jmx-console.war to ROOT.war and I  try going to the url

http://localhost:8080 I
get a “HTTP Status 500 – No Content configured to process this
request” response.

 

I can then go to http://localhost:8080/ROOT
and it works fine (goes to the jmx console as
expected). What is the additional configuration I need to do in order to define
a root context? I couldn’t find anything in the JBoss
documentation which we purchased which describes how to do this. 

 

Any pointers here would be greatly appreciated.

 

Thanks,

Rob








RE: [JBoss-user] JBossNET hot deploymentproblem(ClassCastException)

2003-10-09 Thread Robert Cauble
I'm not sure if this is the same thing, but I ran into an issue in axis where it 
caches the classloader of the first webapp which calls into axis. I tracked it down to 
the method getClassLoaders of AxisProperties.java:

private static ClassLoaders getClassLoaders() {
if (loaders == null) {
loaders = ClassLoaders.getAppLoaders(AxisProperties.class, null, true);
}
return loaders;
}

Hope that helps.

Rob


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:jboss-user-
> [EMAIL PROTECTED] On Behalf Of Stephane Nicoll
> Sent: Thursday, October 09, 2003 10:24 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] JBossNET hot
> deploymentproblem(ClassCastException)
> 
> Oh right. I didn't get you were thinking about debugging Axis :D
> 
> Will let you know if I find something.
> 
> Regards,
> 
> Stephane
> 
> -Original Message-
> From: Adrian Brock [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 09, 2003 3:37 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] JBossNET hot
> deploymentproblem(ClassCastException)
> 
> 
> On Thu, 2003-10-09 at 15:14, Stephane Nicoll wrote:
> > >When you get the class that fails, before passing it to narrow()
> > >run it through something like the following code (not tested or
> > >compiled):
> >
> > I don't get anything. Axis does! It's the session bean that serves
> > my web service which causes the problem. I don't get where I should
> > add this code snippet.
> >
> 
> Here, where it does the narrow().
> 
> org.apache.axis.providers.java.EJBProvider.createRemoteEJB(EJBProvider.jav
> a:1
> 68)
> 
> Regards,
> Adrian
> 
> > Regards,
> >
> > Stephane
> >
> > // Lookup
> > Object obj = context.lookup("whatever");
> > Class clazz = obj.getClass();
> >
> > // Dump class and classloader heirarchy
> > System.out.println("Looked up class: " + clazz);
> > System.out.println("Id: " + System.identityHashCode(clazz));
> > ClassLoader cl = clazz.getClassLoader();
> > while (cl != null)
> > {
> >System.out.println(cl);
> >cl = cl.getParent();
> > }
> >
> > // Load the class as seen by this deployment
> > cl = Thread.currentThread().getContextClassLoader();
> > System.out.println("My classloader: " + cl);
> > clazz = cl.loadClass(obj.getClass().getName());
> >
> > // Dump class and classloader heirarchy
> > System.out.println("My class: " + clazz);
> > System.out.println("Id: " + System.identityHashCode(clazz));
> > ClassLoader cl = clazz.getClassLoader();
> > while (cl != null)
> > {
> >System.out.println(cl);
> >cl = cl.getParent();
> > }
> >
> > Regards,
> > Adrian
> >
> > >
> > > Regards,
> > >
> > > Stephane
> > >
> > > -Original Message-
> > > From: Adrian Brock [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, October 09, 2003 11:29 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [JBoss-user] JBossNET hot deployment
> > > problem(ClassCastException)
> > >
> > >
> > > We used to have the same problem with standard deployments running
> > > on java 1.4
> > > The problem boiled down to caching of proxy classes
> > > somewhere in the RMIClassLoader or Class.forName()
> > > that breaks hot deployment.
> > >
> > > This was usually seen when people included a jndi.properties in their
> > > deployments, forcing jndi to go over RMI to the local jndi tree.
> > >
> > > We added a workaround to the RMIClassLoader that tells it to
> > > cache proxy classes against the application's classloader rather than
> > > the guess made by RMI. Since the application's classloader changes
> > > at redeployment you no longer get the problem.
> > >
> > > If it is not the same problem, maybe Axis has a similar problem?
> > >
> > > Regards,
> > > Adrian
> > >
> > > On Thu, 2003-10-09 at 08:45, Stephane Nicoll wrote:
> > > > Hello,
> > > >
> > > > We used both 3.2.1 and 3.2.2RC4 and we got the same problem. We have
> an
> > ear
> > > > containing EJBs, WAR, and a WSR defining our web service.
> > > >
> > > > Attached the web-service.xml we use
> > > >
> > > > If we deploy the ear, eveything went fine, jboss-net found the web
> > service
> > > > and deploys it. We can access it throug our remote C++ client.
> > > >
> > > > SyncherLocal is the SessionBean used to get SOAP calls
> > > >
> > > > If we then remove the ear and put it back again (that is hot
> deployment)
> > we
> > > > get a ClassCastException. Restarting JBoss fixes the problem but
> this
> is
> > > > quite annoying.
> > > >
> > > > 2003-10-08 09:33:08,375 [Thread-6 ] INFO
> ls.bytecode.ParamNameExtractor
> -
> > > > AXIS error:java.io.IOException: Unable to load bytecode for class
> > > > "com.kiala.kialapointserver.scannersynch.interfaces.SyncherLocal"
> > > > 2003-10-08 09:33:08,448 [Thread-6 ] INFO org.apache.axis.EXCEPTIONS
> -
> > > > AxisFault:
> > > > AxisFault
> > > > faultCode:
> > > {
> > > > faultSubcode:
> > > > faultString: java.lang.ClassCastException
> > > > faultActor:
> > > > faultN

RE: [JBoss-user] Re:[JBoss-user]ClassCircularityError-QueuedPessimisticEJBLock$TxLock

2003-09-26 Thread Robert Cauble
That makes sense. Thanks.

In any case, we've found a way to workaround this issue which works for
our purposes. Basically, we've moved everything from
jboss/server/default/lib to jboss/lib and moved all the jars from all
the sars to jboss/lib. 

I realize that this basically defeats hot-deploy of any of the sars, but
it works for us since we're running a (very) stripped-down deployment of
JBoss. (This is our first release in which we are moving from straight
Tomcat to JBoss+Tomcat and are in the process of gradually migrating to
J2EE technologies). 

Currently each jar in jboss/lib much be explicitly called out via the
property jboss.boot.library.list. If I were to make the changes to
ServerLoader such that it defaults to the whole directory, is this a
patch which you would consider absorbing? 

If not, no big deal, we have a "launcher" app which we can use to
bootstrap the whole thing.

Thanks,
Rob

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:jboss-user-
> [EMAIL PROTECTED] On Behalf Of Scott M Stark
> Sent: Thursday, September 25, 2003 9:14 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Re:[JBoss-user]ClassCircularityError-
> QueuedPessimisticEJBLock$TxLock
> 
> Version 2 still suffers from deadlock problems because is does not
> reliquish the class loader lock. The only hack to workaround the vm
> issue would be to retry loading after seeing a CCE.
> 
> Robert Cauble wrote:
> 
> > Thanks - I really appreciate the help.
> >
> > Also, is this problem something which you have worked around for
3.2.2?
> > (I'm still seeing it in 3.2.1.). Or is this something which can't be
> > solved until Sun fixes their stuff?
> >
> > I noticed that there is a UnifiedClassLoader2 which looks like it
solved
> > the original deadlock problem by locking the UnifiedLoaderRepository
> > from the loadClass method. It also looks like it didn't have the
> > ClassCircularityError issue that UnifiedClassLoader3 has (since it
never
> > relinquishes the ClassLoader lock via a call to wait).  What was
wrong
> > with this approach such that you switched to UnifiedClassLoader3?
> >
> > Thanks,
> > Rob
> 
> 
> 
> 
> ---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Re:[JBoss-user]ClassCircularityError-QueuedPessimisticEJBLock$TxLock

2003-09-25 Thread Robert Cauble
Thanks - I really appreciate the help.

Also, is this problem something which you have worked around for 3.2.2?
(I'm still seeing it in 3.2.1.). Or is this something which can't be
solved until Sun fixes their stuff?

I noticed that there is a UnifiedClassLoader2 which looks like it solved
the original deadlock problem by locking the UnifiedLoaderRepository
from the loadClass method. It also looks like it didn't have the
ClassCircularityError issue that UnifiedClassLoader3 has (since it never
relinquishes the ClassLoader lock via a call to wait).  What was wrong
with this approach such that you switched to UnifiedClassLoader3? 

Thanks,
Rob

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:jboss-user-
> [EMAIL PROTECTED] On Behalf Of Adrian Brock
> Sent: Wednesday, September 24, 2003 2:05 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] Re:[JBoss-user]ClassCircularityError-
> QueuedPessimisticEJBLock$TxLock
> 
> On Wed, 2003-09-24 at 19:54, Robert Cauble wrote:
> > > Multiple classloaders is more restrictive when it comes to
> > > the security model. Classes in the same package cannot access
> > > package private methods if the classes are in different
classloaders.
> >
> > Got it. Thanks.
> >
> >
> > > You can also get errors when instances of the same class name
> > > but different class objects are passed between classloaders.
> >
> > Can you give me an example? Is this something which the JVM can't
> > handle? Or do mean that it's easy for the programmer to make a
mistake
> > if they were to do something like instantiate an object of a class
Foo
> > loaded from class loader A and then cast it to a class Foo loaded
from
> > class loader B?
> >
> 
> Correct ClassCastException or the more subtle LinkageError,
> IncompatibleClassChangeError
> 
> Regards,
> Adrian
> 
> > Thanks,
> > Rob
> >
> >
> >
> >
> >
> > ---
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> --
> 
> Adrian Brock
> Director of Support
> Back Office
> JBoss Group, LLC
> 
> 
> 
> 
> ---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Re: [JBoss-user]ClassCircularityError-QueuedPessimisticEJBLock$TxLock

2003-09-24 Thread Robert Cauble
> Multiple classloaders is more restrictive when it comes to
> the security model. Classes in the same package cannot access
> package private methods if the classes are in different classloaders.

Got it. Thanks.


> You can also get errors when instances of the same class name
> but different class objects are passed between classloaders.

Can you give me an example? Is this something which the JVM can't
handle? Or do mean that it's easy for the programmer to make a mistake
if they were to do something like instantiate an object of a class Foo
loaded from class loader A and then cast it to a class Foo loaded from
class loader B?

Thanks,
Rob





---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Re: [JBoss-user] ClassCircularityError-QueuedPessimisticEJBLock$TxLock

2003-09-24 Thread Robert Cauble
Thanks for your quick response. That helps a lot.

I have a couple more questions though... 

In the parent-delegation model, as long as the class of the shared
object is present in a parent class loader of the two classes which are
sharing the object, there should be no need to marshall the object,
right? Is it just that it's too unwieldy to factor out the shared
classes and place them in a parent class loader?

Also, what is the difference in functionality between a)having several
UnifiedClassLoaders which are part of the same UnifiedLoaderRepository
and b)having a single instance of a classloader which is a subclass of
URLClassLoader which allows url's to be added dynamically, hence
supporting hot-deploy? In my previous email I was thinking that the
advantage was you could redeploy a class without having to redeploy the
classes which depend on it, but as you said any classes hard-referencing
it would need to be redeployed anyway.

Thanks,
Rob

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:jboss-user-
> [EMAIL PROTECTED] On Behalf Of Adrian Brock
> Sent: Wednesday, September 24, 2003 9:35 AM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Re: [JBoss-user] ClassCircularityError-
> QueuedPessimisticEJBLock$TxLock
> 
> On Wed, 2003-09-24 at 14:49, Robert Cauble wrote:
> > Can someone please point me towards some documentation which
describes
> > the advantage of the UnifiedClassLoader model over the tree-based
> > class loading model? We purchased the JBoss documentation and all it
> > says in the administrators guide is that "JBoss 3.x employs a new
> > class loading architechture that facilitates sharing of classes
across
> > deployment units". It also mentions that prior to this architecture,
> > MBeans were not hot-deployable.
> >
> 
> The main benefit of the UnifiedClassLoader is it removes the
> need to do any marshalling when crossing application boundaries.
> A little care in packaging means there is no marshalling between
> the front plane (WEB/Remote Interface/etc.) and the back plane
> (JCA, db, jms, etc)
> 
> Hotdeployment of mbeans is possible because it uses the same
> classloader scheme, not because it uses the UnifiedClassLoader per se.
> 
> As a side note:
> Eclipse uses a similar scheme and have made no attempt to workaround
> this Sun JVM bug (unlike us), but then they don't support redeployment
> and you must explicity share classes.
> The JMX spec also uses a similar scheme. As of JMX1.2 they have
> hacked the spec to avoid the bug rather than fix the JVM.
> 
> Try the following test to see the overhead of marshalling,
> every parameter and return value must be marshalled (a String is
> very simple object to marshall):
> 
> import java.rmi.MarshalledObject;
> 
> public class Marshalling
> {
> static final int iterations = 10;
> 
> public static void main(String[] args)
>throws Exception
> {
>System.out.println("Non-marshalled");
>Payload payload = new NonMarshalledPayload();
>test(payload);
>System.out.println("Marshalled");
>payload = new MarshalledPayload();
>test(payload);
> }
> 
> public static void test(Payload payload)
>throws Exception
> {
>String value = new String("Value");
> 
>long begin = System.currentTimeMillis();
>for (int i = 0; i < iterations; ++i)
>{
>   payload.setValue(value);
>   payload.getValue();
>}
>System.out.println("Time per iteration (nano secs): " +
((100
> * (System.currentTimeMillis() - begin)) / iterations));
> }
> 
> public interface Payload
> {
>Object getValue() throws Exception;
>void setValue(Object value) throws Exception;
> }
> 
> public static class NonMarshalledPayload
>implements Payload
> {
>Object value;
> 
>public Object getValue()
>{
>   return value;
>}
> 
>public void setValue(Object value)
>{
>   this.value = value;
>}
> }
> 
> public static class MarshalledPayload
>implements Payload
> {
>MarshalledObject value;
> 
>public Object getValue()
>   throws Exception
>{
>   return value.get();
>}
> 
>public void setValue(Object value)
>   throws Exception
>{
>   this.value = new MarshalledObject(value);
>}
> }
> }
> 
> >
> >
> > Is this basically saying that it allows you to hot-deploy a
component

Re: [JBoss-user] ClassCircularityError-QueuedPessimisticEJBLock$TxLock

2003-09-24 Thread Robert Cauble








Can someone please point me towards some documentation which
describes the advantage of the UnifiedClassLoader
model over the tree-based class loading model? We purchased the JBoss documentation and all it says in the administrators guide
is that “JBoss 3.x employs a new class loading architechture that facilitates sharing of classes across deployment
units”. It also mentions that prior to this architecture, MBeans were not hot-deployable.

 

Is this basically saying that it allows you to hot-deploy a
component without having to re-deploy those components which depend on it and
its classes? 

 

Any help here would be appreciated.

 

Thanks,

Rob








Re: [JBoss-user] Re: Out of Memory error

2003-09-12 Thread robert
Can you try with the Sun JVM option -XX:MaxPermSize=128m

> Does this mean that we are stuck with it?  Doesn't look like anyone is
> trying to fix it.
>
>>> After redeploying several times in Jboss (3.0.7)  Jboss gives an
>>> OutOFMemory error.  Seems to only happen during development when
>>> redeploying several times.  Does this happen to anyone else?
>>
>> See
>>
http://sourceforge.net/tracker/index.php?func=detail&aid=576913&group_id=22866&atid=376685>>
>> --
>> Eric Jain
>>
>>
>>
>> ---
>> This sf.net email is sponsored by:ThinkGeek
>> Welcome to geek heaven.
>> http://thinkgeek.com/sf
>> ___
>> JBoss-user mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
>
>
>
> ---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user





---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] How to deploy simple html and jsp files

2003-09-03 Thread robert
> On (2003/09/03 14:22), Jon Haugsand wrote:
>
>> Is it possible to place simple html and/or jsp files directly to
>> JBoss-3.2.1 bundled with Tomcat?  If so, where should you copy the
>> files?
>
> I don't think so.  JBoss needs to know that these files are part of a
> web application to be handled by Tomcat, and Tomcat needs to know that
> these files are associated with a web context.
>
> So you'll need to slap the files into a war.
>

Instead of creating a war file you can create a .war named directory in
jboss/server/default/deploy

Note: for the root context (/) create a file or a directory named ROOT.war

> For example,
>
> jboss/server/default/deploy/default.war:
>   index.html
>   example.jsp
>   jboss-web.xml
> jboss/server/default/deploy/default.war/WEB-INF:
>   web.xml
>
> jboss-web.xml:
>   
>   /
>   
>
> web.xml:
>   See the Tomcat documentation:
>   http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/deployment.html
>
> Ciao,
> Sheldon.
>
>
> ---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user





---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] (no subject)

2003-08-26 Thread Robert Lerner
confirm 609848



---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] (no subject)

2003-08-26 Thread Robert Lerner
confirm 609848



---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-dev] Re: [JBoss-user] July 2003 news

2003-08-08 Thread robert
> Yes, I'd like to know as well.  We will address this issues if it is
> so.
>

GPL licensed files
#grep -R "under GPL" *
jetty/src/main/org/jboss/jetty/JBossWebApplicationContext.java: *
Distributable under GPL license.
jetty/src/main/org/jboss/jetty/Jetty.java: * Distributable under GPL license.
jetty/src/main/org/jboss/jetty/JettyMBean.java: * Distributable under GPL
license.
jetty/src/main/org/jboss/jetty/JettyService.java: * Distributable under GPL
license.
jetty/src/main/org/jboss/jetty/log/JBossLogSink.java: * Distributable under
GPL license.
jetty/src/main/org/jboss/jetty/security/JBossUserRealm.java: * Distributable
under GPL license.
(


> Regards,
>
> Bill
>
> 
> Bill Burke
> Chief Architect
> JBoss Group, LLC
> 
>
> Cast your vote for JBoss as JDJ Best App Server
>
> http://www.sys-con.com/java/readerschoice2003/vote.cfm
>
>
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] Behalf Of
>> Brian Wallis
>> Sent: Wednesday, August 06, 2003 7:52 PM
>> To: [EMAIL PROTECTED]; Vladyslav Kosulin
>> Cc: [EMAIL PROTECTED]
>> Subject: [JBoss-dev] Re: [JBoss-user] July 2003 news
>>
>>
>> On Thu, 7 Aug 2003 05:15, Vladyslav Kosulin wrote:
>> > P.S. Do you know that there are java source files licensed under GPL
>> > (not LGPL) in the latest JBoss 3.2.1 and 3.2.2 distributions and
>> > even in the CVS HEAD? Are you surprised?
>>
>> This statement worries me.
>>
>> Vlad, can you name one or more specific files that are GPL rather than
>> LGPL?
>>
>> If these do exist what is the plan to rectify what to me seems to be a
>> serious
>> problem. Something like this could prevent me from using JBoss at all.
>> This
>> is serious if true!
>>
>> brian wallis...
>>
>>
>>
>> ---
>> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
>> Data Reports, E-commerce, Portals, and Forums are available now.
>> Download today and enter to win an XBOX or Visual Studio .NET.
>> http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072
> 303_01/01
> ___
> JBoss-Development mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-development
>
>
>
> ---
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user





---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Maximum length of class name/package?

2003-07-16 Thread Robert HALL

> There is no JBoss max length.
> 
> -- 
> 
> Scott Stark
> Chief Technology Officer
> JBoss Group, LLC
> xxxx
> 
> Robert HALL wrote:
> 
> > I seem to recall running into an issue of this sort with 
> Weblogic.  Is 
> > there a known upper length limit on a fully qualified class name 
> in 
> > JBOSS (or is this more of a JVM-specific issue)?
> > 
> > i.e. the length of a class name like 
> > com.foo.bar.package1.package2.package3.ejb.SampleBean
> > 
> > Thanks..


On further thought, the problem I was thinking of turned out to be a 
file system maximum name length issue, rather than a VM or app. server 
issue.

Rob



---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Maximum length of class name/package?

2003-07-15 Thread Robert HALL
I seem to recall running into an issue of this sort with Weblogic.  Is 
there a known upper length limit on a fully qualified class name in 
JBOSS (or is this more of a JVM-specific issue)?

i.e. the length of a class name like 
com.foo.bar.package1.package2.package3.ejb.SampleBean

Thanks..



---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Shutdown JBoss programmatically

2003-06-24 Thread robert
> Guys,
>
> I do some initialization stuff on a startup Servlet. If some services
> fail during this initialization, I want to shutdown JBoss. Is there a
> programmatical way of doing it. Can any body suggest please.

Try using System.exit. JBoss install Shutdown hooks in order to do a clean
exit
>
> Thanks in advance,
> Magesh
>
>

--
Robert Marcano
IT System Architect
http://www.marcanoonline.com/




---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] OT: XDoclet problem - empty ejb-jar.xml / Neither interface gener

2003-06-06 Thread robert
> Hello, list.  I have a simple little class that I'm trying to use to
> get started with XDoclet (v1.2 b2), but my ejb-jar.xml turns up empty
> (except for the generated placeholders) and I can't seem to generate
> interfaces. I've tried a few variations of the attached, and nothing
> seems to work. What am I not doing?

I had this problem when the EJB Bean was a subclass of another bean that
implemented EntityBean/SessionBean interface with empty implementations of
the some methods

>
> TIA,
>
> Bill
>
> build.xml:
> --
> 
>
> 
>
>  
>
>
>  
>
>  
>
>  classname="xdoclet.modules.ejb.EjbDocletTask"
>  classpathref="xdoclet-lib"
>/>
>
>   force="true"
>   verbose="true"
>   destDir="../com/avnet/sbs/randa/cmp">
>
>  
>
>  
>
>  
>  
>
>  
>
>
>  
>
> 
>
>
> Output:
> --
> $ ant ejbdoclet
> Buildfile: build.xml
>
> ejbdoclet:
> [ejbdoclet] Running 
> [ejbdoclet] Running 
> [ejbdoclet] Running 
> [ejbdoclet] Generating EJB deployment descriptor (ejb-jar.xml).
>
> BUILD SUCCESSFUL
> Total time: 9 seconds
>
>
> PolicyBean.java:
> --
> package com.avnet.sbs.randa.cmp;
>
> import javax.ejb.EntityBean;
> import javax.ejb.EntityContext;
>
> import java.util.Collection;
>
> /**
> * Models an Avnet policy definition.
> *
> * @author   [EMAIL PROTECTED]
> * @version  1.0.0
> * @ejb.bean
> *   name="Policy"
> *   schema="Policy"
> *   type="CMP"
> *   cmp-version="2.x"
> *   primkey-field="policyId"
> *   view-type="local"
> *   local-jndi-name="randa/Policy"
> * @ejb-persistence
> *   table-name="Policy"
> * @ejb.pk
> *   class="java.lang.Integer"
> * @ejb.home
> *   generate="local"
> *   local-class="com.avnet.sbs.randa.cmp.PolicyHome"
> * @ejb.interface
> *   generate="local"
> *   local-class="com.avnet.sbs.randa.cmp.Policy"
> *
> */
> public abstract class PolicyBean implements EntityBean {
>
>  /**
>   * @ejb.interface-method
>   *   view-type="local"
>   * @ejb.persistence
>   *   column-name="PolicyID"
>   */
>  public abstract Integer getPolicyId();
>  public abstract void setPolicyId(Integer id);
>
>
>  /**
>   * @ejb.interface-method
>   *   view-type="local"
>   * @ejb.persistence
>   *   column-name="Title"
>   */
>  public abstract String getTitle();
>  public abstract void setTitle(String title);
>
>  public void setEntityContext(EntityContext context){ }
>  public void unsetEntityContext(){ }
>  public void ejbRemove()throws javax.ejb.RemoveException{ }
>  public void ejbLoad(){ }
>  public void ejbStore(){ }
>  public void ejbPassivate(){ }
>  public void ejbActivate(){ }
> }
>
>





---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] jetty max form size reached?

2003-04-04 Thread Robert Hedin
We ran into a similar problem. Not sure if it's related to what you're
seeing, but Jetty added a parameter to guard against certain DOS attacks
that limits the size of form data returned. Setting the
"org.mortbay.http.HttpRequest.maxFormContentSize" system property allows
this to be configured. We use the following to our JBoss startup script:

-Dorg.mortbay.http.HttpRequest.maxFormContentSize=100

so we are limited to about 1M of form data.

rob.

- Original Message -
From: "Frank Morton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 03, 2003 1:13 PM
Subject: [JBoss-user] jetty max form size reached?


> Using jboss 3.2.0RC2/jetty under MacOS X with JDK 1.4.1.
>
> I have a large form with 2095 items. When processing the form,
> it is only able to find 1819 items in the form request Enumeration.
> I don't know if it is a form size limit, element count limit, or
> something else. Everything I have tried ends with the same result.
>
> Can anyone describe what is happening and how to get around this,
> other than redesigning the form. Is there a config option somewhere?
>
>
>
> ---
> This SF.net email is sponsored by: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>



---
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Default Context - JSP as Homepage

2003-03-26 Thread Robert . Hathaway
Hello,

How does one create a default context, perhaps a JSP, in which the Homepage is
a web application?  I am new to JBoss and now have the homepage as a static
'out of war' page in the file system, but what if I want the homepage to be
JSP accessed by the usual URL: http://www.someDN.com/.  After first installing
the JBOSS V3 package with Jetty HTTP server I was surprised to see this fail
and the documentation refer to an undefined 'default context'.

Thanks,
Bob

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Exposing C++ Web Services/Axis and Tomcat/JBoss standalone

2003-03-24 Thread Robert . Hathaway

1. Is there an easy way to expose C++ server code as a Web Service?
- Best to directly expose, 2nd to use JNI wrappers.

2. Can the Tomcat/JBoss package run as a 'standalone' http server?
- As is possible with Tomcat4 standalone and the V3 Jetty package.
- Want complete solution without integration issues.

Thanks in advance.

Best Regards,
Bob

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] How to setup Session EJB for access over SSL and strait RMI?

2003-03-10 Thread Robert Augustyn

Hi,
I need to give access to some of my ejb's over ssl and directly through
unencrypted rmi.
What is the best way to do it? 
Currently I have to have 2 beans one for ssl and one for non-ssl
connections.
This is less then ideal.
robert




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] How to change Cipher Suite when doing RMI over SSL?

2003-03-10 Thread Robert Augustyn
Hi,
I have setup jboss 3.0.4 to accept rmi calls over ssl but I am not able
to define a cipher suite I would like to use for that connection. Is
there a way to do that?
Btw: I know how to do it when doing https but I need to do it for RMI.
Thanks in advance.
robert




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Remote RMI (jndi)

2003-02-20 Thread Robert Augustyn
Title: Message



This should work in your 
scenario the only difference is that you would need to replace "yourhostname" 
with the name or ip of your jboss server.
 
 try{    Context iniCtx = 
getInitialContext();    }catch (Exception 
e){    
e.printStackTrace();    }
  
private static Context getInitialContext() throws NamingException  
{      Hashtable env = new 
Hashtable();    env.put(Context.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory");    
env.put(Context.PROVIDER_URL, 
"jnp://yourhostname:1099/");    
return new InitialContext(env);  }
robert
 

  
  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]] On Behalf Of Brian 
  TaylorSent: February 19, 2003 5:24 PMTo: 
  '[EMAIL PROTECTED]'Subject: RE: [JBoss-user] Remote 
  RMI (jndi)
  Or...call constructor InitialContext(Properties) like 
  so: 
  Properties props = new Properties(); props.put(Context.INITIAL_CONTEXT_FACTORY, 
  "org.jnp.interfaces.NamingContextFactory"); props.put(Context.PROVIDER_URL, "jnp://localhost:1099"); 
  props.put(Context.URL_PKG_PREFIXES, 
  "org.jboss.naming:org.jnp.interfaces"); 
  jndiContext = new InitialContext(props); ref = jndiContext.lookup("RouteListSessionEJB"); 
  -Original Message- From: 
  Jeremy Rempel [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, February 19, 2003 12:10 PM To: [EMAIL PROTECTED] Subject: 
  [JBoss-user] Remote RMI (jndi) 
  I am trying to access a ejb remotley though JNDI. It compiles 
  perfect and it works when it is on the same machine 
  and I update my jndi.properties. When I try and move 
  it to and access it remotley it returns null. 
  
  jndiContext = new InitialContext(); ref = jndiContext.lookup("RouteListSessionEJB"); // returns null 
  
  When I change jndi.properties to a host w/o JBOSS running it 
  gives a connection error on InitialContext(), so that 
  is not the case. Port 1099 is open. 
  Any help is greatly appreciated. 
  Thanks, Jeremy 
  --- 
  This SF.net email is sponsored by: SlickEdit Inc. Develop an 
  edge. The most comprehensive and flexible code editor 
  you can use. Code faster. C/C++, C#, Java, HTML, XML, 
  many more. FREE 30-Day Trial. www.slickedit.com/sourceforge ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user 
  


[JBoss-user] JBoss CMP/Sybase limitation

2002-12-10 Thread Robert Martin
Hi - 

Sybase ASE has a limitation of 250 ANDs/ORs in a select.  It also has a
limitation of 250 elements inside of an IN.  We've encountered a problem
with the way that JBoss CMP pulls large sets of data from the database
because of this limitation.  CMP engine first pulls all of the primary keys
and then does a second query that looks like "SELECT * FROM TABLE WHERE
primary_key=? OR primary_key=? OR primary_key=? OR ..."  The problem is that
when the result set contains more than 250 primary keys, the query that
JBoss generates causes Sybase to throw an SQL exception because of the
limitation.  Any way around this?  Thanks.

Robert


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Testing EJB's

2002-12-10 Thread Robert Martin
Hi -

Not sure if I completely understand your question, but we use JUnitEE, which
runs as a servlet inside the container.  It invokes your unit tests and
displays the results in HTML format.  Very nice.  

Personally, we always run tests on the remote interfaces of our EJBs so that
we can test them remotely as well as from inside the container.  You will
have to deploy your EJBs to the JBoss app server tho, as well as the tests
and test servlet.

Hope this helps.
http://junitee.sourceforge.net/

Robert

-Original Message-
From: Jim Crossley [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 10, 2002 9:53 AM
To: jboss-user
Subject: [JBoss-user] Testing EJB's


What's the current best practice for unit testing EJB's, (both Entity 
and Session)?

I'm trying to avoid having to deploy them to a separate JBoss instance 
to test them.  More precisely, I want to be able to deploy them to an 
in-memory container, if possible, similar to Hypersonic's in-memory 
database.  Ideally, the EJB container would be running within the JVM of 
the JUnit test runner, persisting my CMP beans to the memory-resident 
Hypersonic db.

Possible or stupid?

-- Jim



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Should I setup multiple RmiPort's?

2002-12-07 Thread Robert Augustyn
Hi,
By default jboss starts multiple ports for RMI.
When I define RmiPort attribute in jboss-service.xml jboss starts only one defined by that attribute.
Is that enought? Is it possible to define multiple ports?
Thanks in advance.
robertDo you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

[JBoss-user] How to control tcp ports required for jboss?

2002-12-06 Thread Robert Augustyn
Hi,
I have a typical 3tier configuration with 2 firewalls between tiers. I need to control what ports I need to have open to support connections between Web tier ( Tomcat ) and App Tier ( Jboss ).
I can control JNDI (1099) and RMI  but it looks like jboss is communicating on bunch of other ports. My tcpdump shows connections on ports 33036-33038 or 33018... or other ports in that range.
My question is how to control use of the connections in 33000 range?
Can I assign/restrict these ports somewhere, and what are these used for?
Can I avoid using these ports? What are the implications?
Thanks in advance.
robert
 Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

RE: [JBoss-user] jbuilder 7 and jboss3.0.4

2002-12-02 Thread Robert Martin
We don't use that feature, but I do know that the plugin will wipe out any
manual entries you make in the deployment descriptors when it regenerates
them.  The JBoss Opentool is an open source project though, so there's
nothing stopping you from adding the feature if you want it.  :-)

Robert

-Original Message-
From: Phil Shrimpton [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 9:54 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] jbuilder 7 and jboss3.0.4


On Monday 02 December 2002 18:02, you wrote:

Hi,

> We are using JBuilder 7 and jboss 3.0.2 together.  Someone else mentioned
> the protegra plugin, which we tried at one time, but we settled on the
> JBoss Opentool, which is an open source equivalent.  Here is a link to it:
> http://sourceforge.net/projects/jboss-opentool/


Have you worked out how to add the Unknown Primary Key info yet?  We have to

manually add it after each make/build.

Phil
-- 
Linux 2.4.4-4GB
  5:51pm  up  8:14,  1 user,  load average: 0.16, 0.14, 0.12


---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] jbuilder 7 and jboss3.0.4

2002-12-02 Thread Robert Martin
We are using JBuilder 7 and jboss 3.0.2 together.  Someone else mentioned
the protegra plugin, which we tried at one time, but we settled on the JBoss
Opentool, which is an open source equivalent.  Here is a link to it:
http://sourceforge.net/projects/jboss-opentool/

It works quite well - all the deployment descriptors are automatically
populated, including those for CMP entity beans.  

To configure JBuilder 7 to work properly with JBoss using the JBoss
Opentool, just do the following:

1.)  Drop the opentool jar file into the appropriate jbuilder directory
(specified in the install instructions)
2.)  Go to Tools->Configure Servers...
3.)  Click "JBoss 3.x".
4.)  Click "Enable Server".  Make sure all the directories are pointing at
your jboss installation.
5.)  On the "Custom" tab, make sure that the jboss installation directory is
correct.
6.)  Under "JBoss configuration to use" pick your configuration (default,
all, minimal, etc).
7.)  Go to Project Properties->Server.
8.)  For "Relationship between server and services" check "Modular services
provided by different servers"
9.)  For "EJB" and "Deployment", pick "Jboss 3.x".
10.)  For "JSP/Servlet" pick "Tomcat 3.3"

That should do it.  Let me know if you have any further problems.  Good
luck!

Robert

-Original Message-
From: cai margiex [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 01, 2002 6:57 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] jbuilder 7 and jboss3.0.4






Hi,
   Does anyone use Jbuilder7 and Jboss3.0.4? I can't create a new web 
application when I specified the project server is jboxx3.x. And there is 
only EJB and deployment services, no jsp/servlet and others. Does anyone 
give me some advice?
   Thanks.

_
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn 



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Re: ClassCastException on redeploy of .ear

2002-11-07 Thread Robert Martin
I had this exact problem, but with an ejb jar instead of an ear.  I could
deploy the jar exactly once and it would work fine.  After that I could
never redeploy it without it permanently breaking.  The only way to fix the
problem was to shut down the server.  

After reading this message, I checked my jar and found that a
jndi.properties file I use for client-side access had sneaked into the file.
The contents of the jndi.properties were valid, but it shouldn't have been
in the jar file.  After removing the jndi.properties, everything works fine.

Question - is the behavior described above a bug or a feature that we were
accidentally misusing?  It would seem to be a fairly severe vulnerability in
the server that an errant jndi.properties file in a jar file can permanently
break the server.  Any insight?

Thanks.

Robert

-Original Message-
From: Scott M Stark [mailto:scottmstark@;attbi.com]
Sent: Monday, November 04, 2002 8:51 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Re: ClassCastException on redeploy of .ear


It could be a problem with how the ear is packaged, placing classes in
contexts that
are not refreshed after the redeploy, including a jndi.properties file in
the deployment,
etc. Without an example ear that demonstrates the problem I can't say what
your
problem is. Create an example and attach it to a bug report at 
http://sourceforge.net/projects/jboss/


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message - 
From: "John Snyder" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 03, 2002 1:29 PM
Subject: [JBoss-user] Re: ClassCastException on redeploy of .ear


> Scott,
> 
> I upgraded to jboss-3.0.4_tomcat-4.0.6, but I still have the exact same
> problem.  Everything works fine when I first start JBoss and deploy the
> .ear, but as soon as I re-deploy the .ear, I get the ClassCastException.
> This happens even when I remove the .jar and .ear files from the deploy
> directory completely, then re-deploy them.  Could this be a problem with
my
> web.xml and jboss-web.xml files, or is it unrelated?  This strikes me as a
> pretty serious problem -- see any solution?
> 
> The full error I am getting, if it helps, is:
> java.lang.ClassCastException
> at
>
com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemo
> teObject.java:293)
> at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
> at
> com.pc.servlets.RegistrationServlet.doRequest(RegistrationServlet.java:40)
> at com.pc.servlets.BaseServlet.doPost(BaseServlet.java:33)
> at com.pc.servlets.BaseServlet.doGet(BaseServlet.java:28)


---
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Auto-increment primary keys and CMP

2002-10-15 Thread Robert Martin

Hi - 

I have a table that has a NUMERIC primary key that is defined as an IDENTITY
key.  The primary key column is defined such that the database automatically
sets the primary key on insert to the next incremental value.  The user is
not allowed to set the key to any value or the database will return an
error.

My problem is that I have defined a CMP bean that maps to this table, but I
cannot get a create to work.  If I call a create which includes the primary
key, the database throws an exception because I am not allowed to set the
value.  If I call a create method that does not take the primary key, the
database throws an exception because JBoss is trying to set the primary key
to null.

My question is - is there any way to tell JBoss that this primary key is
managed by the database and thus should not be written to?  

How do people typically handle working with tables with identity keys?

By the way, I am using JBoss 3.0.2 and Sybase Adaptive Server Enterprise 12.

Thanks.

Robert


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Erratic -- jboss3.0 on linux

2002-09-19 Thread Robert Krüger


most likely a vm problem. java on linux is a bit of a problem. many VMs 
(including the latest 1.4.1 VM) are very buggy. what vm are you using? try 
switching (e.g. from 1.4.1 to 1.4 or 1.3 or try the blackdown ports or ibm 
vms instead of sun's). it's really trial and error as one VM might run 
flawlessly with one application server and another one won't and it might be 
vice versa with a different application server.

sad but that's how it is.

hth

robert  

On Friday 20 September 2002 08:51, Arijit Ghosh wrote:
> Hi,
>
> Jboss3.0 on Linux is behaving erratically. When I try to execute,
> ./run.sh from the bin folder,
> server starts running but stops suddenly at no specific point.
>
> 1. Sometimes it hangs after displaying ---
> Starting General Purpose Architecture
>
> 2. Sometimes it hangs after displaying --
> Successfully completed deployement of the package : ./bcel.jar
>
> If I type in java -jar run.jar, there is no message output and the
> server hangs right at the beginning.
>
> On doing Ctrl+Z and the giving the ps command, I find that some 8 or 9
> processes with name java exists and one of them also says .
>
> I have been successful to start the server completely and successfully
> only once. I have not made any changes to any file.
>
> The extent to which the server starts up seems random.
>
> Can anyone please suggest something ?
>
>
> Regards,
>   Arijit
>
>
>
>
> ---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] LdapLoginModule Bug: Problem with empty passwords

2002-09-10 Thread Robert Dingwell

Using the LdapLoginModule, supplying an empty password for a user causes
an anonymous bind to happen. This is documented in the JNDI
documentation here
http://java.sun.com/products/jndi/tutorial/ldap/faq/context.html.

Read the section  [ Why does the LDAP provider ignore my security
environment properties if I do not set the Context.SECURITY_CREDENTIALS
("java.naming.security.credentials") property or set it to the empty
string? ] . Supplying an empty string as the credentials causes the
context to set the SECURITY_AUTHENTICATION  property to "none" and then
does an anon bind.

If your Ldap server is set to except anon connections this is a problem
for the LdapLoginModule. Supplying the empty password does not cause an
exception to be thrown and the uid and the roles for that uid are passed
back.

Here is the patch for this as well. The only thing that needed to be
changed in the method was to check to make sure the password is not an
empty string as well as null.

   protected boolean validatePassword(String inputPassword, String
expectedPassword)
   {
  boolean isValid = false;
  if( inputPassword != null && !inputPassword.equals(""))
  {
 try
 {
// Validate the password by trying to create an initial
context
String username = getUsername();
createLdapInitContext(username, inputPassword);
isValid = true;
 }
 catch(NamingException e)
 {
super.log.error("Failed to validate password", e);
 }
  }
  return isValid;
   }



Rob Dingwell



begin:vcard 
n:Dingwell;Robert
tel;work:781-271-2829
x-mozilla-html:FALSE
org:Mitre Corp.
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Robert Dingwell
end:vcard



Re: [JBoss-user] About the performance of embedded Tomcat

2002-08-13 Thread Robert Hannebauer

Hello,

> Your embedded configuration isn't running optimized calls. This is 
> probably because Tomcat/JBoss is finding the same classes in both the 
> war and the ear. If an interface is in both places, Tomcat will load 
> it from the war and JBoss will load it from the ear (each with its own 
> classloader) and the invoker will think that they're not the same 
> class and will silently un-optimize.

Exists some check to see wether optimized calls are used?

Robert



---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Integrating Non-JMS Messaging with JBoss

2002-07-30 Thread Robert Martin

Hi - 

We're using a messaging product called TIBCO Rendevous that I would like to
integrate with an application running on the JBoss server.  TIBCO does have
a JMS product but we have decided not to use it for cost reasons.  

My question is - what is the best way to integrate non-JMS messaging with a
J2EE application running on the JBoss server?  Can I somehow define my TIBCO
listener class as a service that JBoss will start up and run for me on the
server itself?  Or does my listener need to be an external client
application which then makes calls into the JBoss server?  I suppose writing
a JMS - TIBCO adaptor is another possibility, but I imagine this would be
quite a bit of work.

Any ideas?  Thanks.

Robert


---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Sybase Errors with JBossCMP

2002-07-26 Thread Robert Martin

Mark - 

Thanks for your suggestion.  I upgraded to JBOSS 3.0.1RC1.  Unfortunately,
under 3.0.1RC1 my Sybase service won't even start up, so this appears to
have actually made the problem worse.  The exception I am getting is below.

I had to create my own sybase-service.xml file as one was not included with
Jboss 3.0, but it worked with 3.0.0.  It just fails with JBoss 3.0.1.  

Anyone had success getting JBoss3.0.x CMP working with Sybase ASE 12?

Robert

---

002-07-26 11:22:59,401 ERROR [org.jboss.system.server.Server] start failed
Incomplete Deployment listing:
Packages waiting for a deployer:
  
Incompletely deployed packages:
  
MBeans waiting for classes:
  
MBeans waiting for other MBeans:
[ObjectName: jboss.jca:service=LocalTxCM,name=SybaseDS
 state: CONFIGURED
 I Depend On:   jboss.jca:service=LocalTxDS,name=SybaseDS
  jboss.jca:service=LocalTxPool,name=SybaseDS
  jboss.jca:service=CachedConnectionManager
  jboss.security:name=JaasSecurityManager
  jboss.jca:service=RARDeployer

 Depends On Me: ]
at
org.jboss.deployment.MainDeployer.checkIncompleteDeployments(MainDeployer.ja
va:1081)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:583)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:565)
at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat
cher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:319)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
at org.jboss.Main.boot(Main.java:142)
at org.jboss.Main$1.run(Main.java:375)
at java.lang.Thread.run(Thread.java:484)
2002-07-26 11:22:59,531 ERROR [STDERR] Incomplete Deployment listing:
Packages waiting for a deployer:
  
Incompletely deployed packages:
  
MBeans waiting for classes:
  
MBeans waiting for other MBeans:
[ObjectName: jboss.jca:service=LocalTxCM,name=SybaseDS
 state: CONFIGURED
 I Depend On:   jboss.jca:service=LocalTxDS,name=SybaseDS
  jboss.jca:service=LocalTxPool,name=SybaseDS
  jboss.jca:service=CachedConnectionManager
  jboss.security:name=JaasSecurityManager
  jboss.jca:service=RARDeployer

 Depends On Me: ]
2002-07-26 11:22:59,591 ERROR [STDERR]  at
org.jboss.deployment.MainDeployer.checkIncompleteDeployments(MainDeployer.ja
va:1081)
2002-07-26 11:22:59,601 ERROR [STDERR]  at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:583)
2002-07-26 11:22:59,611 ERROR [STDERR]  at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:565)
2002-07-26 11:22:59,611 ERROR [STDERR]  at
java.lang.reflect.Method.invoke(Native Method)
2002-07-26 11:22:59,621 ERROR [STDERR]  at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat
cher.java:284)
2002-07-26 11:22:59,631 ERROR [STDERR]  at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
2002-07-26 11:22:59,641 ERROR [STDERR]  at
org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:319)
2002-07-26 11:22:59,641 ERROR [STDERR]  at
org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
2002-07-26 11:22:59,651 ERROR [STDERR]  at
org.jboss.Main.boot(Main.java:142)
2002-07-26 11:22:59,651 ERROR [STDERR]  at
org.jboss.Main$1.run(Main.java:375)
2002-07-26 11:22:59,661 ERROR [STDERR]  at
java.lang.Thread.run(Thread.java:484)



-Original Message-
From: Marc Zampetti [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 6:55 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Sybase Errors with JBossCMP


Robert Martin wrote:

>Hi - 
>
>I am trying to deploy a very simple CMP bean which I created for an
existing
>table in our Sybase AS Enterprise 12 database.  An exception is thrown
every
>time JBoss tries to check a connection in to the connection pool.  This


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Sybase Errors with JBossCMP

2002-07-26 Thread Robert Martin

Marc - 

Success!  Thanks for the tip.  For anyone who may be following this thread,
the changes described below should be made to your sybase-service.xml file.
Thanks again Marc.

Robert

-Original Message-
From: Marc Zampetti [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 1:52 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Sybase Errors with JBossCMP


Robert Martin wrote:
>>Marc - 
>>
>>Thanks for your suggestion.  I upgraded to JBOSS 3.0.1RC1.  Unfortunately,
>>under 3.0.1RC1 my Sybase service won't even start up, so this appears to
>>have actually made the problem worse.  The exception I am getting is
below.
>>
>>I had to create my own sybase-service.xml file as one was not included
with
>>Jboss 3.0, but it worked with 3.0.0.  It just fails with JBoss 3.0.1.  
>>
>>Anyone had success getting JBoss3.0.x CMP working with Sybase ASE 12?
>>
>>Robert
>>
>>
Marc Zampeti wrote:
>I am having the same problem. I was using a build of the 3.0.1RC1 that I 
>manually built from CVS several weeks ago, before RC1 was released. The 
>fix I got from the JBOSS Forums is:
>
>Change
>
>jboss.security:name=JaasSecurityManager
>
>
>to 
>jboss.security:service=JaasSecurityManager
>

-- 

Marc Zampetti





---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Sybase Errors with JBossCMP

2002-07-25 Thread Robert Martin

Hi - 

I am trying to deploy a very simple CMP bean which I created for an existing
table in our Sybase AS Enterprise 12 database.  An exception is thrown every
time JBoss tries to check a connection in to the connection pool.  This
exception happens when the bean is deployed and again when it is called.
Has anyone seen this error before/know how to deal with it?  Thanks.

Robert


Here are the relevant details from the jboss log file:

2002-07-25 17:05:38,707 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.validityBean] Initializing
CMP plugin for validityBean
2002-07-25 17:05:38,757 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.validityBean] Loading
standardjbosscmp-jdbc.xml :
file:/C:/jboss-3.0.0/server/default/conf/standardjbosscmp-jdbc.xml
2002-07-25 17:05:38,977 DEBUG
[org.jboss.resource.connectionmanager.IdleRemover] internalRegisterPool:
registering pool with interval 90 old interval: 9223372036854775807
2002-07-25 17:05:38,977 DEBUG
[org.jboss.resource.connectionmanager.IdleRemover] internalRegisterPool:
about to notify thread: old next: 1027642388977, new next: 1027642388977
2002-07-25 17:05:38,977 DEBUG
[org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Using
properties: {user=rmartin, password=firstq}
2002-07-25 17:05:38,977 DEBUG
[org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory]
Checking driver for URL: jdbc:sybase:Tds:fqbackup:4100/fqdata
2002-07-25 17:05:38,987 DEBUG
[org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Driver
not yet registered for url: jdbc:sybase:Tds:dbserver:4100/data
2002-07-25 17:05:39,077 DEBUG
[org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Driver
not yet registered for url: jdbc:sybase:Tds:dbserver:4100/data
2002-07-25 17:05:39,207 DEBUG
[org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Driver
already registered for url: jdbc:sybase:Tds:dbserver:4100/data
2002-07-25 17:05:40,019 INFO
[org.jboss.resource.connectionmanager.JBossManagedConnectionPool]
ResourceException returning ManagedConnection to pool:
javax.resource.ResourceException: Could not cleanup:
com.sybase.jdbc2.jdbc.SybSQLException: SET CHAINED command not allowed
within multi-statement transaction.

at
org.jboss.resource.adapter.jdbc.local.LocalManagedConnection.cleanup(LocalMa
nagedConnection.java:198)
at
org.jboss.resource.connectionmanager.InternalManagedConnectionPool.returnCon
nection(InternalManagedConnectionPool.java:137)
at
org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.ret
urnConnection(JBossManagedConnectionPool.java:324)
at
org.jboss.resource.connectionmanager.BaseConnectionManager2.returnManagedCon
nection(BaseConnectionManager2.java:494)
at
org.jboss.resource.connectionmanager.LocalTxConnectionManager$LocalConnectio
nEventListener.connectionClosed(LocalTxConnectionManager.java:388)
at
org.jboss.resource.adapter.jdbc.local.LocalManagedConnection.closeHandle(Loc
alManagedConnection.java:338)
at
org.jboss.resource.adapter.jdbc.local.LocalConnection.close(LocalConnection.
java:97)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.safeClose(JDBCUtil.java:58)
at
org.jboss.ejb.plugins.cmp.jdbc.SQLUtil.fixTableName(SQLUtil.java:69)
at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.(JDBCEntityBrid
ge.java:103)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.create(JDBCStoreManager.java
:332)
at
org.jboss.ejb.plugins.CMPPersistenceManager.create(CMPPersistenceManager.jav
a:155)
at org.jboss.ejb.EntityContainer.create(EntityContainer.java:337)
at org.jboss.ejb.Container.invoke(Container.java:789)
at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.jav
a:894)
at $Proxy6.create(Unknown Source)
at
org.jboss.system.ServiceController.create(ServiceController.java:272)
at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat
cher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy19.create(Unknown Source)
at org.jboss.ejb.EjbModule.createService(EjbModule.java:392)
at
org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:134)
at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat
cher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.jav
a:894)
at $Proxy6.create(Unknown Source)
at

RE: [JBoss-user] Newbie Naming.lookup question

2002-07-24 Thread Robert Martin

Thanks - that and a few other tweaks got it running for me.

Robert

-Original Message-
From: Scott M Stark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 4:29 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Newbie Naming.lookup question


You are tyring to use the RMI Naming API rather than the JNDI
InitialContext.

- Original Message -
From: "Robert Martin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 23, 2002 4:13 PM
Subject: [JBoss-user] Newbie Naming.lookup question


> Hi -
>
> I'm just starting to try out JBoss and I'm having some problems just doing
a
> simple name lookup.  I've confirmed that JBoss 3.0 is running without any


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Newbie Naming.lookup question

2002-07-23 Thread Robert Martin

Hi - 

I'm just starting to try out JBoss and I'm having some problems just doing a
simple name lookup.  I've confirmed that JBoss 3.0 is running without any
errors in its startup log.I have successfully deployed a simple test
bean to the server.  I have a tiny little client application that is
basically just trying to make a call to a test bean on the server.  Here is
the snippet of code that is failing:

---

TestHome home = Naming.lookup("testBean");

---

Here is the exception I get:

java.rmi.MarshalException: Transport protocol not supported by server
at
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:208)
at
sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:318)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Naming.java:84)
at com.fq.client.TestClient.main(TestClient.java:14)

Can anyone point me in the right direction?I've tried this with Jboss
running on both a Linux box and a Windows box - jdk1.4.1 and jdk1.3.1
respectively.  Thanks.

Robert


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Shared caching among different EJBs

2002-01-18 Thread Robert Herzig

Hi everybody, 

I have spent the last few days pondering and working on some EJB 
related stuff, without getting where I wanted to. Now a friend
helped me out, but I do not know, if the proposed thing is a
good solution or not.

I am in need of something like a local context, into which
I can store data, for shared Access by several of my Beans. 
The idea is to query the database for some parameters, calculate 
the result from this data, and store this data for a certain 
period of time within the jvm.

Actually it sounds like the ideal job for a session bean, but the
data should be accessible by several beans of my business logic, 
and not just one client.

The approach suggested by a friend of mine seems to be plausible,
though I do not know, whether it is permissible. I have created
a stateless session bean, which in turn accesses static methods,
of a class, which in turn has a static field, which acts as
Singleton, into which, and from which I can take the data I need.

If the data is not within the context, it can be requeried and
recalculated, as the need arises. Thus I have a local cache, which
is neither passivated, and which I can access from any beans
within the same jvm.

What I would like to ask now, are there reasons not to go with
this solution. Are there other solutions, to achieve the same
result?

--
Another thing, though not that important to me, 
a different thing that I have tried, but which I did not get to
work, was to put an RMI Object into the JNDI, which would be done
at start up time, via a MBean. But I failed to accomplish this,
and fear that this is beyond my skills for the time being.
RMI Server runs ok, by itself, but when I try to instantiate it
and bind it from the MBean I get a NoSuchObjectException when I 
try to access it from a client. If anyone happened to have done this
already, I would of course be interested to know what I did wrong.

Thanks in advance
Robert Herzig


 Diese Nachricht wurde über tower media 1 gesendet
Ihre 1. Adresse zum Kommunizieren: http://www.tm1.at

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



[JBoss-user] Session data lost between request using Navigator 4.08

2001-11-21 Thread Robert Finneran

Hello,

I'm running JBoss-2.4.3_Jetty-3.1.3-1 on both RedHat 7.1 and Win2000.
It appears that I'm having problems with saving data in the session
between HTTP requests when using Netscape Navigator 4.08 as my browser
(The browser I also tested on both Windows and Linux). This problem does
not occur with Netscape 6.2 or IE 6.

My servlet creates or retrieves an existing bean to which data is saved
from form data posted:

HttpSession session = request.getSession(true);
AppInfo app = (AppInfo)
session.getAttribute("ApplicationInfo");
if (app == null) {
app = new AppInfo();
session.setAttribute("ApplicationInfo", app);
}

  app.setFirstName(request.getParameter("fname");

Then the servlet redirects to another servlet that displays the result:

response.sendRedirect(
response.encodeRedirectURL("/" + nextPage));

I've also tried using (with the same unfortunate results):

response.sendRedirect("/" + nextPage);

The display page trys to find the saved bean.
(it fails - but only in Navigator 4.08):

HttpSession session = request.getSession(true);
AppInfo app = (AppInfo)
session.getAttribute("ApplicationInfo");
if (app == null) {
app = new AppInfo();
session.setAttribute("ApplicationInfo", app);
}

The problem is, after an unusally long delay (several seconds) it creates
a blank instance of my bean because it did not find the one saved as
"ApplicationInfo".

I've also tried turning the browser's cookies off. No luck there either.

Can anyone help?

Thanks in advance!!!



smime.p7s
Description: application/pkcs7-signature


RE: [JBoss-user] Stateful session remove?

2001-10-11 Thread Robert Schulz

I think the passivation problem is not
a serialization problem, as it works 
sometimes (in fact most of the time - in
our case around 550 out of 600 times).
I think it is some sort of coordination/
synchronisation problem between the Cache
and the container.

R.

> -Original Message-
> From: David You [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 12, 2001 2:49 AM
> To: Sternagel Annegret (PN-SYS/PE); [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] Stateful session remove?
> 
> 
> I have a few remoteHome Interfaces in the attribute.
> I think that should be fine? remotehome interface should be
> serializable, and do not hold much of the resources.
> I looked a few examples like the MDB examples on jboss web site. It
> seems a common practice to create remoteHome Interface in 
> EJBCreate and
> store there.
> 
> david
> 
> 
> -Original Message-
> From: Sternagel Annegret (PN-SYS/PE)
> [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 11, 2001 12:58 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [JBoss-user] Stateful session remove?
> 
> 
> Yes, it seems that the passivating does not work.
> To get passivation to work make shure:
> - all SessionBean attributes must be serializable or transient
> - interfaces hold in the SessionBean should be released in
> ejbPassivate()
> and reinitialized in ejbActive()
> 
> Annegret
> 
> -Ursprüngliche Nachricht-
> Von: Robert Schulz [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 11. Oktober 2001 04:00
> An: 'David You'
> Cc: '[EMAIL PROTECTED]'
> Betreff: RE: [JBoss-user] Stateful session remove?
> 
> 
> Same problem here - started as on 2.4.0.
> Does not happen all the time, seems to
> be some sort of synchronization issue
> between the LRUEnterpriseContextCachePolicy
> and the SessionPersistenceManager ...
> 
> I could really figure out what's wrong (hard
> to debug, because it only happens sometimes) - I
> ended up changing the cache policy to 
> NoPassivationCachePolicy for statefull session
> beans.
> 
> In standardjboss.xml, in the stateful session
> bean section, change to
> 
> org.jboss.ejb.plugins.NoPassivationCachePolicy cache-poli
> cy>
> 
> Of course you stateful session beans won't get
> passivated anymore - which may or may not be 
> a problem.
> 
> If anyone has a fix to get the passivating one
> working properly, please let me know.
> 
> R.
> 
> 
> 
> > -Original Message
> > From: David You [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, October 11, 2001 10:46 AM
> > To: [EMAIL PROTECTED]
> > Subject: [JBoss-user] Stateful session remove?
> > 
> > 
> > I am using JBoss 2.4.1 with Tomcat in one JVM.
> > I use a statefull session bean as a control point to all 
> other beans.
> > and store the remote session interface in SessionData. 
> > I have the finalize of the SessionData to call the remove of the
> > stateful session bean.
> > 
> > Here is the exception I got, any ideas?
> > 
> > thanks
> > david
> > 
> > ===
> > 
> > 
> > 
> > [WorkflowService] TRANSACTION ROLLBACK EXCEPTION:Could not activate;
> > nested exce
> > ption is:
> > java.io.FileNotFoundException:
> > C:\JBoss-2.4.1_Tomcat-3.2.3\jboss\db\sess
> > ions\WorkflowService\1002756681497.ser (The system cannot 
> > find the file
> > specifie
> > d); nested exception is:
> > java.rmi.NoSuchObjectException: Could not activate; nested
> > exception is:
> > 
> > java.io.FileNotFoundException:
> > C:\JBoss-2.4.1_Tomcat-3.2.3\jboss\db\sess
> > ions\WorkflowService\1002756681497.ser (The system cannot 
> > find the file
> > specifie
> > d)
> > [WorkflowService] java.rmi.NoSuchObjectException: Could not 
> activate;
> > nested exc
> > eption is:
> > [WorkflowService]   java.io.FileNotFoundException:
> > C:\JBoss-2.4.1_Tomcat-3.2
> > .3\jboss\db\sessions\WorkflowService\1002756681497.ser (The system
> > cannot find t
> > he file specified)
> > [WorkflowService]   at
> > org.jboss.ejb.plugins.AbstractInstanceCache.get(Abstr
> > actInstanceCache.java:211)
> > [WorkflowService]   at
> > org.jboss.ejb.plugins.StatefulSessionInstanceIntercep
> > tor.invoke(StatefulSessionInstanceInterceptor.java:194)
> > [WorkflowService]   at
> > org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxI
> > nterceptorCMT.java:133)
> > [WorkflowService]   at
> > org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransac
> > tions(TxInt

RE: [JBoss-user] Stateful session remove?

2001-10-10 Thread Robert Schulz

Same problem here - started as on 2.4.0.
Does not happen all the time, seems to
be some sort of synchronization issue
between the LRUEnterpriseContextCachePolicy
and the SessionPersistenceManager ...

I could really figure out what's wrong (hard
to debug, because it only happens sometimes) - I
ended up changing the cache policy to 
NoPassivationCachePolicy for statefull session
beans.

In standardjboss.xml, in the stateful session
bean section, change to

org.jboss.ejb.plugins.NoPassivationCachePolicy

Of course you stateful session beans won't get
passivated anymore - which may or may not be 
a problem.

If anyone has a fix to get the passivating one
working properly, please let me know.

R.



> -Original Message
> From: David You [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 11, 2001 10:46 AM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Stateful session remove?
> 
> 
> I am using JBoss 2.4.1 with Tomcat in one JVM.
> I use a statefull session bean as a control point to all other beans.
> and store the remote session interface in SessionData. 
> I have the finalize of the SessionData to call the remove of the
> stateful session bean.
> 
> Here is the exception I got, any ideas?
> 
> thanks
> david
> 
> ===
> 
> 
> 
> [WorkflowService] TRANSACTION ROLLBACK EXCEPTION:Could not activate;
> nested exce
> ption is:
> java.io.FileNotFoundException:
> C:\JBoss-2.4.1_Tomcat-3.2.3\jboss\db\sess
> ions\WorkflowService\1002756681497.ser (The system cannot 
> find the file
> specifie
> d); nested exception is:
> java.rmi.NoSuchObjectException: Could not activate; nested
> exception is:
> 
> java.io.FileNotFoundException:
> C:\JBoss-2.4.1_Tomcat-3.2.3\jboss\db\sess
> ions\WorkflowService\1002756681497.ser (The system cannot 
> find the file
> specifie
> d)
> [WorkflowService] java.rmi.NoSuchObjectException: Could not activate;
> nested exc
> eption is:
> [WorkflowService]   java.io.FileNotFoundException:
> C:\JBoss-2.4.1_Tomcat-3.2
> .3\jboss\db\sessions\WorkflowService\1002756681497.ser (The system
> cannot find t
> he file specified)
> [WorkflowService]   at
> org.jboss.ejb.plugins.AbstractInstanceCache.get(Abstr
> actInstanceCache.java:211)
> [WorkflowService]   at
> org.jboss.ejb.plugins.StatefulSessionInstanceIntercep
> tor.invoke(StatefulSessionInstanceInterceptor.java:194)
> [WorkflowService]   at
> org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxI
> nterceptorCMT.java:133)
> [WorkflowService]   at
> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransac
> tions(TxInterceptorCMT.java:307)
> [WorkflowService]   at
> org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInter
> ceptorCMT.java:99)
> [WorkflowService]   at
> org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterc
> eptor.java:195)
> [WorkflowService]   at
> org.jboss.ejb.StatefulSessionContainer.invoke(Statefu
> lSessionContainer.java:341)
> [WorkflowService]   at
> org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoke
> r.invoke(JRMPContainerInvoker.java:483)
> [WorkflowService]   at
> org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.in
> vokeContainer(GenericProxy.java:335)
> [WorkflowService]   at
> org.jboss.ejb.plugins.jrmp.interfaces.StatefulSession
> Proxy.invoke(StatefulSessionProxy.java:136)
> [WorkflowService]   at $Proxy22.remove(Unknown Source)
> [WorkflowService]   at
> com.eview.admin.SessionData.finalize(SessionData.java
> :29)
> [WorkflowService]   at
> java.lang.ref.Finalizer.invokeFinalizeMethod(Native M
> ethod)
> [WorkflowService]   at 
> java.lang.ref.Finalizer.runFinalizer(Unknown
> Source)
> [WorkflowService]   at java.lang.ref.Finalizer.access$100(Unknown
> Source)
> [WorkflowService]   at
> java.lang.ref.Finalizer$FinalizerThread.run(Unknown S
> ource)
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 

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



RE: [JBoss-user] Performance...

2001-09-27 Thread Robert Schulz

Lots of stuff (been doing Java for a while ;-), but here
are some techniques (in extremly short format) when
you have gc problems.

1) Monitoring

  Find out what does not get collected. Either use
  a tool like OptimizeIt - but I find them a bit clunky 
  to use or do it "by hand":
  Identify your "key" objects - the ones which you 
  need to create for every page transition / request
  and instance count them (+1 in the constructor 
  -1 in finalize) and make the info available at any 
   time (we have a "MemoryStatus" servlet / 
   dump thread). Finalizing does not mean it gets
   collected, but not being finalized means it won't
   get collected.
   You need to be somewhat "strategic" on which
   objects to keep track of so the monitoring does
   not slow your app down.

2) Write "Destructors"

  Once you know what does not get collected, fix it.
  For frameworks I found it useful to have a _clean()
  method which gets called from the framework to
  unhook references (especially to cut circular 
  references) Especially key an eye on hashtables,
  vectors and any other reference hugging data 
  structures and clear() them when they are no longer
  needed.

3) Write a GC kicking / monitoring thread 

   Search this list for "GC kicking bean", I posted
   the code for an MBean for Jboss a few weeks
   ago.

Doing all this works fine for server side stuff. Last time
I was involved with client side (swing) Java was two years
ago and it was almost impossible to make Swing not
leak - the API just did not allow to clean up after you 
are done (e.g. removing all listeners was often not possible)
and the gc was not good enough to collect the complex
structures. This might have changed with 1.3 - I don't know. 
Comments anyone?

Hope this helps. Am interested in any futher approaches.
Cheers,

Robert.
> -Original Message-
> From: Cor Hofman [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 27, 2001 7:21 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] Performance...
> 
> 
> Robert,
> 
> Are you willing to share some gc tricks with us.
> What is it you focussed on to make the gc behave.
> 
> Regards,
> 
>    Cor.
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of 
> Robert Schulz
> Sent: Thursday, September 27, 2001 09:55
> To: '[EMAIL PROTECTED]'
> Cc: '[EMAIL PROTECTED]'
> Subject: RE: [JBoss-user] Performance...
> 
> 
> Jo napot kivanok (this is as far as my Hungarian will go)
> 
> We have a very similar setup
> 
> Single CPU P4-1.4G, 1G RAM, fast SCSI disk running
> RH 7.1, SUN JDK1.3.1, Apache, Resin, JBoss2.4 and Postgres.
> 
> This setup runs around 50 concurent users mucking around
> with the web app easily (we did not push it further as we
> only use it in-house at the moment) and we have it running
> for weeks with consistent response times. We talking hundreds
> of thousands of bean method invocations and millions of SQL
> queries. Due to the nature of the app, our session are all pretty
> long running (whereas yours sounds like a couple of pages per
> session app, right?)
> 
> The only thing with Postgres is to VACUUM it periodically
> if you have a lot of updates (we do it every 10 minutes which
> takes around 3 secs).
> 
> We have around 30 beans - jboss sits at about 48M (up from
> 39 for JBoss2.2) and our servlet engine at about (25) - however
> we did a lot of work to make sure our app logic gc-s properly.
> 
> Let us know how you go!
> 
> Robert.
> > -Original Message-
> > From: Jarecsni János [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 27, 2001 4:35 PM
> > To: JBoss-User
> > Subject: [JBoss-user] Performance...
> >
> >
> > Hi,
> >
> > we developed an antiquarian bookstore using Sun's RI (and taking the
> > Petstore as the basis for the architecture of our system -
> > more or less
> > successfully :-) Albeit I kept on telling my boss not to go
> > into production
> > with Sun RI, we did last week. Ads appeared, and so on. And
> > to turn to the
> > subject, dozens of users are now coming and the number is going up.
> >
> > What I experienced was that the server just gave up after an
> > hour and a half
> > or so. Response times grew, and finally it stalled. So, we
> > decided to switch
> > to JBoss (latest stable build), and we're now at the final
> > stage of this
> > transition. (The hardware is a two-way Intel PC, 800Mhz, with
> > 512 Megs of
> > RAM running Debian GNU/Linux [kernel 2.4]. The server's mere
> > duty is to run
> > J2EE and a PostgreSQL server plus two s

RE: [JBoss-user] Performance...

2001-09-27 Thread Robert Schulz

No, separate VMs.I look at it breifly but we don't
really need it and it looks quite messy to get right
in terms of class loading ...

R.

> -Original Message-
> From: Tahir Awan [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 28, 2001 1:49 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [JBoss-user] Performance...
> 
> 
> were you able to run JBoss 2.4 and Resin in same VM?
> If so, can you share the configuration?
> 
> Tahir
> 
> -Original Message-
> From: Robert Schulz [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 27, 2001 3:55 AM
> To: '[EMAIL PROTECTED]'
> Cc: '[EMAIL PROTECTED]'
> Subject: RE: [JBoss-user] Performance...
> 
> 
> Jo napot kivanok (this is as far as my Hungarian will go)
> 
> We have a very similar setup
> 
> Single CPU P4-1.4G, 1G RAM, fast SCSI disk running
> RH 7.1, SUN JDK1.3.1, Apache, Resin, JBoss2.4 and Postgres.
> 
> This setup runs around 50 concurent users mucking around
> with the web app easily (we did not push it further as we 
> only use it in-house at the moment) and we have it running 
> for weeks with consistent response times. We talking hundreds 
> of thousands of bean method invocations and millions of SQL 
> queries. Due to the nature of the app, our session are all pretty
> long running (whereas yours sounds like a couple of pages per
> session app, right?)
> 
> The only thing with Postgres is to VACUUM it periodically
> if you have a lot of updates (we do it every 10 minutes which
> takes around 3 secs).
> 
> We have around 30 beans - jboss sits at about 48M (up from
> 39 for JBoss2.2) and our servlet engine at about (25) - however
> we did a lot of work to make sure our app logic gc-s properly.
> 
> Let us know how you go!
> 
> Robert.
> > -Original Message-
> > From: Jarecsni János [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 27, 2001 4:35 PM
> > To: JBoss-User
> > Subject: [JBoss-user] Performance...
> > 
> > 
> > Hi,
> > 
> > we developed an antiquarian bookstore using Sun's RI (and taking the
> > Petstore as the basis for the architecture of our system - 
> > more or less
> > successfully :-) Albeit I kept on telling my boss not to go 
> > into production
> > with Sun RI, we did last week. Ads appeared, and so on. And 
> > to turn to the
> > subject, dozens of users are now coming and the number is going up.
> > 
> > What I experienced was that the server just gave up after an 
> > hour and a half
> > or so. Response times grew, and finally it stalled. So, we 
> > decided to switch
> > to JBoss (latest stable build), and we're now at the final 
> > stage of this
> > transition. (The hardware is a two-way Intel PC, 800Mhz, with 
> > 512 Megs of
> > RAM running Debian GNU/Linux [kernel 2.4]. The server's mere 
> > duty is to run
> > J2EE and a PostgreSQL server plus two standalone Java apps 
> > that run some
> > scheduled tasks [sleeping mostly]).
> > 
> > My question is what we can expect from JBoss? I mean I have 
> > evil forebodings
> > as whether our application has been written correctly (in 
> > terms that JBoss
> > can run it optimally), because it was the very first J2EE app 
> > written at us,
> > and we had really no expert guidance at hand (only the 
> > Petstore example). I
> > have some hopes regarding the in-VM calls available in jBoss 
> > (no remote
> > calls between EJBs that run in the same VM), but what I'd 
> > really like to
> > know is what one needs to be able to serve hundreds of 
> > concurrent users???
> > So given that there are no severe architectural flaws in our 
> > application,
> > will jBoss be able to serve such a load without dramatic performance
> > degradation? Or should we apply some alternatives as server 
> clustering
> > and/or improve hardware (eg. use a separate machine as DB server)?
> > 
> > You know it's very important for me that this project 
> > succeeds since I get
> > criticisms every day saying that it would have all been done 
> > with PHP in a
> > few weeks time and would not crash even with hundreds of 
> > users... (which I
> > hardly believe). It would be so great to be able to prove 
> > that my idea to go
> > the J2EE way was right...
> > 
> > Thanks for your patience reading this and for your valuable answers!
> > 
> > Cheers,
> > 
> > János Jarecsni
> > Budapest, Hungary
> > 
> > 
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 

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



RE: [JBoss-user] Performance...

2001-09-27 Thread Robert Schulz

Jo napot kivanok (this is as far as my Hungarian will go)

We have a very similar setup

Single CPU P4-1.4G, 1G RAM, fast SCSI disk running
RH 7.1, SUN JDK1.3.1, Apache, Resin, JBoss2.4 and Postgres.

This setup runs around 50 concurent users mucking around
with the web app easily (we did not push it further as we 
only use it in-house at the moment) and we have it running 
for weeks with consistent response times. We talking hundreds 
of thousands of bean method invocations and millions of SQL 
queries. Due to the nature of the app, our session are all pretty
long running (whereas yours sounds like a couple of pages per
session app, right?)

The only thing with Postgres is to VACUUM it periodically
if you have a lot of updates (we do it every 10 minutes which
takes around 3 secs).

We have around 30 beans - jboss sits at about 48M (up from
39 for JBoss2.2) and our servlet engine at about (25) - however
we did a lot of work to make sure our app logic gc-s properly.

Let us know how you go!

Robert.
> -Original Message-
> From: Jarecsni János [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 27, 2001 4:35 PM
> To: JBoss-User
> Subject: [JBoss-user] Performance...
> 
> 
> Hi,
> 
> we developed an antiquarian bookstore using Sun's RI (and taking the
> Petstore as the basis for the architecture of our system - 
> more or less
> successfully :-) Albeit I kept on telling my boss not to go 
> into production
> with Sun RI, we did last week. Ads appeared, and so on. And 
> to turn to the
> subject, dozens of users are now coming and the number is going up.
> 
> What I experienced was that the server just gave up after an 
> hour and a half
> or so. Response times grew, and finally it stalled. So, we 
> decided to switch
> to JBoss (latest stable build), and we're now at the final 
> stage of this
> transition. (The hardware is a two-way Intel PC, 800Mhz, with 
> 512 Megs of
> RAM running Debian GNU/Linux [kernel 2.4]. The server's mere 
> duty is to run
> J2EE and a PostgreSQL server plus two standalone Java apps 
> that run some
> scheduled tasks [sleeping mostly]).
> 
> My question is what we can expect from JBoss? I mean I have 
> evil forebodings
> as whether our application has been written correctly (in 
> terms that JBoss
> can run it optimally), because it was the very first J2EE app 
> written at us,
> and we had really no expert guidance at hand (only the 
> Petstore example). I
> have some hopes regarding the in-VM calls available in jBoss 
> (no remote
> calls between EJBs that run in the same VM), but what I'd 
> really like to
> know is what one needs to be able to serve hundreds of 
> concurrent users???
> So given that there are no severe architectural flaws in our 
> application,
> will jBoss be able to serve such a load without dramatic performance
> degradation? Or should we apply some alternatives as server clustering
> and/or improve hardware (eg. use a separate machine as DB server)?
> 
> You know it's very important for me that this project 
> succeeds since I get
> criticisms every day saying that it would have all been done 
> with PHP in a
> few weeks time and would not crash even with hundreds of 
> users... (which I
> hardly believe). It would be so great to be able to prove 
> that my idea to go
> the J2EE way was right...
> 
> Thanks for your patience reading this and for your valuable answers!
> 
> Cheers,
> 
> János Jarecsni
> Budapest, Hungary
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 

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



[JBoss-user] RE: freezing

2001-08-09 Thread Robert Schulz

Boris,

I don't want to get into this shit fight - jBoss (as any
piece of software) might have bugs in it, but not enough
to be obusive on this list. And threads on the newsgroup
to use some other server are a waste of everyone's reading 
time.

Back to the question below - we use jBoss2.2.2 standalone 
(no in VM servlet engine) as a backend to resin against 
postgres on RH Linux 7.1. We deploy it internally and ran 
stress tests which created around 50,000 beans (and 500,000+ 
dependend objects and BMP SQL queries, 100,000+ connections 
going in and out of the pool) and it works like a dream 
for us - I am not saying we did not encounter any problems 
or it works in all situations - it is a distributed system 
afterall and they just like to blow up all over the place 
if you are not careful. 

The only way to get the problems you describe fixed is to 
do the work. Switch on logging and narrow down the problem.
Take Beans and MBeans out and find out why it breaks.
Once you know where it breaks, you have three options

1) work around it
2) post it to the newsgroup
3) read the code and find out what's wrong (this way 
   you usually end up finding out why your app breaks)
   and then post it to the newsgroup or fix it

I usually opt for 1) - this might require 3) to understand
how to and/or what's wrong with your app.

If that's all too hard - pay BEA 30,000 and they will
do the work for you. 

So - for your "hanging" problem. Build the smallest bean
and client to reproduce it - post it to the newsgroup,
trace through the code ... I am not saying it is easy.
But it is possible - try finding out why some proprietary
software tool does not quite do the right thing ...

And remember - have fun digging through the code. There
are some clever pieces of coding in jBoss, well worth
looking at anyway ...

Robert.


> Hello, Robert. How did you get away with that freezing 
> problem? I still suffer
> from it in 2.2
> 
> --
> 
> In mail archive I found discussion that hanging problem in 
> CMP is related to
> exceptions thrown. In this case connection is not returned, 
> server runs out of
> them and locks all clients. Then I found such exception in 
> server.log that I
> disregarded earlier. JAWS throws SQLException telling that my 
> CMP table
> already exists. Can somebody explain me what happens? Is it 
> proper server
> behavior? Do I have any control over it? Some descriptor settings?
> ---
> [JAWS] java.sql.SQLException: Error during query: Unexpected 
> Exception:
> java.sql.SQLException message given: General error: Table 
> 'telnum' already
> exists
> [JAWS]at 
> org.gjt.mm.mysql.Connection.execSQL(Connection.java:807)
> 
> [EMAIL PROTECTED], [EMAIL PROTECTED],
> [EMAIL PROTECTED]
> 
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Marko ©trukelj
> Sent: Friday, February 09, 2001 3:12 AM
> To: 'jBoss'
> Subject: RE: [jBoss-User] LOCKING-WAITING (TRANSACTION)
> I've been having a lot of problems with LOCKING-WAITING too. 
> Jboss would just
> freeze up at a certain point. So I've done some detective 
> work myself and
> solved my problem. 
> So here are my findings: 
> Looks like there is a tiny bug in JBoss 2.0 final (I have not 
> tested it with
> the latest cvs snapshot). 
> If a RuntimeException is thrown (i.e. NullPointerException) 
> inside a business
> method of a CMP Entity Bean then jboss will fail to properly return a
> connection to the connection pool. I gather that Jboss 
> automaticaly takes a
> connection from connection pool - to store bean's state to 
> the database after
> the business method finishes - the connection is taken from 
> the pool before
> the business method starts executing and is normally returned 
> to the pool
> after ejbStore() completes. But it is not in the case of uncaught
> RuntimeException (it makes no difference if you declare 
> Exception in the
> throws clause).
> That means if you have 2 connections in the pool, then you 
> will be out of them
> after 2 RuntimeExceptions. All the clients will just hang 
> from that point on
> with LOCKING-WAITING queue building up.
> When a runtime exception occurs you see a pattern of 
> exception messages. You
> first get 2 stacktraces for exceptions that are a consequence and one
> stacktrace for the actual exception that caused it all. 
> I see it like this most of the time. (order may change 
> sometimes, maybe only
> because multiple threads write to the same out):
> javax.transaction.RollbackException: Already marked for rollback 
> at org.jboss.tm.TxCapsule.enlistResource(TxCapsule.java:543) 
> java.rmi.ServerException: Store failed; nested exception is: 
>   

RE: [JBoss-user] Need more examples contributed by others

2001-08-08 Thread Robert Finneran

Cool beans!

I'd also like to hear success stories on how people are integrating jboss
with other open source projects.
For example, from things a little more exotic than the typical
Apache/Tomcat/Jboss combo.

I haven't spent much time with Castor but it looks interesting. I don't know
what Lucene or jmoz is.

My little company is trying to levarage as much as we can from the open
source world.
Of course we will have to donate back to the open source cause as much as we
can...

BTW The JBoss/Jetty combo is really cool. Further, it is my understanding
that the new jboss forum is based on Jboss/Jetty/Jive. It inspired us to
think about creating some forums of our own.

Rob

>From: "Kevin O'Neill" <[EMAIL PROTECTED]>
>Organization: rocketred pty ltd
>
>The jmoz (jmoz.sourceforge.net) project provides a complete sample
>application the use of Cocoon, JBOSS, Castor JDO and Lucene. Although
>documentation is a little light (ok none existent), id be willing to
>document the aspects of the system that people believe are useful.

>k.

> From: Robert Finneran
> Sent: Wednesday, 8 August 2001 6:29 AM
> To: Jboss-User
> Subject: [JBoss-user] Need more examples contributed by others
>
>
> I think it would be an absolute godsend if more people contributed to
the
> documentation, especially in the area of concrete examples.
>
> I know the core JBoss team is really busy, so it I would image they
would
> welcome any such efforts. Often the topic of the questions belongs
more
> appropriately to a basics of J2EE, J2EE configuration and security but
it
> can be very confusing to know where the problem exists: Where did I go
> wrong?
>
> I for one hope to write some docs for this project very soon, but I'm
> afraid
> it would be the blind leading the blind right now! (But thats a poor
> excuse...)
>
>
> Martin Welch <[EMAIL PROTECTED]> wrote:
> > Amos,
> >
> > Erk. Hands up -- I didn't use EAR, WARs etc. I've
> > done everything by hand --
> > a batch file to create the jars and a manual copy of
> > all the necessary
> > files.
> >
> > My next step is to create a simple example of my own
> > and use Ant (which I
> > don't understand at all yet) to create there EARs
> > and WARs (which I also
> > don't understand).
> >
> > If you wish I'll document what I did if that helps.
> > Would this be of
> > interest to others?
> >
> > Martin
>


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



[JBoss-user] Need more examples contributed by others

2001-08-07 Thread Robert Finneran


I think it would be an absolute godsend if more people contributed to the
documentation, especially in the area of concrete examples.

I know the core JBoss team is really busy, so it I would image they would
welcome any such efforts. Often the topic of the questions belongs more
appropriately to a basics of J2EE, J2EE configuration and security but it
can be very confusing to know where the problem exists: Where did I go
wrong?

I for one hope to write some docs for this project very soon, but I'm afraid
it would be the blind leading the blind right now! (But thats a poor
excuse...)


Martin Welch <[EMAIL PROTECTED]> wrote:
> Amos,
>
> Erk. Hands up -- I didn't use EAR, WARs etc. I've
> done everything by hand --
> a batch file to create the jars and a manual copy of
> all the necessary
> files.
>
> My next step is to create a simple example of my own
> and use Ant (which I
> don't understand at all yet) to create there EARs
> and WARs (which I also
> don't understand).
>
> If you wish I'll document what I did if that helps.
> Would this be of
> interest to others?
>
> Martin


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



[JBoss-user] JSP to EJBs results in a security exception (principal=null)

2001-08-07 Thread Robert Finneran


> I have the same problem, except servlet to EJB is always failing for me.

From: "Alexander Sparkowsky" <[EMAIL PROTECTED]>
To: "jboss-user" <[EMAIL PROTECTED]>
Date: Tue, 7 Aug 2001 09:02:40 +0200
Subject: [JBoss-user] JSP and security domain?
Reply-To: [EMAIL PROTECTED]

Hi,

I've an application which consist of a main servlet and some JSPs for
representing data. I secured the servlet and put it into a security domain
to be able to access EJBs. When testing my application using jboss 2.4.0
build 26 I ran into trouble when JSPs tried to access EJBs direct. It seems
as if the JSPs aren't in the same security domain as the rest of the
application, because every access from JSP to EJBs results in a security
exception (principal=null). Every other access (e. g. from the scured
servlet) works fine (principal=xxx).

How can I declare the security domain for my JSPs? They are in the same .war
as the servlet-descriptor (web.xml/jboss-web.xml) which contains a security
domain statement.

Thanks.

Alexander Sparkowsky
LambdaLogic Informationssysteme GmbH, Berlin, Germany
Tel: +49-30-2936385-0, Fax: +49-30-2936385-9
E-Mail: [EMAIL PROTECTED]


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



[JBoss-user] Faulty Seg Faults?

2001-08-06 Thread Robert Finneran


I've recieved a few of those nasty seg faults today like:

./run.sh: line 27: 14855 Segmentation fault  java $HOTSPOT
$JAXP -classpath...

Each time it happened was during start-up.

The first time it happended was when I made some XML syntax errors in my in
my jboss.jcml file.

The second time was when there was a problem connecting a datasource to
postgres because postgres failed to start (due to an unclean postgres
shutdown the time before).

Also, I regulary copy stuff to deploy w/ and w/o the server started without
any problems.

I have a hunch that because it seg faults only during startup, it may have
something to due with errors occuring before the full system is
bootstrapped. Instead of displaying a usual exception, it seg faults. Maybe
it is trying to call some callback routine that does not exist yet or
something.

My enviroment is RH 7.1 with the latest patches (Kernel 2.4.3-12 on an i686)
Sun Java J2SE and HotSpot 1.3.1-b24, mixed mode (whatever that means!)
with the LD_ASSUME_KERNEL=2.2.5 enviroment variable set (as recommended by
the redhat install instructions)
which has something to do with 2.4 can do real threading but the jdk isn't
built for this??? (sombody help me here)

And Finally, JBoss-2.2.2_Tomcat-3.2.2

I look forward to understanding this mess a little better!



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



[JBoss-user] Deployment Questions

2001-07-17 Thread Robert Finneran

I've been reading through the manual but serveral things are still fuzzy to
me -

FACTS:

I'm trying to deploy a web app with the following config:

Linux 2.4, Sun Java JDK 1.3.1
Apache 1.3.20, with mod_jk
JBoss-2.2.2_Tomcat-3.2.2 (Embedded Tomcat)

My app consists of static html, jsp's, servlets, session & entity EJB's.
Currently I've been dropping .war files in JBoss's deploy directory and
manually copying static content.

QUESTIONS:

1. Is there a better file packaging scheme, i.e. .ear files?
2. Do I need to drop a copy of the .war file into any of tomcat's
directories?
3. How about .ear files?
4. Should I split the components into seperate packages based on component
type?
5. Are there directories that my web designer can drop .jsp files into using
DreamWeaver Ultradev?
6. Any tips on what files go into what directories for both packaging and
deployment.

I really appreciate any suggestions and/or referals to other documentation!

Thanks!!!






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



RE: [JBoss-user] dbase is acting way too slow

2001-07-16 Thread Robert Schulz


Not sure whether this helps, here is our conf, the relevant section is

  
 org.postgresql.Driver
  
  
PostgresDB
org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l

jdbc:postgresql://127.0.0.1/WMS
120
notTelling
10
notTelling
false
false
false
true
12
180
false
true
1.0
0
  

Your url "jdbc:postgresql:acais://localhost:5432" is different ... if this
does not
cut it, run jboss without tomcat and see how this works. I am not really an
expert 
with this, as it "just worked" for us ;-)

R.

PS> Here our full conf - (jboss2.2.2, postgres 7.1.2, Linux 2.4.2-2
(standard RH7.1), Sun JDK1.3.1)
 
JBOSS.CONF




   


   


   
   




   


   








JBOSS.JCML



  
8083
  
  
1099
  
  
  
300
  
  
org.jboss.security.plugins.JaasSecurityManag
er
  

.. jdbc stuff here, see above ...

  
true
false
true
false
  
  
Default
:service=ContainerFactory
:service=EmbeddedTomcat
  
  
J2EE:service=J2eeDeployer
../deploy
  
  
  
  
MinervaXACMFactory

  org.opentools.minerva.connector.jboss.MinervaXACMFactory


  
  
  
  
10

8082
  
  
30
  


-Original Message-
From: G.L. Grobe [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 3:45 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] dbase is acting way too slow


Oh yeah, psql works just fine. And the same queries from psql are
sub-second. It's on the same box. I also use the 2.4.4 kernel. I'm sure it's
definately a config issue that I've got wrong somewheres, but I see nothing
wrong, of course, how would I know, heh ... it's my first time w/ JBoss and
I've still got queues to figure out after this. I had this same
configuration on Orion server so I know the code is fine.

- Original Message -
From: "Robert Schulz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 11:37 PM
Subject: RE: [JBoss-user] dbase is acting way too slow


> Have you tried connecting using psql?
> What happens when you run the same queries?
>
> How do you connect to the database? Maybe
> your networking is stuffed ... is it on
> the same box? Try pinging ...
>
> We use postgres against jboss (standalone, no tomcat)
> and Linux 2.4 and it works like a dream (we did some
> very superficial speed comparison against oracle and
> the performance for our type of app was about the same)
> and we have tables up to 500,000 rows ... the queries
> we have are not particularly complex though.
>
> The select you describe should be around 10-20ms
> or so ...
>
> R.
>
> -Original Message-
> From: G.L. Grobe [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 17, 2001 11:31 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] dbase is acting way too slow
>
>
> Well, seems I've finally got the database configured correctly, at least
it
> starts w/o any errors. But I'm still getting my same original behavior.
The
> problem I started to try and fix.
>
> My dbase queries are extremely slow, but they work. I'm doing a query
> through *7* records in a table w/ only 5 fields and it literally takes
10-20
> seconds for each query (that's 10-20 seconds for a 'select * from
mytable').
> I get the result sets back ok, but as I print out each query, just takes
> waay too long.
>
> As usual, thnxs for all the help.
>
> --- jboss output ---
> cassia(build):/u/public/JBoss-2.4.0_Tomcat-3.2.2/jboss/bin$
> ./run_with_tomcat.sh
> JBOSS_CLASSPATH=:/u/public/jdk1.3/lib/tools.jar:run.jar:../lib/crimson.jar
> jboss.home = /u/public/JBoss-2.4.0_Tomcat-3.2.2/jboss
> Using JAAS LoginConfig:
> file:/u/public/JBoss-2.4.0_Tomcat-3.2.2/jboss/conf/tomcat/auth.conf
> Using configuration "tomcat"
> [root] Started Log4jService,
>
config=file:/u/public/JBoss-2.4.0_Tomcat-3.2.2/jboss/conf/tomcat/log4j.prope
> rties
> [Info] Java version: 1.3.0,Sun Microsystems Inc.
> [Info] Java VM: Java HotSpot(TM) Server VM 1.3.0,Sun Microsystems Inc.
> [Info] System: Linux 2.4.4,i386
> [Shutdown] Shutdown hook added
> [Service Control] Initializing 27 MBeans
> [WebService] Initializing
> [WebService] Initialized
> [NamingService] Initializing
> [NamingService] Initialized
> [JNDIView] Initializing
> [JNDIView] Initialized
> [TransactionManagerService] Initializing
> [TransactionManagerService] Initialized
> [ClientUserTransactionService] Initializing
> [ClientUserTransactionService] Initialized
> [JaasSecurityManagerService] Initializing
> [JaasSecurityManagerService] Initialized
> [JdbcProvider] Initializing
> [JdbcProvider] Loaded JDBC-driver:org.postgresq

RE: [JBoss-user] dbase is acting way too slow

2001-07-16 Thread Robert Schulz

Have you tried connecting using psql?
What happens when you run the same queries?

How do you connect to the database? Maybe
your networking is stuffed ... is it on
the same box? Try pinging ...

We use postgres against jboss (standalone, no tomcat)
and Linux 2.4 and it works like a dream (we did some 
very superficial speed comparison against oracle and 
the performance for our type of app was about the same)
and we have tables up to 500,000 rows ... the queries
we have are not particularly complex though.

The select you describe should be around 10-20ms
or so ...

R.

-Original Message-
From: G.L. Grobe [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 11:31 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] dbase is acting way too slow


Well, seems I've finally got the database configured correctly, at least it
starts w/o any errors. But I'm still getting my same original behavior. The
problem I started to try and fix.

My dbase queries are extremely slow, but they work. I'm doing a query
through *7* records in a table w/ only 5 fields and it literally takes 10-20
seconds for each query (that's 10-20 seconds for a 'select * from mytable').
I get the result sets back ok, but as I print out each query, just takes
waay too long.

As usual, thnxs for all the help.

--- jboss output ---
cassia(build):/u/public/JBoss-2.4.0_Tomcat-3.2.2/jboss/bin$
./run_with_tomcat.sh
JBOSS_CLASSPATH=:/u/public/jdk1.3/lib/tools.jar:run.jar:../lib/crimson.jar
jboss.home = /u/public/JBoss-2.4.0_Tomcat-3.2.2/jboss
Using JAAS LoginConfig:
file:/u/public/JBoss-2.4.0_Tomcat-3.2.2/jboss/conf/tomcat/auth.conf
Using configuration "tomcat"
[root] Started Log4jService,
config=file:/u/public/JBoss-2.4.0_Tomcat-3.2.2/jboss/conf/tomcat/log4j.prope
rties
[Info] Java version: 1.3.0,Sun Microsystems Inc.
[Info] Java VM: Java HotSpot(TM) Server VM 1.3.0,Sun Microsystems Inc.
[Info] System: Linux 2.4.4,i386
[Shutdown] Shutdown hook added
[Service Control] Initializing 27 MBeans
[WebService] Initializing
[WebService] Initialized
[NamingService] Initializing
[NamingService] Initialized
[JNDIView] Initializing
[JNDIView] Initialized
[TransactionManagerService] Initializing
[TransactionManagerService] Initialized
[ClientUserTransactionService] Initializing
[ClientUserTransactionService] Initialized
[JaasSecurityManagerService] Initializing
[JaasSecurityManagerService] Initialized
[JdbcProvider] Initializing
[JdbcProvider] Loaded JDBC-driver:org.postgresql.Driver
[JdbcProvider] Initialized
[XADataSourceLoader] Initializing
[XADataSourceLoader] Initialized
[XADataSourceLoader] Initializing
[XADataSourceLoader] Initialized
[ServerDataCollector] Initializing
[ServerDataCollector] Initialized
[ContainerFactory] Initializing
[ContainerFactory] Initialized
[EmbeddedTomcatServiceSX] Initializing
[EmbeddedTomcatServiceSX] Initialized
[JBossMQService] Initializing
[JBossMQService] Initialized
[JMSProviderLoader] Initializing
[Default] queue factory name: XAQueueConnectionFactory
[Default] topic factory name: XATopicConnectionFactory
[JMSProviderLoader] Initialized
[ServerSessionPoolLoader] Initializing
[ServerSessionPoolLoader] Initialized
[J2eeDeployer] Initializing
[J2eeDeployer] Initialized
[RARDeployer] Initializing
[RARDeployer] Initialized
[ConnectionManagerFactoryLoader] Initializing
[ConnectionManagerFactoryLoader] Initialized
[ConnectionManagerFactoryLoader] Initializing
[ConnectionManagerFactoryLoader] Initialized
[ConnectionManagerFactoryLoader] Initializing
[ConnectionManagerFactoryLoader] Initialized
[ConnectionFactoryLoader] Initializing
[ConnectionFactoryLoader] Initialized
[ConnectionFactoryLoader] Initializing
[ConnectionFactoryLoader] Initialized
[AutoDeployer] Initializing
[AutoDeployer] Initialized
[JMXAdaptorService] Initializing
[JMXAdaptorService] Initialized
[RMIConnectorService] Initializing
[RMIConnectorService] Initialized
[MailService] Initializing
[MailService] Initialized
[Service Control] Initialized 27 services
[Service Control] Starting 27 MBeans
[WebService] Starting
[Default] Started on port 8083
[Webserver] Codebase set to http://cassia:8083/
[Webserver] Started webserver on port 8083
[WebService] Started
[NamingService] Starting
[NamingService] Starting jnp server
[NamingService] Started jnpPort=1099, rmiPort=0, Client SocketFactory=null,
Server SocketFactory=null
[NamingService] InitialContext Environment:
[NamingService] key=java.naming.factory.initial,
value=org.jnp.interfaces.NamingContextFactory
[NamingService] key=java.naming.factory.url.pkgs,
value=org.jboss.naming:org.jnp.interfaces:org.jboss.naming:org.jnp.interface
s
[NamingService] Naming started on port 1099
[NamingService] Started
[JNDIView] Starting
[JNDIView] Started
[TransactionManagerService] Starting
[TransactionManagerService] Started
[ClientUserTransactionService] Starting
[ClientUserTransactionService] Started
[JaasSecurityManagerService] Starting
[Default] JAAS.startService, cachePolicy=null
[Default] JAAS.

RE: [JBoss-user] Out of memory error

2001-07-12 Thread Robert Schulz

Not sure whether this help ... we wrote a little
MBean which every 30 seconds runs System.gc() and
reports on used and allocated memory. Will take you
3 minutes to write, but if you are interested I'll post
the code. We use that to keep an eye on memory.

Another approach would be to first run a stress test only
against jboss (without tomcat, or with tomcat in a 
separate VM) - and monitor them separately. 

If there is a threading issue - have a look at the new
POSIX threading for Linux just released by IBM ...

We are pretty close to production as well and run
numerous stress test (creation of around 50,000 beans,
500,000+ SQL statements) and jboss never climbed over
50MB ... we use RH7.1 (Linux) 2.4, sun jdk1.3.1, 
postgres7.1.2 and resin in a separate VMs. We are only
using "core" EJB features (no MDBs, no SOAP, no integrated
Servlets, etc, etc ...)

Good luck and let us know how you go.


R.
-Original Message-
From: Jim Gloor [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 12:14 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] Out of memory error


We've been consistently having this problem, too, after about 5-6 hours
(~60,000 transactions) of stress testing.  We're using JBoss 2.2.1 + Tomcat
3.2.1 on a Linux box with 200 MB of RAM allocated for the JBoss VM.  Here's
a specific example of the error message:

Exception in thread "CompileThread0" java.lang.OutOfMemoryError: requested
53687
0924 bytes

We've been monitoring memory usage, and the JBoss VM was only using about
10% of the available memory at the time of the error, so that's clearly not
the problem.

We'll start monitoring thread usage, as per Jim Archer's comments, but in
the meantime, does anyone have any other insights/suggestions?  We'd
actually like to start using JBoss in a production system soon, but this
could be a real problem!


> "JA" == Jim Archer <> writes:
>
> JA> Saul, watch your thread usage. jBoss will usually throw an out of
> JA> memory exception when it can't create a new thread... On Solaris,
> JA> you have a hard limit of threads.
>
> JA> I don't know if this is your actual problem, but I thought I would
> JA> mention it.
>
> I think there should be a bug open.  We've had a lot of problems with
> this on a Linux box.
>
> -- 
>   Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com
> mailto: mailto:
> GSM: +44 (0)7909 960 751   DDI: +44 (0)20 7368 9708


Jim Gloor ([EMAIL PROTECTED])
Senior Software Engineer, Open Ratings, Inc.
928 Commonwealth Avenue
Boston, MA   02215-1204
(617) 582-5159

___
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] NoClassDefFoundError: Referencing an EJB from another in a different jar file

2001-07-10 Thread Robert Bachan

Hi Guys,
fairly new to JBoss and trying to call a session bean
from another. 
I've installed a security manager but and the JNDI
bean context lookup is fine, but when I try to cast
the Home Interface I get:

[CompanySearchBean] TRANSACTION ROLLBACK
EXCEPTION:com/knet/session/utils/UtilitiesHome; nested
exception is: 
java.lang.NoClassDefFoundError:
com/knet/session/utils/UtilitiesHome
[CompanySearchBean] java.lang.NoClassDefFoundError:
com/knet/session/utils/UtilitiesHome
[CompanySearchBean] at
com.knet.session.companysearch.CompanySearchBean.listCompanies(CompanySearchBean.java:48)

if any ideas please let me know,
Thanks alot in advance.

Robert Bachan

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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



RE: [JBoss-user] JBoss and Resin

2001-06-25 Thread Robert Schulz

Yup. Separate VMs. Not much to configure, really.
Couple of jar in the rights spots and done. Works
like a dream. There also have been a bunch of
postings on the newsgroups recently - have a search.


Cheers,

R.


-Original Message-
From: Dragos Haiduc [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 7:13
To: [EMAIL PROTECTED]
Subject: [JBoss-user] JBoss and Resin


Has anybody configured Resin and JBoss to run together(maybe in the same
VM)? 
Thx 
Dragos 
  

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



RE: [JBoss-user] Problem with classloader, servlets, and EARs.

2001-06-25 Thread Robert Watkins

Scott M Stark wrote:
> Any class loaded from the standard WEB-INF/classes or 
> WEB-INF/lib/*.jar
> is certain to be loaded by the servlet war class loader. At 
> what point are
> you trying to do the reflection, and how are you loading the 
> class? I would
> expect that using the thread context class loader should work:
> 
> public void init() throws ServletException
> {
> ClassLoader loader = 
> Thread.currentThread().getContextClassLoader();
> Class clazz = loader.loadClass("myClass");
> ...
> }

Using the thread's context ClassLoader worked fine. Thanks for the help.

Robert.

-- 
     "Software is too expensive to build cheaply"
  Robert Watkins   Software Engineer   QSI Payments Inc.
  [EMAIL PROTECTED] [EMAIL PROTECTED]
 

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



RE: [JBoss-user] Problem with classloader, servlets, and EARs.

2001-06-25 Thread Robert Watkins

Scott M Stark wrote:
> 
> I can see your interpretation, but I can also read this as 
> simply a mechanism
> by which a war asserts which jars need to be available via 
> the classpath or
> server classpath to successfully deploy, not as a mechanism 
> for specifiying
> inter-ear dependencies.

Well, for what it's worth, when I put the myLib.jar onto the classpath (and
out of the EAR), I still have the same problem.

I'm off to try the Thread's classloader now.

Robert.

-- 
 "Duct tape is like the Force: it has a light side, a dark side,
   and it holds the universe together"
  Robert Watkins [EMAIL PROTECTED] [EMAIL PROTECTED]

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



RE: [JBoss-user] Problem with classloader, servlets, and EARs.

2001-06-25 Thread Robert Watkins

Scott M Stark wrote:
> 
> J2EE.8.1.1.2 Dependencies

Wrong spec. See Servlet 2.3 (PFD 2), SRV.9.7.1 (Dependencies on Extensions).
It goes for a few paragraphs, but the relevant one is:

It is recommended that Application developers provide a META-INF/MANIFEST.MF
entry in the WAR file listing extensions, if any, needed by the WAR. The
format of the manifest entry should follow standard JAR manifest format. In
expressing dependencies on extensions installed on the web container, the
manifest entry should follow the specification for standard extensions
defined at
http://java.sun.com/j2se/1.3/docs/guide/extensions/versioning.html.

Basically the J2EE spec says that the valid targets for the Class-Path are
JAR files. So, a WAR file could refer to an EJB (or a library jar) this way,
but the EJB (or library jar) can not refer back to the WAR in this fashion.

> Are you using this archive format successfully with another 
> app server?

Umm... not right now. :) Of the three servers I've played with recently,
JBoss is the first to use the Extension mechanism correctly (read: at all)
 
> That is your interpretation.

I'll stand by the interpretation... in any case, I don't believe that JBoss
is not spec compliant. There's nothing in the Extension mechanism to talk
about how you get _back_ to the calling classloader, and it is
fine-and-dandy for the Extension to be loaded on a separate classloader.
 
> > Sorry if that wasn't clear before. :) Anyway, to get back 
> to the core of the
> > problem:
> > 
> > Is there an object that the servlet has access to (such as 
> the ServletConfig
> > or the ServletContext) that is certain to be instantiated 
> by the classloader
> > for the Web App? If I can get such an object, I can use its 
> classloader to
> > instantiate the other classes.
> > 
> Any class loaded from the standard WEB-INF/classes or 
> WEB-INF/lib/*.jar
> is certain to be loaded by the servlet war class loader. At 
> what point are
> you trying to do the reflection, and how are you loading the 
> class? I would
> expect that using the thread context class loader should work:
> 
> public void init() throws ServletException
> {
> ClassLoader loader = 
> Thread.currentThread().getContextClassLoader();
> Class clazz = loader.loadClass("myClass");
> ...
> }

I'm trying to do it in the init() of the servlet.

I'll try the Thread idea tomorrow. I'll let you know how I go.

Robert.

-- 
 "Duct tape is like the Force: it has a light side, a dark side,
   and it holds the universe together"
  Robert Watkins [EMAIL PROTECTED] [EMAIL PROTECTED]

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



RE: [JBoss-user] Problem with classloader, servlets, and EARs.

2001-06-24 Thread Robert Watkins

Scott M Stark wrote:
> You showed the web.xml descriptor and I expected that this did declare
> the servlet in myLib.jar or there would be no reason for the 
> servlet to
> be deployed. I'm saying that I don't think this is valid 
> behavior as you
> could not just extract the war and deploy it. My reading of the specs
> says that the war is not valid and should not deploy.

The Servlet spec requires that the class is in the class path.

Accordingly, in the META-INF/manifest.mf file for myWeb.war, there is an
entry that reads thusly:
Class-Path: myLib.jar

The reason this is built like this is that the servlet is a generic piece of
infrastructure which uses locally provided classes (instantiated by
reflection) to implement a Model2 architecture. As we expect to deploy
several web apps (each in their own WAR) in the final EAR, we have the
servlet in an external library JAR. All perfectly legal according to the
J2EE spec.

Sorry if that wasn't clear before. :) Anyway, to get back to the core of the
problem:

Is there an object that the servlet has access to (such as the ServletConfig
or the ServletContext) that is certain to be instantiated by the classloader
for the Web App? If I can get such an object, I can use its classloader to
instantiate the other classes.

Robert.

-- 
 "Duct tape is like the Force: it has a light side, a dark side,
   and it holds the universe together"
  Robert Watkins [EMAIL PROTECTED] [EMAIL PROTECTED]

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



RE: [JBoss-user] Problem with classloader, servlets, and EARs.

2001-06-24 Thread Robert Watkins

Scott M Stark wrote:
> I would say it is a bug in the deployer that the servlet is 
> loaded at all.
> Why should a servlet in a jar without a deployment descriptor 
> be deployed?

I didn't show the full tree... there's a deployment descriptor in the war
file which points to the servlet class (in the myLib.jar).

Robert.

-- 
 "Duct tape is like the Force: it has a light side, a dark side,
   and it holds the universe together"
  Robert Watkins [EMAIL PROTECTED] [EMAIL PROTECTED]

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



[JBoss-user] Problem with classloader, servlets, and EARs.

2001-06-24 Thread Robert Watkins

I'm hoping someone can shed some light on a problem I'm having. I have a EAR
structured like somewhat this: (names changed to protect the innocent)

myApp.ear
  |--- myLib.jar
  | |-- myServlet.class
  |
  |--- myWeb.war
|-- WEB-INF/web.xml
|-- WEB-INF/classes/myClass.class


When myServlet.class loads, it tries to instantiate (by reflection) an
instance of myClass. However, it gets a ClassNotFound exception.

My tentative guess at what's going on is that myServlet is being found by
the classloader for the EAR. This doesn't have access to the contents of the
WAR file, so it doesn't see the web classes. This implies that I need to get
hold of the classloader for the web-application.

Does anyone have any idea on how to do this? I'm stuck.

(Yes, the code works fine if I move myClass.class out to myLib.jar, or if I
move myServlet.class into the WAR. However, for various reasons, I don't
want to do that)

Robert

-- 
Robert Watkins
Software Engineer

QSI Payments
E-Payments Infrastructure - Secure Payments Solutions.
__

Email:   [EMAIL PROTECTED]
Tel:   +61 7 3210 2522
DID:   +61 7 3224 9728
Fax:   +61 7 3210 2566
URL:   www.qsipayments.com
Address:  Level 21
  300 Adelaide Street
  Brisbane
  Qld 4000

**This message or any part of it is intended solely for the named **
**addressee and contains privileged and confidential information. **
**  If you receive this message in error please notify QSI Payments by**
**   replying to the sender and removing the message from your computer.  **

 

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



[JBoss-user] JMS Hung

2001-06-18 Thread Robert Yen

Hi All,

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

Thanks in advance.


Robert Yen


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



[JBoss-user] How to hot deploy tomcat webApp with attribute

2001-06-15 Thread Robert J. Liu

I try to hot deploy the tomcat admin applications to use JBOSS's JAAS feature.
I successfully deployed the app following the JBOSS JAAS tutorial. I did login well, 
but then when
I click the View All Contexts button, I got the following error

Error: 500
Location: /admin/contextAdmin/contextAdmin.jsp
You must mark the administration application as trusted

The TRUSTED=true attribute is placed in TOMCAT's server.xml file for a STATIC 
delployed webApp.
Does anyone know how to do the equivalent for a hot deployed 
webApp?$,²ë®f¢–)à–+-$,²ë®X¬¶Ë(º·~Šàzw­†Ûiÿùb²Û,¢êÜyú+éÞ·ùb²Û?–+-Šwèþ6è²Ë¬z


RE: [JBoss-user] DEAR JBOSS USERS

2001-06-13 Thread Robert Schulz

Randy,

sorry for not getting back earlier - had a couple of days of ;-)

> 1.  What version of Resin are you using? 

1.1.5 and 1.2.?

> 2.  I assume you are using the latest Jboss? 

2.2Final, 2.2.1 and 2.2.2

> 3.  Can you share the code you used for the jndi link in the 
>  resin.config file? 

Yup. No link ;-)

> 4.  What jars from the jboss client directory did you load into 
> the Resin lib directory?

None. I stuffed around with ".../bin/wrapper.pl" - I usually 
find it really annoying to sort out what goes in which lib and 
ext and stuff and try and find how the VM gets started and "patch" 
the classpath till it is "right" ... I know not a clean solution,
but it works ;-)

> 5.  Anything else you did I might have forgot? 

Nope. Did not do anything else.


> I think I got everything right, but I just want to verify 
> with someone else
> using this wonderful combination, who got it to work.

It is a wonderful combination. Works like a charm - quick
and no odd effects and stuff. Played around with Tomcat for
a while ... "too hard".

But while we are at it ... maybe you want to share your resin.conf
Sounds like you have the nicer setup. I never really looked into 
cleaning it up, as it works for us.

Cheers,


Robert.
> 
> 
> 
> From: Robert Schulz <[EMAIL PROTECTED]> 
> To: "'[EMAIL PROTECTED]'" 
>  <[EMAIL PROTECTED]> 
> Subject: RE: [JBoss-user] DEAR JBOSS USERS 
> Date: Fri, 8 Jun 2001 12:49:21 +1000 
> Reply-To: [EMAIL PROTECTED] 
> 
> We are very happy with it - we are currently using 2.2 on 
> jdk1.3.0/Linux against postgres/Linux. We run resin as the 
> servlet engine in separate VMs plugged into apache. 
> 
> We have about 10 entitiy and 20 session beans and written a 
> fairly substantial web app on top of it and it works like 
> a dream. We have a reasonable amount of data in the database 
> (around 100,000 rows in the biggest table). I have to add that 
> we are only using the "core" EJB features (entity and session 
> beans) and took out all the other stuff (MDB, Tomcat/Jetty 
> integration, soap, ...) 
> 
> We are not in production yet but reasonably close to it - we have 
> done some load testing and it is looking good. 
> 
> The hardest part is (or used to be in PRE2.0) getting it to work 
> in the first place ... but in comparison to say oracle it is quite 
> easy (in comparison to postgres, it is quite hard). 
> 
> You need to spend a bit of time setting up a productive development 
> environment - I recommend a IDE of your choice (not entering this 
> discussion again) and a good build tool - we use ANT (and it rocks). 
> The hot deploy of jboss and the automatic checking of newer class 
> files of resin makes the develop / compile / run cycle really quick. 
> 
> Ok 'nough said. We love it - good opportunity to place a "BIG THANKS" 
> to the jboss team - keep up the good work! 
> 
> Cheers, 
> 
> Robert. 
> 
>
> 
> ___
> 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] I'm I tripping? Or does JBoss 2.2.1 call ejbStore() on my ejb way too often??

2001-06-12 Thread Robert Finneran

The JBoss container seems to call ejbStore() on my BMP-style entity bean
very often.
This results in multiple unecessary UPDATE's to my base table.

When does JBoss decide it should call ejbStore()?

I must be doing something wrong! Any ideas would be very much appreciated!



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



RE: [JBoss-user] DEAR JBOSS USERS

2001-06-07 Thread Robert Schulz

We are very happy with it - we are currently using 2.2 on 
jdk1.3.0/Linux against postgres/Linux. We run resin as the 
servlet engine in separate VMs plugged into apache.

We have about 10 entitiy and 20 session beans and written a
fairly substantial web app on top of it and it works like 
a dream. We have a reasonable amount of data in the database 
(around 100,000 rows in the biggest table). I have to add that
we are only using the "core" EJB features (entity and session 
beans) and took out all the other stuff (MDB, Tomcat/Jetty 
integration, soap, ...)

We are not in production yet but reasonably close to it - we have
done some load testing and it is looking good.

The hardest part is (or used to be in PRE2.0) getting it to work
in the first place ... but in comparison to say oracle it is quite
easy (in comparison to postgres, it is quite hard).

You need to spend a bit of time setting up a productive development 
environment - I recommend a IDE of your choice (not entering this
discussion again) and a good build tool - we use ANT (and it rocks).
The hot deploy of jboss and the automatic checking of newer class
files of resin makes the develop / compile / run cycle really quick.

Ok 'nough said. We love it - good opportunity to place a "BIG THANKS"
to the jboss team - keep up the good work!

Cheers,

Robert.
> -Original Message-
> From: Faisal Abdallah [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 08, 2001 6:39
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] DEAR JBOSS USERS
> 
> 
> Dear Jboss users I am interested in hearing your experience 
> with Jboss . I
> ve been using it since jboss2.0 update ...nd  few improvements have
> occurred since .Till now it seems to me that IT can't, even, 
> carry out the
> simplest EJB tasks such as finder methods( ByPrimarykey(),findAll(
> ) and Collection findBy...( )
> Hope I can hear your views so I can try another decent EJB server
> many thinks
> 
> 
> ___
> 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] Simple mail configuration issue

2001-06-05 Thread Robert Finneran

Simple mail configuration issue:

I don't think I have things configured properly. Can anyone give me some
hints on where to look?
When my app sends email it tries to send to to smtp.mail.yahoo.com. This was
not my intention.

Here's the JBoss start-up messages:

[Mail Service] Starting
[Mail Service] DEBUG: not loading system providers in /lib
[Mail Service] DEBUG: not loading optional custom providers file:
/META-INF/java
mail.providers
[Mail Service] DEBUG: successfully loaded default providers
[Mail Service]
DEBUG: Tables of loaded providers
[Mail Service] DEBUG: Providers Listed By Class Name:
{com.sun.mail.smtp.SMTPTra
nsport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Su
n Mi
crosystems, Inc],
com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com
.sun.mail.imap.IMAPStore,Sun Microsystems, Inc],
com.sun.mail.pop3.POP3Store=jav
ax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems,
Inc]}
[Mail Service] DEBUG: Providers Listed By Protocol:
{imap=javax.mail.Provider[ST
ORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc],
pop3=javax.mail.Pro
vider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc],
smtp=javax.
mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
Microsystems, I
nc]}
[Mail Service] DEBUG: not loading optional address map file:
/META-INF/javamail.
address.map
[Mail Service] Mail Service 'Mail' bound to java:/Mail
[Mail Service] Started

Thanks!

Rob


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



RE: [JBoss-user] Problem with NoClassDefFoundError

2001-05-30 Thread Robert Watkins

> -Original Message-
> From: Robert Watkins 
> Sent: Wednesday, 30 May 2001 17:46
> To: '[EMAIL PROTECTED]'
> Subject: [JBoss-user] Problem with NoClassDefFoundError
> 
> 
> I've been banging my head against this problem for the last 
> few hours, and
> I'm calling for help.

I resolved my problem. For some reason, a copy of the library jar had ended
up in jboss' lib/ext directory. This meant that the wrong class-loader was
being used.

Robert.

-- 
 "Duct tape is like the Force: it has a light side, a dark side,
   and it holds the universe together"
  Robert Watkins [EMAIL PROTECTED] [EMAIL PROTECTED]

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



[JBoss-user] Problem with NoClassDefFoundError

2001-05-30 Thread Robert Watkins

I've been banging my head against this problem for the last few hours, and
I'm calling for help.

I've got an EAR file, with multiple EJBs in it, and a common library jar. It
looks sort of like this (names changed to protect the innocent):

PSNG.ear
  |-- PaymentCommandExecutor.jar
  |-- PSNG.jar

The EJB jar has a manifest file with a Class-Path entry of PSNG.jar. Both
the jar file and the EJB have been assembled from the same set of compiled
classes, so everything is in sync.

When I got to deploy the sucker, I get the error listed below. For the
record, com.qsipayments.psng.merchant.Merchant is an interface, and it does
exist in PSNG.jar

[J2EE Deployer Default] Deploy J2EE application:
file:/D:/work/main/PSNG/servers/jboss/deploy/PSNG-jboss.ear
[J2EE Deployer Default] Create application PSNG-jboss.ear
[J2EE Deployer Default] install module PaymentCommandExecutor.jar
[J2EE Deployer Default] added
jar:file:D:\work\main\PSNG\servers\jboss\tmp\deploy\Default\copy1001.zip!/PS
NG.jar to common classpath
[J2EE Deployer Default] add all ejb jar files to the common classpath
[Container factory]
Deploying:file:/D:/work/main/PSNG/servers/jboss/tmp/deploy/Default/PSNG-jbos
s.ear
[Verifier] Verifying
file:/D:/work/main/PSNG/servers/jboss/tmp/deploy/Default/PSNG-jboss.ear/ejb1
001.jar
[Verifier] java.lang.NoClassDefFoundError:
com/qsipayments/psng/merchant/Merchant
[Verifier]  at java.lang.Class.getMethods0(Native Method)
[Verifier]  at java.lang.Class.getMethods(Class.java:742)
[Verifier]  at
org.jboss.verifier.strategy.AbstractVerifier.hasEJBCreateMethod(AbstractVeri
fier.java:421)
[Verifier]  at
org.jboss.verifier.strategy.EJBVerifier11.verifySessionBean(EJBVerifier11.ja
va:562)
[Verifier]  at
org.jboss.verifier.strategy.EJBVerifier11.checkSession(EJBVerifier11.java:92
)
[Verifier]  at
org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:134)
[Verifier]  at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:417)
[Verifier]  at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:334)
[Verifier]  at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:275)
[Verifier]  at java.lang.reflect.Method.invoke(Native Method)
[Verifier]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Verifier]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Verifier]  at
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:435)
[Verifier]  at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
[Verifier]  at java.lang.reflect.Method.invoke(Native Method)
[Verifier]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Verifier]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Verifier]  at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
[Verifier]  at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
[Verifier]  at
org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:332)
[Verifier]  at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
[Verifier]  at java.lang.reflect.Method.invoke(Native Method)
[Verifier]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Verifier]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Verifier]  at
org.jboss.util.ServiceControl.start(ServiceControl.java:97)
[Verifier]  at java.lang.reflect.Method.invoke(Native Method)
[Verifier]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Verifier]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Verifier]  at org.jboss.Main.(Main.java:203)
[Verifier]  at org.jboss.Main$1.run(Main.java:107)
[Verifier]  at java.security.AccessController.doPrivileged(Native
Method)
[Verifier]  at org.jboss.Main.main(Main.java:103)

Does anyone have any suggestions on what's happening here? I'm at my wit's
end (not that it's a long trip...)

I've got other classes in the PSNG.jar file which it does detect (and so do
other EJBs if I put them in the EAR).

Robert

-- 
 "Duct tape is like the Force: it has a light side, a dark side,
   and it holds the universe together"
  Robert Watkins [EMAIL PROTECTED] [EMAIL PROTECTED]

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



[JBoss-user] Problem with assumeJavaPrefix

2001-05-29 Thread Robert Watkins

How do I disable assumeJavaPrefix?

My situation is this: I have a JMS Factory defined and bound to a location
in my global JNDI namespace. I wish to access this factory from an EJB. I
ended up with a jboss.xml file for the EJB like this:




  

  PaymentCommandExecutor
  PSNG.PaymentCommandExecutorHome
  Standard Stateless
SessionBean
  
jms/PSNG-JMS-Factory
JMSFactory
  
  
jms/PSNG-JMS-Queue
JMSQueue
  

  
  
  
JMSFactory
PSNG.JMSFactory
  
  
JMSQueue
queue/PSNG.JMSQueue
  
  


I can confirm that PSNG.JMSFactory and queue/PSNG.JMSQueue are correctly
bound, by inspecting the JNDI tree.

When I go to deploy the EJB, I get the following warning:
[Container factory] res-jndi-name(PSNG.JMSFactory)does not start with java:/
and assumeJavaPrefix is true
[Container factory] res-jndi-name(PSNG.JMSQueue)does not start with java:/
and assumeJavaPrefix is true

Poking around in the code, I saw that if assumeJavaPrefix is true, then all
the JNDI entries are meant to be in the java: namespace. This isn't the case
for me, and I'd rather it wasn't, so what I need to know is how to set it to
false.

Any ideas?

Robert.

-- 
 "Duct tape is like the Force: it has a light side, a dark side,
   and it holds the universe together"
  Robert Watkins [EMAIL PROTECTED] [EMAIL PROTECTED]

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



RE: [JBoss-user] Dependent Objects

2001-05-29 Thread Robert Watkins

Hunter Hillegas wrote:
> If the beans are all running on the same server, what is the 
> difference
> (assuming no cluster)?

I don't want to steal Jim's thunder, but I thought I'd jump in and answer
this as I've spent a lot of time looking at this recently.

In most app servers, you would still have the overhead of the RMI call. In
addition to this, your parameters would be passed by RMI conventions
(meaning you get a copy of the object, not the object itself).(*) In
addition to this, you are forced to expose all your EJBs, which can give you
a cluttered view of the system.

With local interfaces, you lose the RMI call, you actually pass the
parameters as per normal Java conventions, and you don't have to worry about
remote exceptions. Also, by deploying some of your low-level entity beans
purely locally, you provide a cleaner public view of the system, without
losing flexibility.

Also note that session beans can be accessed via local interfaces. This
means that you can use session beans as purely pluggable components,
accessed via a factory pattern. Anything that you would like to be
configurable or separately upgradeable in your system can be, simply be
converting it into a local stateless or stateful session bean. This gives
you a lot of flexibility in your design, and is significantly more powerful
a concept than the dependent objects it replaces.

> Are security/transaction/etc... still managed by the 
> container if you access
> a bean via a local interface?

Yes.
 
> Does anyone know if MVCSoft supports local interfaces?

This I don't know. I doubt it though... the new spec version is still very
new.

Robert.

(*) Some web servers "optimise" the RMI call out of the way when accessing
something in the same app server. Comes as a nasty shock when your
application breaks when you shift part of it onto a separate server, all
because you violated an RMI constraint without realising it.

-- 
 "Duct tape is like the Force: it has a light side, a dark side,
   and it holds the universe together"
  Robert Watkins [EMAIL PROTECTED] [EMAIL PROTECTED]

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



[JBoss-user] Error deploying petstore 1.1.2

2001-05-28 Thread Robert J. Liu

Hi,

I managed to recompile jps 1.1.2 successfully with j2sdkee1.2.1. When trying to deploy 
the demo
to JBoss 2.2.1+Tomcat-3.2.1, I keep getting the following error:

[Verifier] Verifying file:/C:/jboss/tmp/deploy/Default/petstore.ear/ejb1007.jar
[Container factory] Deploying TheCatalog
[Container factory] Deploying TheShoppingCart
[Verifier] Verifying file:/C:/jboss/tmp/deploy/Default/petstore.ear/ejb1008.jar
[Verifier] java.lang.NoClassDefFoundError: 
com/sun/j2ee/blueprints/shoppingcart/cart/ejb/ShoppingCart
[Verifier]  at java.lang.Class.getMethods0(Native Method)
[Verifier]  at java.lang.Class.getMethods(Class.java:742)
[Verifier]  at 
org.jboss.verifier.strategy.AbstractVerifier.hasEJBCreateMethod(AbstractVerifier.java:421)

[Verifier]  at 
org.jboss.verifier.strategy.EJBVerifier11.verifySessionBean(EJBVerifier11.java:562)
[Verifier]  at 
org.jboss.verifier.strategy.EJBVerifier11.checkSession(EJBVerifier11.java:92)
[Verifier]  at org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:134)

[Verifier]  at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:417)
[Verifier]  at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:334)
[Verifier]  at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:275)
[Verifier]  at java.lang.reflect.Method.invoke(Native Method)
[Verifier]  at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Verifier]  at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Verifier]  at 
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:435)
[Verifier]  at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
[Verifier]  at java.lang.reflect.Method.invoke(Native Method)
[Verifier]  at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Verifier]  at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Verifier]  at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
[Verifier]  at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
[Verifier]  at java.lang.Thread.run(Thread.java:484)
[Container factory] Deploying TheShoppingClientController
[Verifier] Verifying file:/C:/jboss/tmp/deploy/Default/petstore.ear/ejb1010.jar
[Container factory] Deploying TheMailer
[J2EE Deployer Default] Starting petstore.ear failed!

Any advice?

Robert J. 
Liu
A¢Ë.±êæj)bžb²ÒA¢Ë.±êåŠËl²‹«qç讧zØm¶Ÿÿ–+-²Ê.­ÇŸ¢¸ë–+-³ùb²Ø§~ãn‹,ºÇ«


RE: [JBoss-user] what does jboss use instantDB for

2001-05-22 Thread Robert Nicholson

Maybe it's for durable messages with jbossmq

Just wild guess though.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Mader, Cary
> J
> Sent: Tuesday, May 22, 2001 1:41 PM
> To: Jboss-User (E-mail)
> Subject: [JBoss-user] what does jboss use instantDB for
>
>
> I couldn't find a clear answer in the list archives on what instantDB is
> actually used for by Jboss.  If anyone could provide a little detail, I'd
> like to hear it.
>
> Is the InstantDB instance that is started by JBoss there to use as I need?
> Or would I be better off starting a seperate instance of an InstantDB
> database?
>
> Thanks.
>
> Cary
>
>
> ___
> 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] petstore 1.1.2

2001-05-22 Thread Robert Nicholson

Yes the only reason you should need it and you can work around it is because
they use a j2ee RI class for deployment in the Ant rules. This can be easily
worked around by simply building a war and not worrying about that class.

That's the only reason you should need to reference j2ee.jar from RI

otherwise, the jars you need should come with jboss. you just have to
edit the j2ee.path stuff to make it reference the jboss files.

I recently ported 1.1.2 to Weblogic 6 and I simply passed -Dweblogic.home=
through as a property when invoking ant from build.bat and refereneced it
from the build.xml files.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Cuong Tran
> Sent: Tuesday, May 22, 2001 10:28 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] petstore 1.1.2
>
>
>
>   You need j2ee sdk to build it.
>
> --- mroosendaal <[EMAIL PROTECTED]> wrote:
> > Has anyone installed and deployed the new petstore 1.1.2, when i ran the
> > build.bat from petstore i got loads (60) of errors.
> >
> > I have jdk1.3 and jboss is running, it shouldn't be more then
> just executing
> > the build .bat in de petstore/src/petstore/src, shoud it?
> >
> > Maarten
> >
>
>
> =
> Cuong Q. Tran <[EMAIL PROTECTED]>
>
> __
> 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



Re: [JBoss-user] JBoss and ANT

2001-05-21 Thread Robert Burrell Donkin

"Scott M Stark" <[EMAIL PROTECTED]> wrote

>JBoss ejb jars are pretty trivial constructs in ant because there is no
stub
>compiliation step as required by weblogic. I would have to look at the
current
>ejb jar ANT task to see if it offers sufficient simplication of the
steps
>required. Maybe it does.

>>- Original Message -
>>From: Michael P. McCutcheon
>>To: [EMAIL PROTECTED]
>>Sent: Wednesday, May 16, 2001 8:24 PM
>>Subject: [JBoss-user] JBoss and ANT
>>
>>
>>They are taking feature requests at the Jakarta project...wouldn't it
be cool if ANT could build EJB
>>jars that would work in JBoss?
>>
>>Has anyone submitted a request to the ANT developers about this?
Currently I believe that the EJB jar
>>generating feature in ANT
>>only supports BEA.

i use ant build scripts to compile and deploy EJB jars, war and ears to
JBoss. they seem to work pretty well :-)

as scott says, these scripts are very, very easy to write with ant.

IMHO since all the various steps for JBoss (compiling, jarring, copying)
can all be handled by standard ant tasks without
creating additional ones, writing a special task would only lose
flexibility.

- robert


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



RE: [JBoss-user] petstore 1.1.2 deployed successfully

2001-05-18 Thread Robert Nicholson

Did you maintain separate jars in the .ear or use one big jar for the ejbs?

Also, does Jboss allow you to generate the stubs and skels are deploy time
like Weblogic 6.0 with ejbc? In the case o Weblogic 6.0 you cannot do this
because there are class resolution issues across the jars and their
dependencies with ejbc at deploytime and there's no way to define the order
in which ejbc should process the .jars in the .ear
as deploy time.

Just interested in how Jboss performs in the this regard.

Cheers.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Cuong Tran
> Sent: Friday, May 18, 2001 2:13 PM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] petstore 1.1.2 deployed successfully
>
>
>
> Hi everyone,
>
>   I have managed to successfully deploy petstore 1.1.2
> on jboss 2.2.1-tomcat 3.2.1, using Hypersonic as the database.
> If anyone is interested, I'm willing to share what I've done.
>
>
> =
> Cuong Q. Tran <[EMAIL PROTECTED]>
>
> __
> 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



RE: [JBoss-user] dear god, please help (petstore 1.1.2)

2001-05-17 Thread Robert Nicholson

1.1.2 should be easier than 1.1.1 to setup. I got 1.1.2 working in Weblogic
6.0 ok.

The populateservlet stuff should be simple if you setup your datasources and
connection pools correctly. you also have to make sure your resource-refs
resolve to the appropriate
JNDI names. The best thing to do is to get 1.1.2 running on the reference
implementation
and then look at the deploy tool to see all the names and associations that
exist and mimic these in what ever container you're trying to get it running
in.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Shriver,
> Ryan
> Sent: Thursday, May 17, 2001 6:43 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [JBoss-user] dear god, please help (petstore 1.1.2)
>
>
> > After spending two full days trying to get Petstore 1.1.2 to deploy on
> > Jboss, it would be so great if someone with experience
> > could write up a
> > quick tutorial.
> >
> > I've followed the instructions from the 1.1.1 install, and
> > have tried many
> > things on my own, but having just started with EJB/JBoss,
> > this is driving me
> > crazy.
> >
> > This should take an experienced user less than an hour, and
> > it would save
> > days for all of us just learning EJB/Jboss.
>
> I got Petstore 1.1.1 deployed and working in JBoss. Yesterday I spent the
> morning trying to get 1.1.2 deployed and after four hours gave
> up. I got the
> "Can't connect to database" error too, but modified PopulateServlet and
> changed the JNDI name to java:/EstoreDB and that fixed that
> problem. The new
> "integrated" populate database feature doesn't seem to be working and at
> this point I gave up.
>
> If I get this working I'll post what to do, else I'd encourage others if
> they have the time to give it a try. It would be nice to figure it out.
>
> -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



RE: [JBoss-user] ejbFinder problem

2001-05-16 Thread Robert Nicholson

Actually looks to me as though his PersonBean is a kind of Data Value
Objects that's serialized over the wire.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of DeGreef,
> Chris J. (AIT)
> Sent: Wednesday, May 16, 2001 12:12 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [JBoss-user] ejbFinder problem
>
>
> It looks unusual to directly access any class called ...Bean.
> The standard
> naming convention would imply this to be a class that only the container
> would directly reference.  Application code would access the
> remote instead.
> Maybe the problem has to do with that.
>
> -Original Message-
> From: Jim Downing [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 16, 2001 12:43 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] ejbFinder problem
>
>
> Hi Robert, thanks for the tip,
> I've tried both casting the objects from the collection to the type of my
> remote interface, and using PortableRemoteObject.narrow, but to no avail.
> Any more clues?
>
> jim
>
>
> - Original Message -
> From: "Robert Nicholson" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, May 16, 2001 6:12 PM
> Subject: RE: [JBoss-user] ejbFinder problem
>
>
> > I believe you are suppose to use PortableRemoteObject narrow on
> items in a
> > collection.
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of
> Jim Downing
> > > Sent: Wednesday, May 16, 2001 5:13 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: [JBoss-user] ejbFinder problem
> > >
> > >
> > > Hi all,
> > > I'm trying to implement a findAll method for my BMP entity bean.
> > > Sometimes it works fine, sometimes a FinderException is thrown when
> > > calling business methods on the Remote interfaces in the returned
> > > collection: e.g.
> > >
> > > Collection all = home.findAll();
> > > Iterator i = all.iterator();
> > > i = all.iterator();
> > > while(i.hasNext())
> > > {
> > >   PersonBean pb = ((Person) i.next()).getPersonBean();
> <-- Exception
> > > thrown here
> > >   ...
> > > }
> > >
> > > The exception is thrown in ejbLoad because there is no record in the
> > > database table with a primary key of null (surprise surprise).
> > >
> > > Is there something I'm missing about the scope of these
> collections? Is
> > > it better to wrap all the finders in methods that return arrays?
> > >
> > > thanks in advance,
> > > jim
> > >
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


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



RE: [JBoss-user] ejbFinder problem

2001-05-16 Thread Robert Nicholson

Have you checked the database? Are any of your primary key values NULL?

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jim Downing
> Sent: Wednesday, May 16, 2001 10:43 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] ejbFinder problem
> 
> 
> Hi Robert, thanks for the tip,
> I've tried both casting the objects from the collection to the type of my
> remote interface, and using PortableRemoteObject.narrow, but to no avail.
> Any more clues?
> 
> jim
> 
> 
> - Original Message -
> From: "Robert Nicholson" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, May 16, 2001 6:12 PM
> Subject: RE: [JBoss-user] ejbFinder problem
> 
> 
> > I believe you are suppose to use PortableRemoteObject narrow on 
> items in a
> > collection.
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of 
> Jim Downing
> > > Sent: Wednesday, May 16, 2001 5:13 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: [JBoss-user] ejbFinder problem
> > >
> > >
> > > Hi all,
> > > I'm trying to implement a findAll method for my BMP entity bean.
> > > Sometimes it works fine, sometimes a FinderException is thrown when
> > > calling business methods on the Remote interfaces in the returned
> > > collection: e.g.
> > >
> > > Collection all = home.findAll();
> > > Iterator i = all.iterator();
> > > i = all.iterator();
> > > while(i.hasNext())
> > > {
> > >   PersonBean pb = ((Person) i.next()).getPersonBean(); 
> <-- Exception
> > > thrown here
> > >   ...
> > > }
> > >
> > > The exception is thrown in ejbLoad because there is no record in the
> > > database table with a primary key of null (surprise surprise).
> > >
> > > Is there something I'm missing about the scope of these 
> collections? Is
> > > it better to wrap all the finders in methods that return arrays?
> > >
> > > thanks in advance,
> > > jim
> > >
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 

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



RE: [JBoss-user] ejbFinder problem

2001-05-16 Thread Robert Nicholson

I believe you are suppose to use PortableRemoteObject narrow on items in a
collection.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jim Downing
> Sent: Wednesday, May 16, 2001 5:13 AM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] ejbFinder problem
>
>
> Hi all,
> I'm trying to implement a findAll method for my BMP entity bean.
> Sometimes it works fine, sometimes a FinderException is thrown when
> calling business methods on the Remote interfaces in the returned
> collection: e.g.
>
> Collection all = home.findAll();
> Iterator i = all.iterator();
> i = all.iterator();
> while(i.hasNext())
> {
>   PersonBean pb = ((Person) i.next()).getPersonBean(); <-- Exception
> thrown here
>   ...
> }
>
> The exception is thrown in ejbLoad because there is no record in the
> database table with a primary key of null (surprise surprise).
>
> Is there something I'm missing about the scope of these collections? Is
> it better to wrap all the finders in methods that return arrays?
>
> thanks in advance,
> jim
>
> ___
> 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] Pet Store 1.1.2

2001-05-14 Thread Robert Nicholson

The way I would approach this is get 1.1.1 and use the jboss patch for that
and then try to follow your way to 1.1.2 by spotting the differences.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Da-Ming Duan
> Sent: Monday, May 14, 2001 1:39 PM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Pet Store 1.1.2
>
>
> Can somebody tell me how to deploy Pet Store1.1.2 on
> JBoss2.2.1_Tomcat3.2.1 ? Especially the database (Cloudscape)
> configuration part like that for Pet Store 1.1.1 at
> http://www.jboss.org/documentation/HTML/ch11s167.html. I don't quite
> understand steps 6,7 and 8 on this site. Step 9 even makes my JBoss
> server stopped working.
>
> Da-Ming
>
>
> ___
> 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] JBuilder Integration for edit/compile/test

2001-05-10 Thread Robert Schulz

We develop with JBuilder for JBoss - run your client out of JBuilder 
and deploy the EJB stuff into JBoss with ant - based scripts. With the
hot deploy stuff this works very well for us and you get a short 
development cycle.

R.

> -Original Message-
> From: Adam Lipscombe [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 11, 2001 10:30
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] JBuilder Integration for edit/compile/test
> 
> 
> Hi,
> 
> Is it possible to integrate JBoss with JBuilder4?
> 
> I need to create EJB's and minimise the edit/compile/test cycle.
> Ideally I want JB4 to compile and then deploy the bean to JBoss
> automatically.
> I believe (bit I haven't tried it) that JB4 can do this with 
> the Inprise App
> Server and Weblogic...
> 
> If anyone has achieved this I would love to know how...
> 
> 
> Thanks - Adam
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 

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



RE: [JBoss-user] EJB call other EJB

2001-05-09 Thread Robert Nicholson

Have you separated out your interfaces home and remote into a separate jar
and declared the class path as a dependency in the manifest for the jar
files?

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Guy
> Rouillier
> Sent: Monday, May 07, 2001 9:37 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] EJB call other EJB
>
>
> There is a section in the online documentation that covers this
> subject, and
> it pops up regularly on this mailing list.  Search the archives
> just for the
> last week.
>
> - Original Message -
> From: "Saint-Martin Cecile" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Monday, May 07, 2001 11:48 AM
> Subject: [JBoss-user] EJB call other EJB
>
>
> Hi,
>
> I have a problem : EJB A is calling EJB B, they are deployed in different
> jar files.
> In ejb-jar.xml file of EJB A, i declared a reference to EJB B and create a
> jboss.xml file to reference the jndi-name of EJB B.
> When I call  EJB A, it try to call EJB B and i have a class not found
> exception.
> Do I need to include EJB B files into EJB A .jar file ?
>
>
> Cécile Saint-Martin
> [EMAIL PROTECTED]
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


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



RE: [JBoss-user] Re: JAWS: Is this a bug, or is there another rational

2001-05-07 Thread Robert Schulz

I think streaming into postgres only works with the "Fasttrack" API.
Have a look at the postgres JDBC doc - there are a few examples how 
to do it and I played around with it a while ago and it worked well. 
I think you have to downcast the statment and then there is a large
object API.

As far as I remember, the methods on statement dealing with streams 
are not implemented - have a look at the source.

Cheers,

Robert.

> -Original Message-
> From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 08, 2001 8:57
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: [JBoss-user] Re: JAWS: Is this a bug, or is there another
> rational
> 
> 
> Hi Chris,
> 
> On Tue,  8 May 2001 08:32, you wrote:
> > method on its home interface.  When JBoss attempts to 
> insert a row into
> > the database for this new bean instance, it calls
> > PreparedStatement.setBinaryStream() for a column and the JDBC driver
> > throws an exception saying that 'InputStream as parameter not
> 
> I think you'll find this might be to do with the Postgres 
> JDBC driver.  I'm 
> not sure, but I have found several areas where the driver 
> isn't fully flushed 
> out.  I'd try writing a straight JDBC insert that uses the 
> setBinaryStream() 
> method.  
> 
> Apologies if I'm wrong here.
> 
> cheers
> dim
> 
> ___
> 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] Deploying the Petstore app on Jboss.

2001-05-06 Thread Robert Nicholson

Well I downloaded the 1.1.1 patch and fortunately I already have the 1.1.1
source release from javasoft. Despite it no longer being available today. I
look at the README in the patch and it points me to a URL that's no longer
valid

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

I would like to see a number list of steps needed to deploy the Petstore on
jboss. Does such a thing exist?

The Readme still leaves a lot up to the user and it's not for novices.



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



[JBoss-user] Jboss Petstore going to be hard without access to jps 1.1.1

2001-05-06 Thread Robert Nicholson

Someone needs to update the patch I think because I didn't see an easy way
to obtain the 1.1.1 release on javasoft which the patch requires.


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



[JBoss-user] weblogic ejb descriptors vs jboss descriptors

2001-05-05 Thread Robert Nicholson

I've just been recently looking at Weblogic 6.0 and noticed that there's
very little that gets you to a weblogic-ejb-jar.xml short of editing the
file by hand yourself. I wanted to ask folks on this list if the process is
any easier on jboss. I was looking at getting the petstore 1.1.2 release
working on Weblogic but it's gonna take a lot of hand creating
weblogic-ejb-jar.xml files.

Has anybody got 1.1.2 working on Jboss yet?

Is there any way to easily get from the RI's ejb-jar.xml to the proprietory
descriptor that jboss needs to define jndi names and security roles etc?


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



RE: [JBoss-user] problems launching JBoss2.2.x from a user shell

2001-05-03 Thread Robert Schulz

"kill pid" shuts it down fine. You probably want to
write a startup script which writes the pid into a
file and a stop script which reads it from a file 
and kills it.

R.

> -Original Message-
> From: Jim Brownfield [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 04, 2001 8:34
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] problems launching JBoss2.2.x from a user
> shell
> 
> 
> Since "^C" supposedly shuts JBoss down gracefully, you should 
> be able to
> execute "kill -INT "  where "" is retrieved 
> from a "ps"
> command.
> 
> Jim
> 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Guy
> > Rouillier
> > Sent: Thursday, May 03, 2001 9:11 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] problems launching JBoss2.2.x from a user
> > shell
> >
> >
> > Having done this, is there a way to shut down JBoss gracefully,
> > so it has a
> > chance to shut down everything that is running in a controlled
> > fashion?  Or
> > do you just kill the process, and hope for the best?
> >
> > - Original Message -
> > From: "Jim Brownfield" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, May 03, 2001 11:40 AM
> > Subject: RE: [JBoss-user] problems launching JBoss2.2.x 
> from a user shell
> >
> >
> > > Hi Juan,
> > >
> > > try "nohup ./JBoss2.2.1/bin/run.sh &"
> > >
> > > This should keep the terminal group from axing your JBoss
> > subprocess when
> > > the terminal exits.
> > >
> > > Jim
> > >
> > > > -Original Message-
> > > > From: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED]]On Behalf Of
> > Juan Arraiza
> > > > Sent: Thursday, May 03, 2001 2:03 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [JBoss-user] problems launching JBoss2.2.x 
> from a user shell
> > > >
> > > >
> > > > Hi all,
> > > > We are founding trouble when launching JBoss2.2.x as a 
> background
> > > > process from a user shell in Solaris 2.6. If we close that
> > user terminal
> > > > (or finish the X-Windows session) from which we have 
> launched JBoss,
> > > > JBoss dies.
> > > >
> > > > We launch JBoss typing:
> > > > ./JBoss2.2.1/bin/run.sh &
> > > >
> > > > In theory (although I confess I am not a great expert 
> in Unix), that
> > > > process we start does not depend on the terminal from 
> which we have
> > > > launched it (since it is launched as a background 
> process). As I said,
> > > > when we close that terminal, the process dissapears with it.
> > > >
> > > > Does anybody know why?
> > > >
> > > > TIA
> > > >
> > > > Juan
> > > >
> > >
> > >
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 

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



RE: [JBoss-user] problems launching JBoss2.2.x from a user shell

2001-05-03 Thread Robert Schulz

man nohup

Cheers,

R.

User Commandsnohup(1)

NAME
 nohup - run a command immune to hangups

SYNOPSIS
 /usr/bin/nohup command  [ argument ... ]

 /usr/xpg4/bin/nohup command  [ argument ... ]

DESCRIPTION
 The nohup  utility invokes the named command with the  argu-
 ments   supplied.When  the  command  is  invoked,  nohup
 arranges for the SIGHUP signal to be ignored by the process.

 The nohup  utility can be used when it is known that command
 will take a long time to run and the user wants to logout of
 the terminal; when a shell exits, the system sends its chil-
 dren  SIGHUP  signals,  which  by  default  cause them to be
 killed. All  stopped,  running,  and  background  jobs  will
 ignore  SIGHUP  and continue running, if their invocation is
 preceded by the nohup  command or if the process programmat-
 ically has chosen to ignore SIGHUP.

> -Original Message-
> From: Juan Arraiza [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 03, 2001 19:03
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] problems launching JBoss2.2.x from a user shell
> 
> 
> Hi all,
> We are founding trouble when launching JBoss2.2.x as a background
> process from a user shell in Solaris 2.6. If we close that 
> user terminal
> (or finish the X-Windows session) from which we have launched JBoss,
> JBoss dies.
> 
> We launch JBoss typing:
> ./JBoss2.2.1/bin/run.sh &
> 
> In theory (although I confess I am not a great expert in Unix), that
> process we start does not depend on the terminal from which we have
> launched it (since it is launched as a background process). As I said,
> when we close that terminal, the process dissapears with it.
> 
> Does anybody know why?
> 
> TIA
> 
> Juan
> 

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



RE: [JBoss-user] What happens at 6 hours and 35 minutes?

2001-05-02 Thread Robert Schulz


Not sure whether this will help, but here are a couple of
suggestions ... Write a thread which dumps memory usage, 
calls System.gc() and dumps the time it takes into a file 
every 10 seconds or so. This might tell you whether the 
gc makes the JVM die. Next step is to implement a "state logging" 
singelton into which you call whenever you enter/leave "suspect 
parts" of the code and make the thread dump the state as well
continously ... this might help to narrow it down.

Does the crash depend on load, is it always after thye _exact_
same amount of time?

Overall yours is a pretty nasty problem, as you'll have to
wait 6 hours to see whether it makes a difference |-(

Good luck.

R.
> -Original Message-
> From: Jim Brownfield [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 03, 2001 8:52
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] What happens at 6 hours and 35 minutes?
> 
> 
> Thanks, Toby.
> 
> There's no backtrace on the threads, just the typical "Memory 
> fault: core
> dumped" message.  I will try the kill -SIGQUIT, and see if 
> that gives any
> insight.  The java profiling didn't provide anything useful.
> 
> Thanks again!
> Jim
> 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of 
> Toby Allsopp
> > Sent: Wednesday, May 02, 2001 3:01 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] What happens at 6 hours and 35 minutes?
> >
> >
> > On Wed, May 02, 2001 at 02:42:43PM -0700, Jim Brownfield wrote:
> > > Thanks for the suggestion, but it's not 6:35A.M, it's 6 hours
> > and 35 minutes
> > > running time, and it doesn't matter when I start JBoss, but you
> > can set your
> > > clock by when the JVM will fail after you've started it.  I'm
> > sure there's a
> > > JVM problem with SCO's implementation, but unfortunately,
> > there's nothing I
> > > can do about that, SCO being such an awesome
> > > implementation.  I was hoping that someone 
> could say something
> > > like, "oh yeah, JBoss does  at about that time", and
> > I'd have a
> > > place to go to try to make a temporary workaround in the 
> JBoss code.  It
> > > could be that the JVM is doing something itself, but if 
> so, it's still
> > > related somehow to JBoss (or Tomcat, I suppose), since we have
> > other Java
> > > programs that run longer than 395 minutes.
> >
> > Ok, I'll make a more helpful effort than "fix JVM".
> >
> > When the JVM crashes, does it dump stacktraces for the running
> > threads?  I've
> > seen many JVMs do this, and it might give you a clue as to 
> what's going on
> > at the time.
> >
> > You could also try taking thread dumps (kill -3) up until 
> the time when it
> > crashes.
> >
> > 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
> 

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



RE: [JBoss-user] JDBC Sybase configuration?

2001-04-27 Thread MacAndrew, Robert

The url format is the same as that you would use to connect to the database
from any java program it should look something like this:

jdbc:sybase:Tds:XXX:YYY?ELIMINATE_010SM=true

where XXX is the address of the database (i.e. along the lines of
mydb.mycompany.com)
and YYY is the port you should be connecting to.

The ?ELIMINATE_010SM=true part of the URL is optional. It turns off a
Sysbase warning message that is generated because the databases we connect
to don't support all of the features of JConnect, this isn't a problem in
itself as it works fine. However without the flag to turn the warning off
Jboss will catch the warning, decide things don't look too good, and ignore
this dataSource (so you would never be able to connect to this Db). 

The JDBC User and Password fields should be set to the same values as you
use for username and password when you connect normally.

Hope this helps
Rob


-Original Message-
From: Jason Wells [mailto:[EMAIL PROTECTED]]
Sent: 27 April 2001 01:09
To: [EMAIL PROTECTED]
Subject: [JBoss-user] JDBC Sybase configuration?


Hello,

I'm trying to get JBoss to use the Sybase JConnect 5.2 JDBC driver for CMP
entity beans. I've been looking at the "Using MS SQL Server with JBoss"
tutorial on the JBoss site, which is the closest thing I've found in terms
of relevant documentation:

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

And actually, it seems pretty applicable. But there's one area where the
instructions aren't too useful, because they vary considerably from driver
to driver, and that's the connection pool MBean declaration. I'm thinking it
would look something like this...


   com.sybase.jdbcx.SybDataSource
   SybasePool
   ???
   user=dbusername;
password=dbpassword
   4
   10
   false
   120
   12
   false
   false
   true
   false
   false
   180
   1.0


But, I have no idea how to formulate the JDBC URL, or if it's even needed.
Also, I wonder if I need "JDBCUser" and "Password" attributes. All of these
things seem to vary from driver to driver. Has anyone set this up for the
Sybase JDBC driver? Any help is appreciated.

Thanks,
Jason



___
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



FW: [JBoss-user] PostgreSQL 7.1 Datasource setup

2001-04-22 Thread Robert Schulz

John,

Got a reply saying "mail to long" - here the mail (see below) without
standardjaws.xml attached, only the relevant changed bits:

 PostgresDB 
 PostgreSQL 

  

This standardjaws is from jBoss2.0 times, we just keep 
copying the config files over and adapting them when
moving to a new version ...

Here is the rest of the email:

> -Original Message-
> From: Robert Schulz 
> Sent: Sunday, 22 April 2001 17:59
> To: '[EMAIL PROTECTED]'
> Subject: RE: [JBoss-user] PostgreSQL 7.1 Datasource setup
> 
> 
> Haa .. another change we made so long ago for postgres, that 
> I forgot ... sorry.
> In standardjaws.xml it seems to setup the defaultDS which 
> points to hypersonic,
> which must somehow also trigger the black box db thing - 
> again, don't really
> have time to dig around this (especially as I don't want to 
> use hypersonic).
> Attached our standardjaws.xml (stripped of everything we 
> don't need / understand).
> 
> Hope this will do the trick.
> 
> Cheers,
> 
> R.
> 
> PS> This standardjaws name change will now of course dripple 
> through all your
> deployment descriptors for you beans. Your jboss.xml-s 
> (in META-INF) should
> look like
>   
> 
> 
>   
>  res-class="org.jboss.ejb.deployment.JDBCResource">
>   FOOBAR
>   java:/PostgresDB
> 
>   
> 
> and then in the same file something like
> 
>   
> 
> 
>   SomeBeanName
>   
> ResourceRefName
> FOOBAR
>   
> 
> 
> and in your code use "java:comp/env/ResourceRefName" to get 
> to the connection pool.
> 
> 
> > -Original Message-
> > From: John Menke [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, 20 April 2001 12:12
> > To: [EMAIL PROTECTED]
> > Subject: RE: [JBoss-user] PostgreSQL 7.1 Datasource setup
> > 
> > 
> > Robert,
> > 
> > I used your versions of jboss.conf and jboss.jcml with the 
> > adjustments for
> > jdbc url. (Thanks:))  It looks like it ran well.  Take a look 
> > at the log
> > though.  I have this phantom datasource at the bottom again!! 
> >  Where is
> > DefaultDB coming from?? For that matter where is BlackBoxDB 
> > coming from? It
> > is not mentioned in jboss.jcml!!?
> > 
> > CLASSPATH=/usr/tomcat/webapps/cocoon/WEB-INF/lib:/usr/local/jC
> > VS-5.2.2/jars/
> > jcvsii.jar:run.jar:../lib/crimson.jar
> > jboss.home = /usr/local/jboss
> > Using configuration "default"
> > [Info] Java version: 1.3.0,Sun Microsystems Inc.
> > [Info] Java VM: Java HotSpot(TM) Server VM 1.3.0,Sun 
> Microsystems Inc.
> > [Info] System: Linux 2.2.14-5.0,i386
> > [Shutdown] Shutdown hook added
> > [Service Control] Registered with server
> > [Service Control] Initializing 26 MBeans
> > [Webserver] Initializing
> > [Webserver] Initialized
> > [Naming] Initializing
> > [Naming] Initialized
> > [JNDIView] Initializing
> > [JNDIView] Initialized
> > [Transaction manager] Initializing
> > [Transaction manager] Initialized
> > [JDBC provider] Initializing
> > [JDBC provider] Loaded JDBC-driver:org.postgresql.Driver
> > [JDBC provider] Initialized
> > [PostgresDB] Initializing
> > [PostgresDB] Initialized
> > [Container factory] Initializing
> > [Container factory] Initialized
> > [J2EE Deployer Default] Initializing
> > [J2EE Deployer Default] Initialized
> > [Auto deploy] Initializing
> > [Auto deploy] Initialized
> > [ConnectionManagerFactoryLoader] Initializing
> > [MinervaXACMFactory] Initialized
> > [JMX RMI Adaptor] Initializing
> > [JMX RMI Adaptor] Initialized
> > [JMX RMI Connector] Initializing
> > [JMX RMI Connector] Initialized
> > [ConnectionFactoryLoader] Initializing
> > [BlackBoxDS] Initialized
> > [DefaultDS] Initializing
> > [DefaultDS] Initialized
> > [ConnectionManagerFactoryLoader] Initializing
> > [MinervaNoTransCMFactory] Initialized
> > [InstantDB] Initializing
> > [InstantDB] Initialized
> > [RARDeployer] Initializing
> > [RARDeployer] Initialized
> > [JBossMQ] Initializing
> > [JBossMQ] Initialized
> > [JAAS Security Manager] Initializing
> > [JAAS Security Manager] Initialized
> > [jdbc/PostgresDB] Initializing
> > [jdbc/PostgresDB] Initialized
> > [StdJMSPool] Initializing
> > [StdJMSPool] Initialized
> > [DefaultJMSProvider] Initializing
> > [DefaultJMSProvider] Initialized
> > [Mail Service] Initializing
> > [Mail Service] Initialized
> > [ConnectionMan

  1   2   >