Re: [JBoss-user] Security constraint problems Tomcat vs Jetty

2003-12-19 Thread Gary S. Cuozzo
I have this exact scenario in my application.  I think you are on the
right track, but may have to move the unauthenticated constraints to the
top of the list IIRC.  Try rearranging what you have.  I do remember
that Tomcat was sensitive to the order of the entries.

If that doesn't work, let me know and I can dig up my web.xml to look
for sure.  I'm a bit strapped for time right now.

Gary.


On Fri, 2003-12-19 at 13:05, Kevin Pearcey wrote:
> In the web app I am developing by default I want every user to be
> authenticated - The simple way to do this is to apply a constraint to / for
> the role user. Other areas required additional roles which seems to work
> fine with additional declarations. Now as / is protected I need to define an
> additional rule to remove security for items involved in the login process.
> The rule set below has been working fine until we tried to move to 3.2.3
> with Tomcat. I've tried this out on 3.2.2 with Tomcat and Jetty and both
> give different behaviour.
> 
> Tomcat wants authentication for robots.txt
> Jetty does what I expect and displays robots.txt
> 
> 
> 
> 
> Main
> /*
> 
> 
> user
> 
> 
> 
> 
> 
> Development Stuff
> /dev/*
> 
> 
> admin
> 
> 
> 
> 
> 
> Authentication
> /auth/*
> 
> 
> Robots
> /robots.txt
> 
> 
> General
> /global/*
> 
> 
> Images
> /images/*
> 
> 
> 
> Is it correct to provide a security-constraint with no roles to reduce
> security, and tomcat is wrong or is Jetty just being kind and if so, what's
> the best way round this - Do I have to keep track of every url and provide
> specific constraints for them all?
> 
> Cheers
> 
> Kevin Pearcey
> 
> 
> 
> ---
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
Gary S. Cuozzo <[EMAIL PROTECTED]>
Innovation Software Group, LLC



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


[JBoss-user] CMR/CMP question

2003-12-17 Thread Gary S. Cuozzo
I have a many-many CMR (table mapped of course) between 2 entities and
would like to add some extra information that further describes the
relationship.

I was thinking of just adding the desired fields to the table that maps
the CMR and creating a CMP entity to get/set the fields.  In the
application, the CMP entity would never actually create/remove records,
only get/set the additional fields.

Is there any reason (technical or other) that this can't/shouldn't be
done?

Thanks in advance,
Gary.
-- 
Gary S. Cuozzo <[EMAIL PROTECTED]>
Innovation Software Group, LLC



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


Re: [JBoss-user] problem with EJB-QL

2003-12-14 Thread Gary S. Cuozzo
I think the //log/server.log file should default to
DEBUG log level and should have the SQL queries in it.  If not, you can
edit the //conf/log4j.xml file and set either the
CONSOLE or FILE appenders to DEBUG mode.  I think you have to restart
JBoss to see the effect.


On Sun, 2003-12-14 at 10:33, netanel weinberg wrote:
> How can i see the sql jboss is using to see what is generated?
> 
> - Original Message - 
> From: "Gary S. Cuozzo" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, December 14, 2003 4:35 PM
> Subject: Re: [JBoss-user] problem with EJB-QL
> 
> 
> > I misread your first message and thought you had switched to CMP2.
> > Sorry about that.
> >
> > Have you looked at the SQL JBoss is using to see what is generated?  Is
> > it correct?
> >
> >
> > On Sun, 2003-12-14 at 09:14, netanel weinberg wrote:
> > > but i'm using cmp 1.1
> > > 'cause when i tried to move to cmp 2.0
> > > JBOSS 3.2.2 gve me some erros about the JDBCFactory and etc...
> > > can it be that JBOSS 3.2.2 doesn't support finder method in CMP with two
> > > parameters??
> > >
> > > - Original Message - 
> > > From: "Gary S. Cuozzo" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Sunday, December 14, 2003 3:39 PM
> > > Subject: Re: [JBoss-user] problem with EJB-QL
> > >
> > >
> > > > Looks like you are using ejb1.1 dtd.  If you are using CMP2, try:
> > > >  > > > JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd";>
> > > >
> > > > Hope that helps,
> > > > Gary.
> > > >
> > > > On Sun, 2003-12-14 at 03:24, netanel weinberg wrote:
> > > > > Hi!
> > > > > my application is deployed w/o any errors.
> > > > >my dtd is :
> > > > >
> > > > > Enterprise
> > > > > JavaBeans 1.1//EN"
> > > > >
> > > "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd";>
> > > > >   i don't know what is wrong! can it be that JBOSS doesn't support
> that
> > > kind
> > > > > of EJB-QL methods?
> > > > >
> > > > > 10x ahead.
> > > > >
> > > > > - Original Message - 
> > > > > From: "Alexey Loubyansky" <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Friday, December 12, 2003 12:13 PM
> > > > > Subject: Re: [JBoss-user] problem with EJB-QL
> > > > >
> > > > >
> > > > > > First of all, get your application deployed w/o errors. Perhaps,
> the
> > > DDs
> > > > > > do not match their DTDs. What are the stacktraces?
> > > > > >
> > > > > > netanel weinberg wrote:
> > > > > >
> > > > > > > Hello!
> > > > > > >
> > > > > > >  i have a web application i built using EJB and i'm trying to
> make
> > > an
> > > > > ejb-ql
> > > > > > > according to two parameters:
> > > > > > >   
> > > > > > > 
> > > > > > >   findByCompanycode
> > > > > > >   
> > > > > > > java.lang.String
> > > > > > > java.lang.String
> > > > > > >   
> > > > > > > 
> > > > > > > 
> > > > > > >   
> > > > > > > 
> > > > > > >   
> > > > > > >
> > > > > > > but JBOSS 3.2.2 with Tomcat 4.1.27 embedded is returning me the
> > > > > collection
> > > > > > > accoding to the first parameter only!
> > > > > > >  what is wrong? is it a problem with the implemention in JBOSS?
> > > > > > >
> > > > > > > And Something else i'm been trying to move to CMP 2.0 and
> changed
> > > all my
> > > > > > > classes that been needed to abstract and changed my ejb-jar.xml
> to
> > > use
> > > > > the
> > > > > > > dtd of cmp 2.0 but i get an error on deploying with JBOSS on
> deploy
> > > 

Re: [JBoss-user] problem with EJB-QL

2003-12-14 Thread Gary S. Cuozzo
I misread your first message and thought you had switched to CMP2. 
Sorry about that.

Have you looked at the SQL JBoss is using to see what is generated?  Is
it correct?


On Sun, 2003-12-14 at 09:14, netanel weinberg wrote:
> but i'm using cmp 1.1
> 'cause when i tried to move to cmp 2.0
> JBOSS 3.2.2 gve me some erros about the JDBCFactory and etc...
> can it be that JBOSS 3.2.2 doesn't support finder method in CMP with two
> parameters??
> 
> ----- Original Message - 
> From: "Gary S. Cuozzo" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, December 14, 2003 3:39 PM
> Subject: Re: [JBoss-user] problem with EJB-QL
> 
> 
> > Looks like you are using ejb1.1 dtd.  If you are using CMP2, try:
> >  > JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd";>
> >
> > Hope that helps,
> > Gary.
> >
> > On Sun, 2003-12-14 at 03:24, netanel weinberg wrote:
> > > Hi!
> > > my application is deployed w/o any errors.
> > >my dtd is :
> > >
> > > > > JavaBeans 1.1//EN"
> > >
> "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd";>
> > >   i don't know what is wrong! can it be that JBOSS doesn't support that
> kind
> > > of EJB-QL methods?
> > >
> > > 10x ahead.
> > >
> > > - Original Message - 
> > > From: "Alexey Loubyansky" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Friday, December 12, 2003 12:13 PM
> > > Subject: Re: [JBoss-user] problem with EJB-QL
> > >
> > >
> > > > First of all, get your application deployed w/o errors. Perhaps, the
> DDs
> > > > do not match their DTDs. What are the stacktraces?
> > > >
> > > > netanel weinberg wrote:
> > > >
> > > > > Hello!
> > > > >
> > > > >  i have a web application i built using EJB and i'm trying to make
> an
> > > ejb-ql
> > > > > according to two parameters:
> > > > >   
> > > > > 
> > > > >   findByCompanycode
> > > > >   
> > > > > java.lang.String
> > > > > java.lang.String
> > > > >   
> > > > > 
> > > > > 
> > > > >   
> > > > > 
> > > > >   
> > > > >
> > > > > but JBOSS 3.2.2 with Tomcat 4.1.27 embedded is returning me the
> > > collection
> > > > > accoding to the first parameter only!
> > > > >  what is wrong? is it a problem with the implemention in JBOSS?
> > > > >
> > > > > And Something else i'm been trying to move to CMP 2.0 and changed
> all my
> > > > > classes that been needed to abstract and changed my ejb-jar.xml to
> use
> > > the
> > > > > dtd of cmp 2.0 but i get an error on deploying with JBOSS on deploy
> > > > > something about the JDBC factory and i don't know what is it
> problem!
> > > it's
> > > > > the same problem i got when i tried to use lomboz to generate an ejb
> > > for
> > > > > testing.
> > > > >
> > > > > 10x ahead,
> > > > >  netanel.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ---
> > > > > This SF.net email is sponsored by: IBM Linux Tutorials.
> > > > > Become an expert in LINUX or just sharpen your skills.  Sign up for
> > > IBM's
> > > > > Free Linux Tutorials.  Learn everything from the bash shell to sys
> > > admin.
> > > > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> > > > > ___
> > > > > JBoss-user mailing list
> > > > > [EMAIL PROTECTED]
> > > > > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > ---
> > > > This SF.net email is sponsored by: IBM Linux Tutorials.
> > > > Become an expert in LINUX or just sharpen your skills.  Sign up for
> IBM's
> > > &g

Re: [JBoss-user] problem with EJB-QL

2003-12-14 Thread Gary S. Cuozzo
Looks like you are using ejb1.1 dtd.  If you are using CMP2, try:
http://java.sun.com/dtd/ejb-jar_2_0.dtd";>

Hope that helps,
Gary.

On Sun, 2003-12-14 at 03:24, netanel weinberg wrote:
> Hi!
> my application is deployed w/o any errors.
>my dtd is :
>
> JavaBeans 1.1//EN"
>  "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd";>
>   i don't know what is wrong! can it be that JBOSS doesn't support that kind
> of EJB-QL methods?
> 
> 10x ahead.
> 
> - Original Message - 
> From: "Alexey Loubyansky" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, December 12, 2003 12:13 PM
> Subject: Re: [JBoss-user] problem with EJB-QL
> 
> 
> > First of all, get your application deployed w/o errors. Perhaps, the DDs
> > do not match their DTDs. What are the stacktraces?
> >
> > netanel weinberg wrote:
> >
> > > Hello!
> > >
> > >  i have a web application i built using EJB and i'm trying to make an
> ejb-ql
> > > according to two parameters:
> > >   
> > > 
> > >   findByCompanycode
> > >   
> > > java.lang.String
> > > java.lang.String
> > >   
> > > 
> > > 
> > >   
> > > 
> > >   
> > >
> > > but JBOSS 3.2.2 with Tomcat 4.1.27 embedded is returning me the
> collection
> > > accoding to the first parameter only!
> > >  what is wrong? is it a problem with the implemention in JBOSS?
> > >
> > > And Something else i'm been trying to move to CMP 2.0 and changed all my
> > > classes that been needed to abstract and changed my ejb-jar.xml to use
> the
> > > dtd of cmp 2.0 but i get an error on deploying with JBOSS on deploy
> > > something about the JDBC factory and i don't know what is it problem!
> it's
> > > the same problem i got when i tried to use lomboz to generate an ejb
> for
> > > testing.
> > >
> > > 10x ahead,
> > >  netanel.
> > >
> > >
> > >
> > >
> > > ---
> > > This SF.net email is sponsored by: IBM Linux Tutorials.
> > > Become an expert in LINUX or just sharpen your skills.  Sign up for
> IBM's
> > > Free Linux Tutorials.  Learn everything from the bash shell to sys
> admin.
> > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> > >
> >
> >
> >
> > ---
> > This SF.net email is sponsored by: IBM Linux Tutorials.
> > Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> > Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> > _______
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> 
> 
> ---
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
Gary S. Cuozzo <[EMAIL PROTECTED]>
Innovation Software Group, LLC



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


[JBoss-user] Sorting Entities

2003-12-12 Thread Gary S. Cuozzo
I'm interested in sorting a collection of entities that are retrieved
using multiple finders.  Any suggestions?

Thanks,
Gary.
-- 
Gary S. Cuozzo <[EMAIL PROTECTED]>
Innovation Software Group, LLC



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


Re: [JBoss-user] How to test virtual hosting

2003-12-04 Thread Gary S. Cuozzo
If you don't want to manage a nameserver, just define some entries in
your hosts file on each system.

Gary.


On Thu, 2003-12-04 at 10:55, Christofer Dutz wrote:
> You could setup your own nameserver in which you server what you want 
> and setup localhost als primary Nameserver ... this worked for me
> 
> Chris
> 
> Brian Styles wrote:
> 
> > Hi all,
> >
> > just wondering if there is any way to test virtual hosting without 
> > having to register the domain name! Eg, say I try to virtual host my 
> > app on
> >
> > http://brian.test.com
> >
> > and I map this to some context-root,
> >
> > how do I then test that http://brian.test.com will work?
> >
> > I think that it's probably a routing table issue and I need to update 
> > my dns somehow. However I'm running on windows, so does anyone know if 
> > this can be done at all? Do I need to install a little dns server on 
> > my local machine on windows? Am I getting this all wrong?
> >
> > thanks,
> > Brian
> >
> > _
> > Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
> > http://join.msn.com/?page=features/featuredemail
> >
> >
> >
> > ---
> > This SF.net email is sponsored by OSDN's Audience Survey.
> > Help shape OSDN's sites and tell us what you think. Take this
> > five minute survey and you could win a $250 Gift Certificate.
> > http://www.wrgsurveys.com/2003/osdntech03.php?site=8
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> 
> 
> 
> ---
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
Gary S. Cuozzo <[EMAIL PROTECTED]>
Innovation Software Group, LLC



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


Re: [JBoss-user] Hot Deploy of Session Beans

2003-11-18 Thread Gary S. Cuozzo
I've been having this same issue.  Only "solution" I've found so far is
to redeploy all my apps that depend on the SLB.  Not such a great
solution.  I'm also very interested to find a way to deploy my app
without redeploying all the dependencies as well.

Gary.

On Tue, 2003-11-18 at 16:52, Rod Macpherson wrote:
> Anybody else having a problem hot deploying SLBs? Fetching the home
> interface fails with a class-cast exception. That is the proxy itself
> cannot be cast to the home interface. Happens every time after you
> redeploy the SLB jar. 
> 
> 
> ---
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
Gary S. Cuozzo <[EMAIL PROTECTED]>
Innovation Software Group, LLC



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] how to upgrade from 3.0.4 to 3.2.2

2003-10-28 Thread Gary S. Cuozzo
84)
> 
> at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
> 
> at
> org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
> 
> at $Proxy6.deploy(Unknown Source)
> 
> at
> org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
> 
> tScanner.java:302)
> 
> at
> org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
> 
> canner.java:476)
> 
> at
> org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
> 
> doScan(AbstractDeploymentScanner.java:201)
> 
> at
> org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
> 
> loop(AbstractDeploymentScanner.java:212)
> 
> at
> org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
> 
> run(AbstractDeploymentScanner.java:191)
> 
> Caused by: javax.management.AttributeNotFoundException:
> Writable attribute 'Mana
> 
> gedConnectionFactoryName' not found
> 
> at
> org.jboss.mx.capability.ReflectedMBeanDispatcher.setAttribute(Reflect
> 
> edMBeanDispatcher.java:190)
> 
> at
> org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java
> 
> :500)
> 
> at
> org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator
> 
> .java:474)
> 
> ... 27 more
> 
> 15:50:18,078 INFO  [MainDeployer] Deployed package:
> file:/C:/armanta-3rdparty/jb
> 
> oss-3.2.2/server/default/deploy/oracle-service.xml
> 
> 15:50:18,078 ERROR [URLDeploymentScanner] MBeanException:
> Exception in MBean ope
> 
> ration 'checkIncompleteDeployments()'
> 
> Cause: Incomplete Deployment listing:
> 
> Packages waiting for a deployer:
> 
>   
> 
> Incompletely deployed packages:
> 
>   
> 
> MBeans waiting for classes:
> 
>   
> 
> MBeans waiting for other MBeans:
> 
> [ObjectName: jboss.jca:service=LocalTxCM,name=OracleDS
> 
>  state: FAILED
> 
>  I Depend On:  jboss.jca:service=LocalTxDS,name=OracleDS
> 
>  
> 
>  Depends On Me: org.jboss.deployment.DeploymentException:
> Exception setting attr
> 
> ibute javax.management.Attribute:
> name=ManagedConnectionFactoryName value=jboss.
> 
> jca:service=LocalTxDS,name=OracleDS on mbean
> jboss.jca:service=LocalTxCM,name=Or
> 
> acleDS; - nested throwable:
> (javax.management.AttributeNotFoundException: Writab
> 
> le attribute 'ManagedConnectionFactoryName' not found),
> ObjectName: jboss.jca:se
> 
> rvice=LocalTxDS,name=OracleDS
> 
>  state: FAILED
> 
>  I Depend On:
> 
>  Depends On Me:  jboss.jca:service=LocalTxCM,name=OracleDS
> 
> org.jboss.deployment.DeploymentException: No Attribute found
> with name: JndiName
> 
> , ObjectName: jboss.jca:service=LocalTxCM,name=OracleDS2
> 
>  state: FAILED
> 
>  I Depend On:  jboss.jca:service=LocalTxDS,name=OracleDS2
> 
>  
> 
>  Depends On Me: org.jboss.deployment.DeploymentException:
> Exception setting attr
> 
> ibute javax.management.Attribute:
> name=ManagedConnectionFactoryName value=jboss.
> 
> jca:service=LocalTxDS,name=OracleDS2 on mbean
> jboss.jca:service=LocalTxCM,name=O
> 
> racleDS2; - nested throwable:
> (javax.management.AttributeNotFoundException: Writ
> 
> able attribute 'ManagedConnectionFactoryName' not found),
> ObjectName: jboss.jca:
> 
> service=LocalTxDS,name=OracleDS2
> 
>  state: FAILED
> 
>  I Depend On:
> 
>  Depends On Me:  jboss.jca:service=LocalTxCM,name=OracleDS2
> 
> org.jboss.deployment.DeploymentException: No Attribute found
> with name: JndiName
> 
> ]
> 
>  
> 
>  
> 
> Eric J. Kaplan
> 
> Armanta, Inc.
> 
> 350 Mt. Kemble Ave.
> 
> Morristown, NJ 07960
> 
>  
-- 
Gary S. Cuozzo <[EMAIL PROTECTED]>
Innovation Software Group, LLC



---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Adding a virtual host to embedded tomcat

2003-08-18 Thread Gary S. Cuozzo
I have had very little luck getting tomcat configurations that work fine
in standalone tomcat to work in jboss-tomcat.  Particularly with virtual
hosts and configuring multiple contexts.

I've posted multiple questions about the issues to this list (quite some
time ago) but have never gotten any replies.

Anybody have tomcat working with vhosts under jboss?  Especially with
multiple contexts?

In one case, we were looking to have multiple virtual hosts have general
JSP/webapp support for their doc-root (shared by apache for static html
pages) as well as have some common webapp contexts shared by each host. 
We have such a configuration that works in standalone, which we are
running.

Gary.

On Mon, 2003-08-18 at 12:33, Brian McSweeney wrote:
> Hi all,
> 
>  
> 
> I want to add a virtual host to the embedded tomcat service that comes
> with 
> 
> Jboss.It seems that the way I do this is in the
> 
>  
> 
> deploy\jbossweb-tomcat.sar\META-INF\jboss-service.xml file
> 
>  
> 
> I tried adding
> 
>  
> 
>privileged="true" /> 
> 
>  
> 
> to the Host tag, but this didn’t work.
> 
>  
> 
> Any tomcat experts out there?
> 
>  
> 
> Thanks,
> 
> Brian
-- 
Gary S. Cuozzo <[EMAIL PROTECTED]>
Innovation Software Group, LLC



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


Re: [JBoss-user] Register & Login User In One Step

2003-08-01 Thread Gary S. Cuozzo
I have not done this yet, but it was a feature that I've been
considering adding to my application.  Here is a bookmark that I had
made quite some time ago when I did some googling for the topic.

http://raibledesigns.com/training/index.jsp?topic=rememberMe

Maybe this will give an idea or two that helps.
gary.



On Fri, 2003-08-01 at 14:22, Erik Price wrote:
> James Ward wrote:
> > Erik,
> > Thanks for the response.  I am just not sure how to do this with form
> > based auth and the j_security_check stuff.  Any help would be greatly
> > appreciated.
> 
> 
> Hmm
> 
> Well, if form-based auth didn't expect a POST request with the login 
> credentials, you could just call sendRedirect with GET parameters in a 
> URL like "server.com/j_security_check?J_USERNAME=jward&J_PASSWORD=secret".
> 
> The only way I can think of doing it would be kind of an ugly hack, but 
> it might work.  You can open a socket directly connecting to the server 
> and hand-create a string-based HTTP POST request yourself by typing in 
> the headers, followed by two newlines, followed by 
> "J_USERNAME=jward&J_PASSWORD=secret".
> 
> The problem is that I don't know how you would capture the response -- 
> in fact, I don't this would work after all.  It would submit the POST 
> request but the browser wouldn't be updated that it is now privileged to 
> access the protected resources.  So I don't know if it's possible using 
> CMA after all... I take it all back.
> 
> 
> Apologies,
> 
> Erik
> 
> 
> 
> ---
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
Gary S. Cuozzo <[EMAIL PROTECTED]>
Innovation Software Group, LLC



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


Re: [JBoss-user] Re: Core Developers Network Announces PublicLaunch

2003-06-05 Thread Gary S. Cuozzo
IMO, this is a good thing for jboss (the software).  More organizations
mean that there will be better support, more support options, and maybe 
even better prices.

I don't consider JBoss Group and JBoss the software to be one in the
same.  In fact, isn't that part of the whole open source model?  You
don't rely on any one company for the longevity of your product?

The JBoss software reached critical mass long ago and is not going
anywhere.  There are plenty of people that are capable of continuing on
with development and support.

Your client should be happy.

gary.

On Wed, 2003-06-04 at 13:32, Corby Page wrote:
> The current documentation (the docs we pay for by subscription) are owned
> by JBoss Group, yes? You plan to offer a competing set of documentation
> generated from scratch? What exactly am I getting if I start paying Core
> Developers Network $15 a month today?
> 
> The positive way of looking at this is that there are more options and
> competition in the services area.
> 
> The negative view of this is that I have worked very hard to convince my
> corporate client that there they can get stable support for the JBoss
> server, and it only took a few months for JBoss Group to fracture and
> disentegrate. We are currently left with two smaller, and presumable even
> less stable, entities to choose from in finding enterprise support.
> 
> Corby
> 
> 
> 
> 
> ---
> This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
> thread debugger on the planet. Designed with thread debugging features
> you've never dreamed of, try TotalView 6 free at www.etnus.com.
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
Gary S. Cuozzo <[EMAIL PROTECTED]>
Innovation Software Group, LLC



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


Re: [JBoss-user] Q:CMP2 - Insert Statement Has Duplicate Column

2003-05-06 Thread Gary S. Cuozzo
I think i've seen this when i have a CMR foreign key that is also listed
as a CMP field.  Or maybe when i have copy/paste errors in my xdoclet
tags.  I haven't done this in quite a while, so I don't remember for
sure what the exact problem was.  Hopefully this helps you a bit.

gary.


On Tue, 2003-05-06 at 11:43, Nicholas wrote:
> We are having this really odd problem with CMP2 that
> developed recently. The entity bean used to work ok,
> but this problem is sending us for a loop.
> 
> JBoss 3.0.4
> Oracle 9.2
> 
> 2003-05-06 11:28:58,968 DEBUG
> [org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.Client]
> Executing SQL: INSERT INTO CLIENT (CLIENT_ID,
> MASTER_COMBO_ID, CLIENT_CODE, ORGANIZATION_ID, FEIN,
> TIPPED_
> CLIENT, COMPANY_NAME, ADDRESS1, ADDRESS2, CITY, STATE,
> ZIP, ZIP4, TEL, FAX, PAYROLLCONTACT_NAME,
> PAYROLLCONTACT_TEL, PAYROLL_SETUP_DATE,
> PAYROLL_START_DATE, FEATURE_TERMINATION_DATE,
> ACC_NAME, ACSR_NA
> ME, CQ_OR_PQ, FICA_LIABILITY_SPLIT_CQ,
> FICA_LIABILITY_SPLIT_PQ, COMBO_CLIENT,
> CLIENT_START_DATE, FLT_EMAIL, USER_ID,
> SERVICE_CENTER_ID, SETUP_COMPLETE,
> SETUP_COMPLETE_DATE, FLT_START_DATE, SERVICE_CEN
> TER_ID) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
> ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
> ?, ?, ?)
> 2003-05-06 11:28:58,984 ERROR
> [org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.Client]
> Could not create entity
> java.sql.SQLException: ORA-00957: duplicate column
> name
> 
> The column SERVICE_CENTER_ID inexplicably appears
> twice. I have checked the descriptors and there is no
> duplication there. (They are attached,)
> 
> Any insight into this would really be appreciated.
> 
> Thanks.
> 
> //Nicholas
> 
> =
> Nicholas Whitehead
> Home: (973) 377 9335
> Cell: (201) 615 2716
> [EMAIL PROTECTED]
> Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/




---
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com

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


Re: [JBoss-user] Linkage Error on Redeploy

2003-03-10 Thread Gary S. Cuozzo
This same thing just started happening to my application a few weeks 
ago.  Same versions as you.  I went to JBoss 3.0.6/Tomcat and it works 
fine.  Don't know if that is an option for you or not and I just didn't 
have the time to figure out why it started happening as just don't have 
that kinda time right now.

gary.

Christian Nelson wrote:

Greetings,

We're have an issue with Linkage exceptions when we redeploy our
application. The exception does *not* happen when we deploy for the first
time (since Jboss was started).
This happens with both jboss-3.0.4_tomcat-4.1.12 and
jboss-3.0.5_tomcat-4.1.18, running under either Windows Xp and Linux
2.4.x.
The exact exception is as follows:

java.lang.LinkageError: loader constraints violated when linking org/apache/commons/digester/ObjectCreationFactory class

Here is a scenario:
1) start up jboss (vanilla, no .ear file in deploy)
2) everything is fine.
3) deploy aaw.ear.
4) aaw.ear deploys a-okay, everything is fine.
5) recopy the aaw.ear file (with a newer timestamp) into deploy.
6) old aaw.ear is undeployed, this works fine.
7) on deploy of new aaw.ear, the above exception happens.
I think it has to do with the default/tmp directory that caches jar files
that have been deployed (or somesuch).  Maybe there's a conflict wrt
versions of jars that both jboss and my app depend on?
I am pretty certain this is something we're doing dumb, not a bug with
jboss I just don't know how best to diagnose what exactly is the
cause.
Any clues?

Thanks,
Christian
---
Christian 'xian' Nelson  [EMAIL PROTECTED]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   "Don't ask yourself what the world needs.  Ask yourself what makes
 you come alive, and go do that, because what the world needs is people
 who have come alive." -- Howard Thurman
---


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





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


Re: [JBoss-user] Deployment fails?

2003-03-05 Thread Gary S. Cuozzo
Sounds like your JNDI names are not what you think.  Maybe compare the 
deployment descriptors?

Or, another issue might be that you need ejb-ref tags to declare your 
references to other EJB's.

Just a few thoughts...
gary.
Richard Stack wrote:

I'm using Jboss3.0.4_tomcat-4.1.12. The first attempt to deploy CMP2.0
beans using Xdoclet. {These EJB run with no problem without xdoclet
creation). The build.xml runs with no errors. The classes are all there.
The Deployment discriptor are created. Jboss shows:
17:50:20,733 INFO  [MainDeployer] Starting deployment of package:
file:/F:/jboss
-3.0.4_tomcat-4.1.12/server/default/deploy/acme.jar
17:50:20,763 INFO  [MainDeployer] Deployed package:
file:/F:/jboss-3.0.4_tomcat-
4.1.12/server/default/deploy/acme.jar
no error messages

But the console shows no trace of acme.jar Attempts to connect to the
session ejb say "...not bound"
Any idea why this fails with no error messages?

Richard







---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
 





---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Form based authentication

2003-02-27 Thread Gary S. Cuozzo




You can do quite a bit (if you authenticate via SQL database) with views
to implement similar features while using container managed security.  I
have several criteria that go into deciding whether or not a user can authenticate
to my app, and they all get accounted for with my view.  The view presents
the container with the simple user/role structure that it wants, but the
underlying data is more complex than that and encompasses multiple tables.

Dunno how this would work if you don't have a SQL DB though (like LDAP or
other mechanism).

gary.


Rod Macpherson wrote:

  

  ... If I understand you correctly you don't use container managed
  

  
  security (web.xml) and you verify usernames and password against yourself ?

Here are some situations where container managed security is not necessarily
the best choice:

1. It's 5:00 PM users in group X are forbade from posting.
2. Alice is in the penalty box for a week for violating the TOS.
3. Host foo.bar.com has exceeded its access quota for the day.
4. Bob is now listed in the Big Spenders table so enable high-markup pages.

Using roll-your-own security can be developed using the same easy-to-manage
aspect-oriented techniques as deployment descriptors but without the
restrictions. Also, a lot of times you want a power user or manager to
control security versus the application deployer.

- Original Message -
From: "Guy Rouillier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 10:55 PM
Subject: Re: [JBoss-user] Form based authentication


  
  
- Original Message -
From: "Silvester van der Bijl" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 8:45 PM
Subject: Re: [JBoss-user] Form based authentication


Hello,



  
You're doing exactly what I want to do, only I want to use container

  

managed security. If I understand you correctly you don't use container
managed security (web.xml) and you verify usernames and password against
e.g. a dabase yourself ?<<

Yes.





---
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

  
  


---
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
  






Re: [JBoss-user] Calling secured EJB from MDB

2003-02-14 Thread Gary S. Cuozzo




Cool.  I got this working.  The option was actually "unauthenticatedIdentity"
though.  Just curious, did you make a typo below?  Or did this change for
later versions of JBoss?  I happen to be using 3.0.4 and just want to note
that for when I do upgrade if it actually changed.

Thanks again,
gary.


Scott M Stark wrote:

  Look into the unauthenticatedPrincipal login module option usage.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message - 
From: "Gary S. Cuozzo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 2:40 PM
Subject: [JBoss-user] Calling secured EJB from MDB


  
  
Anybody know how to call an EJB method that requires authentication/role 
from a MDB?  I've tried to make the MDB run as a suitable role, but it 
still complained that the principal was null.

Any clues?
gary.


Stack Trace follows:

17:30:06,030 ERROR [SecurityInterceptor] Authentication exception, 
principal=null
17:30:06,030 ERROR [LogInterceptor] EJBException, causedBy:
java.lang.SecurityException: Authentication exception, principal=null
at 
org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:173)
at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:94)
at 
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:129)
at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:487)
at 
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invokeHome(BaseLocalContainerInvoker.java:230)
at 
org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110)
at $Proxy337.findByPrimaryKey(Unknown Source)
at 
com.innovationsw.panel.ejb.server.DeployerFeedbackMDB.onMessage(Unknown 
Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:391)
at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
at 
org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:88)
at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
at 
org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:100)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
at 
org.jboss.ejb.MessageDrivenContainer.invoke(MessageDrivenContainer.java:302)
at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:962)
at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1038)
at 
org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:238)
at 
org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:603)
at 
org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:417)
at org.jboss.mq.SpySession.run(SpySession.java:259)
at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:177)
at 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:655)
at java.lang.Thread.run(Thread.java:536)



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


  
  

---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
  






Re: [JBoss-user] Calling secured EJB from MDB

2003-02-12 Thread Gary S. Cuozzo




Thanks.  Will do.
gary.

Scott M Stark wrote:

  Look into the unauthenticatedPrincipal login module option usage.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message - 
From: "Gary S. Cuozzo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 2:40 PM
Subject: [JBoss-user] Calling secured EJB from MDB


  
  
Anybody know how to call an EJB method that requires authentication/role 
from a MDB?  I've tried to make the MDB run as a suitable role, but it 
still complained that the principal was null.

Any clues?
gary.


Stack Trace follows:

17:30:06,030 ERROR [SecurityInterceptor] Authentication exception, 
principal=null
17:30:06,030 ERROR [LogInterceptor] EJBException, causedBy:
java.lang.SecurityException: Authentication exception, principal=null
at 
org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:173)
at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:94)
at 
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:129)
at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:487)
at 
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invokeHome(BaseLocalContainerInvoker.java:230)
at 
org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110)
at $Proxy337.findByPrimaryKey(Unknown Source)
at 
com.innovationsw.panel.ejb.server.DeployerFeedbackMDB.onMessage(Unknown 
Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:391)
at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
at 
org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:88)
at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
at 
org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:100)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
at 
org.jboss.ejb.MessageDrivenContainer.invoke(MessageDrivenContainer.java:302)
at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:962)
at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1038)
at 
org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:238)
at 
org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:603)
at 
org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:417)
at org.jboss.mq.SpySession.run(SpySession.java:259)
at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:177)
at 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:655)
at java.lang.Thread.run(Thread.java:536)



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


  
  

---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
  






[JBoss-user] Calling secured EJB from MDB

2003-02-11 Thread Gary S. Cuozzo
Anybody know how to call an EJB method that requires authentication/role 
from a MDB?  I've tried to make the MDB run as a suitable role, but it 
still complained that the principal was null.

Any clues?
gary.


Stack Trace follows:

17:30:06,030 ERROR [SecurityInterceptor] Authentication exception, 
principal=null
17:30:06,030 ERROR [LogInterceptor] EJBException, causedBy:
java.lang.SecurityException: Authentication exception, principal=null
   at 
org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:173)
   at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:94)
   at 
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:129)
   at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:487)
   at 
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invokeHome(BaseLocalContainerInvoker.java:230)
   at 
org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110)
   at $Proxy337.findByPrimaryKey(Unknown Source)
   at 
com.innovationsw.panel.ejb.server.DeployerFeedbackMDB.onMessage(Unknown 
Source)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at 
org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:391)
   at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
   at 
org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:88)
   at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
   at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
   at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
   at 
org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:100)
   at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
   at 
org.jboss.ejb.MessageDrivenContainer.invoke(MessageDrivenContainer.java:302)
   at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:962)
   at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1038)
   at 
org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:238)
   at 
org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:603)
   at 
org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:417)
   at org.jboss.mq.SpySession.run(SpySession.java:259)
   at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:177)
   at 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:655)
   at java.lang.Thread.run(Thread.java:536)



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Sending and receiving Emails

2003-02-04 Thread Gary S. Cuozzo




I missed out on the original messages, so I may be a touch off-base with
what you are trying to do...

I've written web interfaces (HTML form submission based) that accept the
client's data, store it, and send back an auto-response to the client.  The
response is sent via JavaMail and does absolutely nothing fancy to accomplish
the job.  I basically copied/pasted the sending code from a tutorial example
and modified it slightly.

If you are talking about having the client email their request to a specific
mailbox at your domain, and have an auto-responder that replies back to them,
I would still use a JavaMail program to get the mail from the mailbox and
do the response.  To me, this is the only portable means.

The stuff below looks very sendmail'ish.  What if you need to run using another
package (qmail, postfix, etc)?

Also, I would consider using IMAP as opposed to POP3 as you could retain
history, use folders, etc. if such a need arose.  IMAP may offer a bit more
flexibility for your app, but I'm not sure.

If I am way off base with what you were trying to do, then I appologize for
the long post.  Hopefully I'm not and this actually helps.

gary.


Brian McSweeney wrote:

  RE: [JBoss-user] Sending and receiving Emails
  
  
 
  
 

  Thanks very much for the info guys. 
 
  That souds as if it's the way to go.
 
  Brian
 
   
 
   
  
-
Original Message - 
   
From:
   JD Brennan 
   
To:
'[EMAIL PROTECTED]'
   
   
Sent:
Tuesday, February 04, 2003 6:15PM
   
Subject:
RE: [JBoss-user] Sending andreceiving Emails
   


   
On Linux, you can have a program run when mail is
   
received by putting 
   
getaccount: "|/path/to/app" 
   
in the /etc/aliases file. 
   
app could be a script that runs a Java client that
   
talks to your J2EE app server. 
   
It might be a little less work since you don't
   
have to deal with the java mail API (although  
 
that's probably only 10 or 20 lines of code). 
   
The biggest advantage is that it responds right
   
away - no polling. 
   
JD 
   
-Original Message- 
From: Geer,Benjamin [mailto:[EMAIL PROTECTED]]
   
Sent: Tuesday, February 04, 2003 4:50 AM 
To: '[EMAIL PROTECTED]' 
Cc:'Brian McSweeney' 
Subject: RE: [JBoss-user] Sendingand receiving Emails


   
Brian McSweeney [mailto:[EMAIL PROTECTED]]
   wrote: 
> For example - in loads of standard webapplications
if you register 
> with a site and giveyour email address then a
mail is sent 
> to you andonce you reply, you then have your
account. 
> Howcould this be handled in J2EE? Anyone?

   
I think the usual way is to have a component that periodically
   checks a 
POP mailbox, which you can do usingJavaMail.

   
Benjamin 


   
---
   
This SF.NET email is sponsored by: 
SourceForge Enterprise Edition + IBM + LinuxWorld = Something
2See! 
http://www.vasoftware.com

___

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






Re: [JBoss-user] [ANN] Tammi 1.0 Released - a JMX Application Framework

2003-02-03 Thread Gary S. Cuozzo




I'm not sure what you mean by "this
is a JBoss list".  Do you mean that it is a list pertaining
to JBoss?  Or that JBoss Group owns the list?  If you are referring to the
latter, then I would have to disagree with you as my jboss-user email comes
from sourceforge.net.  If you are referring to the former, then I guess that
means that anybody can post jboss related items to the list.

That aside, the fact that there is ANY ambiguity about the list usage is
just an indicator that the list needs to have some sort of charter describing
what is/isn't allowed.  Most other lists that I'm on (including those that
we run for the open source community) have strict charters.  My company does,
in fact, own those lists and pays 100% for their very existence.  Yet, we
absolutely refuse to use those lists for our own purposes.

Personally, I am not in favor of muddying the waters between the open source
community and the commercial community.  Nothing good ever comes of it.  I'm
on a user list for another open source project that is all but dead because
the list "owner" was privately emailing users to pay him for answers behind
the scenes and purposely not answering questions.  Needless to say, that
project is dead.

IMO, this is a very important issue that I would like to see addressed.  I've
already been spammed by several commercially-oriented announcements via this
list and don't think ANY of it is appropriate, even from those who are "members"
of the JBoss Group, LLC.  If there was a charter that indicated otherwise,
then at least I could read it and determine if I even want to be on the list.

Again, these are my opinions.  I'm sure there are many on the list that don't
really care either way, but it is a topic that I feel strongly about.  I'd
hate to see commercial aspirations once again ruin a great open source project.

gary.


JD Brennan wrote:
 
 
  
  
   
  
 
  Since this is a JBoss list, it seems
 appropriate for advertising
 
  JBoss services and not appropriate for
 non-JBoss related services.  
 
  Seems like a  reasonable place to draw a line.
 
   
 
  JD
 
   
 
  -Original Message-
  From: Gary S. Cuozzo  [mailto:[EMAIL PROTECTED]]
  Sent: Monday, February 03, 2003  7:28 AM
  To: [EMAIL PROTECTED]
  Subject: Re:  [JBoss-user] [ANN] Tammi 1.0 Released - a JMX Application
 Framework
  
  
You are not the only one.  I totally agree  with you.  But, JBoss Group LLC
uses this list (and the dev list) to  advertise their training and other
services.  So, where does the line get  drawn?  What is ok for one, should
be ok for all.  This has bothered  me for some time now.
gary.
  
  
Andreas Mecky wrote:
 
 

   

Hi,
   
 
   
maybe I am the only one but I don't
think thatthis is the right place for this kind
   
of shameless self commercial.
   
Or if nobody else agrees then I can
also startusing JBoss as my mailing list
   
for my open source projects?
   
 
   
WBR
   
 
   
Andreas
   
 
   
 

  -
 Original Message - 
 
  From:
 Marketta Priha 
 
  To:
 [EMAIL PROTECTED]
 
 
  Sent:
 Monday, February 03, 2003 11:18 AM
 
  Subject:
 [JBoss-user] [ANN] Tammi 1.0 Released - a JMX Application Framework
 
  
  
 
   
  Hello 
  
This message  is relevant to JBoss users interested in applying JBoss'
JMX capabilities  also in servlet development and business logic implementation.
  
  
The  Norther Organization has released Tammi 1.0 open source development
 framework for web applications at http://tammi.sourceforge.net/.
 Downloads, a demo with an on-line manual, extensive tech spec and API
docs  are available. 
  
Tammi is a Java component based development framework  and run-time container
for applications supporting web browsers, mobile  terminals and/or Swing
based user interfaces. 
  
The key technologies  applied include service proxy architecture with
Java Management Extensions  (JMX), dynamic configuration with Dynamic
Java, MVC filters and filter  chains with Java Servlets, template processing
with Apache Velocity and  Freemarker, and general design derived from
Apache Turbine. The architecture  allows effortless integration of additional
libraries when needed.  
  
Tammi, as well as applications built with it, can be executed either
 as a servlet or filter chain under a J2EE compatible servlet container,
the  recommended approach for JBoss users. In addition, it contains an
internal  HTTP(S) 1.1 capable connector with competent performance. 
  
Separate  notes on how to build and deploy Tammi to JBoss are in Sourceforge
under  Docs-section. 
  http://sourceforge.net/docman/display_doc.php?docid=15052&group_id=62554
 
 

Re: [JBoss-user] [ANN] Tammi 1.0 Released - a JMX Application Framework

2003-02-03 Thread Gary S. Cuozzo




You are not the only one.  I totally agree with you.  But, JBoss Group LLC
uses this list (and the dev list) to advertise their training and other services.
 So, where does the line get drawn?  What is ok for one, should be ok for
all.  This has bothered me for some time now.
gary.


Andreas Mecky wrote:

  
  
  
 
  
 

  Hi,
 
   
 
  maybe I am the only one but I don't think
that this  is the right place for this kind
 
  of shameless self commercial.
 
  Or if nobody else agrees then I can also
start  using JBoss as my mailing list
 
  for my open source projects?
 
   
 
  WBR
 
   
 
  Andreas
 
   
 
   
  
-
Original Message - 
   
From:
   Marketta Priha 
   
To:
[EMAIL PROTECTED]
   
   
Sent:
Monday, February 03, 2003 11:18AM
   
Subject:
[JBoss-user] [ANN] Tammi 1.0Released - a JMX Application Framework
   


   
   
Hello 

This message isrelevant to JBoss users interested in applying JBoss'
JMX capabilities also inservlet development and business logic implementation.


The NortherOrganization has released Tammi 1.0 open source development
framework for webapplications at http://tammi.sourceforge.net/.
   Downloads, a demo with an on-line manual, extensive tech spec and API
docs areavailable. 

Tammi is a Java component based development framework andrun-time container
for applications supporting web browsers, mobile terminalsand/or Swing
based user interfaces. 

The key technologies appliedinclude service proxy architecture with Java
Management Extensions (JMX),dynamic configuration with Dynamic Java,
MVC filters and filter chains withJava Servlets, template processing
with Apache Velocity and Freemarker, andgeneral design derived from Apache
Turbine. The architecture allows effortlessintegration of additional
libraries when needed. 

Tammi, as well asapplications built with it, can be executed either as
a servlet or filterchain under a J2EE compatible servlet container, the
recommended approach forJBoss users. In addition, it contains an internal
HTTP(S) 1.1 capableconnector with competent performance. 

Separate notes on how to buildand deploy Tammi to JBoss are in Sourceforge
under Docs-section. 
http://sourceforge.net/docman/display_doc.php?docid=15052&group_id=62554
   

Tammi application components are JMX MBeans meant for implementingindependent
business logic themselves or to act as proxies to nativelibraries, remote
programs and other kinds of manageable systems. 

InTammi, we have chosen to exploit a template engine instead of JSP.
Thelocalization and customization of look-and-feel, as well as the RAD
supportfor HTML forms, is based on that approach. 

Tammi implements an MBeanadministration interface with templates. Under
JBoss you'll have two optionsfor administration: the JMX Console and
Tammi administration pages. In bothinterfaces, you can view all the MBeans
in the JBoss and Tammi domains.

Regards, 
Marketta 
mpriha at users.sourceforge.net 



  






Re: [JBoss-user] Still no luck: Re: CMR many to many relation problems

2003-01-29 Thread Gary S. Cuozzo
here's a setup that i have for clients-roles...

client side:
   /**
* @return all roles associated with this client
*
* @ejb:interface-methodview-type="local"
*
* @ejb:relationname="client-role"
*  role-name="client-has-roles"
*
* @jboss:relation  related-pk-field="id"
*  fk-column="role_id"
*
* @jboss:relation-tabletable-name="CLIENT_ROLE"
   **/
   public abstract Collection getRoles();

   /**
* set all roles associated with this client
*
* @ejb:interface-methodview-type="local"
   public abstract void setRoles(Collection roles);


role side:
   /**
* @return all clients that have this Role permission
*
* @ejb:interface-methodview-type="local"
*
* @ejb:relationname="client-role"
*  role-name="role-has-clients"
*
* @jboss:relation  related-pk-field="id"
*  fk-column="client_id"
*
* @jboss:relation-tabletable-name="CLIENT_ROLE"
   **/
   public abstract Collection getClients();

   /**
* set all clients that have this Role permission
*
* @ejb:interface-methodview-type="local"
   **/
   public abstract void setClients(Collection clients);

hope that helps,
gary.



Nir Oren wrote:


Hi...

I tried the advice I recieved regarding getting the table name changed,
with no luck. Whenever I start jboss, if the table already exists, I get
an exception saying so, and anything depending on the table breaks. If the
table doesn't exist, it gets created, but clearly, this case is not
acceptable as I need the data I had in it.

Does anyone have an example of a CMR many to many relation together with
the xdoclet tags they used to create it?

Any and all help greatly appreciated
Nir



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
 





---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] How to assign method-permission to create methods?

2003-01-28 Thread Gary S. Cuozzo
I've seen this before as well.  I *think* that I fixed it by putting the 
following xdoclet tag up in my class-level area:
   @ejb:permission  unchecked=""

This adds an  tag into ejb-jar.xml for the methods that 
don't have security permissions specified.  Then I override the 
permissions for each method that I want secured with specific roles.

Hope that helps,
gary.


Jon Haugsand wrote:

Can't see what I do wrong here, I get [SecurityInterceptor] No method
permissions assigned to method=create, interface=HOME.  But isn't the
following good enough?

 
description not supported yet by ejbdoclet
silbrukere
siladministratorer

   description not supported yet by ejbdoclet
   SynkronGrensesnitt
   *

 

Cannot find I do anything different from what we did on the JBoss
advanced training (well, maybe we used cmp 1.1 then).  So where shall
I look to find the error?

I run jboss-3.0.2_tomcat-4.0.4.  Full stacktrace from server follows:

12:32:25,539 ERROR [SecurityInterceptor] No method permissions assigned to method=create, interface=HOME
12:32:25,543 ERROR [LogInterceptor] EJBException, causedBy:
java.lang.SecurityException: No method permissions assigned to method=create, interface=HOME
   at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:190)
   at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:94)
   at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:129)
   at org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionContainer.java:300)
   at org.jboss.ejb.Container.invoke(Container.java:738)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
   at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:370)
   at java.lang.reflect.Method.invoke(Native Method)
   at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:236)
   at sun.rmi.transport.Transport$1.run(Transport.java:147)
   at java.security.AccessController.doPrivileged(Native Method)
   at sun.rmi.transport.Transport.serviceCall(Transport.java:143)
   at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
   at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
   at java.lang.Thread.run(Thread.java:479)

 





---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] virtual hosts with jsp support

2003-01-20 Thread Gary S. Cuozzo
Hey all,
I'm in the process of trying to configure jboss3.0.4/tomcat to support 
jsp's for virtual hosts.  I'm pretty sure I had this working with 
standalone tomcat a while back.

Here's what I did:
1.  create a ROOT.war directory under deploy
2.  WEB-INF/web.xml is basically an empty  entry
3.  WEB-INF/jboss-web.xml sets  to / and defines the 
 entry
4.  in tomcat4-service.xml I added a  entry and used the 'appBase' 
attribute to the absolute path of the document root that apache is also 
using for the host.

This does not work, however.  Just as a test, I copied the index.jsp 
test file over to the ROOT.war directory, and that worked.  It appears 
that JBoss is ignoring my appBase attribute?

Is there something else I need to configure as well?

Also, is there a way that I can get away without making a ROOT web 
application and adding hosts to the jboss-web.xml file?  I'd really like 
a setup where I can just setup the host in apache httpd.conf file and 
jkmount *.jsp over to tomcat and have that work.

Thanks in advance for any help,
gary.




---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] jms issues

2003-01-14 Thread Gary S. Cuozzo
hey all,
I'm doing some testing on my application, and having some issues with 
the JMS service.

I have an EJB application with a web client, all deployed as a single 
.ear file.  The application processes requests and posts messages to a 
single JMS queue.

On another server, I have a MBean with a single thread that blocks for a 
message on the queue.  If there are any problems with attaching to the 
queue, the thread will periodically retry.

I've been doing tests that involve taking one server or the other down & 
bringing it back up.  Everything is ok if I take the application server 
down & bring it back up.  The MBean reconnects to the queue and life 
goes on.

However, if I kill the MBean, the queue seems to become entirely 
unusuable.  Naming lookups fail on both servers, yet the queue's 
destination MBean still exists on the server.  If I try to recreate the 
queue, it says it already exists.  The application behaves fine 
otherwise.  The only way to get the app running again is to kill JBoss 
and restart the app server.  At that point, the MBean will reconnect and 
process messages.

Has anybody else seen this behavior?

I'm using JBoss 3.0.4 on JVM 1.4.1 on Linux.

Thanks,
gary.




---
This SF.NET email is sponsored by: Take your first step towards giving 
your online business a competitive advantage. Test-drive a Thawte SSL 
certificate - our easy online guide will show you how. Click here to get 
started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Jboss/java on Linux SMP box?

2003-01-14 Thread Gary S. Cuozzo
Yeah, I totally agree with you.

My main point that I wanted to make was that the kernel configuration 
could have drastic effects on the system performance.  And also that RH 
has many different "stock" kernels that could be installed.  Their 
"enterprise" kernel has pretty different parameters compiled in than the 
"regular" kernel.  I've also seen linux boxes where the installer didn't 
properly detect SMP and installed a kernel built for one processor only.


Dan Christopherson wrote:

You're comparing apples with oranges, bananas with baboons. If your 
dual processor box has 'slow' drives and your laptop's IDE has 
sufficient bandwidth, io bound things like database access and JSP 
compiles will be faster.

I'd imagine that your (new?) dual athlon has lots of fast disk on 
160MB SCSI channels. That's just gonna rip (relatively) no matter what 
the software is doing.

I'm not disagreeing that there may be problems with certain kernel 
builds and java VMs threading on linux SMP - I'm just urging you not 
to jump to conclusions when the hardware is so different.

Gary S. Cuozzo wrote:

Funny you should mention that.  My usual desktop is a dual P3-700 
SCSI box, but has a very old (read slow) IBM disk in it.  I was 
working last night on my laptop (IBM Thinkpad, ~800MHz) and refreshed 
my schema and thought "wow, that was WAY faster than my desktop".  
JSP pages & such seem to compile much faster too.  I'm running the 
exact same s/w setup as you are on both boxes.

However, we just went to production on a dual AMD Athlon MP, running 
debian not RH, and that box smokes.  We have not had a big load on it 
yet, but the performance difference is noticable.

This leads me to believe that maybe there are tweaks that 
could/should be made to the stock RH kernel.  Right now, I'm running 
2.4.18-3smp installed via RPM's.  I'm considering trying the 
enterprise kernel to see if there is a difference.  Beyond that, I 
guess I could try custom building one and try that too.  Like I said, 
I have a very old & slow disk in that system, but even in-memory apps 
don't seem to run as well as my laptop.

Please let us know if you find anything concrete, I'll do the same.
gary.

Darren Hartford wrote:

Hey all,
I have been having some performance issues with JBoss, and thought 
it related to ignorance or poor CMP/cache setup.  However, I just 
happen to test the same application from a dual-processor Linux box 
to a single-processor Linux laptop, and the laptop performed 
better.  Also have a specialized java-based XML-RPC application 
server (not related to JBoss) that has the same issue of performance 
between dual-processor and single-processor hardware servers.

All are running Redhat 7.3, running Sun JDK 1.4.1_01.  Any ideas if 
java on Linux SMP has some performance issues, or if someone has had 
similar issues?

-D





---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user






---
This SF.NET email is sponsored by: Take your first step towards giving 
your online business a competitive advantage. Test-drive a Thawte SSL 
certificate - our easy online guide will show you how. Click here to get 
started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Jboss/java on Linux SMP box?

2003-01-14 Thread Gary S. Cuozzo
Funny you should mention that.  My usual desktop is a dual P3-700 SCSI 
box, but has a very old (read slow) IBM disk in it.  I was working last 
night on my laptop (IBM Thinkpad, ~800MHz) and refreshed my schema and 
thought "wow, that was WAY faster than my desktop".  JSP pages & such 
seem to compile much faster too.  I'm running the exact same s/w setup 
as you are on both boxes.

However, we just went to production on a dual AMD Athlon MP, running 
debian not RH, and that box smokes.  We have not had a big load on it 
yet, but the performance difference is noticable.

This leads me to believe that maybe there are tweaks that could/should 
be made to the stock RH kernel.  Right now, I'm running 2.4.18-3smp 
installed via RPM's.  I'm considering trying the enterprise kernel to 
see if there is a difference.  Beyond that, I guess I could try custom 
building one and try that too.  Like I said, I have a very old & slow 
disk in that system, but even in-memory apps don't seem to run as well 
as my laptop.

Please let us know if you find anything concrete, I'll do the same.
gary.

Darren Hartford wrote:

Hey all,
I have been having some performance issues with JBoss, and thought it related to ignorance or poor CMP/cache setup.  However, I just happen to test the same application from a dual-processor Linux box to a single-processor Linux laptop, and the laptop performed better.  Also have a specialized java-based XML-RPC application server (not related to JBoss) that has the same issue of performance between dual-processor and single-processor hardware servers.

All are running Redhat 7.3, running Sun JDK 1.4.1_01.  Any ideas if java on Linux SMP has some performance issues, or if someone has had similar issues?

-D


---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
 





---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] accessing jms queue from mbean

2003-01-13 Thread Gary S. Cuozzo
hey all,
i have a jms client that used to run as a standalone application, that 
i've converted to run as an mbean.  i have the mbean running in its own 
jboss instance that was based on the minimal configuration with naming 
removed.  i modified the jndi.properties file to point at the main app 
server on another box currently running jboss default configuration.

my problem is that i'm getting naming exceptions of "Receive timed out" 
if i try to use my InitialContext.  is there any other configuration 
that needs to be done?  should i be copying some of the jboss-client 
jars (used by the standalone app) into the lib directory for this 
configuration?  or should i embed those files into my .sar file?

thanks in advance for any help.
gary.



---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Virtual hosting question

2002-12-16 Thread Gary S. Cuozzo
i'm doing this right now and just got it working today.  i have a single 
webapp "/global" that will serve all our virtual host customers a set of 
functionality.  i'm using jboss 3.x series with embedded tomcat 
front-ended with apache.

i just have a straight-up .war file right now, with no jboss-web file. 
just a bunch of servlets/jsp's.  all i did was tell apache to pass all 
requests for "/global" to tomcat via the connector with the proper mount 
command in httpd.conf.

i'm on my way out, but can send more detailed info tomorrow if you need it.

hth,
gary.


poo wrote:

Hello,

Is there a way to configure multiple virtual hosts to use the same 
webapp?  It appears that jboss-web only allows one virtual-host param.

thanks

S


Scott M Stark wrote:

I looked at the problem this morning and the problem is that you have 
to setup
Host elements that matches the virtual host names used in the 
jboss-web.xml,
for example:

   
 

   
  
 verbosityLevel = "trace" category = 
"org.jboss.web.localhost.Engine"/>
...
  
 
prefix = "a_access" suffix = ".log"
pattern = "common" directory = 
"../server/default/log" />
 
  
  
 
prefix = "b_access" suffix = ".log"
pattern = "common" directory = 
"../server/default/log" />
 
  
...

With this I can deploy two wars to the a.dom.com and b.dot.com 
virtual hosts
with both using the root context:

14:34:03,706 INFO  [MainDeployer] Starting deployment of package:
file:/C:/tmp/JBoss/jboss-3.0.3RC1/server/tomcat/deploy/a.war/
14:34:03,716 INFO  [EmbeddedCatalinaServiceSX] deploy, ctxPath=, 
warUrl=file:/C:
/tmp/JBoss/jboss-3.0.3RC1/server/tomcat/deploy/a.war/
14:34:03,786 INFO  [Engine] WebappLoader[]: Deploying class 
repositories to work
directory C:\tmp\JBoss\jboss-3.0.3RC1\catalina\work\a.dot.com\_
14:34:03,786 INFO  [Engine] StandardManager[]: Seeding random number 
generator class java.security.SecureRandom
14:34:03,786 INFO  [Engine] StandardManager[]: Seeding of random 
number generator has been completed
14:34:04,828 INFO  [Engine] ContextConfig[]: Added certificates -> 
request attribute Valve
14:34:05,048 INFO  [EmbeddedCatalinaServiceSX] Using Java2 parent 
classloader delegation: true
14:34:05,048 INFO  [Engine] StandardWrapper[:default]: Loading 
container servlet default
14:34:05,048 INFO  [Engine] StandardWrapper[:invoker]: Loading 
container servlet invoker
14:34:05,098 INFO  [MainDeployer] Deployed package: 
file:/C:/tmp/JBoss/jboss-3.0
.3RC1/server/tomcat/deploy/a.war/
14:34:05,098 INFO  [MainDeployer] Starting deployment of package:
file:/C:/tmp/JBoss/jboss-3.0.3RC1/server/tomcat/deploy/b.war/
14:34:05,118 INFO  [EmbeddedCatalinaServiceSX] deploy, ctxPath=, 
warUrl=file:/C:
/tmp/JBoss/jboss-3.0.3RC1/server/tomcat/deploy/b.war/
14:34:05,128 INFO  [Engine] WebappLoader[]: Deploying class 
repositories to work
directory C:\tmp\JBoss\jboss-3.0.3RC1\catalina\work\b.dot.com\_
14:34:05,128 INFO  [Engine] StandardManager[]: Seeding random number 
generator class java.security.SecureRandom
14:34:05,128 INFO  [Engine] StandardManager[]: Seeding of random 
number generator has been completed
14:34:05,198 INFO  [Engine] ContextConfig[]: Added certificates -> 
request attribute Valve
14:34:05,268 INFO  [EmbeddedCatalinaServiceSX] Using Java2 parent 
classloader delegation: true
14:34:05,268 INFO  [Engine] StandardWrapper[:default]: Loading 
container servlet default
14:34:05,268 INFO  [Engine] StandardWrapper[:invoker]: Loading 
container servlet invoker
14:34:05,358 INFO  [MainDeployer] Deployed package: 
file:/C:/tmp/JBoss/jboss-3.0.3RC1/server/tomcat/deploy/b.war/

testsuite 371>wget http://b.dot.com:8080/index.html
--14:45:55--  http://b.dot.com:8080/index.html
  => `index.html.2'
Resolving b.dot.com... done.
Connecting to b.dot.com[127.0.0.1]:8080... connected.
HTTP request sent, awaiting response... 200 OK
Length: 64 [text/html]

100%[>] 6462.50K/s
ETA 00:00

14:45:55 (62.50 KB/s) - `index.html.2' saved [64/64]

testsuite 372>wget http://a.dot.com:8080/index.html
--14:46:01--  http://a.dot.com:8080/index.html
  => `index.html.3'
Resolving a.dot.com... done.
Connecting to a.dot.com[172.17.66.55]:8080... connected.
HTTP request sent, awaiting response... 200 OK
Length: 64 [text/html]

100%[>] 6462.50K/s
ETA 00:00

Support for virtual hosting needs to be setup in the 
tomcat4-service.xml descriptor Config.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message -
From: "Brian Topping" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, September 19, 2002 6:40 PM
Subject: RE: [JBoss-user] Virtual hosting

Re: [JBoss-user] Confused about session handling in Jboss 3.0.3

2002-10-03 Thread Gary S. Cuozzo

I think you need to first check your session to be sure you have one 
before just blindly invalidating it.  the first time you call your 
servlet, you are trying to invalidate a session that is not set up.  or, 
you can add a 'true' as an argument to the first request.getSession() 
call, but then what is the point of invalidating it right after?

you can also just catch the exception and assume that there was no valid 
session at that time and carry on.

hth,
gary.


Alexander Sparkowsky wrote:

>Hi,
>
>After using Jboss 2.4 + Tomcat for a long time I wanted to see if my
>project runs fine with Jboss 3.0 and default web container (Jetty). I'm
>now getting an exception from the web container. I'm not sure if I did
>something wrong what was tolerated by tomcat so far or if it's a bug.
>
>In some circumstances my servlet has to invalidate the current session
>and create a new one. This is done as shown in the following
>Test-Servlet:
>
> 8< --
>package de.alxs.jboss;
>
>import java.io.IOException;
>import javax.servlet.ServletOutputStream;
>import javax.servlet.http.HttpServlet;
>import javax.servlet.http.HttpServletRequest;
>import javax.servlet.http.HttpServletResponse;
>import javax.servlet.http.HttpSession;
>
>
>
>/**
> * 
> * 
> * @author  $Author$
> * @version $Revision$ ($Date$)
> */
>public class SessionTest extends HttpServlet {
>public void doGet(HttpServletRequest request, HttpServletResponse
>response) {
>HttpSession session = request.getSession();
>session.setAttribute("blubber", "preinvalidate");
>session.invalidate();
>session = request.getSession(true);
>
>// Exception is thrown here
>session.setAttribute("blubber", "Blubberarg");
>
>try {
>ServletOutputStream out = response.getOutputStream();
>out.println("OK!");
>} catch (IOException e) {
>}
>}
>
>public void doPost(HttpServletRequest request, HttpServletResponse
>response) {
>doGet(request, response);
>}
>
>}
> 8< --
>
>When accessing this servlet the first time I get the following
>exception:
>
>17:04:43,788 WARN  [jbossweb] WARNING: Exception for
>/jb_test/test/session
>java.lang.IllegalStateException
>at
>org.mortbay.jetty.servlet.AbstractSessionManager$Session.setAttribute(Ab
>stractSessionManager.java:550)
>at de.alxs.jboss.SessionTest.doGet(SessionTest.java:24)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>at
>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366)
>at
>org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH
>andler.java:284)
>at
>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:577)
>at org.mortbay.http.HttpContext.handle(HttpContext.java:1674)
>at
>org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon
>text.java:544)
>at org.mortbay.http.HttpContext.handle(HttpContext.java:1624)
>at org.mortbay.http.HttpServer.service(HttpServer.java:875)
>at org.jboss.jetty.Jetty.service(Jetty.java:541)
>at
>org.mortbay.http.HttpConnection.service(HttpConnection.java:785)
>at
>org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:935)
>at
>org.mortbay.http.HttpConnection.handle(HttpConnection.java:802)
>at
>org.mortbay.http.SocketListener.handleConnection(SocketListener.java:200
>)
>at
>org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:294)
>at
>org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
>at java.lang.Thread.run(Thread.java:536)
>
>After that I'm able to rerun the servlet without any problems as long as
>I don't close and restart the browser.
>
>I've added the war for testing. The URL is
>http://localhost:8080/jb_test/test/session
>
>Thanks!
>
>Alexander Sparkowsky, Berlin, Germany
>
>  
>




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



Re: [JBoss-user] Re : Erratic Jboss3.0 on Linux

2002-09-20 Thread Gary S. Cuozzo

I had problems with Jboss3.0-Tomcat4.0.3 on my linux (RH7.3) SMP system 
with similar symptoms when using Sun JDK1.4.1.  I am now running Sun 
JDK1.4 and it seems to be fine.  At the time I started having issues, I 
had just upgraded from JDK1.3 to 1.4.1 and was figuring that 'latest is 
greatest'.  FWIW, I also had no issues with the Sun JDK1.3.

gary.


Arijit Ghosh wrote:

>Hi,
>
>I am using JDK1.3 blackdown and Redhat Linux 7.2. Also using Jboss3.0
>with Tomcat4.0.3 and Castor (using castor0.9.3.21)
>
>Any bugs known with these configurations ?
>
>Regards,
>  Arijit
>
>
>--
>most likely a vm problem. java on linux is a bit of a problem. many VMs
>(including the latest 1.4.1 VM) are very buggy. what vm are you using?
>try
>switching (e.g. from 1.4.1 to 1.4 or 1.3 or try the blackdown ports or
>ibm
>vms instead of sun's). it's really trial and error as one VM might run
>flawlessly with one application server and another one won't and it
>might be
>vice versa with a different application server.
>
>sad but that's how it is.
>
>hth
>
>robert
>
>
>
>---
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>  
>




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



Re: [JBoss-user] N.Y. Open house tonight at 7pm

2002-09-19 Thread Gary S. Cuozzo

I just returned to CT from the open house.  I'm happy to say that I had 
a good time, learned a bit, got to meet some of the key JBoss folks and 
also some other interesting people in the J2EE community.

Thanks much for hosting it,
gary.


Scott M Stark wrote:

>Don't forget to attend the free JBoss open house at the New York Marriott East Side
>at 7pm tonight, Thursday Sep 19. See the following link for information on the
>Marriot location:
>
>http://www.marriott.com/epp/default.asp?MarshaCode=NYCEA
>
>
>Scott Stark
>Chief Technology Officer
>JBoss Group, LLC
>
>
>
>
>---
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>  
>




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



Re: [JBoss-user] Deployment Error (Apache+Tomcat+JBoss)

2002-09-19 Thread Gary S. Cuozzo

I have my WEB-INF and other web related items encapsulated within my 
.war file.  So, move WEB-INF tree, foo.jsp, and index.html into the .war 
file and try that.  at a glance, the application.xml and web.xml seem to 
be ok.

hth,
gary.



Manoj Kithany wrote:

> Hi Experts,
>
> Greetings!
>
> I created the context in SERVER.XML file and added a following CONTEXT:
> 
>
> Also, my Directory structure is as follows:
> /kithany
> /kithany/META-INF/application.xml
> /kithany/WEB-INF/web.xml
> /kithany/foo.jsp
> /kithany/index.html
> /kithany/kithany.war
>
> I have my APPLICATION.XML file as follows:
> -
> 
> 
> KITHANY
> 
> 
> kithany.war
> /kithany
> 
> 
> 
> -
>
> And, my WEB.XML file is as:
> -
> 
>   PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd";>
> 
>  
>  
>  30
>  
>  
>  
>  
>  index.jsp
>  
>  
>  index.html
>  
>  
>  index.htm
>  
>  
> 
> -
>
> I then creat WAR file as follows:
> -
> #pwd
> #/kithany
> #jar -cvfM kithany.war .
> -
>
> Which I then, put it into /jboss/server/default/deploy and then start my
> JBOSS(Tomcat/Catalina) Server and then on browser, I type following:
> http://MY_IP_ADDR_ESS:8080/kithany
> http://MY_IP_ADDR_ESS:8080/kithany/index.html
>
> but it gives still gives following message.
> Apache Tomcat/4.0.3 - HTTP Status 500 - No Context configured to process
> this request
>
> Experts, could you please guide me on to this.
>
> THANKS!
>
> Manoj G. Kithany
> [EMAIL PROTECTED]
>
>
>
>
> _
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
>
> ---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user





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



[JBoss-user] DatabaseLogin with DESede

2002-08-29 Thread Gary S. Cuozzo

I'd like to use DESede (3DES) encrypted passwords in my authentication 
database.  Is this a feature that is already supported, or would I have 
to add it myself with a custom LoginModule?  I saw that the 
DatabaseLoginModule supports a few hash algorithms, but want to use DESede.

I just don't want to reinvent the wheel here...

gary.






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



Re: [JBoss-user] Problem with JBoss3.0.0(Tomcat 4.0.3) with Struts

2002-08-21 Thread Gary S. Cuozzo

in your web.xml file, for the configuration of the action servlet, do 
you have an init parameter to tell it where the resource file is?  i 
have something like:

 
application

com.innovationsw.panel.web.ApplicationResources


gary.


Lai Le Phi wrote:

>Hi,
>I meet the problems with files .properties.
>
>My ApplicationResource.properties which defines
>"index.title=Page Title" is placed in WEB-INF/classes.
>And struts.jar is placed in "WEB-INF/lib". On
>test.jsp, I have that:
>
><%@ taglib uri="/WEB-INF/struts-bean.tld"
>prefix="bean" %>
><%@ taglib uri="/WEB-INF/struts-html.tld"
>prefix="html" %>
><%@
>page language="java"
>import="java.util.*"
>%>
>
>
>
><%
>java.util.Locale locale = (java.util.Locale)
>session.getAttribute(org.apache.struts.action.Action.LOCALE_KEY);
>if (locale == null) {
>locale = java.util.Locale.getDefault();
>}
>String language = locale.getLanguage();
>String localeStr = locale.toString();
>%>
>
>
>href="../css/<%=localeStr%>/admin.css"
>type="text/css">
>
>
> ...
>
>But it throws an error when I call test.jsp. And it's
>really strange that i don't meet this error when using
>JBoss2.4.4. Please help me solve this problem
>
>Stack Trace is:
>javax.servlet.ServletException: Missing message for
>key index.title
>at
>org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
>at
>org.apache.jsp.index$jsp._jspService(index$jsp.java:240)
>at
>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
>at
>javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>at
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
>. 
>
>__
>Do You Yahoo!?
>HotJobs - Search Thousands of New Jobs
>http://www.hotjobs.com
>
>
>---
>This sf.net email is sponsored by: OSDN - Tired of that same old
>cell phone?  Get a new here for FREE!
>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>




---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] problem with JAAS

2002-08-20 Thread Gary S. Cuozzo

my roles table (a view actually) has 3 columns:
username
role
rolegroup

I do NOT have any information in the rolegroup column, but it does have 
to exist in the table.

I don't remember where I found out about the table format, but I 
remember having a very difficult time getting the database login stuff 
to work.

Try that, if it doesn't work, I can send you other information.

gary.

>
>2. created the table
>
> table user{
> username varchar(10) ,
> password varchar(10) }
>
> table roles{
> username varchar(10) ,
> roles varchar(10) }
>
>




---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] application security configuration

2002-07-31 Thread Gary S. Cuozzo

Ok, I got my app to work!  Had some minor configuration problems on both 
client & server side that I had to work through.  But, this definately 
led me on the right track.  Now I just have to formalize my security 
policies and implement them 100%.

Thanks for the help.  :-)
gary.


Scott M Stark wrote:

>Any methods without permissions are equivalent to defining the methods
>to be in the exclude-list and not invokable by anyone. When a
>security-domain
>is defined the default is no access. You have to explicity define what
>should
>be accessible. You also cannot make calls to unchecked methods from
>an unsecured servlet. There still has to be a principal without roles. See
>the
>security chapter in the admin and devel book.
>
>
>Scott Stark
>Chief Technology Officer
>JBoss Group, LLC
>xxxxxxxx
>- Original Message -
>From: "Gary S. Cuozzo" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, July 31, 2002 7:08 AM
>Subject: Re: [JBoss-user] application security configuration
>
>
>>In my ejb-jar.xml file I have:
>>
>>  
>> description not supported yet by
>>ejbdoclet
>> 
>> 
>>description not supported yet by
>>ejbdoclet
>>ClientSessionBean
>>*
>> 
>>  
>>
>>and other ones like:
>>
>>   
>>  description not supported yet by
>>
>ejbdoclet
>
>>  
>>  
>> 
>> ClientSessionBean
>> Remote
>> authenticate
>> 
>>java.lang.String
>>java.lang.String
>>java.lang.String
>> 
>>  
>>   
>>
>>Is my syntax wrong?  Oddly enough, I've even tried removing ALL the
>>method permissions but leaving the security domain enabled, and still
>>cannot call into the bean.  I'm doing something else wrong I think.
>> Now, to find out what it is!  :)
>>
>>gary.
>>
>
>
>
>
>---
>This sf.net email is sponsored by: Dice - The leading online job board
>for high-tech professionals. Search and apply for tech jobs today!
>http://seeker.dice.com/seeker.epl?rel_code=31
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>




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



Re: [JBoss-user] application security configuration

2002-07-31 Thread Gary S. Cuozzo

In my ejb-jar.xml file I have:

  
 description not supported yet by 
ejbdoclet
 
 
description not supported yet by 
ejbdoclet
ClientSessionBean
*
 
  

and other ones like:

   
  description not supported yet by ejbdoclet
  
  
 
 ClientSessionBean
 Remote
 authenticate
 
java.lang.String
java.lang.String
java.lang.String
 
  
   

Is my syntax wrong?  Oddly enough, I've even tried removing ALL the 
method permissions but leaving the security domain enabled, and still 
cannot call into the bean.  I'm doing something else wrong I think. 
 Now, to find out what it is!  :)

gary.


Alex Loubyansky wrote:

>GSC> The problem that I have now is that it happens for EVERY method call to
>GSC> the bean instead of just the one that I have permissions set up for.
>
>GSC> Any clues?
>
>Are other methods marked as ?
>
>alex
>
>
>
>
>---
>This sf.net email is sponsored by: Dice - The leading online job board
>for high-tech professionals. Search and apply for tech jobs today!
>http://seeker.dice.com/seeker.epl?rel_code=31
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>




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



Re: [JBoss-user] application security configuration

2002-07-30 Thread Gary S. Cuozzo

Thanks.  I actually had just tried that right before receiving your 
email and made some progress.  So I now get:
17:11:29,440 ERROR [SecurityInterceptor] Authentication exception, 
principal=null
as I would expect.

The problem that I have now is that it happens for EVERY method call to 
the bean instead of just the one that I have permissions set up for.

Any clues?

gary.


David Jencks wrote:

>I think you have to use the single login-conf.xml file in
>server/[conf-name]/conf
>
>david jencks
>
>On 2002.07.30 16:16:19 -0400 Gary S. Cuozzo wrote:
>
>>Hello all,
>>I'm at the point of configuring security parameters for my app and have 
>>a few questions.
>>
>>I ultimately want to use the DatabaseServerLoginModule and authenticate 
>>via a web-app, but have been trying some of the simpler modules just to 
>>get started.  So far I have not been successful.
>>
>>So far, I've created a login-config.xml file and put it in my ear file. 
>> I've also added the security domain to my jboss.xml.  As a test, I 
>>created an empty method on a session bean and set some permissions in 
>>the ejb-jar.xml file to test with.  So far, I've just tried to connect a 
>>stand-alone client to the remote interface of the session bean.  ALL of 
>>my calls fail, even to methods that don't have permissions configured.
>>
>>Oddly enough, all of my exceptions reference the UserRolesLoginModule 
>>(which I'm not specifying to be loaded) and complain about not having 
>>user/password files set up.  Where would this come from?  I'm sure I'm 
>>just missing/overlooking something stupid.  I'd be happy to forward any 
>>support files if needed.
>>
>>I'm using 3.0.0 with embedded tomcat 4.0.3.
>>
>>Thanks in advance for any help...
>>gary.
>>
>>
>>
>>---
>>This sf.net email is sponsored by: Dice - The leading online job board
>>for high-tech professionals. Search and apply for tech jobs today!
>>http://seeker.dice.com/seeker.epl?rel_code=31
>>___
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
>>
>
>
>---
>This sf.net email is sponsored by: Dice - The leading online job board
>for high-tech professionals. Search and apply for tech jobs today!
>http://seeker.dice.com/seeker.epl?rel_code=31
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>




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



[JBoss-user] application security configuration

2002-07-30 Thread Gary S. Cuozzo

Hello all,
I'm at the point of configuring security parameters for my app and have 
a few questions.

I ultimately want to use the DatabaseServerLoginModule and authenticate 
via a web-app, but have been trying some of the simpler modules just to 
get started.  So far I have not been successful.

So far, I've created a login-config.xml file and put it in my ear file. 
 I've also added the security domain to my jboss.xml.  As a test, I 
created an empty method on a session bean and set some permissions in 
the ejb-jar.xml file to test with.  So far, I've just tried to connect a 
stand-alone client to the remote interface of the session bean.  ALL of 
my calls fail, even to methods that don't have permissions configured.

Oddly enough, all of my exceptions reference the UserRolesLoginModule 
(which I'm not specifying to be loaded) and complain about not having 
user/password files set up.  Where would this come from?  I'm sure I'm 
just missing/overlooking something stupid.  I'd be happy to forward any 
support files if needed.

I'm using 3.0.0 with embedded tomcat 4.0.3.

Thanks in advance for any help...
gary.



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



Re: [JBoss-user] Which verisign certificate ?

2002-07-23 Thread Gary S. Cuozzo

I also use Thawte, and personally have moved ALL of my business away 
from Verisign (I have one more domain out of a few hundred left to 
move).  I use Thawte's "supercert" product.  They are going up on their 
prices on 8/5 though.  At $300 I don't think they are really 
inexpensive, but their service is good.

gary.


James Ward wrote:

>Bobby,
>It may be too late for you, but I wouldn't use Verisign for certs.  They
>are expensive and in my experience hard to work with.  I use
>www.thawte.com and have not been disappointed after buying ~30
>certificates.  They also have the JavaSoft (Java Web Server) type
>listed.
>
>Does anyone else use a Certificate Authority they have been pleased with
>that is inexpensive?
>
>BTW: If you use a Hosting Partner with Thawte you will get a $25
>discount.  Email me directly if you want to use my code.
>
>Thanks.
>
>-James
>
>
>-Original Message-
>From: Bobby Abraham [mailto:[EMAIL PROTECTED]] 
>Sent: Tuesday, July 23, 2002 7:23 AM
>To: [EMAIL PROTECTED]
>Subject: [JBoss-user] Which verisign certificate ?
>
>
>I am busy appling for a SSL certificate from Verisign.
>
>It gives a list of server software options including apache, ibm, and 
>javasoft.
>
>We using JBoss 3.0 with Jetty.  We have successfully generated the CSR 
>and installed a test certificate but for the real certificate the serer 
>software seems to be important (unlss they are asking this for 
>statistical purposes).
>
>Am I correct in assuming the we should be asking for a javasoft 
>certificate given that we are using JSSE ?
>




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



[JBoss-user] ejb/j2ee security and client authentication

2002-07-18 Thread Gary S. Cuozzo

Hello all,
I've got the EJB layer for my application mostly implemented, and I'm 
ready to attach a web tier as the client.  I'm using jboss3.0.x with 
integrated tomcat.

I'm using a postgres datasource and my schema has a 'user' table (with 
id, username & password fields) and a 'role' table that relates the user 
(id) to 0 or more roles.  Also, my usernames are not unique by 
themselves, but they are unique when coupled with a user/domain pair. 
 However, the user id's are unique and are my primary key.

Here's my question/issue:  I would like to use as much of the J2EE 
framework as I can to perform authentication and permissions, but am not 
sure what/where I should be looking.  Do I have to configure JbossSX to 
do this?  Or is there some other facility that I should be looking at? 
 I don't want to home grow a solution as I would like to have my 
security integrated with that of the EJB layer if possible.

I'm totally open to suggestions and advice.  Can somebody help point me 
in the right direction?  Any examples that I can look at?

Thanks in advance,
gary.




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



Re: [JBoss-user] EJB Design - Packaging / Components - how to?

2002-07-11 Thread Gary S. Cuozzo

Alan,
I just finished reading EJB Design Patterns and found it to be very 
useful.  It has a whole chapter on building with ant, choosing package 
names, dividing up jar files, etc.  Nothing earth shattering, but good 
food for thought.  I used some of the suggestions verbatim and modified 
others and used them as ideas for my own situation.  I don't recall the 
author, but it is from a guy at The Middleware Company and one of the 
authors of theserverside.com.  That should be enough info for you to 
located it.

The book is well written and is high level architecture only.  I read 
the entire book in a few nights (it's small too).  It's the highest 
signal:noise ratio I've found yet for this topic.  It assumes you know 
how to code and just focuses on major architecture decisions.

I'm sure there is lot's of stuff on the web too, but I do enjoy having 
books as well.
gary.


Alan Yost wrote:

>Hi All,
> 
>Just trying to work out the best structure for our "master build" file for an 
>application that will have various components.  We have never done any large scale 
>type J2EE work and I'm not sure how to best structure our ear,war and jar packages.  
>How are others building their J2EE applications at present with multiple developers?  
>Should we have multiple WAR, EAR files or a master EAR that includes all the rest?  
>Can anyone recommend any good links/resources on this area?
> 
> 
>tia
> 
> 
>Alan.
>
>   -Original Message- 
>   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
>   Sent: Thu 11/07/2002 4:45 PM 
>   To: [EMAIL PROTECTED] 
>   Cc: 
>   Subject: [JBoss-user] JBoss 3 and Petstore 1.1.2
>   
>   
>
>
>   Hi
>   
>   Please forgive me if this topic has been discussed before, but I couldn't find 
>it in the forums.
>   
>   I have followed through the instructions from Jboss site, and have has 
>Petstore working nicely on JBoss 2.4.4. Today I downloaded Jboss 3 and tried to run 
>the Petstore on it.
>   
>   I made the relavent changed to DB configs into the new Jboss directories and 
>deployed the ear and all seemed to go well. And I also get the page 
> fine.
>   
>   But when I try to enter the store, it fails with the following message:
>   
>   root cause :
>   
>   java.lang.NullPointerException
>   at 
>com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.getRequestMappings(ScreenFlowXmlDAO.java:249)
>   at 
>com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.loadRequestMappings(ScreenFlowXmlDAO.java:115)
>   at 
>com.sun.j2ee.blueprints.petstore.control.web.MainServlet.init(MainServlet.java:54)
>   
>   
>   investigation tells me this is due to the line MainServlet.java:54:
>   
>   requestMappingsURL = 
>getServletContext().getResource("/WEB-INF/xml/requestmappings.xml").toString();
>   
>   Which returns:
>   
>   14:15:41,234 INFO [STDOUT] requestMappingsURL = 
>jndi:/localhost/estore/WEB-INF/xml/requestmappings.xml
>   
>   And I think, in the new JBoss 3, this is not valid.
>   
>   Has anyone come across this problem before? Am I missing anything?
>   
>   Thanks a lot
>   Mak
>   
>   ps: i send this mail before but somehow it seems it didn't get through
>   
>   
>   
>   ---
>   This sf.net email is sponsored by:ThinkGeek
>   PC Mods, Computing goodies, cases & more
>   http://thinkgeek.com/sf
>   ___
>   JBoss-user mailing list
>   [EMAIL PROTECTED]
>   https://lists.sourceforge.net/lists/listinfo/jboss-user
>   
>




---
This sf.net email is sponsored by:ThinkGeek
PC Mods, Computing goodies, cases & more
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Unstable Overall System - please this is for your interest JBOSS

2002-06-29 Thread Gary S. Cuozzo

I am (was) running jboss on a rh72 smp box (now rh73) and had no 
problems.  I don't think RH is crap as much as the 2.4.7 kernel was 
total crap.  This kernel was known to have many problems and was not 
recommended for use.

On ANY linux box, you should be running at least 2.4.17 as the memory 
management was basically redesigned.  We has problems with 2.4.7 on RH, 
Debian, and Mandrake linux.

Try upgrading to a newer kernel and make sure you've applied all the 
patched RPM's from updates.redhat.com.

gary.


Dain Sundstrom wrote:

> Claudio,
>
> I'm not a linux expert, but I do remember a long discussions about Red 
> Hat 7.2 on several Java lists.  The conclusion was Red Hat 7.2 is 
> total crap and Red Hat should have never released it.  But to be more 
> specific I remember glibc was a broken build and the kernel had the 
> wrong configuration.   I suggest you take one of your Q/A boxes (you 
> have a Q/A box right?) and upgrade the kernel and glibc.  If if works 
> upgrade, your production server.
>
> -dain
>
> Claudio  wrote:
>
>>   Hello guys, 1st my configuration
>>
>>   2 machines with
>>   - RedHat 7.2 (precompiled kernel 2.4.7)
>>   - SMP (4 Processors)
>>   - 4 GB ram each
>>
>>   Machine B: DB2 7.2 UDB
>>
>>   Machine A: JBoss 2.4.6
>>   Sun JDK 1.4.0 -server
>>   -Xms668m
>>   -Xmx1546m (I tested with 18xxm ram
>> and give error on initializing VM)
>>
>>   I used IBM JDK 1.3.1 (rpm version)
>> (with LD_ASSUME_KERNEL=2.2.5), but
>> always give-me OutOfMemoryError after
>> 1h, 2h (depending resource usage)
>>
>>
>>   I tested JRockit 1.3 in three
>> different SMP boxes
>>
>> java version 1.3 Java(TM) 2
>> Runtime Environment,Standard Edition
>> (build
>> "1.3.1_dax.appeal.se-20020429-1504")
>> JRockit Virtual Machine (build
>> 3.1.4-dax.appeal.se-20020429-1504)
>>
>> ** returns the following in SMP system
>>
>>  libbfd: libbfd.so: cannot open
>> shared object file: No such file or
>> directory
>>  ERROR: The pthread library is
>> unknown.
>>  Are you running a supported Linux
>> distribution?
>>
>>   I want wo use JBoss3 with cluster,
>> but CircularityError (in Sun 1.4, 1.3
>> and blackdown 1.3.1)
>>   doesn't let me. :(
>>
>>   I revised the application on top of
>> JBoss, and works fine, just 12
>> Entities BMP, 1 SFSB, 17 SLSB
>>   - ejb 1.1, using patterns: VO, BI,
>>   - commit option B
>>   - transaction timeout 40s (wow!!!)
>>   - Many transactions demarcation are
>> NotSupported,
>>   - resultsSets, Statements,
>> connections are properly closed in
>> finally clauses, like
>>   try {
>>  // dummy examples
>>  conn = getConnection();
>>  stmt = getStatement();
>>  resultset = getResutl();
>>  // blah blah blah
>>   } finally {
>>  close(resultset);
>>  close(stmt);
>>  close(conn);
>>   }
>>
>>   void close(Connection conn) {
>>  try {
>> if (conn != null) {
>> conn.close();
>> }
>>  } catch (Exception e) {
>> // log exception
>>  }
>>   }
>>
>>   void close(Statement stmt) 
>>   void close(ResultSet rs) ...
>>
>>
>>basically the system is 90% just
>> inserts/finders in DB
>>
>>The clients are swing, there isn't web.
>>Actually there are 100 clients
>> machines. Will grow to 400
>>Jboss machine stay with 2GB RAM
>> free, and processors with 80% idle all
>> the time.
>>
>>So, my big problem, is in first
>> class the JVM, I need a stable JVM
>> that support high concurrency systems.
>>
>>I _known_ I have to update my
>> kernel to 2.4.18 with all needed
>> libraries (or RH 7.3), but this is a
>> problem too, because updating the OS
>> is not a trivial task, and can impact
>> other applications/servers (DB2, HA
>> system)
>>If would be this, I need to point
>> the _exact_ parts os what must be
>> updated to SysAdm, _and_  why this
>> actual kernel break the JVM.
>>
>>Do you known of big systems running
>> on top of JBoss? Number of users?
>> concurrency?
>>
>>In this scenario, other app server
>> "blue" vendor, is suggesting remove
>> JBoss and put the other, so I believe
>> JBoss is a great product and is not
>> necessary a problem from JBoss, but
>> client just sees jboss "Hey JBoss
>> stopped!"
>>
>>Dear guys, can you point me
>> something ? This project (when
>> sucessful with JBoss) will be a great
>> business case, and I want to post it
>> in front of my door and friends. ;)
>>
>>
>>thank you very much.
>>
>>
>>Claudio
>>
>>
>>
>>
>>  
>> ---
>> UOL na Copa 2002 - As principais notícias estão em UOL Esporte
>> http://esporte.uol.com.br/copa/
>>
>>
>>
>> ---
>> This sf.net email is sponsored by:ThinkGeek
>> Caffeinated soap. No kidding.
>> http://thinkgeek.com/sf
>> ___
>> JBoss-user mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>




--

Re: [JBoss-user] xdoclet & relationship table mapping

2002-06-21 Thread Gary S. Cuozzo

Thanks!  I've searched the xdoclet site & docs, but have never seen a 
reference to this tag?!   Are there other "undocumented" tags that I 
should know about?  :-)

gary.

David Ward wrote:

> @jboss:relation-table table-name="FOO_BAR"
>
> :)
> David
>
> -- 
>
> Gary S. Cuozzo wrote:
>
>> Anybody know what tag (if any) will make XDoclet specify a specific 
>> table name for JBoss to use for a many-to-many relationship?  The 
>> relationship I have works fine, but uses a table created by JBoss 
>> instead of my existing table.
>>
>> Thanks,
>> gary.
>>
>>
>
>
>
> ---
> Sponsored by:
> ThinkGeek at http://www.ThinkGeek.com/
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user





---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] xdoclet & relationship table mapping

2002-06-20 Thread Gary S. Cuozzo

Anybody know what tag (if any) will make XDoclet specify a specific 
table name for JBoss to use for a many-to-many relationship?  The 
relationship I have works fine, but uses a table created by JBoss 
instead of my existing table.

Thanks,
gary.




---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] xml config files in 3.0.0

2002-06-14 Thread Gary S. Cuozzo

I don't know if this is the right thing to do or not...  But I deploy my 
datasource XML file (postgres) separately and before I deploy my 
application.  I just copy the XML file right into the deploy directory 
and it works.  Then, I just redeploy the application as-needed.

gary.


Beau Cronin wrote:

>Hi all.  I have a question about where to put config information in
>3.0.0.
>
>I have a MySQL database which I want to use as a datasource.
>I've used the mysql-service.xml example file as a template and modified
>it for my purposes.  I assume that these settings should go somewhere in
>the same META-INF directory as my other configs (ejb-jar.xml, jboss.xml,
>etc.).  But what file do these go in? mysql-service.xml?  jboss.xml?
>
>Sorry if this is stated somewhere else; I couldn't find it in any of the
>updated-for-3.0 docs (quick start guide, etc.).
>
>Thanks,
>
>Beau
>
>___
>
>Don't miss the 2002 Sprint PCS Application Developer's Conference
>August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

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



[JBoss-user] XDoclet: 1-n relationship definition

2002-06-14 Thread Gary S. Cuozzo

Hey all,
I'm trying to convert an existing application that I had written the 
"hard way" over to use XDoclet.

I have two beans, Client and Domain, that I'm trying to relate.  A 
Client can have many Domains.  Seems like it should be straight forward 
but is throwing an exception 
(java.lang.reflect.UndeclaredThrowableException) when I try to use the 
relationship.

In Client I have:
/**
 * @return all domains associated with this client
 *
 * @ejb:interface-methodview-type="both"
 *
 * @ejb:relationname="client-domain"
 *  role-name="client-has-domains"
**/
public abstract Collection getDomains();
public abstract void setDomains(Collection domains);


In Domain I have:
/**
 * @ejb:relationname="client-domain"
 *  role-name="domain-belongsto-client"
 *
 * @jboss:relation  related-pk-field="id"
 *  fk-column="client_id"
**/
public abstract Client getClient();
public abstract void setClient(Client client);


Am I missing something or just plain doing it wrong?  The application 
deploys without error, and each bean works by itself.  I get the 
exception when I call client.getDomains().

Thanks,
gary.



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

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



Re: [JBoss-user] Help - CMR problem with jbos-3.0.0 - column not found

2002-06-13 Thread Gary S. Cuozzo

I only glanced at your files, but it seems like you may have missed one 
set of   tags in the first half of the 
relationship in your jbosscmp-jdbc.xml file.  You have them for the 
second part of the relationship (proponent_id).

I had a working system, but it is temporarily broken as I'm shifting to 
XDoclet and am not on the network where my CVS repository is.  If/when I 
get it working, I'll forward to the list.

gary.


Patrice Cousineau wrote:

>Hi folks,
>
>I'm having a problem with container-managed relationships in jboss-3.0.0. 
>I've created two beans in a 1-to-N relationship with all appropriate 
>abstract getters/setters. However, when I try to create an instance of the 
>bean that maps to the table with the foreign key, I get a SQLException 
>about an unknown column name. The log file for Jboss shows that the 
>Persistence Manager attempted to insert an entry in the table using the 
>names of the CMR fields as column names instead of the field-column 
>mappings defined in jbosscmp-jdbc.xml.
>
>Here is the relationships section of my ejb-jar.xml file:
>
>
>
>  Proponent-Transfer
>  
> 
>   proponent-makes-transfersonship-role-name>
>One
>
>  ProponentEJB
>
>
>  transfers
>  java.util.Collection
>
>  
>  
> 
>   transfer-madeby-proponentonship-role-name>
>Many
>
>  TransferEJB
>
>
>  proponent
>
>  
>
>
>
>And here are the relationship mappings in my jbosscmp-jdbc.xml file:
>
>
>
>  Proponent-Transfer
>  
>
> 
> proponent-makes-transferstionship-role-name>
>   
>
>
> 
> transfer-madeby-proponenttionship-role-name>
>
> 
>   proponentID
>   proponent_id
> 
>   
> 
>
>
>
>Any help or examples of working entity beans using CMR would be greatly 
>appreciated...
>
>Cheers,
>Patrice.
>
>
>___
>
>Don't miss the 2002 Sprint PCS Application Developer's Conference
>August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

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



[JBoss-user] primary key question

2002-06-12 Thread Gary S. Cuozzo

I've been wanting to use a primitive datatype as a primary key for an 
entity bean, but have not been able to do so.  I guess I'm just a bit 
confused as I see it done in many examples, but they either don't 
compile, or don't deploy.  Right now, I just use something like 
java.lang.Integer as the primary key class.

I guess my question is:  Is it possible to do this?  It seems like it 
may make life a bit easier if it is.

If so, what do you set the  to?  What type do you return 
from the create() methods?  Anybody have a working example?

thanks,
gary.



___

Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Startup Script Trouble

2002-06-11 Thread Gary S. Cuozzo

I don't think you want to put ONLY tools.jar in your classpath.  I would 
do something like:
CLASSPATH=$CLASSPATH:/blah/tools.jar
export CLASSPATH

and yes, 'export' must be lowercase (you showed it all upper).

I don't think you should need this though as jdk's after 1.2 (i think) 
did not need the base classes added to the classpath.

You may need to export JAVA_HOME=/usr/local/jdk1.3.1_03

HTH,
gary.


Hunter Hillegas wrote:

>I am having trouble with the jboss_init_redhat.sh script included with the
>distro...
>
>It starts JBoss just fine but when it is started that way, Jetty can't
>compile any JSPs... I think it is because it can't find the compiler...
>
>I added a statement like this to the script:
>
>CLASSPATH=/usr/local/jdk1.3.1_03/lib/tools.jar
>EXPORT CLASSPATH
>
>In the hope that would solve it... But no luck...
>
>Any ideas what I am doing wrong?
>
>Thanks,
>Hunter
>
>
>___
>
>Multimillion Dollar Computer Inventory
>Live Webcast Auctions Thru Aug. 2002 - http://www.cowanalexander.com/calendar
>
>
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>



___

Multimillion Dollar Computer Inventory
Live Webcast Auctions Thru Aug. 2002 - http://www.cowanalexander.com/calendar



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



Re: [JBoss-user] Auto created relationship table name.

2002-06-11 Thread Gary S. Cuozzo

To:  Christofer Sandberg

I would like to personally thank you for helping me out.  I just got a 
chance to give this a look and guess what?  IT WORKED!!!  The 
only other things I had to fix were
 --> 
 --> 

So, now that I have many-to-many relationships working, I can really 
make some progress...

Thanks again, this list is really great.

I hope someday to return the favor to somebody else.  :-)

gary.


Christofer Sandberg wrote:

>I think the table mapping xml tags are named diffrently and are in another 
>structure then the one you supplied assuming you are running JBoss 3.0 
>something.
>
>Try replacing the relationships part in your jbosscmp-jdbc.xml with the 
>following:
>
>
>  
>Client-Acl
>
>   client_acl
>
>false
>false
>
>   client-has-acls
>   
>   
>   id
>   client_id
>   
>  
> 
> 
>   acl-has-clients
>   
>   
>   id
>   acl_id
>   
>   
> 
>
>
>
>
>/Christofer
>
>On Saturday 08 June 2002 03.02, you wrote:
>
>>I left out the entity bean stuff as it is pretty long.  Let me know if you
>>see my problem or if you want to see other files.
>>gary.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>  
>>  java:/ISG_DS
>>  PostgreSQL
>>  true
>>  false
>>  false
>>  false
>>  300
>>  true
>>  false
>>  false
>>  false
>>  foreign-key
>>  
>>  on-load
>>  1000
>>  *
>>  
>>  1000
>>  t
>>  
>>  
>>  
>>  Client-Acl
>>  
>>  client_acl
>>  false
>>  false
>>  
>>  
>client-has-acls>e> 
>>  
>>  id
>>  
>client_id
>>  
>>  
>>  
>>  
>>  
>acl-has-clients>e> 
>>  
>>  id
>>  
>acl_id
>>  
>>  
>>  
>>  
>>  
>>  
>>
>>
>>Arthur Wang wrote:
>>
>>>please post your many-to-many relationship defination in
>>>jbosscmp-jdbc.xml.
>>>
>>>-Original Message-
>>>
>>From: Gary S. Cuozzo [mailto:[EMAIL PROTECTED]]
>>
>>>Sent: Friday, June 07, 2002 5:21 PM
>>>To: [EMAIL PROTECTED]
>>>Subject: Re: [JBoss-user] Auto created relationship table name.
>>>
>>>
>>>This seems similar to the problem that I am seeing.  I am not
>>>auto-creating the table, but instead have an existing table that I want
>>>to use.
>>>
>>>When I try to use my many-to-many relationship, I get exceptions because
>>>the table (that jboss is trying to use) doesn't exist.  I have no idea
>>>what I am doing wrong, but am looking at the recently posted cmr-example
>>>right now.
>>>
>>>Currently, I have never gotten a table-mapped relationship to work.
>>>
>>>Anybody seen this problem & fixed it?  I actually posted a report a few
>>>nights ago, but did not get any responses.
>>>
>>>I'll be sure to let you know if/when I figure this out.
>>>
>>>gary.
>>>
>>>Arthur Wang wrote:
>>>
>>>>I set create-table as true in my jbosscmp-jdbc.xml, so the jboss will
>>>>
>>>create
>>>
>>>>table for me, but the name of relation table created is like 'A-Bs-B-As",
>>>>
>>

Re: [JBoss-user] Auto created relationship table name.

2002-06-07 Thread Gary S. Cuozzo

I left out the entity bean stuff as it is pretty long.  Let me know if you
see my problem or if you want to see other files.
gary.














java:/ISG_DS
PostgreSQL
true
false
false
false
300
true
false
false
false
foreign-key

on-load
1000
*

1000
t
 


Client-Acl

client_acl
false
false


client-has-acls


id

client_id





acl-has-clients


id

acl_id










Arthur Wang wrote:

>please post your many-to-many relationship defination in jbosscmp-jdbc.xml.
>
>-Original Message-
>From: Gary S. Cuozzo [mailto:[EMAIL PROTECTED]]
>Sent: Friday, June 07, 2002 5:21 PM
>To: [EMAIL PROTECTED]
>Subject: Re: [JBoss-user] Auto created relationship table name.
>
>
>This seems similar to the problem that I am seeing.  I am not 
>auto-creating the table, but instead have an existing table that I want 
>to use.
>
>When I try to use my many-to-many relationship, I get exceptions because 
>the table (that jboss is trying to use) doesn't exist.  I have no idea 
>what I am doing wrong, but am looking at the recently posted cmr-example 
>right now.
>
>Currently, I have never gotten a table-mapped relationship to work.
>
>Anybody seen this problem & fixed it?  I actually posted a report a few 
>nights ago, but did not get any responses.
>
>I'll be sure to let you know if/when I figure this out.
>
>gary.
>
>
>Arthur Wang wrote:
>
>>I set create-table as true in my jbosscmp-jdbc.xml, so the jboss will
>>
>create
>
>>table for me, but the name of relation table created is like 'A-Bs-B-As",
>>
>it
>
>>is not the name I specified in relation-table-mapping of jbosscmp-jdbc.xml.
>>
>>-Original Message-
>>From: Dain Sundstrom [mailto:[EMAIL PROTECTED]]
>>Sent: Friday, June 07, 2002 4:27 PM
>>To: [EMAIL PROTECTED]
>>Subject: Re: [JBoss-user] Auto created relationship table name.
>>
>>
>>Arthur Wang wrote:
>>
>>>Hi ,
>>>
>>>I have a many to many relationship betwen two beans, and I specify the
>>>relation table in the ejb-jar.xml file, but when set the create-table as
>>>true in jbosscmp-jdbc.xml, the created relation table has a different name
>>>as the one I specified in the relationship defination, this should not be
>>>
>>a
>>
>>>problem if I use existing table, but in this case(create table when
>>>
>>deploy),
>>
>>>many to many relationship may not working. Any idea on it?
>>>
>>
>>I don't understand you.  Can you be more specific?
>>
>>-dain
>>
>>
>>
>>___
>>
>>Don't miss the 2002 Sprint PCS Application Developer's Conference
>>August 25-28 in Las Vegas -
>>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>>
>>___
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
>>___
>>
>>Don't miss the 2002 Sprint PCS Application Developer's Conference
>>August 25-28 in Las Vegas -
>>
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>
>>___
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>

Re: [JBoss-user] From RC1 DeploymentException

2002-06-07 Thread Gary S. Cuozzo

I think you need to remove the spaces in your tags:
 instead of 

Just a guess, but that is all I see right now.
gary.


Frank Morton wrote:

>Moving from RC1 to 3.0.0 release. Looking smooth except
>when deploying beans I get a DeploymentException:
>
>Error in jboss.xml for Bean Profile: configuration '' not found in
>standardjboss.xml or jboss.xml
>
>Here is the jboss.xml file, which I assume is missing something
>that is now required:
>
>
>
> false
> 
>
> 
>  
>   Profile
>   base2/profile
>   
>  
> 
>
>
>Anyone know what is missing or if this is from something else?
>
>Frank
>
>
>___
>
>Don't miss the 2002 Sprint PCS Application Developer's Conference
>August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

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



Re: [JBoss-user] Auto created relationship table name.

2002-06-07 Thread Gary S. Cuozzo

This seems similar to the problem that I am seeing.  I am not 
auto-creating the table, but instead have an existing table that I want 
to use.

When I try to use my many-to-many relationship, I get exceptions because 
the table (that jboss is trying to use) doesn't exist.  I have no idea 
what I am doing wrong, but am looking at the recently posted cmr-example 
right now.

Currently, I have never gotten a table-mapped relationship to work.

Anybody seen this problem & fixed it?  I actually posted a report a few 
nights ago, but did not get any responses.

I'll be sure to let you know if/when I figure this out.

gary.


Arthur Wang wrote:

>I set create-table as true in my jbosscmp-jdbc.xml, so the jboss will create
>table for me, but the name of relation table created is like 'A-Bs-B-As", it
>is not the name I specified in relation-table-mapping of jbosscmp-jdbc.xml.
>
>-Original Message-
>From: Dain Sundstrom [mailto:[EMAIL PROTECTED]]
>Sent: Friday, June 07, 2002 4:27 PM
>To: [EMAIL PROTECTED]
>Subject: Re: [JBoss-user] Auto created relationship table name.
>
>
>Arthur Wang wrote:
>
>>Hi ,
>>
>>I have a many to many relationship betwen two beans, and I specify the
>>relation table in the ejb-jar.xml file, but when set the create-table as
>>true in jbosscmp-jdbc.xml, the created relation table has a different name
>>as the one I specified in the relationship defination, this should not be
>>
>a
>
>>problem if I use existing table, but in this case(create table when
>>
>deploy),
>
>>many to many relationship may not working. Any idea on it?
>>
>
>
>I don't understand you.  Can you be more specific?
>
>-dain
>
>
>
>___
>
>Don't miss the 2002 Sprint PCS Application Developer's Conference
>August 25-28 in Las Vegas -
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>___
>
>Don't miss the 2002 Sprint PCS Application Developer's Conference
>August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

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



Re: [JBoss-user] JBoss Running on RedHat Linux 7.2

2002-06-06 Thread Gary S. Cuozzo

The issue with RH was that the /etc/hosts file entries were a bit mixed 
up (not formated correctly).  Seems to be fixed in my 7.3 box though.

gary.

Tobias Frech wrote:

>Hi,
>this is a FAQ. 
>Thank Redhat for this.
>Somehow they messed the localhost config up. That's why using your
>machine name works and localhost won't. 
>I can't remember what was wrong with the localhost config on RedHat. Can
>anyone else ?
>
>Cheers,
>Tobias
>
>Paul Robinson wrote:
>
>>Gary,
>>
>>There where no exceptions when JBoss started up.
>>
>>I just fixed the problem by modifying the jndi.properties file in the
>>jboss/client directory from
>>
>>java.naming.provider.url=jnp://localhost:1099/
>>
>>to
>>
>>java.naming.provider.url=jnp://"machinename":1099/
>>
>>I also changed the the jboss.properties file from
>>
>>java.rmi.server.hostname=localhost
>>
>>to
>>
>>java.rmi.server.hostname="machinename"
>>
>>Once I changed this everthying started working fine.
>>
>>Cheers
>>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED]]On Behalf Of Gary S.
>>Cuozzo
>>Sent: Thursday, 6 June 2002 11:54 AM
>>To: [EMAIL PROTECTED]
>>Subject: Re: [JBoss-user] JBoss Running on RedHat Linux 7.2
>>
>>Connection refused is either:  you don't have anything listening on the
>>port, or the port is firewalled somehow.
>>
>>try doing 'netstat -a | grep ' and see if there is an open
>>socket on that port.  If there is, then jboss (or something) is listening.
>>
>>if not, then you have to figure out why there is nothing listening when
>>there should be.
>>
>>do you see any exceptions scroll by as jboss starts up?
>>
>>gary.
>>
>>Paul Robinson wrote:
>>
>>>When I am attempting to connect to a Deployed EJB running under Jboss
>>>on Linux I am getting a connection refused error, Is this a config
>>>problem with Linux or Jboss.
>>>
>>>
>>>
>>>Any help would be appreciated??
>>>
>>>
>>>
>>>Cheers
>>>
>>>Paul
>>>
>>>
>>>
>>>
>>>
>>>
>>___
>>
>>Don't miss the 2002 Sprint PCS Application Developer's Conference
>>August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>>
>>___
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
>>___
>>
>>Don't miss the 2002 Sprint PCS Application Developer's Conference
>>August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>>
>>___
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
>
>___
>
>Don't miss the 2002 Sprint PCS Application Developer's Conference
>August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



[JBoss-user] can't get a many-many relationship to work

2002-06-05 Thread Gary S. Cuozzo

I've been having a problem in getting a many-to-many relationship to 
work under 3.0 release.  I bought a subscription to the docs, but I just 
don't see what I'm doing wrong.

I have two ejb's:  ClientEJB and AclEJB that are related

The application compiles & deploys just fine, but when I try to use the 
relationship, I get an exception like below:

Load relation failed
Embedded Exception
ERROR:  Relation "clientejb_acls_aclejb_clients" does not exist

The client has a getAcls() abstract method and the acl has a 
getClients() abstract method.

I have the table mappings set up & such.  I just can't figure out what 
I'm doing wrong.

Any ideas?
gary.



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] Timeout connecting to the jndi server

2002-06-05 Thread Gary S. Cuozzo

try using  127.0.0.1.  I had a similar problem last night and for some 
reason, that seemed to fix the problem.

hth,
gary.



Brandon Knitter wrote:

>When trying to get an initial context I get the following:
>
>env
>CLASSPATH=:.:/usr/java/lib/tools.jar:/usr/java/jre/lib/rt.jar:/home/knitterb/lib/java:/home/knitterb/lib/java/jars/spy.jar:/home/knitterb/lib/java/jars/xalan.jar:/home/knitterb/lib/java/jars/xerces.jar:/home/knitterb/lib/java/jars/postgresql.jar:/home/knitterb/lib/java/jars/struts.jar:/home/knitterb/lib/java/jars/burlap-2.1.0.jar:/home/knitterb/lib/java/jars/hessian-2.1.0.jar:/home/knitterb/progs/jboss-3.0.0/client/jboss-client.jar:/home/knitterb/progs/jboss-3.0.0/client/jbosssx-client.jar:/home/knitterb/progs/jboss-3.0.0/client/jaas.jar:/home/knitterb/progs/jboss-3.0.0/client/jnp-client.jar:/home/knitterb/progs/jboss-3.0.0/client/jboss-j2ee.jar:/home/knitterb/progs/jboss-3.0.0/client/log4j.jar:/usr/j2ee/lib/j2ee.jar
>\
>/usr/java/bin/java -Djava.compiler=NONE \
>-client \
>-Xmx64m -Xms64m \
>-XX:NewSize=16m -XX:MaxNewSize=16m -XX:SurvivorRatio=6 \
>-XX:+PrintTenuringDistribution \
>-verbose:gc \
>org.blandsite.music.play.PlaylistClient 
>Getting context
>Exception in thread "main" javax.naming.CommunicationException: Receive timed
>out.  Root exception is java.net.SocketTimeoutException: Receive timed out
>at java.net.PlainDatagramSocketImpl.receive(Native Method)
>at java.net.DatagramSocket.receive(DatagramSocket.java:670)
>at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:919)
>at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1009)
>at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:436)
>at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:429)
>at javax.naming.InitialContext.lookup(InitialContext.java:347)
>at org.blandsite.music.play.PlaylistClient.main(PlaylistClient.java:30)
>make: *** [run] Error 1
>1.540u 0.130s 0:06.72 24.8% 0+0k 0+0io 3725pf+0w
>
>
>So just to make sure, I try to connect manually:
>
>[knitterb@zoot play]$ telnet localhost 1099
>Trying 127.0.0.1...
>Connected to localhost.localdomain.
>Escape character is '^]'.
>¬ísrjava.rmi.MarshalledObject|½ícü>IhashlocBytest[BobjBytesq~xp/¼Éur[B¬óTàxp"¬íthttp://zoot:8083/q~q~uq~À¬ísr
>org.jnp.server.NamingServer_Stubxrjava.rmi.server.RemoteStubéþÜÉáexrjava.rmi.server.RemoteObjectÓa´a3xpw4UnicastRef2
> 127.0.0.³¼îC ð%xConnection closed by foreign host.
>0.000u 0.000s 0:00.02 0.0%  0+0k 0+0io 169pf+0w
>[knitterb@zoot play]$ 
>
>
>Code looks like:
>
>public static void main(String ags[]) throws Exception {
>Properties p=new Properties();
>p.put("java.naming.factory.initial",
>"org.jnp.interfaces.NamingContextFactory");
>p.put("java.naming.provider", "localhost:1099");
>p.put("java.naming.factory.url.pkgs",
>"org.jboss.naming:org.jnp.interfaces");
>InitialContext iniCtx = new InitialContext(p);
>
>System.err.println("Getting context");
>Context ejbCtx=(Context) iniCtx.lookup("java:comp/env/ejb");
>System.err.println("Got context");
>
>And nothing at all shows up in the server.log or xx.request.log.  Any ideas?
>
>Oh yeah, did a tcpdump as "/usr/local/sbin/tcpdump port 1099" and I get nothing
>at all.  Am I on the wrong port?
>



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] JBoss Running on RedHat Linux 7.2

2002-06-05 Thread Gary S. Cuozzo

doh!  i had that same problem a few months back.  i forgot all about it. 
 sorry about that.  glad you fixed it.

:)
gary.

Paul Robinson wrote:

>Gary,
>
>There where no exceptions when JBoss started up.
>
>I just fixed the problem by modifying the jndi.properties file in the
>jboss/client directory from
>
>java.naming.provider.url=jnp://localhost:1099/
>
>to
>
>java.naming.provider.url=jnp://"machinename":1099/
>
>I also changed the the jboss.properties file from
>
>java.rmi.server.hostname=localhost
>
>to
>
>java.rmi.server.hostname="machinename"
>
>Once I changed this everthying started working fine.
>
>Cheers
>
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Gary S.
>Cuozzo
>Sent: Thursday, 6 June 2002 11:54 AM
>To: [EMAIL PROTECTED]
>Subject: Re: [JBoss-user] JBoss Running on RedHat Linux 7.2
>
>
>Connection refused is either:  you don't have anything listening on the
>port, or the port is firewalled somehow.
>
>try doing 'netstat -a | grep ' and see if there is an open
>socket on that port.  If there is, then jboss (or something) is listening.
>
>if not, then you have to figure out why there is nothing listening when
>there should be.
>
>do you see any exceptions scroll by as jboss starts up?
>
>gary.
>
>
>Paul Robinson wrote:
>
>>When I am attempting to connect to a Deployed EJB running under Jboss
>>on Linux I am getting a connection refused error, Is this a config
>>problem with Linux or Jboss.
>>
>>
>>
>>Any help would be appreciated??
>>
>>
>>
>>Cheers
>>
>>Paul
>>
>>
>>
>>
>>
>>
>
>
>
>___
>
>Don't miss the 2002 Sprint PCS Application Developer's Conference
>August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>___
>
>Don't miss the 2002 Sprint PCS Application Developer's Conference
>August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] JBoss Running on RedHat Linux 7.2

2002-06-05 Thread Gary S. Cuozzo

Connection refused is either:  you don't have anything listening on the 
port, or the port is firewalled somehow.

try doing 'netstat -a | grep ' and see if there is an open 
socket on that port.  If there is, then jboss (or something) is listening.

if not, then you have to figure out why there is nothing listening when 
there should be.

do you see any exceptions scroll by as jboss starts up?

gary.


Paul Robinson wrote:

> When I am attempting to connect to a Deployed EJB running under Jboss 
> on Linux I am getting a connection refused error, Is this a config 
> problem with Linux or Jboss.
>
>  
>
> Any help would be appreciated??
>
>  
>
> Cheers
>
> Paul
>
>
>  
>
>  
>



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



[JBoss-user] deployment on 3.0 release

2002-06-04 Thread Gary S. Cuozzo

Hello all,
I've got an app that I developed using JBoss3.0Beta and am trying to 
deploy it on 3.0 release but am having some issues.

I don't really get an error, the log just says:
"15:56:00,398 INFO  [MainDeployer] Deployment of package: 
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/isg-ejb.jar 
is waiting for an appropriate deployer."

Anybody seen this before and have any ideas what I'm doing wrong?

Thanks in advance,
gary.



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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