Re: [JBoss-user] Obtaining UserTransaction from within servlet

2001-04-30 Thread Ole Husgaard

Hi,

UserTransaction support for stand-alone clients was
just recently added to CVS. You may have to grap
the latest CVS sources if you need this now.

When you have it, a simple lookup of "UserTransaction"
will do.


Best Regards,

Ole Husgaard.


Ed Swierk wrote:
> 
> I need to start a transaction from within a servlet, make one or more calls
> to entity beans, and then commit the transaction.  However I can't seem to
> find a way to obtain a UserTransaction object using the normal JNDI name,
> "java:comp/UserTransaction".
> 
> Browsing the namespace with JNDIView shows that UserTransaction objects are
> registered within the namespace of session beans, but are not registered
> globally.
> 
> Should I try a different JNDI name, or is there another way to get a
> UserTransaction from JBoss?
> 
> Thanks,
> --Ed
> 
> =
> --
> Ed Swierk
> [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] java.io.FilePermission on jboss tmp dir?

2001-04-30 Thread Guy Rouillier

Okay, thanks to all who responded via the mail list and directly to me, I've
got a working client.  The client is executed outside of JBoss from a
command prompt, so jboss.home is not available.  Here is what I found that
worked:

grant
   {
   permission java.net.SocketPermission "192.168.1.100:1024-",
"connect,resolve";
   permission java.io.FilePermission "\\H:\\JBoss-2.2.1\\tmp\\-", "read";
   permission java.lang.RuntimePermission "accessDeclaredMembers";
   };

So many questions :

(1) What is the 3rd permission?
(2) I still need help in understanding the 2nd permission.  Typically, JBoss
and a client will be on different boxes.  How can it make sense for the
client to need permission for a temp directory on a completely different
box?  The client is simply reading what comes out of its end of an RMI pipe.
The client shouldn't be reading any JBoss directories.

- Original Message -
From: "Vladimir Blagojevic" <[EMAIL PROTECTED]>
To: "JBoss User" <[EMAIL PROTECTED]>
Sent: Monday, April 30, 2001 2:01 PM
Subject: Re: [JBoss-user] java.io.FilePermission on jboss tmp dir?


> Hey,
>
> >permission java.net.SocketPermission "192.168.1.100:*",
> > "connect,resolve";
> >
>
> Consult this: http://www.jboss.org/documentation/HTML/ch10s03.html
> try with "192.168.1.100:1024-", meaning all ports higher than 1024, I
> think you have actual port syntax in javadocs...
>
> > Is there a better way of allocating this permission rather than opening
up
> > all ports?  I started with just 1099, but then immediately hit the
> > restriction on the port created for communication.
> >
> > But my current sticking point is the next error I hit:
> >
> > Exception caught: java.security.AccessControlException: access denied
> > (java.io.FilePermission
\H:\JBoss-2.2.1\tmp\deploy\Default\DbTester.jar\-
> > read)
> >
> > I tried to resolve this with the following:
> >
> >permission java.io.FilePermission
> > "\H:\JBoss-2.2.1\tmp\deploy\Default\DbTester.jar\-", "read";
> >
> > but got the same error again.  Two questions:
> >
> > (1) Why doesn't the above permission address the error?
> > (2) I don't understand the required permission.  Why is it asking for
read
> > permission on a JBoss temp directory for the client?  Notice that it has
a
> > drive letter. This will be completely irrelevant when the client is run
from
> > another computer (which I tried - it does indeed still ask for \H:\.)  I
> > haven't implemented any method security in the bean or any logon
> > requirements.
> What do you mean client? JVM executing JBoss instance needs to read your
> filesystems?  Do you allow it or not, there is no client in this story...
>
> Try using substitutions -  ${jboss.home}\tmp for cross platform
> independence. See java.policy and java.security files in your jdk distro.
>
>
> HTH,
> Vlada
> >
> > Everything works if I have the blanket all permissions.
> >
> >
> >
> >
> > ___
> > 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] Home and remote classes for EJB to EJB call

2001-04-30 Thread Guy Rouillier

I deploy in 10 different jars because different groups are developing
different components.  Life is easier if we let each group maintain
independent jars.  I tried the ejb-link tag in ejb-ref, but it said it could
not find the referenced jar in the application.  From this I'm inferring
that it wants everything in a single ear file.  Is that correct?  If not,
could someone give me a working example.  Here is what I currently have when
ejb DbRelay invokes ejb DbTester (does not work):

ejb-jar.xml of DbRelay:
 
ejb/guyr/DbTester
Session
guyr.DbTester
guyr.DbTesterHome
guyr.DbTester
 

jboss.xml of DbRelay
  guyr.DbRelay
  guyr/DbRelay
  
 ejb/guyr/DbTester
 guyr/DbTester
  

The call in DbRelay:

 DbTesterHome home = (DbTesterHome) new
InitialContext().lookup("java:comp/env/ejb/guyr/DbTester");


- Original Message -
From: "Schouten, Andreas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 30, 2001 10:51 AM
Subject: RE: [JBoss-user] Home and remote classes for EJB to EJB call


> Wy do You deploy the 10 beans in 10 jars? If You deploy them all into one
> jar You can call all interfaces.
>
> If You need them in different jars, check out the  tag for
> ejb-jar and register the nessasary references to the container..
>
>
> > -Original Message-
> > From: Guy Rouillier [SMTP:[EMAIL PROTECTED]]
> > Sent: 30 April 2001 21:07
> > To: JBoss User
> > Subject: [JBoss-user] Home and remote classes for EJB to EJB call
> >
> > Following the discussion on this mail list, I tried my hand at getting
one
> > EJB to call another.  When the client invoked the first EJB, I got a
> > remote
> > exception because the first one could not locate the home and remote
> > interface for the second.  So I modified the jar for the first EJB to
> > include the home and remote interface classes for the 2nd, and then
> > everything worked fine.
> >
> > Is there any way to get JBoss (or generic app server) to use the home
and
> > remote classes that are included in the jar for the first EJB?  This can
> > get
> > out of hand quickly if I have to include the home and remote interfaces
> > classes in every jar that invokes a particular EJB; if I have 10 EJBs
> > calling another EJB, I would need to have the home and remote interfaces
> > for
> > that last EJB in all 10 jars.  And the code is already running in the
same
> > instance of JBoss, although I realize to generalize this assumption
cannot
> > be made.  If not, can I leave the home and remote interface classes **
out
> > of ** the jar for the first EJB and put it into a JAR in the lib/ext
> > directory, so I only need to have one copy of the home and remote
> > interfaces
> > classes on a single instance of JBoss?  Or must the home and remote
> > interfaces be in the jar for the corresponding EJB?
> >
> >
> > ___
> > 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] principal=null problem

2001-04-30 Thread Khaled Aboudan




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


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

2001-04-30 Thread Rama Rao

Hi,
I am also willing to do whatever i can.
bye
Rama Rao
- Original Message -
From: Marc Antoine Garrigue <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 30, 2001 9:48 PM
Subject: Re: [JBoss-user] SUPPORT OF JBOSS --IMPORTANT-- PLEASE READ


> Un deuxieme newbie est partant aussi
>
> - Original Message -
> From: "Piyush Sheth" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, April 30, 2001 3:09 PM
> Subject: Re: [JBoss-user] SUPPORT OF JBOSS --IMPORTANT-- PLEASE READ
>
>
> > though am a newbie ... i am willing to do whatever i can.
> >
> >
> > Piyush.
> > - Original Message -
> > From: marc fleury <[EMAIL PROTECTED]>
> > To: Jboss-Business@Yahoogroups. Com <[EMAIL PROTECTED]>;
> > Jbosscmp@Kpi. Com. Au <[EMAIL PROTECTED]>; Jboss-Development@Lists.
> > Sourceforge. Net <[EMAIL PROTECTED]>;
> > Jboss-Docs@Yahoogroups. Com <[EMAIL PROTECTED]>;
> Jboss-User@Lists.
> > Sourceforge. Net <[EMAIL PROTECTED]>
> > Cc: Lawrence E. Rosen <[EMAIL PROTECTED]>; Fleury_D@Hotmail. Com
> > <[EMAIL PROTECTED]>; Jboss-Board@Egroups. Com
> <[EMAIL PROTECTED]>;
> > Support@Jbossgroup. Com <[EMAIL PROTECTED]>; Scott M Stark
> > <[EMAIL PROTECTED]>
> > Sent: Saturday, April 28, 2001 3:58 PM
> > Subject: [JBoss-user] SUPPORT OF JBOSS --IMPORTANT-- PLEASE READ
> >
> >
> > >
> > > Folks,
> > >
> > > We have found out that there is an exploding demand for support on
JBoss
> > > technologies.
> > >
> > > Would you be ready, *on behalf of JBoss Group (JBG)* to provide some
> > > support -- obviously on a retributed basis?
> > >
> > > At this point, this is not a final plan but simply a call for
> participants
> > > to identify available and willing talent.
> > >
> > > If we embark in that activity as JBG, we'll have to streamline and
> > > coordinate it.  Hence your answer is *very important* to get started.
> > >
> > > More on the subject in the near future if indeed resources prove
> > available.
> > >
> > > Regards
> > >
> > > _
> > > Marc Fleury, Ph.D
> > > [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
>
>
>

__
> ifrance.com, l'email gratuit le plus complet de l'Internet !
> vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
> http://www.ifrance.com/_reloc/email.emailif
>
>
>
> ___
> 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] MERANT SQL Server driver will not load....

2001-04-30 Thread Brad Harper
Title: 



I placed util.jar, base.jar and 
sqlserver.jar fiels into my jboss/lib/ext directory.
nothing special in run.bat...
From jboss.jcml
    
    
com.merant.datadirect.jdbc.sqlserver.SQLServerDriver 
        
org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl    
SQLServerPool    
jdbc:sqlserver://hdd-util:1433    
DatabaseName=ClinardWeb    
jboss    
special    
0    
10    
false    
120    
12    
false    
false    
true    
false    
false    
180    
1.0  

-Original Message-From: 
[EMAIL PROTECTED][mailto:[EMAIL PROTECTED]]On 
Behalf Of Micheal JSent: Monday, April 30, 2001 11:35 PMTo: [EMAIL PROTECTED]Subject: 
RE: [JBoss-user] MERANT SQL Server driver will not loadPost 
further info - config file entries, jbdc driver details 
etcMicheal-Original Message-From: 
[EMAIL PROTECTED][mailto:[EMAIL PROTECTED]]On 
Behalf Of Brad HarperSent: 01 May 2001 03:10To: 
[EMAIL PROTECTED]Subject: [JBoss-user] MERANT SQL Server 
driver will not loadI followed the How-to for setting up this 
driver and i still get[JDBC provider] Could not load 
driver:    
com.merant.datadirect.jdbc.sqlserver.SQLServerDriverAny 
suggestions?Brad Harperharper development & 
design704.258.7473 |  
[EMAIL PROTECTED]___JBoss-user 
mailing list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-user 



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

2001-04-30 Thread Jason Dillon

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

--jason


> I put classes12.zip in the ../lib/ext directory and added this entry
> to
> the jboss.conf file:
>
>  ARCHIVE="jboss.jar,classes12.zip,minerva-1_0b3.jar"
> CODEBASE="../../lib/ext/">
>  
>   VALUE="org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl">
> 


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



RE: [JBoss-user] MERANT SQL Server driver will not load....

2001-04-30 Thread Micheal J

Post further info - config file entries, jbdc driver details etc

Micheal

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Brad Harper
Sent: 01 May 2001 03:10
To: [EMAIL PROTECTED]
Subject: [JBoss-user] MERANT SQL Server driver will not load


I followed the How-to for setting up this driver and i still get
[JDBC provider] Could not load driver:
com.merant.datadirect.jdbc.sqlserver.SQLServerDriver

Any suggestions?

Brad Harper
harper development & design
704.258.7473 |  [EMAIL PROTECTED]


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



Re: [JBoss-user] java.io.FilePermission on jboss tmp dir?

2001-04-30 Thread Scott M Stark

A permission entry like:
  permission java.io.FilePermission 
"\H:\JBoss-2.2.1\tmp\deploy\Default\DbTester.jar\-", "read";
will not work because the policy file parser needs to see a \\ for each \ in a path 
string.
It is better to use the ${jboss.home} and ${/} properties in the path specification as
Vlada indicated to create platform/installation independent policy files.

The jboss.home property is automatically generated if it is not specified so that
you can write policy files without knowing what the deployment environment
looks like.

To determine all of the permissions that are required by a given configuration
its trivial to write a subclass of SecurityManager that simply logs what
permissions are being requested. Here is one I use:

public class TracingSecurityManager extends SecurityManager
{
private static boolean showStackTrace;
private static PrintWriter traceLog = new PrintWriter(new 
OutputStreamWriter(System.out));

public static boolean getShowStackTrace()
{
return showStackTrace;
}
public static void setShowStackTrace(boolean showStackTrace)
{
TracingSecurityManager.showStackTrace = showStackTrace;
}
public static PrintWriter getTraceLog()
{
return traceLog;
}
public static void setTraceLog(PrintWriter traceLog)
{
TracingSecurityManager.traceLog = traceLog;
}

public void checkPermission(Permission perm)
{
traceLog.println("Need: "+perm);
if( showStackTrace )
{
SecurityException trace = new SecurityException();
trace.printStackTrace(traceLog);
}
}

}


- Original Message - 
From: "Vladimir Blagojevic" <[EMAIL PROTECTED]>
To: "Guy Rouillier" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, April 30, 2001 12:11 PM
Subject: Re: [JBoss-user] java.io.FilePermission on jboss tmp dir?


> Hey,
> 
> Ok so when you say
> 
> grant {
> 
> ...permissions...
> }
> 
> what you are saying is that this block of permissions is given to classes
> that come from location . Cool..
> 
> Since JVM running JBoss needs to read your application deployed in (/tmp/)
> it makes read write requests on your file system in /tmp.
> 
> There is no physical client involved here. Only jboss and application
> classes.
> 
> Ok , now try using this:
> 
> grant{
> 
> permission java.io.FilePermission "${jboss.home}${/}temp${/}-",
> "read,write"
> }
> 
> meaning all code being loaded from anywhere (including jBoss classes)can
> read write in /tmp and its subdirectories. You don't want to be specific
> about exact file here. I forgot if jboss.home was declared anywhere but
> you can pass it as an argument to jvm I guess.
> 
> HTH,
> Vlada
> 
> 
> 
> 
> 
> 
> So now try using
> 
> On Mon, 30 Apr 2001, Guy Rouillier wrote:
> 
> > The following is a repost of a message I sent out about a week ago that
> > received no responses.  We are getting close to release, so this issue is
> > important to us.  Is everyone just taking the easy way out and using grant {
> >  permission java.security.AllPermission;};?  Has no one actually figured out
> > the permissions that are required?
> >
> >
> > I'm developing on Windows 2000 with JBoss 2.2.1.
> >
> > As we are getting closer to shipping, I turned on security (more accurately,
> > I turned off my easy way out of simply granting all permissions to the
> > world.)  Using just a command-line client (i.e., no Tomcat), I first
> > received a java.net.SocketPermission which I resolved with the following:
> >
> >permission java.net.SocketPermission "192.168.1.100:*",
> > "connect,resolve";
> >
> > Is there a better way of allocating this permission rather than opening up
> > all ports?  I started with just 1099, but then immediately hit the
> > restriction on the port created for communication.
> >
> > But my current sticking point is the next error I hit:
> >
> > Exception caught: java.security.AccessControlException: access denied
> > (java.io.FilePermission \H:\JBoss-2.2.1\tmp\deploy\Default\DbTester.jar\-
> > read)
> >
> > I tried to resolve this with the following:
> >
> >permission java.io.FilePermission
> > "\H:\JBoss-2.2.1\tmp\deploy\Default\DbTester.jar\-", "read";
> >
> > but got the same error again.  Two questions:
> >
> > (1) Why doesn't the above permission address the error?
> > (2) I don't understand the required permission.  Why is it asking for read
> > permission on a JBoss temp directory for the client?  Notice that it has a
> > drive letter. This will be completely irrelevant when the client is run from
> > another computer (which I tried - it does indeed still ask for \H:\.)  I
> > haven't implemented any method security in the bean or any logon
> > requirements.
> >
> > Everything works if I have the blanket all permissions.
> >



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



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

2001-04-30 Thread Daniel Fleury

Marc,
Quid du taux de reponses a ce message ??
Ce soir, on a touche notre complement de famille/amis et maintenant, nous avons une full house.( Nene + Cuqui, Javier + Mari Clara, Yvan + Chantal, nos amis belges).
Comment va ton trianing chez les rosbifs?. Meme si tu es tres occupe, please send a couple of words.
Elvira et Nathy vont splendidement bien.
Te queremos,
Dad

>From: "marc fleury" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED] 
>To: "Jboss-Business@Yahoogroups. Com" <[EMAIL PROTECTED]>, "Jbosscmp@Kpi. Com. Au" <[EMAIL PROTECTED]>, "Jboss-Development@Lists. Sourceforge. Net" <[EMAIL PROTECTED]>, "Jboss-Docs@Yahoogroups. Com" <[EMAIL PROTECTED]>, "Jboss-User@Lists. Sourceforge. Net" <[EMAIL PROTECTED]>
>CC: "Lawrence E. Rosen" <[EMAIL PROTECTED]>, "Fleury_D@Hotmail. Com" <[EMAIL PROTECTED]>, "Jboss-Board@Egroups. Com" <[EMAIL PROTECTED]>, "Support@Jbossgroup. Com" <[EMAIL PROTECTED]>, "Scott M Stark" <[EMAIL PROTECTED]>
>Subject: [JBoss-user] SUPPORT OF JBOSS --IMPORTANT-- PLEASE READ 
>Date: Sat, 28 Apr 2001 15:58:02 -0400 
> 
> 
>Folks, 
> 
>We have found out that there is an exploding demand for support on JBoss 
>technologies. 
> 
>Would you be ready, *on behalf of JBoss Group (JBG)* to provide some 
>support -- obviously on a retributed basis? 
> 
>At this point, this is not a final plan but simply a call for participants 
>to identify available and willing talent. 
> 
>If we embark in that activity as JBG, we'll have to streamline and 
>coordinate it. Hence your answer is *very important* to get started. 
> 
>More on the subject in the near future if indeed resources prove available. 
> 
>Regards 
> 
>_ 
>Marc Fleury, Ph.D 
>[EMAIL PROTECTED] 
>_ 
> 
> 
>___ 
>JBoss-user mailing list 
>[EMAIL PROTECTED] 
>http://lists.sourceforge.net/lists/listinfo/jboss-user 
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

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


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

2001-04-30 Thread Charles Miller

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The reordering of the jar files may help uncover a solution.  

I am almost certain that the classes in jar files are loaded in a
sequential order.  If there are two classes with identical
package/name, the class which is encountered first, will be used
within the current execution environment.  This can cause cross jar
file dependency problems. The "No such constructor" seems to provide
evidence of package/class version dependency issues. 

?? ;) -- does this make sense?

- -Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Micky I.
Mimo
Sent: Monday, April 30, 2001 3:41 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Does anyone know what this error means?


I put classes12.zip in the ../lib/ext directory and added this entry
to
the jboss.conf file:


 
  


I suspect that my problem is with this configuration setting. Does
anything look wrong with the above configuration?


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

 



- -Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of danch
Sent: Monday, April 30, 2001 2:57 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Does anyone know what this error means?


The only thing run.sh puts on the classpath is the crimson.jar 
Everything else gets loaded by being included in ClassPathExtension
MBeans in jboss.conf. jboss/lib/ext is one of the directories where
all
jars are included in the 'classpath' for JBoss

"Micky I. Mimo" wrote:
> 
> I tried this but am still getting the same error. Does anyone have
> an example of a run.sh file I can view to compare with my
> classpaths for trying to get the classes12.zip working?
> 
> Michael Mimo
> Systems Specialist
> Voice: 781-457-1317
> [EMAIL PROTECTED]
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of danch
> Sent: Saturday, April 28, 2001 2:03 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Does anyone know what this error means?
> 
> Or throw it in jboss' lib/ext directory.
> 
> Anuj Agrawal wrote:
> 
> > In addition to Guy's suggestion, you might also want to create an
MLET
> in the
> > jboss.conf file reflecting the classes12.zip
> >
> > Anuj.
> >
> 
> ___
> 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
Confidential e-mail for addressee only.  Access to this e-mail by
anyone
else is unauthorized.
If you have received this message in error, please notify the sender
immediately by reply e-mail 
and destroy the original communication.


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

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

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.5.8 for non-commercial use 

iQA/AwUBOu4q2V+qycpxUkQNEQKfZQCfUaBHbuoMEtrjyZTUN+AMvXEnn0cAoJ6r
ZbNbOWO85V0P8tzkaxXhb+pJ
=wdmv
-END PGP SIGNATURE-


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



Re: [JBoss-user] Running the interest sample as a Servlet does not work

2001-04-30 Thread Scott M Stark

The #1 cause of this problem is not configuring tomcat correctly.
Try using the binary bundle that include a correctly configured
embeded tomcat: http://prdownloads.sourceforge.net/jboss/JBoss-2.2.1_Tomcat-3.2.1.zip

- Original Message - 
From: "Carlos Granados" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 30, 2001 7:28 PM
Subject: [JBoss-user] Running the interest sample as a Servlet does not work


> Hi!
> I have been playing with JBoss for a couple of weeks, I installed and
> configured JBoss+Tomcat and installed, built and run the Interest sample and
> everything went OK. So I tried to run the Interest EJB from a servlet client
> instead of a standalone client and got into trouble. I have looked into the
> list archives and it seems that a number of people are having the same
> problem. Many ideas have been floated around but I have not seen a final
> solution, so I would like to provide as much information as possible to see
> if someone can look into this. So:
> 



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



[JBoss-user] Running the interest sample as a Servlet does not work

2001-04-30 Thread Carlos Granados

Hi!
I have been playing with JBoss for a couple of weeks, I installed and
configured JBoss+Tomcat and installed, built and run the Interest sample and
everything went OK. So I tried to run the Interest EJB from a servlet client
instead of a standalone client and got into trouble. I have looked into the
list archives and it seems that a number of people are having the same
problem. Many ideas have been floated around but I have not seen a final
solution, so I would like to provide as much information as possible to see
if someone can look into this. So:

a) The EJB is properly deployed since you can run it without problems from a
standalone client. The client looks up the EJB using JDNI, finds it and runs
it without problem. The EJB outputs a message on the JBoss console to
confirm that it has been run. The Jboss.xml correctly lists the appropiate
JNDI name which is "interest/Interest" and the JBoss log correctly shows
this EJB being deployed under this name

b) I transformed the code of the sample client into a servlet. Here is what
my code looks like:


import java.io.*;

import javax.servlet.*;
import javax.servlet.http.*;

import java.util.Properties;
import javax.rmi.PortableRemoteObject;
import javax.naming.*;

import com.web_tomorrow.interest.*;

public class InterestClient extends HttpServlet {

  public void doGet (HttpServletRequest request,
 HttpServletResponse response)
throws ServletException, IOException {

PrintWriter out;
String title = "Servlet interface to EJB";

response.setContentType("text/html");

out = response.getWriter();

out.println("");
out.println(title);
out.println("");
out.println("" + title + "");

Properties env = new Properties();
env.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
env.setProperty("java.naming.provider.url",  "localhost:1099");

try
{
   // Get a naming context
   InitialContext jndiContext = new InitialContext(env);
   out.println("Got context");

   // Get a reference to the Interest Bean
   Object ref  = jndiContext.lookup("interest/Interest");
   out.println("Got reference");

   // Get a reference from this to the Bean's Home interface
   InterestHome home = (InterestHome)
  PortableRemoteObject.narrow (ref, InterestHome.class);
   out.println("Got home");

   // Create an Interest object from the Home interface
   Interest interest = home.create();
   out.println("Create home");

   // call the calculateCompoundInterest() method to do the calculation
   out.println("Interest on 2000 units, at 10% per period, compounded
over 2 periods is:");
   out.println(interest.calculateCompoundInterest (2000, 0.10, 2));
}
catch(Exception e)
{
out.println(e.getMessage());
} finally {
out.println("");
out.close();
}
  }
}



I can build this servlet without problems and I can also run it, so it seems
properly deployed. But when I run it I get a NamingException, which is
generated by the lookup("interest/Interest") call. This is the same name
used in the standalone client, so it is not a question of using the wrong
JDNI name.

c) I recompiled the code of the jnp package to see if I could get more
information on what is going on. I found that when the method lookup is
called in the client in the NamingContext class, located in the
NamingContext.java file, a ClassNotFoundException is generated when the
lookup(Name name) method calls the lookup method of the remote server (line
355: Object res = naming.lookup(n);)

d) I also put some logging println lines in the lookout method of the
jnpserver (in file NamingServer.java) and I found that both in the case of
the standalone client and the servlet, the jnpserver is correctly called and
it finds the appropiate object. I put some println lines to display the name
being looked up and the object found and in both cases I got the same
information:
looking for interest/Interest
found java.rmi.MarshalledObject@53248168

e) So my hypothesis is that the naming server correctly finds the EJB, but
when it is sent back to the naming client, it is somehow corrupted or
something like that. This seems a RMI problem and I feel that I have run
into something too complicated for me, so this is the point to ask for help
:-)

g) My configuration: I am running JBoss-2.2 with EmbeddedTomcat 3.2.1 in a
windows 2000 enviroment with JDK13

Thanks in advance for your help!

Carlos



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



Re: [JBoss-user] JBossCX connection pooling

2001-04-30 Thread Toby Allsopp

Michael Lu wrote:

> Hi all,
> 
> I'm trying to implement the connection pooling under JBossCX, but whatever I do in:
>  public ManagedConnection   matchManagedConnections(Set connectionSet,
> Subject subject,
> ConnectionRequestInfo info) 
> 
> every time I make a getConnection call in client code, I always got a new physical 
>connection setup(ManagedConnection), how should I do to make JBossCX return an exist 
>connection? 
> In getConnection() of ManagedConnection, I allow connection shareing.

This is handled by the connection manager, so we need to know which 
connection manager you're using.  Please include the 
ConnectionFactoryLoader mbean entry from your jboss.xml.

Toby.


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



[JBoss-user] Obtaining UserTransaction from within servlet

2001-04-30 Thread Ed Swierk

I need to start a transaction from within a servlet, make one or more calls
to entity beans, and then commit the transaction.  However I can't seem to
find a way to obtain a UserTransaction object using the normal JNDI name,
"java:comp/UserTransaction".

Browsing the namespace with JNDIView shows that UserTransaction objects are
registered within the namespace of session beans, but are not registered
globally.

Should I try a different JNDI name, or is there another way to get a
UserTransaction from JBoss?

Thanks,
--Ed


=
-- 
Ed Swierk
[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



Re: [JBoss-user] CMP + BLOB + ORACLE

2001-04-30 Thread Peter Routtier-Wone

You may find this helpful.
http://wamoz.com/JDBC_and_Oracle_LOB.asp



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



[JBoss-user] MERANT SQL Server driver will not load....

2001-04-30 Thread Brad Harper



I followed the 
How-to for setting up this driver and i still get
[JDBC 
provider] Could not load driver:    
com.merant.datadirect.jdbc.sqlserver.SQLServerDriverAny 
suggestions?
 
Brad 
Harper
harper development & design
704.258.7473 |  
[EMAIL PROTECTED]
 


[JBoss-user] Problem with MySQL driver

2001-04-30 Thread P H


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

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


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

I'm using:

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

What to do?

Thanks.

jboss.jcml:


 org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,g.gjt.mm.mysql.Driver
  
.
.
.
.
  
MySqlDS
org.opentools.minerva.jdbc.xa.wrapper.XADataSourcmpl

jdbc:mysql://localhost/pht:3306
120
mysql
10
mysql
false
false
false
true
12
180
false
false
1.0
0
  




__
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] JBossCX connection pooling

2001-04-30 Thread Michael Lu

Hi all,

I'm trying to implement the connection pooling under JBossCX, but whatever I do in:
 public ManagedConnection   matchManagedConnections(Set connectionSet,
Subject subject,
ConnectionRequestInfo info) 

every time I make a getConnection call in client code, I always got a new physical 
connection setup(ManagedConnection), how should I do to make JBossCX return an exist 
connection? 
In getConnection() of ManagedConnection, I allow connection shareing.  

Thanks.
 

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


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

2001-04-30 Thread Micky I. Mimo

I have done this and am now getting this error when I startup Jboss. 

java.lang.NoSuchMethodException: No such constructor
at
com.sun.management.jmx.MBeanServerImpl.internal_instantiate(MBeanServerI
mpl.java:2207)
at
com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:
761)
at javax.management.loading.MLet.getMBeansFromURL(MLet.java:540)
at javax.management.loading.MLet.getMBeansFromURL(MLet.java:369)
at org.jboss.Main.(Main.java:173)
at org.jboss.Main$1.run(Main.java:107)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.Main.main(Main.java:103)

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

 



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


Try:


  
  


"Micky I. Mimo" wrote:

> I put classes12.zip in the ../lib/ext directory and added this entry
to
> the jboss.conf file:
>
>  ARCHIVE="jboss.jar,classes12.zip,minerva-1_0b3.jar"
> CODEBASE="../../lib/ext/">
>  
>   VALUE="org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl">
> 
>
> I suspect that my problem is with this configuration setting. Does
> anything look wrong with the above configuration?


___
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] CMP + BLOB + ORACLE

2001-04-30 Thread Miranda Carlos
Title: RE: [JBoss-user] CMP + BLOB + ORACLE





do you have example code ? , Please send me .-



-Original Message-
From: Steven Haines [mailto:[EMAIL PROTECTED]]
Sent: Lunes, 30 de Abril de 2001 03:05 p.m.
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] CMP + BLOB + ORACLE



I ended up BMP-ing the field.. In a CMP bean I did not
reference the BLOB/CLOB field in ejb-jar.xml or
jaws.xml as a CMP field. Then I wrote persistence
logic in ejbLoad() and ejbStore() to persist the
fields (also I called ejbStore() in ejbPostCreate() to
save the field for a newly created record).. 


If you do this you can use standard JDBC to read and
write BLOBs (let me know if you need sample code)


Good luck!
Steve



--- Miranda Carlos <[EMAIL PROTECTED]> wrote:
> I have a problem with BLOB datatype in ORACLE8.
> I want read and write a String to BLOB , How ?
> 
> 
> Thanks
> 



__
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





R: [JBoss-user] Informix connection

2001-04-30 Thread Bordet, Simone

Hey Jenn,

> All,
> 
> I have Informix set up and working with jBoss2.2.  It would 
> be nice to see
> the website updated with this information as it took quite a 
> bit of trial
> and error to get everything tweaked and working.  Where 
> should I send the
> config information?

Please send a copy to jboss-docs, and maybe post a patch on the sourceforge
site also, it would be very appreciated.

Thanks,

Simon

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



Re: [JBoss-user] Deployment problem

2001-04-30 Thread Vinay Menon
Initial thoughts...   Do you have the correct Java Runtime and is the JRE accessible? rt.jar has this class in it.   Vinay   - Original Message - From: luis rodrigues Sent: Monday, April 30, 2001 11:09 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] Deployment problem Hello,Every time I try to deploy the sample EJB from the site I get this:[J2EE Deployer Default] install module interest.jar[Container factory]Deploying:file:/D:/AppServers/JBoss-2.2.1/tmp/deploy/Default/interest.jar[Verifier] Verifyingfile:/D:/AppServers/JBoss-2.2.1/tmp/deploy/Default/interest.jar/ejb1001.jar[Verifier] Interest: Verified.[Container factory] Deploying Interest[J2EE Deployer Default] Starting interest.jar failed![Auto deploy] java.lang.NoClassDefFoundError:java/lang/reflect/InvocationHandler[Auto deploy] atorg.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.importXml(JRMPContainerInvoker.java:512)Any Hints?Thanks for your time.Luis_Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.___JBoss-user mailing list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-user Get your FREE download of MSN Explorer at http://explorer.msn.com


[JBoss-user] Cloudscape and JBoss 2.3 BETA (Petstore issue)

2001-04-30 Thread Anatoly Akkerman


Hello, everybody!

It seems that I am having difficulties starting up JBoss 2.3 with
Cloudscape DataSources configured to use with Petstore. JBoss start-up
hangs after binding the first XA Connection pool to java:/EstoreDB

I did see a post to Jboss-user from somebody experiencing the same problem
but not solution was posted. Any ideas?

Anatoly Akkerman.


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



Re: [JBoss-user] Unsubscribe?

2001-04-30 Thread Vinay Menon
Won't the email address simply be the email address from which you are posting to this list?!!   Vinay   - Original Message - From: Chris Winters Sent: Monday, April 30, 2001 10:45 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Unsubscribe? * Jay Craig ([EMAIL PROTECTED]) [010430 17:13]:> The problem is that you need your password to unsubscribe. If you've> trashed it by accident, ther's no way out.Actually, if you go to the URL specified in the headers you'll seethat there's a handy password reminder form -- as long as you knowwhat email you're subscribed under, you can get your password emailedto you. (Even if you don't, it does a check when you type in youraddress to ensure that it's actually subscribed.)Chris___JBoss-user mailing list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-user Get your FREE download of MSN Explorer at http://explorer.msn.com


[JBoss-user] Deployment problem

2001-04-30 Thread luis rodrigues


Hello,
Every time I try to deploy the sample EJB from the site I get this:

[J2EE Deployer Default] install module interest.jar
[Container factory] 
Deploying:file:/D:/AppServers/JBoss-2.2.1/tmp/deploy/Default/interest.jar
[Verifier] Verifying 
file:/D:/AppServers/JBoss-2.2.1/tmp/deploy/Default/interest.jar/ejb1001.jar
[Verifier] Interest: Verified.
[Container factory] Deploying Interest
[J2EE Deployer Default] Starting interest.jar failed!
[Auto deploy] java.lang.NoClassDefFoundError: 
java/lang/reflect/InvocationHandler
[Auto deploy]   at 
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.importXml(JRMPContainerInvoker.java:512)

Any Hints?
Thanks for your time.
Luis
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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



Re: [JBoss-user] Unsubscribe?

2001-04-30 Thread Chris Winters

* Jay Craig ([EMAIL PROTECTED]) [010430 17:13]:
> The problem is that you need your password to unsubscribe. If you've
> trashed it by accident, ther's no way out.

Actually, if you go to the URL specified in the headers you'll see
that there's a handy password reminder form -- as long as you know
what email you're subscribed under, you can get your password emailed
to you. (Even if you don't, it does a check when you type in your
address to ensure that it's actually subscribed.)

Chris

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



RE: [JBoss-user] Unsubscribe?

2001-04-30 Thread Aleksandr Shneyderman

you can request it by pressing one of the buttons at sourceforge
site, the link to which you already have from the previous postings. 
They send it to your e-mail address.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jay Craig
> Sent: Monday, April 30, 2001 4:49 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Unsubscribe?
> 
> 
> The problem is that you need your password to unsubscribe. If you've
> trashed it by accident, ther's no way out.
> 
> >>> [EMAIL PROTECTED] 04/30/01 01:47PM >>>
> * Steve Swing ([EMAIL PROTECTED]) [010430 15:30]:
> > Unsubscribe?Go here:
> http://lists.sourceforge.net/lists/listinfo/jboss-user 
> > 
> > JBoss-user Subscribers section toward the bottom of the page (last
> form
> > field on the page).
> > 
> > From: White, Joshua
> > To: '[EMAIL PROTECTED]' 
> > Sent: Monday, April 30, 2001 2:08 pm
> > Subject: [JBoss-user] Unsubscribe?
> > 
> > 
> > Does anybody know how to unsubscribe?
> 
> (Didn't we go through this recently?)
> 
> Every email you get from any Sourceforge-managed list has the
> following headers (apologies for icky wrapping...):
> 
> =
> List-Help: 
> 
> List-Post:
> 
> List-Subscribe:
> , 
> 
> List-Id: The JBoss User main mailing list 
> 
> List-Unsubscribe:
> ,
> 
> List-Archive: 
> 
> =
> 
> 
> Neat-o -- self-documenting mailing list messages! :-)
> 
> Chris
> 
> ___
> 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] Unsubscribe?

2001-04-30 Thread Jay Craig

The problem is that you need your password to unsubscribe. If you've
trashed it by accident, ther's no way out.

>>> [EMAIL PROTECTED] 04/30/01 01:47PM >>>
* Steve Swing ([EMAIL PROTECTED]) [010430 15:30]:
> Unsubscribe?Go here:
http://lists.sourceforge.net/lists/listinfo/jboss-user 
> 
> JBoss-user Subscribers section toward the bottom of the page (last
form
> field on the page).
> 
> From: White, Joshua
> To: '[EMAIL PROTECTED]' 
> Sent: Monday, April 30, 2001 2:08 pm
> Subject: [JBoss-user] Unsubscribe?
> 
> 
> Does anybody know how to unsubscribe?

(Didn't we go through this recently?)

Every email you get from any Sourceforge-managed list has the
following headers (apologies for icky wrapping...):

=
List-Help: 

List-Post:

List-Subscribe:
, 

List-Id: The JBoss User main mailing list 

List-Unsubscribe:
,

List-Archive: 

=


Neat-o -- self-documenting mailing list messages! :-)

Chris

___
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] Does anyone know what this error means?

2001-04-30 Thread Anuj Agrawal

Try:


  
  


"Micky I. Mimo" wrote:

> I put classes12.zip in the ../lib/ext directory and added this entry to
> the jboss.conf file:
>
>  ARCHIVE="jboss.jar,classes12.zip,minerva-1_0b3.jar"
> CODEBASE="../../lib/ext/">
>  
>   VALUE="org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl">
> 
>
> I suspect that my problem is with this configuration setting. Does
> anything look wrong with the above configuration?


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



Re: [JBoss-user] java.io.FilePermission on jboss tmp dir?

2001-04-30 Thread Vladimir Blagojevic

Hey,

Ok so when you say

grant {

...permissions...
}

what you are saying is that this block of permissions is given to classes
that come from location . Cool..

Since JVM running JBoss needs to read your application deployed in (/tmp/)
it makes read write requests on your file system in /tmp.

There is no physical client involved here. Only jboss and application
classes.

Ok , now try using this:

grant{

permission java.io.FilePermission "${jboss.home}${/}temp${/}-",
"read,write"
}

meaning all code being loaded from anywhere (including jBoss classes)can
read write in /tmp and its subdirectories. You don't want to be specific
about exact file here. I forgot if jboss.home was declared anywhere but
you can pass it as an argument to jvm I guess.

HTH,
Vlada






So now try using

On Mon, 30 Apr 2001, Guy Rouillier wrote:

> The following is a repost of a message I sent out about a week ago that
> received no responses.  We are getting close to release, so this issue is
> important to us.  Is everyone just taking the easy way out and using grant {
>  permission java.security.AllPermission;};?  Has no one actually figured out
> the permissions that are required?
>
>
> I'm developing on Windows 2000 with JBoss 2.2.1.
>
> As we are getting closer to shipping, I turned on security (more accurately,
> I turned off my easy way out of simply granting all permissions to the
> world.)  Using just a command-line client (i.e., no Tomcat), I first
> received a java.net.SocketPermission which I resolved with the following:
>
>permission java.net.SocketPermission "192.168.1.100:*",
> "connect,resolve";
>
> Is there a better way of allocating this permission rather than opening up
> all ports?  I started with just 1099, but then immediately hit the
> restriction on the port created for communication.
>
> But my current sticking point is the next error I hit:
>
> Exception caught: java.security.AccessControlException: access denied
> (java.io.FilePermission \H:\JBoss-2.2.1\tmp\deploy\Default\DbTester.jar\-
> read)
>
> I tried to resolve this with the following:
>
>permission java.io.FilePermission
> "\H:\JBoss-2.2.1\tmp\deploy\Default\DbTester.jar\-", "read";
>
> but got the same error again.  Two questions:
>
> (1) Why doesn't the above permission address the error?
> (2) I don't understand the required permission.  Why is it asking for read
> permission on a JBoss temp directory for the client?  Notice that it has a
> drive letter. This will be completely irrelevant when the client is run from
> another computer (which I tried - it does indeed still ask for \H:\.)  I
> haven't implemented any method security in the bean or any logon
> requirements.
>
> Everything works if I have the blanket all permissions.
>
>
>
>
> ___
> 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] Supplying a Database Schema

2001-04-30 Thread Saccoccio, Jesse

I am using DB2 as my database and I have been trying to specify a different
schema then the one that is defaulted to by my login.  I don't see any where
that I am able to specify a different schema.  Any suggestions will help.

Thanks in advance,
-Jesse


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



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

2001-04-30 Thread Micky I. Mimo

I put classes12.zip in the ../lib/ext directory and added this entry to
the jboss.conf file:


 
  


I suspect that my problem is with this configuration setting. Does
anything look wrong with the above configuration?


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

 



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of danch
Sent: Monday, April 30, 2001 2:57 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Does anyone know what this error means?


The only thing run.sh puts on the classpath is the crimson.jar 
Everything else gets loaded by being included in ClassPathExtension
MBeans in jboss.conf. jboss/lib/ext is one of the directories where all
jars are included in the 'classpath' for JBoss

"Micky I. Mimo" wrote:
> 
> I tried this but am still getting the same error. Does anyone have an
> example of a run.sh file I can view to compare with my classpaths for
> trying to get the classes12.zip working?
> 
> Michael Mimo
> Systems Specialist
> Voice: 781-457-1317
> [EMAIL PROTECTED]
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of danch
> Sent: Saturday, April 28, 2001 2:03 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Does anyone know what this error means?
> 
> Or throw it in jboss' lib/ext directory.
> 
> Anuj Agrawal wrote:
> 
> > In addition to Guy's suggestion, you might also want to create an
MLET
> in the
> > jboss.conf file reflecting the classes12.zip
> >
> > Anuj.
> >
> 
> ___
> 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
Confidential e-mail for addressee only.  Access to this e-mail by anyone
else is unauthorized.
If you have received this message in error, please notify the sender
immediately by reply e-mail 
and destroy the original communication.


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

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



Re: [JBoss-user] Unsubscribe?

2001-04-30 Thread Chris Winters

* Steve Swing ([EMAIL PROTECTED]) [010430 15:30]:
> Unsubscribe?Go here: http://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> JBoss-user Subscribers section toward the bottom of the page (last form
> field on the page).
> 
> From: White, Joshua
> To: '[EMAIL PROTECTED]'
> Sent: Monday, April 30, 2001 2:08 pm
> Subject: [JBoss-user] Unsubscribe?
> 
> 
> Does anybody know how to unsubscribe?

(Didn't we go through this recently?)

Every email you get from any Sourceforge-managed list has the
following headers (apologies for icky wrapping...):

=
List-Help: 

List-Post:

List-Subscribe:
, 

List-Id: The JBoss User main mailing list 

List-Unsubscribe:
,

List-Archive: 

=


Neat-o -- self-documenting mailing list messages! :-)

Chris

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



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

2001-04-30 Thread Sean Kessler
Title: RE: [JBoss-user] Re: SUPPORT OF JBOSS --IMPORTANT-- PLEASE READ






   I'm also pretty new with the product, have successfully deployed
   several BMP's on small server using pooled SQLServer connections.
   I'll contribute whatever I can to support this fine product.


   -Sean Kessler




-Original Message-
From: Storhaug, Henning [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 30, 2001 3:14 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Re: SUPPORT OF JBOSS --IMPORTANT-- PLEASE READ



As a newbie - I'd be willing to help. That way I'd learn more about the
product.
Alas, I don't know what I could contribute with more than reading and
replying to the mail-list.


I can spare some time with this awesome product on a weekly basis :)


Regards,
Henning Storhaug



> > > Folks,
> > >
> > > We have found out that there is an exploding demand for
> support on JBoss
> > > technologies.
> > >
> > > Would you be ready, *on behalf of JBoss Group (JBG)* to provide some
> > > support -- obviously on a retributed basis?
> > >
> > > At this point, this is not a final plan but simply a call for
> participants
> > > to identify available and willing talent.
> > >
> > > If we embark in that activity as JBG, we'll have to streamline and
> > > coordinate it.  Hence your answer is *very important* to get started.
> > >
> > > More on the subject in the near future if indeed resources prove
> >available.
> > >
> > > Regards
> > >
> > > _
> > > Marc Fleury, Ph.D
> > > [EMAIL PROTECTED]
> > > _



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





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

2001-04-30 Thread Storhaug, Henning

As a newbie - I'd be willing to help. That way I'd learn more about the
product.
Alas, I don't know what I could contribute with more than reading and
replying to the mail-list.

I can spare some time with this awesome product on a weekly basis :)

Regards,
Henning Storhaug


> > > Folks,
> > >
> > > We have found out that there is an exploding demand for
> support on JBoss
> > > technologies.
> > >
> > > Would you be ready, *on behalf of JBoss Group (JBG)* to provide some
> > > support -- obviously on a retributed basis?
> > >
> > > At this point, this is not a final plan but simply a call for
> participants
> > > to identify available and willing talent.
> > >
> > > If we embark in that activity as JBG, we'll have to streamline and
> > > coordinate it.  Hence your answer is *very important* to get started.
> > >
> > > More on the subject in the near future if indeed resources prove
> >available.
> > >
> > > Regards
> > >
> > > _
> > > Marc Fleury, Ph.D
> > > [EMAIL PROTECTED]
> > > _


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



Re: [JBoss-user] Unsubscribe?

2001-04-30 Thread Steve Swing

Unsubscribe?Go here: http://lists.sourceforge.net/lists/listinfo/jboss-user

JBoss-user Subscribers section toward the bottom of the page (last form
field on the page).

- Original Message -
From: White, Joshua
To: '[EMAIL PROTECTED]'
Sent: Monday, April 30, 2001 2:08 pm
Subject: [JBoss-user] Unsubscribe?


Does anybody know how to unsubscribe?


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



Re: [JBoss-user] java.io.FilePermission on jboss tmp dir?

2001-04-30 Thread Vladimir Blagojevic

Hey,

>permission java.net.SocketPermission "192.168.1.100:*",
> "connect,resolve";
>

Consult this: http://www.jboss.org/documentation/HTML/ch10s03.html
try with "192.168.1.100:1024-", meaning all ports higher than 1024, I
think you have actual port syntax in javadocs...

> Is there a better way of allocating this permission rather than opening up
> all ports?  I started with just 1099, but then immediately hit the
> restriction on the port created for communication.
>
> But my current sticking point is the next error I hit:
>
> Exception caught: java.security.AccessControlException: access denied
> (java.io.FilePermission \H:\JBoss-2.2.1\tmp\deploy\Default\DbTester.jar\-
> read)
>
> I tried to resolve this with the following:
>
>permission java.io.FilePermission
> "\H:\JBoss-2.2.1\tmp\deploy\Default\DbTester.jar\-", "read";
>
> but got the same error again.  Two questions:
>
> (1) Why doesn't the above permission address the error?
> (2) I don't understand the required permission.  Why is it asking for read
> permission on a JBoss temp directory for the client?  Notice that it has a
> drive letter. This will be completely irrelevant when the client is run from
> another computer (which I tried - it does indeed still ask for \H:\.)  I
> haven't implemented any method security in the bean or any logon
> requirements.
What do you mean client? JVM executing JBoss instance needs to read your
filesystems?  Do you allow it or not, there is no client in this story...

Try using substitutions -  ${jboss.home}\tmp for cross platform
independence. See java.policy and java.security files in your jdk distro.


HTH,
Vlada
>
> Everything works if I have the blanket all permissions.
>
>
>
>
> ___
> 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] Does anyone know what this error means?

2001-04-30 Thread danch

The only thing run.sh puts on the classpath is the crimson.jar 
Everything else gets loaded by being included in ClassPathExtension
MBeans in jboss.conf. jboss/lib/ext is one of the directories where all
jars are included in the 'classpath' for JBoss

"Micky I. Mimo" wrote:
> 
> I tried this but am still getting the same error. Does anyone have an
> example of a run.sh file I can view to compare with my classpaths for
> trying to get the classes12.zip working?
> 
> Michael Mimo
> Systems Specialist
> Voice: 781-457-1317
> [EMAIL PROTECTED]
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of danch
> Sent: Saturday, April 28, 2001 2:03 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Does anyone know what this error means?
> 
> Or throw it in jboss' lib/ext directory.
> 
> Anuj Agrawal wrote:
> 
> > In addition to Guy's suggestion, you might also want to create an MLET
> in the
> > jboss.conf file reflecting the classes12.zip
> >
> > Anuj.
> >
> 
> ___
> 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
Confidential e-mail for addressee only.  Access to this e-mail by anyone else is 
unauthorized.
If you have received this message in error, please notify the sender immediately by 
reply e-mail 
and destroy the original communication.


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



[JBoss-user] java.io.FilePermission on jboss tmp dir?

2001-04-30 Thread Guy Rouillier

The following is a repost of a message I sent out about a week ago that
received no responses.  We are getting close to release, so this issue is
important to us.  Is everyone just taking the easy way out and using grant {
 permission java.security.AllPermission;};?  Has no one actually figured out
the permissions that are required?


I'm developing on Windows 2000 with JBoss 2.2.1.

As we are getting closer to shipping, I turned on security (more accurately,
I turned off my easy way out of simply granting all permissions to the
world.)  Using just a command-line client (i.e., no Tomcat), I first
received a java.net.SocketPermission which I resolved with the following:

   permission java.net.SocketPermission "192.168.1.100:*",
"connect,resolve";

Is there a better way of allocating this permission rather than opening up
all ports?  I started with just 1099, but then immediately hit the
restriction on the port created for communication.

But my current sticking point is the next error I hit:

Exception caught: java.security.AccessControlException: access denied
(java.io.FilePermission \H:\JBoss-2.2.1\tmp\deploy\Default\DbTester.jar\-
read)

I tried to resolve this with the following:

   permission java.io.FilePermission
"\H:\JBoss-2.2.1\tmp\deploy\Default\DbTester.jar\-", "read";

but got the same error again.  Two questions:

(1) Why doesn't the above permission address the error?
(2) I don't understand the required permission.  Why is it asking for read
permission on a JBoss temp directory for the client?  Notice that it has a
drive letter. This will be completely irrelevant when the client is run from
another computer (which I tried - it does indeed still ask for \H:\.)  I
haven't implemented any method security in the bean or any logon
requirements.

Everything works if I have the blanket all permissions.




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



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

2001-04-30 Thread Micky I. Mimo

I tried this but am still getting the same error. Does anyone have an
example of a run.sh file I can view to compare with my classpaths for
trying to get the classes12.zip working?

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

 



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of danch
Sent: Saturday, April 28, 2001 2:03 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Does anyone know what this error means?


Or throw it in jboss' lib/ext directory.

Anuj Agrawal wrote:

> In addition to Guy's suggestion, you might also want to create an MLET
in the
> jboss.conf file reflecting the classes12.zip
> 
> Anuj.
> 


___
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] Unsubscribe?

2001-04-30 Thread White, Joshua
Title: Unsubscribe?





Does anybody know how to unsubscribe?





Re: [JBoss-user] CMP + BLOB + ORACLE

2001-04-30 Thread Steven Haines

I ended up BMP-ing the field.. In a CMP bean I did not
reference the BLOB/CLOB field in ejb-jar.xml or
jaws.xml as a CMP field. Then I wrote persistence
logic in ejbLoad() and ejbStore() to persist the
fields (also I called ejbStore() in ejbPostCreate() to
save the field for a newly created record).. 

If you do this you can use standard JDBC to read and
write BLOBs (let me know if you need sample code)

Good luck!
Steve


--- Miranda Carlos <[EMAIL PROTECTED]> wrote:
> I have a problem with BLOB datatype in ORACLE8.
> I want read and write a String to BLOB , How ?
> 
> 
> Thanks
> 


__
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] CMP + BLOB + ORACLE

2001-04-30 Thread Miranda Carlos
Title: CMP + BLOB + ORACLE





I have a problem with BLOB datatype in ORACLE8.
I want read and write a String to BLOB , How ?



Thanks





RE: [JBoss-user] MBean access via JNDI - How to?

2001-04-30 Thread Coates, David

Marc,

Thanks for your reply.  This is great, I could use some help.

OK, if I understood correctly, your advice was...
...typing the interface for management and using the EJB
infrastructure to locate and talk to the object is THE OBVIOUS WAY TO DO IT.

Uhm, what does that mean exactly?  What is the interface for management and
what exactly do I have to do with it.  This probably makes sense to the more
initiated user, but this is my first time using JBoss.

Thanks a lot,
David Coates
The Boeing Company
Mission Support Data Systems, International Space Station


-Original Message-
From:   marc fleury [SMTP:[EMAIL PROTECTED]]
Sent:   Saturday, April 28, 2001 12:29 PM
To: [EMAIL PROTECTED]
Subject:RE: [JBoss-user] MBean access via JNDI - How to?

|My service starts up a stream of real-time telemetry data flowing from the
|Space Station.  When our ground engineers have a need to do some

That caught my eye... and then I realize that guys at Boeing are using JBoss
for real time analysis of data from the ISS???

NO WAY!

(way)

... man that is really pretty cool!  You bet I will answer, even from
Miami...

|analysis of
|on-orbit systems they will want to start up this data flow so that the data
|will be available all over the Boeing-NASA intranet for analysis.
|I want to
|provide a web interface for them to control the data flow service.  So that
|they can control where the data flows to, start it, stop it, redirect it,
|etc...
|
|Is this not an appropriate job for an EJB?  If there's a better way to do
|this I'd love to know about it.  Open to any input.

In fact it is the perfect role for an EJB.  Perfect.  Let me expand on this
statement.

Management: 3 tier, instrumentation, agent, connectors.  The instrument is
whatever you are managing (in your case the data flow service).  The agent
is the JMX server the MBeanServer.  Then there is the connector layer.
Let's focus on that layer.

For JSR77 we define the API of the agents we are managing (you can look at
the JMX stuff of JBoss for a lifecycle API for example).  The agent layer is
not standardized but at least in JBoss (and AFAIK weblogic) the agent will
be JMX.  Now the real question is the connector layer, how are the tools to
access the agents since JMX is not federated or remoted it is a purely local
construct.

The natural answer, that arose in the JSR77 scope is do it with EJBs (done
by myself and mad A :).  A had done the RMI Connector as one option but
typing the interface for management and using the EJB infrastructure to
locate and talk to the object is THE OBVIOUS WAY TO DO IT.  You don't have
to write any distribution code any registration code, you can use the
security code etc etc.  Finally for jsr77 I am toying with the ideas of
session vs entity.  Maybe there are a few things that you want persisted (a
history of the management exchange on that dataflow) and then the entity
framework can be interesting as you would plugin a "versioning" of it.
JBoss really really is built for that (a stripped down container conf will
be shipped for management with specific datastores etc etc)

In JSR77 we will probably name it in a special way admin/blabla whatever, so
that you can access the top node under a specific directory and navigate
from there.  You can do the same just give it the right EJB name and off you
go.

I personally don't think there is a better way, certainly not a simpler and
cleaner one.

|Thanks,
|David Coates
|The Boeing Company
|Mission Support Data Systems, International Space Station

Man I can't tell you how proud I am... I have this little pinch in my
heart... AW man! The ISS, PLEASE PLEASE PLEASE let us know how we can help
you... You go, girl!

marc

|
|
|-Original Message-
|From:  David Jencks [SMTP:[EMAIL PROTECTED]]
|Sent:  Thursday, April 26, 2001 9:01 PM
|To:[EMAIL PROTECTED]
|Subject:   Re: [JBoss-user] MBean access via JNDI - How to?
|
|Hi,
|Out of curiousity, what kind of thing does your mbean do? How is it
|appropriate for an ejb to be controlling it?
|
|Waiting for the expansion of my horizons,
|david jencks
|
|On 2001.04.26 15:23:21 -0400 "Coates, David" wrote:
|> I have a custom MBean that adds a service to my JBoss container.  Now I
|> want
|> to be able to control that MBean/service from an EJB.  For example send
|> it
|> start(), stop(), restart(), or getStatus() messages.  My basic goal is to
|> be
|> able to provide a web interface for my users so that they can monitor the
|> service that the MBean provides, as well as shut it down, restart it,
|> etc...
|>
|> I see that the documentation says that the best way to make an MBean
|> available to your EJBs is to make it available via JNDI.  What is the
|> best
|> way to do this?
|>
|> Obviously, I need the EJBs to interact with the original instance of my
|> MBean and not a copy of it recreated via serialization.  So is it
|> possible
|> to use javax.naming.Reference and just bind that to the JNDI tree, or do
|> I
|> h

RE: [JBoss-user] Informix connection

2001-04-30 Thread Aleksandr Shneyderman

Can you send one to me directly:
[EMAIL PROTECTED]

I have tried it for such a long time (I even lost my patience)
and still could not set up XA dirver to work. Also can you
specify what drivers you used, because I was able to connect
with minerva's driver but not with informix' XA drivers.

Thanks,
Alex.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jennifer
> Labit
> Sent: Monday, April 30, 2001 11:43 AM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Informix connection
>
>
> All,
>
> I have Informix set up and working with jBoss2.2.  It would be nice to see
> the website updated with this information as it took quite a bit of trial
> and error to get everything tweaked and working.  Where should I send the
> config information?
>
> Jenn
>
>
> ___
> 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] Home and remote classes for EJB to EJB call

2001-04-30 Thread Deadman, Hal

Won't he also need the ejb-ref entries for ejb to ejb lookups?

ejb-jar.xml-

ejb/OfficeEJB
Entity
com.tallan.odtos.ejb.office.OfficeEJBHome
com.tallan.odtos.ejb.office.OfficeEJB


jboss.xml-

ejb/OfficeEJB
ejb/OfficeEJB


> -Original Message-
> From: Schouten, Andreas [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 30, 2001 10:51 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] Home and remote classes for EJB to EJB call
> 
> 
> Wy do You deploy the 10 beans in 10 jars? If You deploy them 
> all into one
> jar You can call all interfaces.
> 
> If You need them in different jars, check out the 
>  tag for
> ejb-jar and register the nessasary references to the container.. 
>   
> 
> > -Original Message-
> > From:   Guy Rouillier [SMTP:[EMAIL PROTECTED]]
> > Sent:   30 April 2001 21:07
> > To: JBoss User
> > Subject:[JBoss-user] Home and remote classes for EJB to EJB call
> > 
> > Following the discussion on this mail list, I tried my hand 
> at getting one
> > EJB to call another.  When the client invoked the first EJB, I got a
> > remote
> > exception because the first one could not locate the home and remote
> > interface for the second.  So I modified the jar for the 
> first EJB to
> > include the home and remote interface classes for the 2nd, and then
> > everything worked fine.
> > 
> > Is there any way to get JBoss (or generic app server) to 
> use the home and
> > remote classes that are included in the jar for the first 
> EJB?  This can
> > get
> > out of hand quickly if I have to include the home and 
> remote interfaces
> > classes in every jar that invokes a particular EJB; if I 
> have 10 EJBs
> > calling another EJB, I would need to have the home and 
> remote interfaces
> > for
> > that last EJB in all 10 jars.  And the code is already 
> running in the same
> > instance of JBoss, although I realize to generalize this 
> assumption cannot
> > be made.  If not, can I leave the home and remote interface 
> classes ** out
> > of ** the jar for the first EJB and put it into a JAR in the lib/ext
> > directory, so I only need to have one copy of the home and remote
> > interfaces
> > classes on a single instance of JBoss?  Or must the home and remote
> > interfaces be in the jar for the corresponding EJB?
> > 
> > 
> > ___
> > 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] Slowing down the AutoDeployer

2001-04-30 Thread Åsmund Hjulstad

On Saturday 28 April 2001 02:13, you wrote:
> > Yes, edit the code and insert a delay.  I would suggest instead that you
> > build the jat file somewhere else and copy (or better yet, move) it into
> > place when it is done.
>
> I would suggest the latter...  adding a delay would be the wrong thing
> to do IMHO.

I have experienced similar problems. I use 'scp' to copy the jar's over the 
network. Every once in a while, the AutoDeployer starts reading the archive 
before everything is in place.

I understand the AutoDeployer uses modified date (from the file system) to 
determine whether a file has changed. If this date is set when the copy 
procedure starts to write to disk, as it appears to do (I'm running Linux, 
kernel 2.4.0/ReiserFS), there is a discomforting possibility for a race 
condition.

In my humble opinion, either the AutoDeployer, or ReiserFS is broken.

If this is something that the AutoDeployer should fix, a simple delay 
wouldn't guarantee anything, the network could be slow, just to mention one 
possible situation.

One simple solution comes to mind:  If ZipException causes deployment to 
fail; wait; retry.   Repeat until OK, or a number of retries.

I have never done any patches to the source-code before, so unless someone 
asks me, I won't give it a try


Åsmund Hjulstad



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



[JBoss-user] KAWA and JBoss

2001-04-30 Thread Bob Bartholomay



Hi all,
    While looking over the JBoss 
source I noticed a KAWA (a java IDE with EJB support recently bought out by 
Allaire) project file and easily had all the JBoss source in the Kawa IDE to 
study. great.
    As those of you that use KAWA 
for EJB stuff know, there is built in support for weblogic, J2EE-ri and Jrun as 
EJB servers that you can start from within the IDE. There are ini files in the 
Kawa directory tree that hold the various configuration options for each of 
these servers.
 
My Question:
    Can anyone point me towards any 
info or How-tos on how to get JBoss setup as one of these Kawa servers. I played 
with the config setup in Kawa with little success.
 
Any help appreciated in advance.
 
bob
 


Re: R: [JBoss-user] LOCKING-WAITING - what does it mean? / Transactio ns

2001-04-30 Thread Belou

I've got the old one (2.0)
I don't know if there were changes..
So tell me

- Original Message -
From: "Gerardo Macari" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 30, 2001 4:23 PM
Subject: RE: R: [JBoss-user] LOCKING-WAITING - what does it mean? /
Transactio ns


> Anybody got a local copy of jboss tutorial that they
> could send me:
>
> [EMAIL PROTECTED]
>
> cheers,
>
> Gerardo
>
> -Original Message-
> From: Raffael Herzog [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 30, 2001 3:59 PM
> To: [EMAIL PROTECTED]
> Subject: Re: R: [JBoss-user] LOCKING-WAITING - what does it mean? /
> Transactio ns
>
>
> "Bordet, Simone" <[EMAIL PROTECTED]> wrote:
>
> > > The background: When someone accesses the site, the first thing to
> > > be done is to determine the language. There are two lists and one
> > > set to do this: The list of languages the user would like t have,
> > > the list of languages that are registered in the server and a set
> > > of available languages. So each request leads to a findAll() on
> > > the Language bean. If someone accesses the site the first time,
> > > this means 17 requests (two frames and 15 images), all of which
> > > kick off a findAll().
> > >
> > > To make it more simple (this is on the top of my TODO list), I
> > > just declared the transaction policy for *all* methods as
> > > "Required". Is this the reason for these LOCKING-WAITING messages?
> >
> > The reason is that since you are accessing the same bean from 2
> > different transaction context (ie normally 2 different clients), the
> > calls are serialized (ie one goes on, the other waits until the
> > first finishes). When calls are serialized, you get the
> > LOCKING-WAITING message, but this is normal.
>
> Yup, I thought it was... just wanted to be sure.
>
>
> > Probably the best thing you can do is to add a public boolean
> > isModified() method to your beans.  JBoss checks the return value of
> > this method and if false, skips unnecessary DB accesses. The
> > performance gain can be huge, on this list has been reported to be
> > up to 30 times (but of course depends on the cases). All the above
> > works if commit option A is used, which is the JBoss default.
>
> WOW! The performance gain is just amazing! 15 images get loaded and
> transferred in less than a second, if the beans are still cached, in
> about 2-3 secs if not. Now I'll just have to optimize the caching
> parameters...
>
> Thanks!
>
>
> --
> (o_   Raffael Herzog
> //\  [EMAIL PROTECTED]
> V_/_   http://www.raffael.ch
> May the penguin be with you!
>
> ___
> 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

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif



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



[JBoss-user] Informix connection

2001-04-30 Thread Jennifer Labit

All,

I have Informix set up and working with jBoss2.2.  It would be nice to see
the website updated with this information as it took quite a bit of trial
and error to get everything tweaked and working.  Where should I send the
config information?

Jenn


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



RE: R: [JBoss-user] LOCKING-WAITING - what does it mean? / Transactio ns

2001-04-30 Thread Gerardo Macari

Anybody got a local copy of jboss tutorial that they 
could send me:

[EMAIL PROTECTED]

cheers,

Gerardo

-Original Message-
From: Raffael Herzog [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 30, 2001 3:59 PM
To: [EMAIL PROTECTED]
Subject: Re: R: [JBoss-user] LOCKING-WAITING - what does it mean? /
Transactio ns


"Bordet, Simone" <[EMAIL PROTECTED]> wrote:

> > The background: When someone accesses the site, the first thing to
> > be done is to determine the language. There are two lists and one
> > set to do this: The list of languages the user would like t have,
> > the list of languages that are registered in the server and a set
> > of available languages. So each request leads to a findAll() on
> > the Language bean. If someone accesses the site the first time,
> > this means 17 requests (two frames and 15 images), all of which
> > kick off a findAll().
> > 
> > To make it more simple (this is on the top of my TODO list), I
> > just declared the transaction policy for *all* methods as
> > "Required". Is this the reason for these LOCKING-WAITING messages?
> 
> The reason is that since you are accessing the same bean from 2
> different transaction context (ie normally 2 different clients), the
> calls are serialized (ie one goes on, the other waits until the
> first finishes). When calls are serialized, you get the
> LOCKING-WAITING message, but this is normal.

Yup, I thought it was... just wanted to be sure.


> Probably the best thing you can do is to add a public boolean
> isModified() method to your beans.  JBoss checks the return value of
> this method and if false, skips unnecessary DB accesses. The
> performance gain can be huge, on this list has been reported to be
> up to 30 times (but of course depends on the cases). All the above
> works if commit option A is used, which is the JBoss default.

WOW! The performance gain is just amazing! 15 images get loaded and
transferred in less than a second, if the beans are still cached, in
about 2-3 secs if not. Now I'll just have to optimize the caching
parameters...

Thanks!


-- 
(o_   Raffael Herzog
//\  [EMAIL PROTECTED]
V_/_   http://www.raffael.ch
May the penguin be with you!

___
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] SUPPORT OF JBOSS --IMPORTANT-- PLEASE READ

2001-04-30 Thread Todd Chaffee

I would be willing to provide support.  I'm pretty new to jboss but was 
able to get the petstore example working with mysql and to get embedded 
tomcat working with virtual hosts and apache so I think I've solved some of 
the problems that come up quite often on the list.

- Todd Chaffee

At 10:09 AM 04/30/01 -0400, you wrote:
>though am a newbie ... i am willing to do whatever i can.
>
>
>Piyush.
>- Original Message -
>From: marc fleury <[EMAIL PROTECTED]>
>To: Jboss-Business@Yahoogroups. Com <[EMAIL PROTECTED]>;
>Jbosscmp@Kpi. Com. Au <[EMAIL PROTECTED]>; Jboss-Development@Lists.
>Sourceforge. Net <[EMAIL PROTECTED]>;
>Jboss-Docs@Yahoogroups. Com <[EMAIL PROTECTED]>; Jboss-User@Lists.
>Sourceforge. Net <[EMAIL PROTECTED]>
>Cc: Lawrence E. Rosen <[EMAIL PROTECTED]>; Fleury_D@Hotmail. Com
><[EMAIL PROTECTED]>; Jboss-Board@Egroups. Com <[EMAIL PROTECTED]>;
>Support@Jbossgroup. Com <[EMAIL PROTECTED]>; Scott M Stark
><[EMAIL PROTECTED]>
>Sent: Saturday, April 28, 2001 3:58 PM
>Subject: [JBoss-user] SUPPORT OF JBOSS --IMPORTANT-- PLEASE READ
>
>
> >
> > Folks,
> >
> > We have found out that there is an exploding demand for support on JBoss
> > technologies.
> >
> > Would you be ready, *on behalf of JBoss Group (JBG)* to provide some
> > support -- obviously on a retributed basis?
> >
> > At this point, this is not a final plan but simply a call for participants
> > to identify available and willing talent.
> >
> > If we embark in that activity as JBG, we'll have to streamline and
> > coordinate it.  Hence your answer is *very important* to get started.
> >
> > More on the subject in the near future if indeed resources prove
>available.
> >
> > Regards
> >
> > _
> > Marc Fleury, Ph.D
> > [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] SUPPORT OF JBOSS --IMPORTANT-- PLEASE READ

2001-04-30 Thread Marc Antoine Garrigue

Un deuxieme newbie est partant aussi

- Original Message -
From: "Piyush Sheth" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 30, 2001 3:09 PM
Subject: Re: [JBoss-user] SUPPORT OF JBOSS --IMPORTANT-- PLEASE READ


> though am a newbie ... i am willing to do whatever i can.
>
>
> Piyush.
> - Original Message -
> From: marc fleury <[EMAIL PROTECTED]>
> To: Jboss-Business@Yahoogroups. Com <[EMAIL PROTECTED]>;
> Jbosscmp@Kpi. Com. Au <[EMAIL PROTECTED]>; Jboss-Development@Lists.
> Sourceforge. Net <[EMAIL PROTECTED]>;
> Jboss-Docs@Yahoogroups. Com <[EMAIL PROTECTED]>;
Jboss-User@Lists.
> Sourceforge. Net <[EMAIL PROTECTED]>
> Cc: Lawrence E. Rosen <[EMAIL PROTECTED]>; Fleury_D@Hotmail. Com
> <[EMAIL PROTECTED]>; Jboss-Board@Egroups. Com
<[EMAIL PROTECTED]>;
> Support@Jbossgroup. Com <[EMAIL PROTECTED]>; Scott M Stark
> <[EMAIL PROTECTED]>
> Sent: Saturday, April 28, 2001 3:58 PM
> Subject: [JBoss-user] SUPPORT OF JBOSS --IMPORTANT-- PLEASE READ
>
>
> >
> > Folks,
> >
> > We have found out that there is an exploding demand for support on JBoss
> > technologies.
> >
> > Would you be ready, *on behalf of JBoss Group (JBG)* to provide some
> > support -- obviously on a retributed basis?
> >
> > At this point, this is not a final plan but simply a call for
participants
> > to identify available and willing talent.
> >
> > If we embark in that activity as JBG, we'll have to streamline and
> > coordinate it.  Hence your answer is *very important* to get started.
> >
> > More on the subject in the near future if indeed resources prove
> available.
> >
> > Regards
> >
> > _
> > Marc Fleury, Ph.D
> > [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

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif



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



Re: R: [JBoss-user] LOCKING-WAITING - what does it mean? / Transactio ns

2001-04-30 Thread Raffael Herzog

"Bordet, Simone" <[EMAIL PROTECTED]> wrote:

> > The background: When someone accesses the site, the first thing to
> > be done is to determine the language. There are two lists and one
> > set to do this: The list of languages the user would like t have,
> > the list of languages that are registered in the server and a set
> > of available languages. So each request leads to a findAll() on
> > the Language bean. If someone accesses the site the first time,
> > this means 17 requests (two frames and 15 images), all of which
> > kick off a findAll().
> > 
> > To make it more simple (this is on the top of my TODO list), I
> > just declared the transaction policy for *all* methods as
> > "Required". Is this the reason for these LOCKING-WAITING messages?
> 
> The reason is that since you are accessing the same bean from 2
> different transaction context (ie normally 2 different clients), the
> calls are serialized (ie one goes on, the other waits until the
> first finishes). When calls are serialized, you get the
> LOCKING-WAITING message, but this is normal.

Yup, I thought it was... just wanted to be sure.


> Probably the best thing you can do is to add a public boolean
> isModified() method to your beans.  JBoss checks the return value of
> this method and if false, skips unnecessary DB accesses. The
> performance gain can be huge, on this list has been reported to be
> up to 30 times (but of course depends on the cases). All the above
> works if commit option A is used, which is the JBoss default.

WOW! The performance gain is just amazing! 15 images get loaded and
transferred in less than a second, if the beans are still cached, in
about 2-3 secs if not. Now I'll just have to optimize the caching
parameters...

Thanks!


-- 
(o_   Raffael Herzog
//\  [EMAIL PROTECTED]
V_/_   http://www.raffael.ch
May the penguin be with you!

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



RE: [JBoss-user] Unrecognized jdbc-type: DATE

2001-04-30 Thread Doyle, Steven

I had the same problem don't specify the type mapping, the standardjaws.xml
has all of these already for MySQL i.e.

 
java.util.Date
DATE
DATETIME
 
 
java.sql.Date
DATE
DATETIME
 

ie you only override the following


  FlightDate
  Date



Steve Doyle

-Original Message-
From: Matt Brinkman [mailto:[EMAIL PROTECTED]]
Sent: 30 April 2001 15:19
To: '[EMAIL PROTECTED]'
Subject: [JBoss-user] Unrecognized jdbc-type: DATE


I know I can use OTHER as is, but I'd rather use a DATE type. Any help is
appreciated.

[JAWS] Loading standardjaws.xml :
file:/C:/jboss-2.1/conf/default/standardjaws.xml
[JAWS] file:/E:/dev/db/classes/META-INF/jaws.xml found. Overriding defaults
[Container factory] Unrecognized jdbc-type: Date, using Types.OTHER


...
   mySQLDS
   mySQL

   
  
 mySQL

  java.lang.Short
  INTEGER
  INTEGER
   
   
  java.lang.Long
  BIGINT
  BIGINT
   
   
  java.lang.Double
  DOUBLE
  DOUBLE
   
   
  java.lang.Boolean
  CHAR
  CHAR(5)
   
   
  java.lang.Character
  CHAR
  CHAR
   
   
  java.sql.TimeStamp
  TIMESTAMP
  TIMESTAMP
   
   
  java.lang.Byte
  TINYINT
  TINYINT
   
   
  java.lang.Object
  BLOB
  BLOB
   
   
  java.lang.Float
  FLOAT
  FLOAT
   
   
  java.lang.Integer
  INTEGER
  INTEGER
   
   
  java.lang.String
  VARCHAR
  VARCHAR(255)
   
   
  java.sql.Date 
  DATE
  DATE
   

 
   ...


___
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] Home and remote classes for EJB to EJB call

2001-04-30 Thread Schouten, Andreas

Wy do You deploy the 10 beans in 10 jars? If You deploy them all into one
jar You can call all interfaces.

If You need them in different jars, check out the  tag for
ejb-jar and register the nessasary references to the container.. 


> -Original Message-
> From: Guy Rouillier [SMTP:[EMAIL PROTECTED]]
> Sent: 30 April 2001 21:07
> To:   JBoss User
> Subject:  [JBoss-user] Home and remote classes for EJB to EJB call
> 
> Following the discussion on this mail list, I tried my hand at getting one
> EJB to call another.  When the client invoked the first EJB, I got a
> remote
> exception because the first one could not locate the home and remote
> interface for the second.  So I modified the jar for the first EJB to
> include the home and remote interface classes for the 2nd, and then
> everything worked fine.
> 
> Is there any way to get JBoss (or generic app server) to use the home and
> remote classes that are included in the jar for the first EJB?  This can
> get
> out of hand quickly if I have to include the home and remote interfaces
> classes in every jar that invokes a particular EJB; if I have 10 EJBs
> calling another EJB, I would need to have the home and remote interfaces
> for
> that last EJB in all 10 jars.  And the code is already running in the same
> instance of JBoss, although I realize to generalize this assumption cannot
> be made.  If not, can I leave the home and remote interface classes ** out
> of ** the jar for the first EJB and put it into a JAR in the lib/ext
> directory, so I only need to have one copy of the home and remote
> interfaces
> classes on a single instance of JBoss?  Or must the home and remote
> interfaces be in the jar for the corresponding EJB?
> 
> 
> ___
> 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] SUPPORT OF JBOSS --IMPORTANT-- PLEASE READ

2001-04-30 Thread Piyush Sheth

though am a newbie ... i am willing to do whatever i can.


Piyush.
- Original Message -
From: marc fleury <[EMAIL PROTECTED]>
To: Jboss-Business@Yahoogroups. Com <[EMAIL PROTECTED]>;
Jbosscmp@Kpi. Com. Au <[EMAIL PROTECTED]>; Jboss-Development@Lists.
Sourceforge. Net <[EMAIL PROTECTED]>;
Jboss-Docs@Yahoogroups. Com <[EMAIL PROTECTED]>; Jboss-User@Lists.
Sourceforge. Net <[EMAIL PROTECTED]>
Cc: Lawrence E. Rosen <[EMAIL PROTECTED]>; Fleury_D@Hotmail. Com
<[EMAIL PROTECTED]>; Jboss-Board@Egroups. Com <[EMAIL PROTECTED]>;
Support@Jbossgroup. Com <[EMAIL PROTECTED]>; Scott M Stark
<[EMAIL PROTECTED]>
Sent: Saturday, April 28, 2001 3:58 PM
Subject: [JBoss-user] SUPPORT OF JBOSS --IMPORTANT-- PLEASE READ


>
> Folks,
>
> We have found out that there is an exploding demand for support on JBoss
> technologies.
>
> Would you be ready, *on behalf of JBoss Group (JBG)* to provide some
> support -- obviously on a retributed basis?
>
> At this point, this is not a final plan but simply a call for participants
> to identify available and willing talent.
>
> If we embark in that activity as JBG, we'll have to streamline and
> coordinate it.  Hence your answer is *very important* to get started.
>
> More on the subject in the near future if indeed resources prove
available.
>
> Regards
>
> _
> Marc Fleury, Ph.D
> [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] Unrecognized jdbc-type: DATE

2001-04-30 Thread Matt Brinkman

I know I can use OTHER as is, but I'd rather use a DATE type. Any help is
appreciated.

[JAWS] Loading standardjaws.xml :
file:/C:/jboss-2.1/conf/default/standardjaws.xml
[JAWS] file:/E:/dev/db/classes/META-INF/jaws.xml found. Overriding defaults
[Container factory] Unrecognized jdbc-type: Date, using Types.OTHER


...
   mySQLDS
   mySQL

   
  
 mySQL

  java.lang.Short
  INTEGER
  INTEGER
   
   
  java.lang.Long
  BIGINT
  BIGINT
   
   
  java.lang.Double
  DOUBLE
  DOUBLE
   
   
  java.lang.Boolean
  CHAR
  CHAR(5)
   
   
  java.lang.Character
  CHAR
  CHAR
   
   
  java.sql.TimeStamp
  TIMESTAMP
  TIMESTAMP
   
   
  java.lang.Byte
  TINYINT
  TINYINT
   
   
  java.lang.Object
  BLOB
  BLOB
   
   
  java.lang.Float
  FLOAT
  FLOAT
   
   
  java.lang.Integer
  INTEGER
  INTEGER
   
   
  java.lang.String
  VARCHAR
  VARCHAR(255)
   
   
  java.sql.Date 
  DATE
  DATE
   

 
   ...


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



RE: [JBoss-user] Null pointer/Server exception when int column null in db

2001-04-30 Thread Schouten, Andreas

If it don't cause trouble in the business logic, I prefer to set the int
explicit '0' in ejbCreate, instead leaving it 'null'. 

> -Original Message-
> From: Jim Cheesman [SMTP:[EMAIL PROTECTED]]
> Sent: 30 April 2001 10:32
> To:   [EMAIL PROTECTED]
> Subject:  [JBoss-user] Null pointer/Server exception when int column
> null in db
> 
> I'm getting a NullPointerException (wrapped up in a 
> TransactionRolledbackException, in turn wrapped up in a
> ServerException...) 
> when I try to read a column with null data in an int field. Is there any 
> work around for this with a CMP entity bean, or is BMP the only way
> forward?
> 
> 
> 
> The db is DB2 over JDBC:ODBC, which I've finally managed to get working. 
> The data is legacy and cannot be changed...
> 
> 
> 
> Jim
> 
> --
> 
>*   Jim Cheesman   *
>  Trabajo: 
> [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
>Personal: 
> [EMAIL PROTECTED] (34) 606 770 244
> Prepositions are not words 
> to end sentences with.
> 
> 
> 
> ___
> 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 Performance Tests --- Comparision with Weblogic

2001-04-30 Thread danch



toby cabot wrote:
> 
> >> Does the JBoss optimized container invoker (or whatever it's
> >> called...) serialize arguments in order to preserve RMI semantics
> >> (i.e. pass-by-value) and short-circuit the RMI layer?
> >
> > Yes
> 
> I think that this is not correct.  I ran some tests with
> container-invoker-conf Optimized true and I got call-by-reference rather
> than call-by-value.
> 

Oops! you're right, I answered the question upside-down. That'll teach
me to wake up at 7:00 AM!

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


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



Re: [JBoss-user] JBoss Performance Tests --- Comparision with Weblogic

2001-04-30 Thread toby cabot


>> Does the JBoss optimized container invoker (or whatever it's
>> called...) serialize arguments in order to preserve RMI semantics
>> (i.e. pass-by-value) and short-circuit the RMI layer?
> 
> Yes

I think that this is not correct.  I ran some tests with
container-invoker-conf Optimized true and I got call-by-reference rather
than call-by-value.  



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



Re: [JBoss-user] Website down,

2001-04-30 Thread Marc Antoine Garrigue

Alors comme ca on part à londres et on laisse les miserables petits
étudiants jboss sans aucune ressource...
Bon WE sieur marc
MAG (un admirateur)

- Original Message -
From: "marc fleury" <[EMAIL PROTECTED]>
To: "Jboss-User@Lists. Sourceforge. Net" <[EMAIL PROTECTED]>
Cc: "Jboss-Development@Lists. Sourceforge. Net"
<[EMAIL PROTECTED]>
Sent: Monday, April 30, 2001 1:34 PM
Subject: [JBoss-user] Website down,


> There was some maintance done this weekend and it went awry.
>
> Juha and Myself are in London we'll see you soon :)
>
> marc
>
> _
> Marc Fleury, Ph.D
> [EMAIL PROTECTED]
> _
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif



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



R: [JBoss-user] LOCKING-WAITING - what does it mean? / Transactions

2001-04-30 Thread Bordet, Simone

Hey,

> I sometimes get LOCKING-WAITING messages when someone accesses my
> site. Everything works as expected, but these messages are still
> there.

Normal behavior, don't worry.

> The background: When someone accesses the site, the first thing to be
> done is to determine the language. There are two lists and one set to
> do this: The list of languages the user would like t have, the list of
> languages that are registered in the server and a set of available
> languages. So each request leads to a findAll() on the Language
> bean. If someone accesses the site the first time, this means 17
> requests (two frames and 15 images), all of which kick off a
> findAll().
> 
> To make it more simple (this is on the top of my TODO list), I just
> declared the transaction policy for *all* methods as "Required". Is
> this the reason for these LOCKING-WAITING messages?

The reason is that since you are accessing the same bean from 2 different
transaction context (ie normally 2 different clients), the calls are
serialized (ie one goes on, the other waits until the first finishes). When
calls are serialized, you get the LOCKING-WAITING message, but this is
normal.

> And while I'm at it: What's the performace gain to be expected if
> I set the transaction policy for read methods (find*, get*) to
> "NotSupported"?

Probably the best thing you can do is to add a 
public boolean isModified()
method to your beans. 
JBoss checks the return value of this method and if false, skips unnecessary
DB accesses. The performance gain can be huge, on this list has been
reported to be up to 30 times (but of course depends on the cases). All the
above works if commit option A is used, which is the JBoss default.

HTH,

Simon

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



[JBoss-user] Website down,

2001-04-30 Thread marc fleury

There was some maintance done this weekend and it went awry. 

Juha and Myself are in London we'll see you soon :)

marc

_
Marc Fleury, Ph.D 
[EMAIL PROTECTED]
_

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



[JBoss-user] principal based policy entry

2001-04-30 Thread Galina Gavrilo

I tried to define principal based permission in policy
file, e.g.:
grant codeBase "file:${tomcat.home}/webapps/examples"
Principal org.jboss.security.SimplePrincipal "admin" {
  permission java.util.PropertyPermission "*",
"read,write";
};

Server failed with parsing exception :
java.security.Policy: line 22: expected codeBase or
SignedBy

I am using jboss 2.2 and java 1.3.0

__
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



Re: [JBoss-user] Null pointer/Server exception when int column null in db

2001-04-30 Thread Maris Orbidans




> At 12:52 PM 4/30/2001, you wrote:
> >Hi,
> >one way to solve this is by changing the getXX() method in your EJBean
> >class for that field to:
> >
> >public int getXX(){
> >   if (XX == null)
> > XX = 0;
> >   return XX;
> >}
>
> Thanks, but... this won't work (or compile): you can't compare an int to
null.
>
> Any other ideas?

Use Integer instead of int !

Maris




> > >I'm getting a NullPointerException (wrapped up in a
> > >TransactionRolledbackException, in turn wrapped up in a
ServerException...)
> > >when I try to read a column with null data in an int field. Is there
any
> > >work around for this with a CMP entity bean, or is BMP the only way
forward?
> > >
> > >
> > >
> > >The db is DB2 over JDBC:ODBC, which I've finally managed to get
working.
> > >The data is legacy and cannot be changed...
> > >
> > >
> > >
> > >Jim
> > >
> > >--
> > >
> > >   *   Jim Cheesman   *
> > > Trabajo:
> > >[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
> > >   Personal:
> > >[EMAIL PROTECTED] (34) 606 770 244
> > >Prepositions are not words
> > >to end sentences with.
> > >
> > >
> > >
> > >___
> > >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
>
>
> --
>
>*   Jim Cheesman   *
>  Trabajo:
> [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
>Personal:
> [EMAIL PROTECTED] (34) 606 770 244
> Prepositions are not words
> to end sentences with.
>
>
>
> ___
> 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 Performance Tests --- Comparision with Weblogic

2001-04-30 Thread danch

Per Böckman wrote:

>> |I guess that Rama is talking about milliseconds... the JBoss TX
>> |and security
>> |layers adds lots of overhead. The argument (de)marshalling
>> and the actual
>> |transportation of a no-args call over the network layers
>> should typically
>> |not take more than 0.5 - 1.5 milliseconds to complete.
>> 
>> To see that run the tomcat test that ship with jboss-tomcat (under
>> http://localhost:8082/jboss)
>> 
> 
> 
> Thanks for the tip. However there's a small typo in the URL. It should read
> http://localhost:8080/jboss.
> 
> 
>> You will see 2 tests in JBoss one with optimizations on and
>> one without.
> 
> Ok.
> 
> 
>> Run these,  I would be VERY surprised if you ran the
>> optimized one above 0.1
>> milliseconds.  This is the time the ***container*** takes,
>> anything else is
>> something else (DB queries non optimized, serialization of
>> keys etc etc)
>> 
> 
> Optimized calls took approximately 0.1 msecs and non-optimized calls
> approximately 1 msecs (JBoss 2.2.1, SUN:s JVM 1.3). 0.1 msecs (if the tests
> are correct) for an in-VM call is still a long time compared to a "normal"
> in-VM method invocation.

True. Look at how many interceptors are required to provide the EJB 
services. Of these, the transaction interceptor is taking the most time 
right now (I believe).


> 
> Does the JBoss optimized container invoker (or whatever it's called...)
> serialize arguments in order to preserve RMI semantics (i.e. pass-by-value)
> and short-circuit the RMI layer?

Yes


> 
> If that's the case I guess that RMI doesn't have collocation detection
> intelligence otherwise the optimizion would not have been necessary. But of
> course I could be completely wrong on this one;-)

RMI does not do collocation detection.


> 
> Will the new Local interfaces introduced in the EJB 2.0 pfd improve things
> with its pass-by-reference semantics (except that Java does not supports
> "true" pass-by-reference as it lacks direct pointer/address manipulation)?

I haven't read the new pdf in detail yet, but I don't believe that local 
interfaces will have much of an advantage over JBoss' optimized calls, 
because there will still be the overhead of interception to provide 
security, transactions, non-reentrency, etc.


-danch


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



[JBoss-user] LOCKING-WAITING - what does it mean? / Transactions

2001-04-30 Thread Raffael Herzog

I sometimes get LOCKING-WAITING messages when someone accesses my
site. Everything works as expected, but these messages are still
there.

The background: When someone accesses the site, the first thing to be
done is to determine the language. There are two lists and one set to
do this: The list of languages the user would like t have, the list of
languages that are registered in the server and a set of available
languages. So each request leads to a findAll() on the Language
bean. If someone accesses the site the first time, this means 17
requests (two frames and 15 images), all of which kick off a
findAll().

To make it more simple (this is on the top of my TODO list), I just
declared the transaction policy for *all* methods as "Required". Is
this the reason for these LOCKING-WAITING messages?


And while I'm at it: What's the performace gain to be expected if
I set the transaction policy for read methods (find*, get*) to
"NotSupported"?


-- 
(o_   Raffael Herzog
//\  [EMAIL PROTECTED]
V_/_   http://www.raffael.ch
May the penguin be with you!

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



Re: SV: [JBoss-user] Null pointer/Server exception when int column null in db

2001-04-30 Thread Jim Cheesman

At 12:10 PM 4/30/2001, you wrote:
>Don't use int but instead Integer as entity attribute. Pain in the ass but 
>that's life sometimes... :-)


Thanks - still, slow day today, so I suppose changing it won't hurt too much...

Jim


>/L
>
>- Original Message -
>From: Jim Cheesman <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, April 30, 2001 11:41 AM
>Subject: Re: [JBoss-user] Null pointer/Server exception when int column 
>null in db
>
>
> > At 12:52 PM 4/30/2001, you wrote:
> > >Hi,
> > >one way to solve this is by changing the getXX() method in your EJBean
> > >class for that field to:
> > >
> > >public int getXX(){
> > >   if (XX == null)
> > > XX = 0;
> > >   return XX;
> > >}
> >
> > Thanks, but... this won't work (or compile): you can't compare an int 
> to null.
> >
> > Any other ideas?
> >
> >
> >
> >
> > >
> > > >I'm getting a NullPointerException (wrapped up in a
> > > >TransactionRolledbackException, in turn wrapped up in a 
> ServerException...)
> > > >when I try to read a column with null data in an int field. Is there any
> > > >work around for this with a CMP entity bean, or is BMP the only way 
> forward?
> > > >
> > > >
> > > >
> > > >The db is DB2 over JDBC:ODBC, which I've finally managed to get working.
> > > >The data is legacy and cannot be changed...
> > > >
> > > >
> > > >
> > > >Jim
> > > >
> > > >--
> > > >
> > > >   *   Jim Cheesman   *
> > > > Trabajo:
> > > >[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
> > > >   Personal:
> > > >[EMAIL PROTECTED] (34) 606 770 244
> > > >Prepositions are not words
> > > >to end sentences with.
> > > >
> > > >
> > > >
> > > >___
> > > >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
> >
> >
> > --
> >
> >*   Jim Cheesman   *
> >  Trabajo:
> > [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
> >Personal:
> > [EMAIL PROTECTED] (34) 606 770 244
> > Prepositions are not words
> > to end sentences with.
> >
> >
> >
> > ___
> > 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


--

   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
   Personal: 
[EMAIL PROTECTED] (34) 606 770 244
Prepositions are not words 
to end sentences with.



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



SV: [JBoss-user] Null pointer/Server exception when int column null in db

2001-04-30 Thread Lennart Petersson

Don't use int but instead Integer as entity attribute. Pain in the ass but that's life 
sometimes... :-)
/L

- Original Message - 
From: Jim Cheesman <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 30, 2001 11:41 AM
Subject: Re: [JBoss-user] Null pointer/Server exception when int column null in db


> At 12:52 PM 4/30/2001, you wrote:
> >Hi,
> >one way to solve this is by changing the getXX() method in your EJBean 
> >class for that field to:
> >
> >public int getXX(){
> >   if (XX == null)
> > XX = 0;
> >   return XX;
> >}
> 
> Thanks, but... this won't work (or compile): you can't compare an int to null.
> 
> Any other ideas?
> 
> 
> 
> 
> >
> > >I'm getting a NullPointerException (wrapped up in a
> > >TransactionRolledbackException, in turn wrapped up in a ServerException...)
> > >when I try to read a column with null data in an int field. Is there any
> > >work around for this with a CMP entity bean, or is BMP the only way forward?
> > >
> > >
> > >
> > >The db is DB2 over JDBC:ODBC, which I've finally managed to get working.
> > >The data is legacy and cannot be changed...
> > >
> > >
> > >
> > >Jim
> > >
> > >--
> > >
> > >   *   Jim Cheesman   *
> > > Trabajo:
> > >[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
> > >   Personal:
> > >[EMAIL PROTECTED] (34) 606 770 244
> > >Prepositions are not words
> > >to end sentences with.
> > >
> > >
> > >
> > >___
> > >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
> 
> 
> --
> 
>*   Jim Cheesman   *
>  Trabajo: 
> [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
>Personal: 
> [EMAIL PROTECTED] (34) 606 770 244
> Prepositions are not words 
> to end sentences with.
> 
> 
> 
> ___
> 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] Null pointer/Server exception when int column null in db

2001-04-30 Thread Jim Cheesman

At 12:52 PM 4/30/2001, you wrote:
>Hi,
>one way to solve this is by changing the getXX() method in your EJBean 
>class for that field to:
>
>public int getXX(){
>   if (XX == null)
> XX = 0;
>   return XX;
>}

Thanks, but... this won't work (or compile): you can't compare an int to null.

Any other ideas?




>
> >I'm getting a NullPointerException (wrapped up in a
> >TransactionRolledbackException, in turn wrapped up in a ServerException...)
> >when I try to read a column with null data in an int field. Is there any
> >work around for this with a CMP entity bean, or is BMP the only way forward?
> >
> >
> >
> >The db is DB2 over JDBC:ODBC, which I've finally managed to get working.
> >The data is legacy and cannot be changed...
> >
> >
> >
> >Jim
> >
> >--
> >
> >   *   Jim Cheesman   *
> > Trabajo:
> >[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
> >   Personal:
> >[EMAIL PROTECTED] (34) 606 770 244
> >Prepositions are not words
> >to end sentences with.
> >
> >
> >
> >___
> >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


--

   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
   Personal: 
[EMAIL PROTECTED] (34) 606 770 244
Prepositions are not words 
to end sentences with.



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



Re: [JBoss-user] Null pointer/Server exception when int column null in db

2001-04-30 Thread Russell

Hi Jim , 

  Use primitives wrapper class . for example if field is int , use
Integer class.

Thanks



Jim Cheesman wrote:
> 
> I'm getting a NullPointerException (wrapped up in a
> TransactionRolledbackException, in turn wrapped up in a ServerException...)
> when I try to read a column with null data in an int field. Is there any
> work around for this with a CMP entity bean, or is BMP the only way forward?
> 
> The db is DB2 over JDBC:ODBC, which I've finally managed to get working.
> The data is legacy and cannot be changed...
> 
> Jim
> 
> --
> 
>*   Jim Cheesman   *
>  Trabajo:
> [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
>Personal:
> [EMAIL PROTECTED] (34) 606 770 244
> Prepositions are not words
> to end sentences with.
> 
> ___
> 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] www.jboss.org

2001-04-30 Thread Doyle, Steven

I can't access it either, I have been trying since yesterday.

-Original Message-
From: Maris Orbidans [mailto:[EMAIL PROTECTED]]
Sent: 30 April 2001 09:56
To: [EMAIL PROTECTED]
Subject: [JBoss-user] www.jboss.org



Can you access subj. page?

I cannot,  is it shut down ?

Maris




___
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] MBean adding a URL to common classpath

2001-04-30 Thread Lennart Petersson

Are there any hooks available to add/remove an URL to/from the common classloader (or 
more preferable a specific ejb's classlaoder)?

Why? Cause i need to dynamically extend an ejb session bean with extended logic 
deployed in a sepatete jar file. Having a separat directory wich an MBean is scanning 
to look for new/updated/removed jar files and then making them availble for the ejb 
session bean. And classes from these dynamically added jar files need to be 
downloadable to clients.

Looked at the WebServer's method addClassLoader()/removeClassLoader() without success 
but i might have missed something.

Thanks,
Lennart

===
Lennart Petersson
www.benefit.se/english


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



Re: [JBoss-user] Null pointer/Server exception when int column null in db

2001-04-30 Thread Ramaekers Werner

Hi,
one way to solve this is by changing the getXX() method in your EJBean class for that 
field to:

public int getXX(){  
  if (XX == null)
XX = 0;
  return XX;
}

Werner


 [EMAIL PROTECTED] wrote:


>I'm getting a NullPointerException (wrapped up in a 
>TransactionRolledbackException, in turn wrapped up in a ServerException...) 
>when I try to read a column with null data in an int field. Is there any 
>work around for this with a CMP entity bean, or is BMP the only way forward?
>
>
>
>The db is DB2 over JDBC:ODBC, which I've finally managed to get working. 
>The data is legacy and cannot be changed...
>
>
>
>Jim
>
>--
>
>   *   Jim Cheesman   *
> Trabajo: 
>[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
>   Personal: 
>[EMAIL PROTECTED] (34) 606 770 244
>Prepositions are not words 
>to end sentences with.
>
>
>
>___
>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] www.jboss.org

2001-04-30 Thread Maris Orbidans


Can you access subj. page?

I cannot,  is it shut down ?

Maris




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



[JBoss-user] Null pointer/Server exception when int column null in db

2001-04-30 Thread Jim Cheesman

I'm getting a NullPointerException (wrapped up in a 
TransactionRolledbackException, in turn wrapped up in a ServerException...) 
when I try to read a column with null data in an int field. Is there any 
work around for this with a CMP entity bean, or is BMP the only way forward?



The db is DB2 over JDBC:ODBC, which I've finally managed to get working. 
The data is legacy and cannot be changed...



Jim

--

   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
   Personal: 
[EMAIL PROTECTED] (34) 606 770 244
Prepositions are not words 
to end sentences with.



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



[JBoss-user] problems with jboss.xml

2001-04-30 Thread Thomas Schubert

when i start jboss, i always get the error message :

 [Container factory] org.jboss.ejb.DeploymentException: Error in
jboss.xml for Bean Optimized: found in jboss.xml but not in ejb-jar.xml

it happens when jboss tries to deploy the tomcat-test.ear (I didn't change
anything)
when i deploy beans without a jboss.xml everything works fine, but when i
try to deploy beans which have a jboss.xml, i get the same error,
the beans worked already.
even after I installed jboss again, the error occurs
(I'm new in EJB and Jboss, so the beans are very simple)



[Auto deploy] Watching C:\jboss-tomcat-2.2\jboss-2.2\deploy
[Auto deploy] Auto deploy of
file:/C:/jboss-tomcat-2.2/jboss-2.2/deploy/tomcat-test.ear
[J2EE Deployer Default] Deploy J2EE application:
file:/C:/jboss-tomcat-2.2/jboss-2.2/deploy/tomcat-test.ear
[J2EE Deployer Default] Create application tomcat-test.ear
[J2EE Deployer Default] inflate and install module tomcat-test.war
[J2EE Deployer Default] install module tomcat-test.jar
[J2EE Deployer Default] add all ejb jar files to the common classpath
[J2EE Deployer Default] Starting module tomcat-test.war
2001-04-30 10:11:02 - ContextManager: Adding context Ctx( /jboss )
[Container factory]
Deploying:file:/C:/jboss-tomcat-2.2/jboss-2.2/tmp/deploy/Default/tomcat-test
.ear
[Container factory] org.jboss.ejb.DeploymentException: Error in jboss.xml
for Bean Optimized: found in jboss.xml but not in ejb-jar.xml
[Container factory] at
org.jboss.metadata.ApplicationMetaData.importJbossXml(ApplicationMetaData.ja
va:322)
[Container factory] at
org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:120)



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