RE: [JBoss-user] srp configuration

2003-06-24 Thread Sonnek, Ryan
Thanks scott.
I do have the purchased documentation and have been trying to go through it
step by step.  The example sourcecode has been helpful, but when
implementing it on my own, do I need to create a custom implementation of
the VerifierStore, or is one provided (specifically for the
DatabaseLoginModule)?  Also, looking through the all/default/minimal
configurations, SRP is not enabled by default, is that correct?

Does this look right for setup?
Server side:
1.  deploy the SRP service mbean to jboss.
2.  deploy a VerifierStore mbean to jboss.
3.  define a login-config that uses SRP and desired module (Database, LDAP,
etc).

Client side:
??? I'm still confused with this, but I'll worry about that in a little bit.


Ryan

-Original Message-
From: Scott M Stark [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 23, 2003 3:02 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] srp configuration

SRP is described in chapter 8 of the admin/devel guide.

-- 

Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxx

Sonnek, Ryan wrote:

> Does anyone have a walkthrough for setting up SRP authentication?
> The Jboss quickstart docs have been helpful, but I am still having
> difficulty getting it working.  
> 
> Is there a default implementation of the
> org.jboss.chap8.ex3.service.PropertiesVerifierStore provided with the
jboss
> distribution, or must it be coded?  If I'm using the DatabaseLoginModule,
do
> I need a different VerifierStore?
> 
> I guess I'm still confused on the server vs. client setup.  I have a ton
of
> questions, so I won't flood them here right now.  Any pointers would be
> greatly appreciated.
> 
> Thanks,
> Ryan




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


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


[JBoss-user] srp configuration

2003-06-23 Thread Sonnek, Ryan
Does anyone have a walkthrough for setting up SRP authentication?
The Jboss quickstart docs have been helpful, but I am still having
difficulty getting it working.  

Is there a default implementation of the
org.jboss.chap8.ex3.service.PropertiesVerifierStore provided with the jboss
distribution, or must it be coded?  If I'm using the DatabaseLoginModule, do
I need a different VerifierStore?

I guess I'm still confused on the server vs. client setup.  I have a ton of
questions, so I won't flood them here right now.  Any pointers would be
greatly appreciated.

Thanks,
Ryan


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


[JBoss-user] netboot in 3.2

2003-04-02 Thread Sonnek, Ryan
is there a readme for getting the netboot.war provided in 3.2 up and
running?  also, where is this source available through cvs?  i'd like to dig
through what's really happening here.

after deploying it and trying to access it at
http://localhost/netboot/listConfig.jsp
i get the following error:
13:48:09,569 WARN  [jbossweb] WARNING: Exception for
/netboot/listContent.jsp
java.lang.NullPointerException
at org.jboss.util.Strings.replaceProperties(Strings.java:322)
at
org.apache.jsp.listContent_jsp._jspService(listContent_jsp.java:49)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
04)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:278)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext
.java:548)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
at org.mortbay.http.HttpServer.service(HttpServer.java:863)
at org.jboss.jetty.Jetty.service(Jetty.java:460)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)

Ryan Sonnek


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


[JBoss-user] jmx xdoclet module

2003-03-27 Thread Sonnek, Ryan
I was checking through xdoclet documentation for the jmx task.  The mergedir
attribute is supported with the jboss subtasks, but what files are required
in order to merge existing mbeans into the jboss-service.xml?  I thought the
.xdt would show this, but I can't seem to find it.  Does anyone know what I
should look through for this information?  Source code or template files?  

sorry to post this on the jboss-user list and not on xdoclet-user!  is the
jboss xdoclet module maintained by the xdoclet project or jboss?  I'll post
in the future to whatever project is correct.

Ryan


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


RE: [JBoss-user] jboss.xml commit-option

2003-03-25 Thread Sonnek, Ryan



thanks 
simone, 
works 
like a champ.  i was able to merge the files very easily, and it helps out 
my configuration quite a bit.
 
Ryan

  -Original Message-From: Simone Milani 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, March 25, 2003 3:22 
  AMTo: [EMAIL PROTECTED]Subject: Re: 
  [JBoss-user] jboss.xml commit-option
  You need to merge the JBoss.xml with your file 
  jboss-container.xml where you put something like
   
     
    
   
  MyContainer
  ...
  
          
  A  
     
  
   
  And set the container of your bean to 
  MyContainer.
   
  Hope it helps
   
  Simone
  
- Original Message - 
From: 
Sonnek, 
Ryan 
To: '[EMAIL PROTECTED]' 

Sent: Monday, March 24, 2003 6:06 
PM
Subject: [JBoss-user] jboss.xml 
commit-option

is 
there a way to have the commit-option tags generated by xdoclet?  i 
searched through the jboss_xml.xdt and couldn't find any reference to 
commit-option or optiond-refresh-rate.  does the jboss xdoclet module 
have such functionality?
 
thanks
Ryan

Ryan J. Sonnek Brown Printing Company J2EE Application Developer 507.835.0803 [EMAIL PROTECTED] 

 


[JBoss-user] jboss.xml commit-option

2003-03-24 Thread Sonnek, Ryan



is 
there a way to have the commit-option tags generated by xdoclet?  i 
searched through the jboss_xml.xdt and couldn't find any reference to 
commit-option or optiond-refresh-rate.  does the jboss xdoclet module have 
such functionality?
 
thanks
Ryan

Ryan J. Sonnek Brown Printing Company J2EE Application Developer 507.835.0803 [EMAIL PROTECTED] 
 


RE: [JBoss-user] referencing bean in separate ear

2003-03-20 Thread Sonnek, Ryan
lo and behold, i've solved this one.  by chance i was going through the
jboss docs and came across the new classloading information.  all i had to
do was remove the app1-common.jar and manifest from my second application
and everything works.  

i'm still a little confused my original trial would work only untill i
redeploy application 2, then i would get linkage errors, but i'm not going
to bang my head against the wall anymore.

thank you jboss group for the phenomenal documentation!  
Ryan

-Original Message-----
From: Sonnek, Ryan [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 2:28 PM
To: '[EMAIL PROTECTED]'
Subject: [JBoss-user] referencing bean in separate ear


you would think i'd have this down by now, but obviously i don't.  =)  how
can i reference an ejb that is deployed in a separate ear file?  running
jboss 3.0.6 on win2k, here's my application setup:

app1.ear
-app1-common.jar
-app1-ejb.jar
-manifest.mf

app2.ear
-app1-common.jar
-app2-ejb.jar
-manifest.mf

each manifest contains the line Class-Path: ./app1-common.jar
looking at the JNDITree from the jmx console, it shows that app1 ejb is
bound to the java:/ejb namespace, but looking up the ejb using Local or
Remote has continuously failed.  the errors i get are LinkageError or Name
not bound.  can anyone help me out?

Ryan

Ryan J. Sonnek
Brown Printing Company
J2EE Application Developer
507.835.0803
[EMAIL PROTECTED]



---
This SF.net email is sponsored by: Tablet PC.  
Does your code think in ink? You could win a Tablet PC. 
Get a free Tablet PC hat just for playing. What are you waiting for? 
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.net email is sponsored by: Tablet PC.  
Does your code think in ink? You could win a Tablet PC. 
Get a free Tablet PC hat just for playing. What are you waiting for? 
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] referencing bean in separate ear

2003-03-20 Thread Sonnek, Ryan
you would think i'd have this down by now, but obviously i don't.  =)  how
can i reference an ejb that is deployed in a separate ear file?  running
jboss 3.0.6 on win2k, here's my application setup:

app1.ear
-app1-common.jar
-app1-ejb.jar
-manifest.mf

app2.ear
-app1-common.jar
-app2-ejb.jar
-manifest.mf

each manifest contains the line Class-Path: ./app1-common.jar
looking at the JNDITree from the jmx console, it shows that app1 ejb is
bound to the java:/ejb namespace, but looking up the ejb using Local or
Remote has continuously failed.  the errors i get are LinkageError or Name
not bound.  can anyone help me out?

Ryan

Ryan J. Sonnek
Brown Printing Company
J2EE Application Developer
507.835.0803
[EMAIL PROTECTED]



---
This SF.net email is sponsored by: Tablet PC.  
Does your code think in ink? You could win a Tablet PC. 
Get a free Tablet PC hat just for playing. What are you waiting for? 
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] login-config.xml

2003-02-25 Thread Sonnek, Ryan
could you please provide details on how you package your .sar together?
what do you put in your jboss-service.xml to have it load your embedded
login-config.xml?  if you dynamically deploy this configuration, can a
seperate application (ear file) reference it?

i would love to get this to work for my application.  sounds like it works
great.
Ryan

-Original Message-
From: Torsten Terp [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 4:36 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] login-config.xml


Hi,

Yes you can include the security setup in you ear.

We do it in a sar file contained in the ear, works well!

You could also define your security constraints in server/default/conf,
its really just a question if you need to be able to dynamically deploy 
security configs or a static config is ok for you!

BR
Terp




> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> [EMAIL PROTECTED]
> Sent: 25. februar 2003 10:57
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] login-config.xml
> 
> 
> Hi all,
> 
> I would like to define a security domain for my application using a 
> 'login-config.xml' file.
> JMX and JAAS are still not fully clear to me.
> 
> Can I directly include that file into my EAR meta-inf ?
> Do I need to create a jboss service (just like in the examples of 
> documentation chap. 8) as a SAR archive ?
> Should I just put my file in server/default/conf ?
> 
> Regards,
> 
> --
> --
> Sebastien Petrucci
> Java Technology Consultant - Altran Europe
> Philips Remote Control Systems
> Interleuvenlaan 74-76, B-3001 Leuven (Belgium)
> M +32(0)497502521T  +32(0)16394 598
> --
> --
> 
> 
> ---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 



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


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


RE: [JBoss-user] DatabaseLoginModule problems

2003-02-20 Thread Sonnek, Ryan
Dang, that's got to be the quickest fix to my problems so far!  
thanks scott.  actually, i had to use 'Roles' as the second row, not
'RoleGroup'.  going back through the paydocs, i see this now, but i didn't
know it was a mandatory field.  maybe a suggestion to drop a note in the
docs so others don't change this field unknowingly.

thanks again!

-Original Message-
From: Scott M Stark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 3:25 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] DatabaseLoginModule problems


Case sentitive name "RoleGroup", not 'rolegroup' 


Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxx

- Original Message - 
From: "Sonnek, Ryan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 20, 2003 12:26 PM
Subject: [JBoss-user] DatabaseLoginModule problems


> running a small jsp app on jboss 3.0.6 w/ jetty, i'm having problems with
> the JAAS login.  the jboss console says that the authentication succeeds,
> but the roles fail.  i've created a simple testcase by changing the
> rolesQuery to hardcode the role i'm looking for, and it still fails.
here's
> my login-config, web.xml, and jboss-web.xml:
> 
> login-config.xml
>   
> 
>code="org.jboss.security.auth.spi.DatabaseServerLoginModule"
> flag="required">
> java:/bpi/wasd/bpi
> select password from
bpi_user
> where username = ?
> SELECT 'bcsDeveloper',
'rolegroup'
> FROM bpi_user where username = ?
>   
> 
>   
> 
> web.xml
> 
>   
> 
>   Bindery Collection System Developer
> application
>   Developer application
>   /doc/*
> 
> 
>bcsDeveloper
> 
> 
>   NONE
> 
>   
> 
>   
>   
> FORM
> 
>   /login.jsp
>   /errorPageLogin.jsp
> 
>   
> 
>
>   
>   bcsUser
>
>
>   
>   bcsDeveloper
>
> 
> jboss-web.xml
> 
> 
>java:/jaas/brownnet
> 
>
> 
>
> 
> 
> 
> console messages:
> 14:24:54,485 DEBUG [JBossUserRealm#null] JBossUserPrincipal: ryans
> 14:24:54,485 DEBUG [JBossUserRealm#null] created
> JBossUserRealm::JBossUserPrinci
> pal: ryans
> 14:24:54,485 DEBUG [JBossUserRealm#null] authenticating: Name:ryans
> Password:***
> *
> 14:24:54,525 DEBUG [IdleRemover] internalRegisterPool: registering pool
with
> interval 90 old interval: 45
> 14:24:54,525 DEBUG [LocalManagedConnectionFactory] Using properties:
> {user=jboss, password=jbosswasd}
> 14:24:54,525 DEBUG [LocalManagedConnectionFactory] Checking driver for
URL:
> jdbc:oracle:thin:@172.16.1.28:1521:wasd
> 14:24:54,525 DEBUG [LocalManagedConnectionFactory] Driver already
registered
> for url: jdbc:oracle:thin:@172.16.1.28:1521:wasd
> 14:24:54,735 DEBUG [JBossUserRealm#null] authenticated: ryans
> 14:24:54,745 DEBUG [JBossUserRealm#null] setting JAAS
> subjectAttributeName(j_subject) : Subject:Principal: ryans
> Principal: rolegroup
> 14:24:54,775 DEBUG [JBossUserRealm#null] authenticating: Name:ryans
> Password:
> 14:24:54,775 DEBUG [JBossUserRealm#null] authenticated: ryans
> 14:24:54,775 DEBUG [JBossUserRealm#null] JBossUserPrincipal: ryans is NOT
in
> Role: bcsDeveloper
> 14:24:54,795 WARN  [jbossweb] WARNING: AUTH FAILURE: role for ryans
> 14:24:57,579 DEBUG [JBossUserRealm#null] JBossUserPrincipal: ryans is NOT
in
> Role: bcsDeveloper
> 
> any help would be greatly appreciated.
> Ryan
> 
> Ryan J. Sonnek
> Brown Printing Company
> J2EE Application Developer
> 507.835.0803
> <mailto:[EMAIL PROTECTED]>
> 
> 
> 
> ---
> This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
> The most comprehensive and flexible code editor you can use.
> Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
> www.slickedit.com/sourceforge
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 


---
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] DatabaseLoginModule problems

2003-02-20 Thread Sonnek, Ryan
running a small jsp app on jboss 3.0.6 w/ jetty, i'm having problems with
the JAAS login.  the jboss console says that the authentication succeeds,
but the roles fail.  i've created a simple testcase by changing the
rolesQuery to hardcode the role i'm looking for, and it still fails.  here's
my login-config, web.xml, and jboss-web.xml:

login-config.xml
  

  
java:/bpi/wasd/bpi
select password from bpi_user
where username = ?
SELECT 'bcsDeveloper', 'rolegroup'
FROM bpi_user where username = ?
  

  

web.xml

  

  Bindery Collection System Developer
application
  Developer application
  /doc/*


   bcsDeveloper


  NONE

  

  
  
FORM

  /login.jsp
  /errorPageLogin.jsp

  

   
  
  bcsUser
   
   
  
  bcsDeveloper
   

jboss-web.xml


   java:/jaas/brownnet

   

   



console messages:
14:24:54,485 DEBUG [JBossUserRealm#null] JBossUserPrincipal: ryans
14:24:54,485 DEBUG [JBossUserRealm#null] created
JBossUserRealm::JBossUserPrinci
pal: ryans
14:24:54,485 DEBUG [JBossUserRealm#null] authenticating: Name:ryans
Password:***
*
14:24:54,525 DEBUG [IdleRemover] internalRegisterPool: registering pool with
interval 90 old interval: 45
14:24:54,525 DEBUG [LocalManagedConnectionFactory] Using properties:
{user=jboss, password=jbosswasd}
14:24:54,525 DEBUG [LocalManagedConnectionFactory] Checking driver for URL:
jdbc:oracle:thin:@172.16.1.28:1521:wasd
14:24:54,525 DEBUG [LocalManagedConnectionFactory] Driver already registered
for url: jdbc:oracle:thin:@172.16.1.28:1521:wasd
14:24:54,735 DEBUG [JBossUserRealm#null] authenticated: ryans
14:24:54,745 DEBUG [JBossUserRealm#null] setting JAAS
subjectAttributeName(j_subject) : Subject:Principal: ryans
Principal: rolegroup
14:24:54,775 DEBUG [JBossUserRealm#null] authenticating: Name:ryans
Password:
14:24:54,775 DEBUG [JBossUserRealm#null] authenticated: ryans
14:24:54,775 DEBUG [JBossUserRealm#null] JBossUserPrincipal: ryans is NOT in
Role: bcsDeveloper
14:24:54,795 WARN  [jbossweb] WARNING: AUTH FAILURE: role for ryans
14:24:57,579 DEBUG [JBossUserRealm#null] JBossUserPrincipal: ryans is NOT in
Role: bcsDeveloper

any help would be greatly appreciated.
Ryan

Ryan J. Sonnek
Brown Printing Company
J2EE Application Developer
507.835.0803




---
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] jboss 2.4 to 3.x migration error

2003-02-13 Thread Sonnek, Ryan
migrating a small jsp app that uses an oracle database from jboss 2.4.6 to
3.0.6, the following error is recieved from a page that calls commit() after
an insert/update/delete.  

"You cannot commit with autocommit set!"

in 2.4, the commit was required to get any of our pages to work, and now
they fail with this error.  is there some way to configure a datasource in
3.x to have autocommit set to false, or in 2.4 to set it to true?

thanks ahead of time.
Ryan


---
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] Re: [JBoss-dev] JBoss-IDE 1.0 alpha released

2003-01-29 Thread Sonnek, Ryan
there it goes!
thanks for the help.  i added tools.jar to the jboss user classes classpath.
thanks for all the help!

-Original Message-
From: Igor Fedorenko [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 29, 2003 3:43 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Re: [JBoss-dev] JBoss-IDE 1.0 alpha released


Try JBoss launch configuration classpath
(Run/Debug.../Your_launch_name/Classpath/User_classes), it works for me.

> -Original Message-
> From: Sonnek, Ryan [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 29, 2003 3:48 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [JBoss-user] Re: [JBoss-dev] JBoss-IDE 1.0 alpha released
> 
> 
> what 'classpath' does tools.jar have to be added to?  running 
> win2k, i've
> tried adding it to the system's classpath, the eclipse's 
> classpath, and to
> my project's list of build path libraries.  all of the above 
> still give me
> the same error.
> 
> Ryan
> 
> -Original Message-
> From: Vladyslav Kosulin [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 29, 2003 10:51 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Re: [JBoss-dev] JBoss-IDE 1.0 alpha released
> 
> 
> Sonnek, Ryan wrote:
> > i'm eager to try out the jboss plugin, but i'm getting an error from
> > starting a local server from within eclipse.  after 
> starting the server, i
> > get a CNFE from sun.tools.javac.Main when opening the 
> jmx-console.  i'm
> > assuming this has to do with the jre or classpath tabs in the
> configuration
> > window.
> > 
> > i've gone through the quick setup docs, any thoughts what 
> i'm missing?
> > Ryan
> 
> tools.jar from jdk/lib is required to compile jsp pages. Copy it to 
> jre/lib/ext or add to CLASSPATH.
> Vlad
> 
> 
> 
> ---
> 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
> 


---
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] Re: [JBoss-dev] JBoss-IDE 1.0 alpha released

2003-01-29 Thread Sonnek, Ryan
what 'classpath' does tools.jar have to be added to?  running win2k, i've
tried adding it to the system's classpath, the eclipse's classpath, and to
my project's list of build path libraries.  all of the above still give me
the same error.

Ryan

-Original Message-
From: Vladyslav Kosulin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 29, 2003 10:51 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Re: [JBoss-dev] JBoss-IDE 1.0 alpha released


Sonnek, Ryan wrote:
> i'm eager to try out the jboss plugin, but i'm getting an error from
> starting a local server from within eclipse.  after starting the server, i
> get a CNFE from sun.tools.javac.Main when opening the jmx-console.  i'm
> assuming this has to do with the jre or classpath tabs in the
configuration
> window.
> 
> i've gone through the quick setup docs, any thoughts what i'm missing?
> Ryan

tools.jar from jdk/lib is required to compile jsp pages. Copy it to 
jre/lib/ext or add to CLASSPATH.
Vlad



---
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] Re: [JBoss-dev] JBoss-IDE 1.0 alpha released

2003-01-29 Thread Sonnek, Ryan
i'm eager to try out the jboss plugin, but i'm getting an error from
starting a local server from within eclipse.  after starting the server, i
get a CNFE from sun.tools.javac.Main when opening the jmx-console.  i'm
assuming this has to do with the jre or classpath tabs in the configuration
window.

i've gone through the quick setup docs, any thoughts what i'm missing?
Ryan

-Original Message-
From: Holger Baxmann [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 29, 2003 9:46 AM
To: [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: [JBoss-user] Re: [JBoss-dev] JBoss-IDE 1.0 alpha released


thanks a lot for the great work.

on macosx i have had difficulties to setup the remote connection
connection to the vm revoked.

the remote debugging line on page 7 in the pdf docs should read:

-Xdebug -Xrunjdwp:transport=dt\_socket,server=y,suspend=n,address=10250

without any spaces and runjdwp is an -X option ...

-Xnoagent and -classic may be of help, idnk

copied from scotts & marcs jboss book, page 27

(BTW: which log file should one study in
this case?) and to setup the jdk config:

- the jbosside config mentions that this is _not_ a jdk, but it should
be
- one may add a new jre, but am not able to change (edit) it afterwards

may the source be with you

bax

> Von: Hans Dockter <[EMAIL PROTECTED]>
> Antworten an: [EMAIL PROTECTED]
> Datum: Wed, 29 Jan 2003 12:08:53 +0100
> An: [EMAIL PROTECTED],
[EMAIL PROTECTED]
> Betreff: [JBoss-dev] JBoss-IDE 1.0 alpha released
> 
> I'm delighted to announce the release of JBoss-IDE 1.0 alpha.
> 
> The JBoss-IDE is based on Eclipse.
> 
> Link to the JBoss-IDE project page:
> 
> http://www.jboss.org/developers/projects/jboss/jbosside.jsp
> 
> You can download JBoss-IDE from:
> 
> http://prdownloads.sourceforge.net/jboss/jbosside1.0a_05.zip?download
> 
> 
> Enjoy (-:
> 
> Hans
> 
> 
> 
> ---
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> ___
> Jboss-development mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-development
> 



---
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] jboss-4 and cactus problem

2003-01-23 Thread Sonnek, Ryan
i've had the exact same error and it took me forever to figure out.  for
some reason when cactus runs, you NEED a port number for it to work
correctly.  setup your cactus.properties file to use a port number and
you'll be fine.  if you're running off the default web server port, use port
80.

instead of: 
cactus.contextURL=http://localhost/myApp

use:
cactus.contextURL=http://localhost:80/myApp

-Original Message-
From: Bruce Scharlau [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 9:47 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] jboss-4 and cactus problem


Hi all,

I've been digging further into Ant and am trying to get cactus to work with 
jboss-4+tomcat, but am getting a strange error about
'port out of range:-1' and wondered if anyone else has experienced this 
problem.

I'm using jakarta-cactus-13-1.4b1 and ant-1.5 on winXP.

Bruce


cactus-tests:
[runservertests] log4j:WARN No appenders could be found for logger 
(org.apache.cactus.util.JUnitVersionHelper).
[runservertests] log4j:WARN Please initialize the log4j system properly.
 [junit] Running uk.ac.abdn.csd.mtp.ant.web.TestfirstAntServlet
 [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.691 sec
 [junit] Testsuite: uk.ac.abdn.csd.mtp.ant.web.TestfirstAntServlet
 [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.691 sec

 [junit] Testcase: testReadServletOutputStream took 0.671 sec
 [junit] Caused an ERROR
 [junit] port out of range:-1
 [junit] java.lang.IllegalArgumentException: port out of range:-1
 [junit] at 
java.net.InetSocketAddress.(InetSocketAddress.java:103)
 [junit] at java.net.Socket.(Socket.java:119)
 [junit] at 
org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:309)
 [junit] at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:314)
 [junit] at 
org.apache.cactus.client.HttpClientConnectionHelper.dispatch24_connect(HttpC
lientConnectionHelper.java;org/apache/cactus/util/log/LogAspect.java(1k):163
)
 [junit] at 
org.apache.cactus.client.HttpClientConnectionHelper.around24_connect(HttpCli
entConnectionHelper.java;org/apache/cactus/util/log/LogAspect.java(1k):1218)
 [junit] at 
org.apache.cactus.client.HttpClientConnectionHelper.connect(HttpClientConnec
tionHelper.java;org/apache/cactus/util/log/LogAspect.java(1k):105)
 [junit] at 
org.apache.cactus.client.AbstractHttpClient.callRunTest(AbstractHttpClient.j
ava;org/apache/cactus/util/log/LogAspect.java(1k):186)
 [junit] at 
org.apache.cactus.client.AbstractHttpClient.dispatch2_doTest(AbstractHttpCli
ent.java;org/apache/cactus/util/log/LogAspect.java(1k):109)
 [junit] at 
org.apache.cactus.client.AbstractHttpClient.around2_doTest(AbstractHttpClien
t.java;org/apache/cactus/util/log/LogAspect.java(1k):1218)
 [junit] at 
org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.java;o
rg/apache/cactus/util/log/LogAspect.java(1k):104)
 [junit] at 
org.apache.cactus.AbstractWebTestCase.runGenericTest(AbstractWebTestCase.jav
a:260)
 [junit] at 
org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:133)
 [junit] at 
org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:195)
 [junit] at 
org.apache.cactus.ant.RunServerTestsTask.callTests(Unknown Source)
 [junit] at 
org.apache.cactus.ant.RunServerTestsTask.execute(Unknown Source)

 [junit] Testcase: testReadServletOutputStream

BUILD FAILED

cheers,

Bruce

Dr. Bruce Scharlau
Dept. of Computing Science
University of Aberdeen
Aberdeen AB24 3UE
01224 272193
http://www.csd.abdn.ac.uk/~bscharla
mailto:[EMAIL PROTECTED] 



---
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] JBoss-3.0.5 release available

2003-01-13 Thread Sonnek, Ryan
sorry if this is a dumb question but what is the difference in the three
distributions?
jboss.zip
jboss_jdk141.zip
jboss_jdk131.zip

release notes just state that jboss was built on these different systems,
but how would that affect functionality?  does the 141 package take
advantage of any of the jdk 1.4 packages (logging, nio, etc)?

again, sorry for the question, but the readme didn't exactly say why all of
a sudden there are 3 distributions.
Ryan

-Original Message-
From: Scott M Stark [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 5:40 AM
To: [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: [JBoss-user] JBoss-3.0.5 release available


The 3.0.5 release of JBoss is available from SourceForge here:
https://sourceforge.net/project/showfiles.php?group_id=22866

Detailed change notes are available here:
https://sourceforge.net/project/shownotes.php?release_id=129789

The 3.2.0RC1 release will be done tomorrow.


Scott Stark
Chief Technology Officer
JBoss Group, LLC




---
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



RE: Re[2]: [JBoss-user] cmp composite field problems

2003-01-08 Thread Sonnek, Ryan
thank you very much for your reply.  since i'm relying heavily on xdoclet
right now (it generates nearly 75 classes and config files for me), i've
decided to remove the DVC and flatten the class into individual fields that
all entity beans inherit from.  it isn't terribly messy either, since all my
entity beans just extend a base class, so i'm happy with it.  

maybe a note should be placed in the paydocs regarding this.  i looked
through them again, and didn't see anything about the
 element being required.

thank you again for your help!
Ryan

-Original Message-
From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 4:17 AM
To: Sonnek, Ryan
Subject: Re[2]: [JBoss-user] cmp composite field problems


Hello Ryan,

I don't know whether it's possible to generate with xdoclet but,
AFAIK, dependent-value-class declaration is required.

alex

Tuesday, January 07, 2003, 5:15:19 PM, you wrote:

SR> no i haven't.  i can't seem to find a way to generate the
SR>  element using xdoclet-1.2-b2.  also, reading
SR> through the pay docs, they show an example (listing 3-7) that does not
use
SR> the .  instead, they only override the column
name
SR> within the .  
SR> is it required to have the  element?  can it be
SR> generated from xdoclet?

SR> Ryan

SR> -Original Message-
SR> From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
SR> Sent: Tuesday, January 07, 2003 5:14 AM
SR> To: Sonnek, Ryan
SR> Subject: Re: [JBoss-user] cmp composite field problems


SR> Hello Ryan,

SR> have you also declared  element for the class
SR> that represents audit?

SR> alex

SR> Monday, January 06, 2003, 10:24:42 PM, you wrote:

SR>> i'm working with a CMP composite field using jboss 3.0.4 and oracle 8i.
SR>> i've gone through the paydoc's several times, and can't pinpoint where
SR> this
SR>> is wrong.  my audit object has 4 fields, 2 string and 2 date.  all have
SR>> correct getters/setters.  the cmp bean has a getter and setter for the
SR> Audit
SR>> object.  the sql that is generated is trying to work with the audit
SR> object
SR>> as if it's a blob, and not 4 seperate fields.  

SR>> any direction would be appreciated.  i've included a dump from the
SR>> server.log along with my relevent ejb-jar.xml and jbosscmp-jdbc.xml.
SR>> Ryan

SR>> Ryan J. Sonnek
SR>> Brown Printing Company
SR>> J2EE Application Developer
SR>> 507.835.0803
SR>> <mailto:[EMAIL PROTECTED]>



SR>> server.log (cleaned up for readibility)
SR>> --
SR>> Executing SQL: INSERT INTO BCS_DEPARTMENT (department_num, name,
SR>> description, audit) VALUES (?, ?, ?, ?)
SR>> Set parameter: index=1, jdbcType=INTEGER, value=NULL
SR>> Set parameter: index=2, jdbcType=VARCHAR, value=department 2
SR>> Set parameter: index=3, jdbcType=VARCHAR, value=department description2
SR>> Set parameter: index=4, jdbcType=BLOB,
SR>>
SR>
value=username:null;processCode:DepartmentBean.create;dateCreated:null;dateU
SR>> pdated:null
SR>> Could not create entity

SR>> ejb-jar.xml (included only the relevent CMP object)
SR>>
SR>
---
SR>>   
SR>>  >>
SR>>  Department

SR>>  Department

SR>>
SR> com.bpc.bcs.interfaces.DepartmentLocalHome
SR>>  com.bpc.bcs.interfaces.DepartmentLocal

SR>>  com.bpc.bcs.ejb.DepartmentCMP
SR>>  Container
SR>>  java.lang.Integer
SR>>  false
SR>>  2.x
SR>>  Department
SR>>  
SR>> >
SR>> departmentID
SR>>  
SR>>  
SR>> >>
SR>> name
SR>>  
SR>>  
SR>> >>
SR>> description
SR>>  
SR>>  
SR>> >>
SR>> audit
SR>>  
SR>>  departmentID

SR>>  
SR>> jdbc/bcs/bcsuser
SR>> javax.sql.DataSource
SR>> Container
SR>>  

SR>>  
SR>> 
SR>>findAll
SR>>
SR>>
SR>> 
SR>> >
SR>>  
SR>>   
SR>>   

SR>> jbosscmp-jdbc.xml (only included relevent CMP object)
SR>> ---
SR>>   
SR>>  Department
SR>>  bcs_department

RE: [JBoss-user] cmp composite field problems

2003-01-07 Thread Sonnek, Ryan
no i haven't.  i can't seem to find a way to generate the
 element using xdoclet-1.2-b2.  also, reading
through the pay docs, they show an example (listing 3-7) that does not use
the .  instead, they only override the column name
within the .  
is it required to have the  element?  can it be
generated from xdoclet?

Ryan

-Original Message-
From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 5:14 AM
To: Sonnek, Ryan
Subject: Re: [JBoss-user] cmp composite field problems


Hello Ryan,

have you also declared  element for the class
that represents audit?

alex

Monday, January 06, 2003, 10:24:42 PM, you wrote:

SR> i'm working with a CMP composite field using jboss 3.0.4 and oracle 8i.
SR> i've gone through the paydoc's several times, and can't pinpoint where
this
SR> is wrong.  my audit object has 4 fields, 2 string and 2 date.  all have
SR> correct getters/setters.  the cmp bean has a getter and setter for the
Audit
SR> object.  the sql that is generated is trying to work with the audit
object
SR> as if it's a blob, and not 4 seperate fields.  

SR> any direction would be appreciated.  i've included a dump from the
SR> server.log along with my relevent ejb-jar.xml and jbosscmp-jdbc.xml.
SR> Ryan

SR> Ryan J. Sonnek
SR> Brown Printing Company
SR> J2EE Application Developer
SR> 507.835.0803
SR> <mailto:[EMAIL PROTECTED]>



SR> server.log (cleaned up for readibility)
SR> --
SR> Executing SQL: INSERT INTO BCS_DEPARTMENT (department_num, name,
SR> description, audit) VALUES (?, ?, ?, ?)
SR> Set parameter: index=1, jdbcType=INTEGER, value=NULL
SR> Set parameter: index=2, jdbcType=VARCHAR, value=department 2
SR> Set parameter: index=3, jdbcType=VARCHAR, value=department description2
SR> Set parameter: index=4, jdbcType=BLOB,
SR>
value=username:null;processCode:DepartmentBean.create;dateCreated:null;dateU
SR> pdated:null
SR> Could not create entity

SR> ejb-jar.xml (included only the relevent CMP object)
SR>
---
SR>   
SR>  >
SR>  Department

SR>  Department

SR>
com.bpc.bcs.interfaces.DepartmentLocalHome
SR>  com.bpc.bcs.interfaces.DepartmentLocal

SR>  com.bpc.bcs.ejb.DepartmentCMP
SR>  Container
SR>  java.lang.Integer
SR>  false
SR>  2.x
SR>  Department
SR>  
SR> 
SR> departmentID
SR>  
SR>  
SR> >
SR> name
SR>  
SR>  
SR> >
SR> description
SR>  
SR>  
SR> >
SR> audit
SR>  
SR>  departmentID

SR>  
SR> jdbc/bcs/bcsuser
SR> javax.sql.DataSource
SR> Container
SR>  

SR>  
SR> 
SR>findAll
SR>
SR>
SR> 
SR> 
SR>  
SR>   
SR>   

SR> jbosscmp-jdbc.xml (only included relevent CMP object)
SR> ---
SR>   
SR>  Department
SR>  bcs_department

SR>  
SR> departmentID
SR> department_num

SR>  
SR>  
SR> name
SR> name

SR>  
SR>  
SR> description
SR> description

SR>  
SR>  
SR> audit
SR> 
SR>   audit.username
SR>   audit_id
SR> 
SR> 
SR>
audit.processCode
SR>   audit_process_code
SR> 
SR> 
SR>
audit.dateCreated
SR>   audit_insert_dtm
SR> 
SR> 
SR>
audit.dateUpdated
SR>   audit_dtm
SR> 

SR>  

SR>   

SR>   


-- 
Best regards,
 Alex Loubyansky




---
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] cmp composite field problems

2003-01-06 Thread Sonnek, Ryan
i'm working with a CMP composite field using jboss 3.0.4 and oracle 8i.
i've gone through the paydoc's several times, and can't pinpoint where this
is wrong.  my audit object has 4 fields, 2 string and 2 date.  all have
correct getters/setters.  the cmp bean has a getter and setter for the Audit
object.  the sql that is generated is trying to work with the audit object
as if it's a blob, and not 4 seperate fields.  

any direction would be appreciated.  i've included a dump from the
server.log along with my relevent ejb-jar.xml and jbosscmp-jdbc.xml.
Ryan

Ryan J. Sonnek
Brown Printing Company
J2EE Application Developer
507.835.0803




server.log (cleaned up for readibility)
--
Executing SQL: INSERT INTO BCS_DEPARTMENT (department_num, name,
description, audit) VALUES (?, ?, ?, ?)
Set parameter: index=1, jdbcType=INTEGER, value=NULL
Set parameter: index=2, jdbcType=VARCHAR, value=department 2
Set parameter: index=3, jdbcType=VARCHAR, value=department description2
Set parameter: index=4, jdbcType=BLOB,
value=username:null;processCode:DepartmentBean.create;dateCreated:null;dateU
pdated:null
Could not create entity

ejb-jar.xml (included only the relevent CMP object)
---
  
 
 Department

 Department

 com.bpc.bcs.interfaces.DepartmentLocalHome
 com.bpc.bcs.interfaces.DepartmentLocal

 com.bpc.bcs.ejb.DepartmentCMP
 Container
 java.lang.Integer
 false
 2.x
 Department
 

departmentID
 
 

name
 
 

description
 
 

audit
 
 departmentID

 
jdbc/bcs/bcsuser
javax.sql.DataSource
Container
 

 

   findAll
   
   


 
  
  

jbosscmp-jdbc.xml (only included relevent CMP object)
---
  
 Department
 bcs_department

 
departmentID
department_num

 
 
name
name

 
 
description
description

 
 
audit

  audit.username
  audit_id


  audit.processCode
  audit_process_code


  audit.dateCreated
  audit_insert_dtm


  audit.dateUpdated
  audit_dtm


 

  

  



---
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] CMP dependent value classes from xdoclet

2003-01-03 Thread Sonnek, Ryan



using xdoclet 
1.2-b2, is it possible to generate the neccesary  block in the  file?
i have a 
serializable java object that holds 2 strings, username of who inserted the 
record, and the date that the object was inserted.  these 2 fields map to 
audit_username and audit_date that i have in every database table.  instead 
of having get/set methods for these i want to wrap audit information into a 
dependent value class.
 
is it possible to 
generate this block from xdoclet?
Ryan


RE: [JBoss-user] jboss-web.xml and xdoclet

2002-12-06 Thread Sonnek, Ryan
thanks for the post, i wasn't able to find any examples in the 1.1.2
documentation, but the 1.2 docs have one setting up ejb-ref tags for the
jboss-web.xml.  i was looking for specifig @jboss-web tags, but the @jboss
tags work just fine.

-Original Message-
From: Han Ming Ong [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 06, 2002 12:41 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] jboss-web.xml and xdoclet


Ryan, try this and see if it works for XDoclet 1.1.2 as well?

http://xdoclet.sourceforge.net/1.2beta/tags/jboss-tags.html


On Friday, December 6, 2002, at 07:46  AM, Sonnek, Ryan wrote:

> are there any xdoclet tags for creating the jboss-web.xml information? 
>  i'm
> trying to link my local ejbs but it's not currently working without 
> setting
> up jboss-web.xml.
> currently using xdoclet 1.1.2, here are my docs.
> /**
>  * @web:ejb-local-ref
>  *   name="ejb/bcs/jobSetupManagerLocal"
>  *   type="Session"
>  *   home="com.bpc.bcs.interfaces.JobSetupManagerLocalHome"
>  *   local="com.bpc.bcs.interfaces.JobSetupManagerLocal"
>  *   description="Local Job Setup Manager"
>  */
>
> thanks.
> Ryan
>
> Ryan J. Sonnek
> Brown Printing Company
> J2EE Application Developer
> 507.835.0803
> <mailto:[EMAIL PROTECTED]>
>
>
> ---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



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


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



[JBoss-user] jboss-web.xml and xdoclet

2002-12-06 Thread Sonnek, Ryan
are there any xdoclet tags for creating the jboss-web.xml information?  i'm
trying to link my local ejbs but it's not currently working without setting
up jboss-web.xml.  
currently using xdoclet 1.1.2, here are my docs.
/**
 * @web:ejb-local-ref
 *   name="ejb/bcs/jobSetupManagerLocal"
 *   type="Session"
 *   home="com.bpc.bcs.interfaces.JobSetupManagerLocalHome"
 *   local="com.bpc.bcs.interfaces.JobSetupManagerLocal"
 *   description="Local Job Setup Manager"
 */

thanks.
Ryan 

Ryan J. Sonnek
Brown Printing Company
J2EE Application Developer
507.835.0803



---
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] JBoss 3.0.4 w/ Jetty Classloader

2002-11-15 Thread Sonnek, Ryan
here's the exception i get when the jars are inside WEB-INF/lib:
the classes in question are dealing with JFreeChart and JFreeReport.  both
packages work fine if the jars are placed in the server/lib directory.  i'd
upload my entire ear file, but it's pushing 3MB, so that might be too big.
please let me know if there's something else i can do.  like i said, i'm
fine with using the server/lib directory, but if this is a bug, i'd like to
help out however possible.  thanks.

16:44:02,359 WARN  [jbossweb] WARNING: Exception for /bcs/current_speed.jsp
java.lang.NoClassDefFoundError: com/jrefinery/chart/entity/EntityCollection
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:1576)
at java.lang.Class.getConstructor0(Class.java:1748)
at java.lang.Class.newInstance0(Class.java:266)
at java.lang.Class.newInstance(Class.java:249)
at java.beans.Beans.instantiate(Beans.java:204)
at java.beans.Beans.instantiate(Beans.java:48)
at
org.apache.jsp.current_0005fspeed$jsp._jspService(current_0005fspeed$jsp.jav
a:68)
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.ja
va:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
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(WebApplicationHandl
er.java:293)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:581)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1687)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext
.java:544)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1637)
at org.mortbay.http.HttpServer.service(HttpServer.java:875)
at org.jboss.jetty.Jetty.service(Jetty.java:543)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:806)
at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:956)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:823)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:203)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:290)
at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
at java.lang.Thread.run(Thread.java:536)

-Original Message-
From: Scott M Stark [mailto:scottmstark@;attbi.com]
Sent: Friday, November 15, 2002 11:43 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] JBoss 3.0.4 w/ Jetty Classloader


Show the full stack trace of the CNFE exception from the jsp page.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message - 
From: "Sonnek, Ryan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 15, 2002 7:20 AM
Subject: RE: [JBoss-user] JBoss 3.0.4 w/ Jetty Classloader


> I could understand if the classes inside my ejb-jar could not access the
jar
> files in WEB-INF/lib, but I'm getting the class not found from a jsp page.
> here's my ear's package structure.  i've tried various Class-Path options
> for the manifest.mf inside the ear, ejb-jar, and war.  so far, i'm still
> only able to get this to work if the files are in server/config/lib.
> 
> .ear
>   common-classes.jar
>   myejb-jar.jar
>   mywar.war
> WEB-INF/lib/jfreereport.jar
> 
> ear's manifest:
> Manifest-Version: 1.0
> Created-By: Apache Ant 1.5.1
> Built-By: RyanS
> Class-Path: ./common-classes.jar
> 
> myejb-jar.jar's manifest:
> Manifest-Version: 1.0
> Created-By: Apache Ant 1.5.1
> Built-By: RyanS
> Class-Path: ./common-classes.jar
> 
> mywar.war's manifest:
> Manifest-Version: 1.0
> Created-By: Apache Ant 1.5.1
> Built-By: RyanS
> Class-Path: ./common-classes.jar
> 
> everything looks right to me.
> 
> -Original Message-
> From: Sebastian Hauer [mailto:sebastian.hauer@;sknt.com]
> Sent: Thursday, November 14, 2002 6:35 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] JBoss 3.0.4 w/ Jetty Classloader
> 
> 
> It works for me using 3.0.4/Jetty.
> I have some thrirdparty jars in my .ear/.war/WEB-INF/lib.
> Where inside your EAR is the code located that can't access the stuff in
> WEB-INF/lib?
> I would guess that it might be some kind of a classloader scope problem
> but that 

RE: [JBoss-user] JBoss 3.0.4 w/ Jetty Classloader

2002-11-15 Thread Sonnek, Ryan
I could understand if the classes inside my ejb-jar could not access the jar
files in WEB-INF/lib, but I'm getting the class not found from a jsp page.
here's my ear's package structure.  i've tried various Class-Path options
for the manifest.mf inside the ear, ejb-jar, and war.  so far, i'm still
only able to get this to work if the files are in server/config/lib.

.ear
  common-classes.jar
  myejb-jar.jar
  mywar.war
WEB-INF/lib/jfreereport.jar

ear's manifest:
Manifest-Version: 1.0
Created-By: Apache Ant 1.5.1
Built-By: RyanS
Class-Path: ./common-classes.jar

myejb-jar.jar's manifest:
Manifest-Version: 1.0
Created-By: Apache Ant 1.5.1
Built-By: RyanS
Class-Path: ./common-classes.jar

mywar.war's manifest:
Manifest-Version: 1.0
Created-By: Apache Ant 1.5.1
Built-By: RyanS
Class-Path: ./common-classes.jar

everything looks right to me.

-Original Message-
From: Sebastian Hauer [mailto:sebastian.hauer@;sknt.com]
Sent: Thursday, November 14, 2002 6:35 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] JBoss 3.0.4 w/ Jetty Classloader


It works for me using 3.0.4/Jetty.
I have some thrirdparty jars in my .ear/.war/WEB-INF/lib.
Where inside your EAR is the code located that can't access the stuff in
WEB-INF/lib?
I would guess that it might be some kind of a classloader scope problem
but that seems strange with JBoss' new UnifiedClassloader concept.

Sebastian

> -Original Message-
> From: Sonnek, Ryan [mailto:Ryan.Sonnek@;bpc.com] 
> Sent: Thursday, November 14, 2002 3:31 PM
> To: '[EMAIL PROTECTED]'
> Subject: [JBoss-user] JBoss 3.0.4 w/ Jetty Classloader
> 
> 
> I can't tell where this problem is, but the classloader of my 
> ear file seems to be failing.  i've got an ear file packaged 
> with a war file.  within the war's WEB-INF/lib i have a jar 
> file with reporting classes.  i'm continually getting a class 
> not found exception.  if i pull the jar file out of the 
> WEB-INF/lib and put it in JBOSS_HOME/server/custom/lib, the 
> classes are found.  it isn't a big deal to have them in 
> custom/lib, but why wouldn't it work in WEB-INF/lib?  i used 
> to store them in WEB-INF/lib with 2.4.4 w/ tomcat.  has 
> something changed, or is this a jetty thing?
> 
> Ryan
> Ryan J. Sonnek
> Brown Printing Company
> J2EE Application Developer
> 507.835.0803
> <mailto:ryan.sonnek@;bpc.com>
> 
> 
> ---
> This sf.net email is sponsored by: To learn the basics of securing 
> your web site with SSL, click here to get a FREE TRIAL of a Thawte 
> Server Certificate: http://www.gothawte.com/rd524.html
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED] 
> https://lists.sourceforge.net/lists/listinfo/j> boss-user
> 
> 
> 
> 
> ---
> This sf.net email is sponsored by: To learn the basics of securing 
> your web site with SSL, click here to get a FREE TRIAL of a Thawte 
> Server Certificate: http://www.gothawte.com/rd524.html
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED] 
> https://lists.sourceforge.net/lists/listinfo/j> boss-user
> 


---
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss 3.0.4 w/ Jetty Classloader

2002-11-14 Thread Sonnek, Ryan
I can't tell where this problem is, but the classloader of my ear file seems
to be failing.  i've got an ear file packaged with a war file.  within the
war's WEB-INF/lib i have a jar file with reporting classes.  i'm continually
getting a class not found exception.  if i pull the jar file out of the
WEB-INF/lib and put it in JBOSS_HOME/server/custom/lib, the classes are
found.  it isn't a big deal to have them in custom/lib, but why wouldn't it
work in WEB-INF/lib?  i used to store them in WEB-INF/lib with 2.4.4 w/
tomcat.  has something changed, or is this a jetty thing?

Ryan
Ryan J. Sonnek
Brown Printing Company
J2EE Application Developer
507.835.0803



---
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss 3.0.4 w/ Jetty Classloader

2002-11-14 Thread Sonnek, Ryan
I can't tell where this problem is, but the classloader of my ear file seems
to be failing.  i've got an ear file packaged with a war file.  within the
war's WEB-INF/lib i have a jar file with reporting classes.  i'm continually
getting a class not found exception.  if i pull the jar file out of the
WEB-INF/lib and put it in JBOSS_HOME/server/custom/lib, the classes are
found.  it isn't a big deal to have them in custom/lib, but why wouldn't it
work in WEB-INF/lib?  i used to store them in WEB-INF/lib with 2.4.4 w/
tomcat.  has something changed, or is this a jetty thing?

Ryan
Ryan J. Sonnek
Brown Printing Company
J2EE Application Developer
507.835.0803



---
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] JBoss site down

2002-11-04 Thread Sonnek, Ryan
i guess there's ONE person out there that hasn't heard:

ALL YOUR BASE ARE BELONG TO US.

personnaly, i love seeing that on jboss's site!  hilarious!

-Original Message-
From: Ricardo Escalon [mailto:ricardo@;hni.uni-paderborn.de]
Sent: Monday, November 04, 2002 11:00 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] JBoss site down


To add this matter, there is a suspicious message on my browsers status bar
when load the jboss.org page it says:

"All your J2EE are belong to us."

It seems to me that JBoss was hacked and someone should alert them.

Regards

Ricardo
A happy JBoss user.
- Original Message -
From: "Ricardo Escalon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 04, 2002 5:08 PM
Subject: [JBoss-user] JBoss site down


> Hello does anyone know what is going on with jboss.org
>
> I require:
> http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd
> in order to run EJBDoclet task to automatically generate my EJB-JAR, but
it
> has been down several times today.
>
> Have they been hacked?
>
> More importantly is there a way of running EJBDoclet withou it resorint to
> call jboss_3_0.dtd without providing your own
> jboss.xml file?
>
> Regards
>
> Ricardo
>
>
>
> ---
> This SF.net email is sponsored by: ApacheCon, November 18-21 in
> Las Vegas (supported by COMDEX), the only Apache event to be
> fully supported by the ASF. http://www.apachecon.com
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>



---
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] jetty taglib problems?

2002-10-30 Thread Sonnek, Ryan
are there any known problems working with taglibs in jboss 3.0.3 with jetty?

i'm using xdoclet to generate my taglib.tld file and everything looks right
with the spec, but i keep getting the following exception.  i'm downloading
3.0.3 with tomcat right now to test the difference, but if anyone has seen
this error, and could point me in the right direction, i'd be very grateful.

thanks.
Ryan Sonnek

here's the error:
org.apache.jasper.JasperException: variable susbelement defined in tld when
TagExtraInfo class com.bpc.bcs.tag.ActiveJobSetupTagExtraInfo is non-null

note that the spelling error actually exists.  i didn't type it in wrong.


---
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] binding ejb to wrong datasource

2002-10-29 Thread Sonnek, Ryan
thanks for the help.  i'm using xdoclet, and i only had to change the
@jboss:res-ref to @jboss:resource-manager.  simple as can be!


-Original Message-
From: Guy Rouillier [mailto:guy-rouillier@;speakeasy.net]
Sent: Monday, October 28, 2002 9:45 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] binding ejb to wrong datasource


Why do you have a resource-ref section in jboss.xml?  This section should be
resource-manager.  Here is a working section from one of my EJBs.

  

  java:/ordermanagementDB
  jdbc/ordermanagementDB

  

- Original Message -
From: "Sonnek, Ryan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 28, 2002 10:57 AM
Subject: [JBoss-user] binding ejb to wrong datasource


> does anyone know why my ejb resources are always trying to bind to
> java:/DefaultDS??  in jboss 3.0.3 when i deploy my ejb's, they always try
to
> bind to DefaultDS instead of the datasource i have configured for them.  i
> have 3 datasources configured, DefaultDS, was1DS, and was2DS to oracle
> databases.  here are the important parts of my ejb-jar.xml and my
jboss.xml.
> i don't see why it won't work with my other datasources.
>
> ejb-jar.xml
>   
>  
>  DutyManager
>
>  DutyManager
>
>  com.bpc.bcs.interfaces.DutyManagerHome
>  com.bpc.bcs.interfaces.DutyManager
>  com.bpc.bcs.ejb.DutyManagerSession
>  Stateless
>  Container
>
>  
> jdbc/bcs/bcsuser
> javax.sql.DataSource
> Container
>  
>
>   
>
> jboss.xml
>   
>  DutyManager
>  ejb/bcs/dutyManager
> 
>  jdbc/bcs/bcsuser
>  java:/was2DS
>  
>   
>
> here's the message from jboss when the ejb is deployed:
> 09:48:52,424 DEBUG [StatelessSessionContainer] Begin java:comp/env for
EJB:
> DutyManager
> 09:48:52,424 DEBUG [StatelessSessionContainer] TCL:
> java.net.URLClassLoader@230be4
> 09:48:52,424 DEBUG [StatelessSessionContainer] Binding resource manager:
> java:/DefaultDS to JDNI ENC as: jdbc/bcs/bcsuser
>
>
> ---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>




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


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



[JBoss-user] binding ejb to wrong datasource

2002-10-28 Thread Sonnek, Ryan
does anyone know why my ejb resources are always trying to bind to
java:/DefaultDS??  in jboss 3.0.3 when i deploy my ejb's, they always try to
bind to DefaultDS instead of the datasource i have configured for them.  i
have 3 datasources configured, DefaultDS, was1DS, and was2DS to oracle
databases.  here are the important parts of my ejb-jar.xml and my jboss.xml.
i don't see why it won't work with my other datasources.

ejb-jar.xml
  
 
 DutyManager

 DutyManager

 com.bpc.bcs.interfaces.DutyManagerHome
 com.bpc.bcs.interfaces.DutyManager
 com.bpc.bcs.ejb.DutyManagerSession
 Stateless
 Container

 
jdbc/bcs/bcsuser
javax.sql.DataSource
Container
 

  

jboss.xml
  
 DutyManager
 ejb/bcs/dutyManager

 jdbc/bcs/bcsuser
 java:/was2DS
 
  

here's the message from jboss when the ejb is deployed:
09:48:52,424 DEBUG [StatelessSessionContainer] Begin java:comp/env for EJB:
DutyManager
09:48:52,424 DEBUG [StatelessSessionContainer] TCL:
java.net.URLClassLoader@230be4
09:48:52,424 DEBUG [StatelessSessionContainer] Binding resource manager:
java:/DefaultDS to JDNI ENC as: jdbc/bcs/bcsuser


---
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] Netboot issues

2002-10-11 Thread Sonnek, Ryan

what files are required in the lib directory of the netboot configuration
that i'm working with?  i'm using jboss 3.0.3-jetty, so can i remove the
crimson.jar and still have it work?  how is the netboot client finding the
required files on the server?  will it pull the required jboss/lib/*.jar
files or are they required to be in the jboss/server//lib?

sorry for the questions, but i can't seem to find docs about this.
Ryan

-Original Message-
From: Jason Westra [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 6:09 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Netboot issues


It works fine for me under a local Apache instance.  Haven't tried it
remotely.  It is really cool, but takes forever to boot since it copies the
jars thru http: rather than a nice local copy.  My version is
jboss3.0.2-tomcat4.0.4 and there is no crimson.jar.

Jason

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of David Jencks
Sent: Thursday, October 10, 2002 3:53 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Netboot issues


Probably the file lists are out of date... we should look for a way to make
the lists generated dynamically from the build.  I don't think crimson.jar
is used in any 3.0++ version any more.

I haven't tried this stuff, where are the files one needs?

thanks
david jencks

On 2002.10.10 16:16:08 -0400 "Sonnek, Ryan" wrote:
> has anyone out there used the netboot functionality of jboss 3.x??  i've
> been working on it for a couple days with the example docs online now
> with
> no luck.
> my setup is:
>   an apache 2.0 server hosting the jboss files at
> http://localhost/jboss/server/default
> <http://localhost/jboss/server/default> .
>   client is using this batch file run, \bin\run.bat --netboot
> http://localhost/jboss <http://localhost/jboss>  --config default
>
> the client hangs with no responce, and the apache logs don't show
> anything
> till i cancel the netboot client.  then, apache shows that the client was
> trying to get jboss/lib/crimson.jar.
> with no activity or errors, i'm at a loss.  anyone used this REALLY
> APEALLING feature?
>
>
> 
> 
> 
>
>
> 
> 
>  size=2>has
> anyone out there used the netboot functionality of jboss 3.x??  i've
> been
> working on it for a couple days with the example docs online now with no
> luck.  
>  size=2>my
> setup is:
>  class=060051120-10102002>   class=060051120-10102002>an
> apache 2.0 server hosting the jboss files at 
href="http://localhost/jboss/server/default";>http://localhost/jboss/server/d
efault. 
>
> 
>  class=060051120-10102002>  client is using this batch file
> run,
> \bin\run.bat --netboot  href="http://localhost/jboss";>http://localhost/jboss --config
> default
>  class=060051120-10102002> 
>  class=060051120-10102002>the client hangs with no responce, and the
> apache logs
> don't show anything till i cancel the netboot client.  then, apache
> shows
> that the client was trying to get
> jboss/lib/crimson.jar.
>  class=060051120-10102002>with no activity or errors, i'm at a loss. 
> anyone
> used this REALLY APEALLING feature?
>  
>


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



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


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



[JBoss-user] Netboot issues

2002-10-10 Thread Sonnek, Ryan



has 
anyone out there used the netboot functionality of jboss 3.x??  i've been 
working on it for a couple days with the example docs online now with no 
luck.  
my 
setup is:
  an 
apache 2.0 server hosting the jboss files at http://localhost/jboss/server/default.  

  client is using this batch file run, 
\bin\run.bat --netboot http://localhost/jboss --config 
default
 
the client hangs with no responce, and the apache logs 
don't show anything till i cancel the netboot client.  then, apache shows 
that the client was trying to get 
jboss/lib/crimson.jar.
with no activity or errors, i'm at a loss.  anyone 
used this REALLY APEALLING feature?
 


RE: [JBoss-user] Oracle "By Container" JCA configuration

2002-09-26 Thread Sonnek, Ryan

since this is finally up and running, i had a request to post a summary of
what's going on.

our company is using an Open LDAP server to store users and roles.  included
is our directory structure.  in order for jboss to pull the user's and roles
from JAAS we added the the testLdap application policy to login-config.xml.
the webapplication must be packaged with a web.xml file that restricts
certain resources to a role that the users have, and the jboss-web.xml must
be included to say which application policy you're using.

now, we're halfway there.  jboss can restrict the user to the resource and
is getting the roles from the ldap.  the next part is to get that user to
connect through the oracle datasource with that same username and password.
in order to get that, you must add a CallerIdentityLoginModule to
login-config.xml.  give it whatever name you want, but in this example it's
called OracleDbRealm.  the username and password attributes of the
CallerIdentityLoginModule do not matter, since jboss will be DYNAMICALLY
filling these in with the subject's username/password when they use the
datasource.  

configuring the oracle datasource was a snap.  just take the example
oracle-service.xml from the examples/jca directory, fill in your server's
ip, and make sure it's set to ByContainer authorization.  you'll also have
to uncomment the OracleDbRealm, make sure the name
is the same as your login-config.xml, and you're done.

i'd be more than happy to provide some better examples or documentation if
people need help.  special thanks go to david jencks, because there's no way
i could have got this up and going on my own!

Ryan
Ryan J. Sonnek
Brown Printing Company
J2EE Application Developer
507.835.0803





-o=mybpc,o=net
  -ou=users
-dn=cn=ryans,ou=users,o=mybpc,o=net
-dn=cn=davidj,ou=users,o=mybpc,o=net
  -ou=roles
-cn=admin,ou=roles,o=mybpc,o=net
  -uniquemember=dn=cn=ryans,ou=users,o=mybpc,o=net
  -uniquemember=dn=cn=davidj,ou=users,o=mybpc,o=net


oracle-service.xml
Description: Binary data


login-config.xml
Description: Binary data


jboss-web.xml
Description: Binary data


web.xml
Description: Binary data


RE: [JBoss-user] Oracle "By Container" JCA configuration

2002-09-25 Thread Sonnek, Ryan

what a relief!  it's working now!
i only had to change the ConfiguredIdentityLoginModule to the
CallerIdentityLoginModule, and restart jboss.  now, the account that logs in
IS connecting to the database using that account.

THANK YOU DAVID!  LONG LIVE JBOSS!!
Ryan

-Original Message-
From: David Jencks [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 4:18 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Oracle "By Container" JCA configuration


I'm sorry, I misread your previous post.  You need to use the
CallerIdentityLoginModule, not the ConfiguredIdentityLoginModule.

david jencks

On 2002.09.25 16:14:48 -0400 "Sonnek, Ryan" wrote:
> that's a scary though david.  me peeling through jboss code!  :)  just
> kidding, i'd love to dig into this and find out what is really happening.
> do you have any suggestions for what classes to look though?
> 
> i've begun doing some debugging, and i've found that the principal that
> is
> passed to the ConfiguredIdentityLoginModule is using the default
> username/password from the login-config.xml.  the user that is logged in
> through the ldap login module is not getting to the configured identity
> module.
> 
> using the code from the configured identity module's initialize method:
>   log.info("got principal: " + principalName + ", username: " + userName
> +
> ", password: " + password);
> returns the values from the login-config.xml:
> 
> 
>
>"org.jboss.resource.security.ConfiguredIdentityLoginModule" flag =
> "required">
>  yourprincipal
>  yourusername
>  yourpassword
>  
"managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=OracleDS dule-option>
>   
>
> 
> 
> is there anything else required to get the configured identity module to
> use
> the ldap module?
> 
> 
> -Original Message-
> From: David Jencks [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 25, 2002 11:06 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Oracle "By Container" JCA configuration
> 
> 
> It looks to me as if you have everything set up correctly and understand
> what is supposed to happen.  I would expect the setup to work since you
> have identical user/pw in ldap and oracle.  I suggest logging the user/pw
> at every opportunity (in the CallerIdentityLoginModule when the
> PasswordCredential is constructed and in the jca wrapper when a
> connection
> from Oracle is requested) to see what is actually happening.
> 
> As I think I mentioned, I myself have never set this up, and it's
> possible
> bugs have crept in due to changes in components supporting the login
> module.
> 
> thanks
> david jencks
> 
> 
> On 2002.09.25 11:40:05 -0400 "Sonnek, Ryan" wrote:
> > again, things are getting much clearer!
> > ok, here's my new understanding of how this works in my current setup:
> > 
> > 1.  login-conf.xml has 2 login modules.
> > a.  ConfiguredIdentityLoginModule named OracleDbRealm
> > b.  LDAPLoginModule named testLdap
> > 2.  oracle-service.xml is configured.
> > a.  SecurityDomainJndiName = OracleDbRealm
> > b.  JndiName = OracleDS
> > 3.  JSP application is deployed.
> > a.  jboss-web.xml configured to use java:/jaas/testLdap security
> > domain
> > b.  database lookups using java:/OracleDS
> > 
> > does this look right so far?  IF this is the setup, my understanding is
> > that
> > the account username/password used for the LDAPLoginModule MUST be the
> > same
> > as the database account, in order for the subject to propogate
> correctly.
> > things are nearly working now (i think :) ), and it makes sense to use
> a
> > seperate login module (like LDAPLoginModule) to get the roles.  
> > 
> > the error i get now is:
> > SEVERE: Could not create connection; - nested throwable:
> > (java.sql.SQLException: ORA-01017: invalid username/password; logon
> > denied
> > ); - nested throwable: (org.jboss.resource.ResourceException: Could not
> > create connection; - nested throwable: (java.sql.SQLException:
> ORA-01017:
> > invalid username/password; logon denied
> > ))
> > 
> > my ldap account has the same username and password as my database
> > account.
> > is the password that is passed from the ldap module to the configured
> > identity module changed in any way?
> > 
> > 
> > 
> 
> 
> 

RE: [JBoss-user] Oracle "By Container" JCA configuration

2002-09-25 Thread Sonnek, Ryan

that's a scary though david.  me peeling through jboss code!  :)  just
kidding, i'd love to dig into this and find out what is really happening.
do you have any suggestions for what classes to look though?

i've begun doing some debugging, and i've found that the principal that is
passed to the ConfiguredIdentityLoginModule is using the default
username/password from the login-config.xml.  the user that is logged in
through the ldap login module is not getting to the configured identity
module.

using the code from the configured identity module's initialize method:
  log.info("got principal: " + principalName + ", username: " + userName +
", password: " + password);
returns the values from the login-config.xml:


   
  
 yourprincipal
 yourusername
 yourpassword
 jboss.jca:service=LocalTxCM,name=OracleDS
  
   


is there anything else required to get the configured identity module to use
the ldap module?


-Original Message-
From: David Jencks [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 11:06 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Oracle "By Container" JCA configuration


It looks to me as if you have everything set up correctly and understand
what is supposed to happen.  I would expect the setup to work since you
have identical user/pw in ldap and oracle.  I suggest logging the user/pw
at every opportunity (in the CallerIdentityLoginModule when the
PasswordCredential is constructed and in the jca wrapper when a connection
from Oracle is requested) to see what is actually happening.

As I think I mentioned, I myself have never set this up, and it's possible
bugs have crept in due to changes in components supporting the login
module.

thanks
david jencks


On 2002.09.25 11:40:05 -0400 "Sonnek, Ryan" wrote:
> again, things are getting much clearer!
> ok, here's my new understanding of how this works in my current setup:
> 
> 1.  login-conf.xml has 2 login modules.
> a.  ConfiguredIdentityLoginModule named OracleDbRealm
> b.  LDAPLoginModule named testLdap
> 2.  oracle-service.xml is configured.
> a.  SecurityDomainJndiName = OracleDbRealm
> b.  JndiName = OracleDS
> 3.  JSP application is deployed.
> a.  jboss-web.xml configured to use java:/jaas/testLdap security
> domain
> b.  database lookups using java:/OracleDS
> 
> does this look right so far?  IF this is the setup, my understanding is
> that
> the account username/password used for the LDAPLoginModule MUST be the
> same
> as the database account, in order for the subject to propogate correctly.
> things are nearly working now (i think :) ), and it makes sense to use a
> seperate login module (like LDAPLoginModule) to get the roles.  
> 
> the error i get now is:
> SEVERE: Could not create connection; - nested throwable:
> (java.sql.SQLException: ORA-01017: invalid username/password; logon
> denied
> ); - nested throwable: (org.jboss.resource.ResourceException: Could not
> create connection; - nested throwable: (java.sql.SQLException: ORA-01017:
> invalid username/password; logon denied
> ))
> 
> my ldap account has the same username and password as my database
> account.
> is the password that is passed from the ldap module to the configured
> identity module changed in any way?
> 
> 
> 


---
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] Oracle "By Container" JCA configuration

2002-09-25 Thread Sonnek, Ryan

again, things are getting much clearer!
ok, here's my new understanding of how this works in my current setup:

1.  login-conf.xml has 2 login modules.
a.  ConfiguredIdentityLoginModule named OracleDbRealm
b.  LDAPLoginModule named testLdap
2.  oracle-service.xml is configured.
a.  SecurityDomainJndiName = OracleDbRealm
b.  JndiName = OracleDS
3.  JSP application is deployed.
a.  jboss-web.xml configured to use java:/jaas/testLdap security domain
b.  database lookups using java:/OracleDS

does this look right so far?  IF this is the setup, my understanding is that
the account username/password used for the LDAPLoginModule MUST be the same
as the database account, in order for the subject to propogate correctly.
things are nearly working now (i think :) ), and it makes sense to use a
seperate login module (like LDAPLoginModule) to get the roles.  

the error i get now is:
SEVERE: Could not create connection; - nested throwable:
(java.sql.SQLException: ORA-01017: invalid username/password; logon denied
); - nested throwable: (org.jboss.resource.ResourceException: Could not
create connection; - nested throwable: (java.sql.SQLException: ORA-01017:
invalid username/password; logon denied
))

my ldap account has the same username and password as my database account.
is the password that is passed from the ldap module to the configured
identity module changed in any way?



-Original Message-
From: David Jencks [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 9:55 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Oracle "By Container" JCA configuration


Since you didn't post your changed login-conf.xml I'm guessing about what
you might be doing.

You need (at least) 2 login modules: one to log the user into the app, this
one will supply the roles for the user inside the app, and another (the
CallerIdentityLoginModule) that will translate the app user/pw into
essentially the same thing in a new Subject for the database.  The jca/db
stuff doesn't need to know anything about roles, so the Subject the
CallerIdentityLoginModule constructs doesn't have any roles attached.

I have always put the login modules for the app and the datasource in
separate security domains.  It might be possible to put both login modules
in the same security domain.  In this case I believe the
CallerIdentityLoginModule with just add the PasswordCredential for the
database to the existing Subject.  If you try this and it works please let
us know how to do it.

thanks
david jencks

On 2002.09.25 09:52:32 -0400 "Sonnek, Ryan" wrote:
> thanks david, that cleared up some of my questions.
> now that i have the CallerIdentityLoginModule in the login-conf.xml i'm
> getting a responce back from jboss that the user is logging in
> successfully.
> now the retrieval of roles is a mystery to me.  where is it getting roles
> from when using this login module?  after jboss loggs the person in,
> their
> roles are not set:
> 
> 08:48:32,120 DEBUG [JBossUserRealm#SCD Secured Information Authentication
> Area]
> authenticating: Name:sa Password:
> 08:48:32,120 DEBUG [JBossUserRealm#SCD Secured Information Authentication
> Area]
> authenticated: sa
> 08:48:32,130 DEBUG [JBossUserRealm#SCD Secured Information Authentication
> Area]setting JAAS subjectAttributeName(j_subject) : Subject:
> Principal: yourprincipal
> Private Credential:
> javax.resource.spi.security.PasswordCredential@21f38000
> 08:45:39,261 DEBUG [JBossUserRealm#SCD Secured Information Authentication
> Area]
> JBossUserPrincipal: sa is NOT in Role: MCS_VIEW
> 08:45:39,261 DEBUG [JBossUserRealm#SCD Secured Information Authentication
> Area]
> JBossUserPrincipal: sa is NOT in Role: MCS_USER
> 08:45:39,261 WARN  [jbossweb] WARNING: AUTH FAILURE: role for sa
> 
> here is the login-conf.xml module that the oracle datasource is using:
> 
>
>"org.jboss.resource.security.ConfiguredIdentityLoginModule" flag =
> "required">
>  yourprincipal
>  yourusername
>  yourpassword
>  
"managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=OracleDS dule-option>
>   
>
> 
> 
> do the principal, username, and password have to be set to anything?  i'm
> assuming that the "ByContainer" setting is automatically filling these in
> with the values supplied by the user.
> 
> thanks again for your help.
> Ryan
> 
> Ryan J. Sonnek
> Brown Printing Company
> J2EE Application Developer
> 507.835.0803
> <mailto:[EMAIL PROTECTED]>
> 
> 
> -Original Message-
> From: David Jencks [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 24, 2002 7:50 PM
> To: [EMAIL PROTECTED]

RE: [JBoss-user] Oracle "By Container" JCA configuration

2002-09-25 Thread Sonnek, Ryan

thanks david, that cleared up some of my questions.
now that i have the CallerIdentityLoginModule in the login-conf.xml i'm
getting a responce back from jboss that the user is logging in successfully.
now the retrieval of roles is a mystery to me.  where is it getting roles
from when using this login module?  after jboss loggs the person in, their
roles are not set:

08:48:32,120 DEBUG [JBossUserRealm#SCD Secured Information Authentication
Area]
authenticating: Name:sa Password:
08:48:32,120 DEBUG [JBossUserRealm#SCD Secured Information Authentication
Area]
authenticated: sa
08:48:32,130 DEBUG [JBossUserRealm#SCD Secured Information Authentication
Area]setting JAAS subjectAttributeName(j_subject) : Subject:
Principal: yourprincipal
Private Credential:
javax.resource.spi.security.PasswordCredential@21f38000
08:45:39,261 DEBUG [JBossUserRealm#SCD Secured Information Authentication
Area]
JBossUserPrincipal: sa is NOT in Role: MCS_VIEW
08:45:39,261 DEBUG [JBossUserRealm#SCD Secured Information Authentication
Area]
JBossUserPrincipal: sa is NOT in Role: MCS_USER
08:45:39,261 WARN  [jbossweb] WARNING: AUTH FAILURE: role for sa

here is the login-conf.xml module that the oracle datasource is using:

   
  
 yourprincipal
 yourusername
 yourpassword
 jboss.jca:service=LocalTxCM,name=OracleDS
  
   


do the principal, username, and password have to be set to anything?  i'm
assuming that the "ByContainer" setting is automatically filling these in
with the values supplied by the user.

thanks again for your help.
Ryan

Ryan J. Sonnek
Brown Printing Company
J2EE Application Developer
507.835.0803
<mailto:[EMAIL PROTECTED]>


-Original Message-
From: David Jencks [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 7:50 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Oracle "By Container" JCA configuration


In addition you have to use a login module for the datasource.  Use the
CallerIdentityLoginModule.  The matching stuff between the mcf name in the
login module and the object name of the ConnectionManager mbean and the
security domain attribute of the cm and the name in login conf has to be
set up correctly.

The CallerIdentityLoginModule basically takes the app user/pw from the app
security domain and constructs a Subject with the same user/pw plus that
specifies the pw is for the mcf/datasource you are using.

We could probably use an example configuration of this somewhere.  I have
never set it up and used it.

thanks
david jencks

On 2002.09.24 18:33:28 -0400 "Sonnek, Ryan" wrote:
> Short and sweet question,
> I'm trying to configure the example oracle-service.xml to use 'By
> Container'
> authentication to have the authenticated user connect using their
> username/password.
>  
> since it's not currently working, here's my understanding of how it
> works:
> 1.  added a DatabaseServerLoginModule to login-config.xml.
> 2.  user logs in using DatabaseServerLoginModule (querying DBA_USER and
> DBA_ROLE_PRIVS).
> 3.  application uses java:/OracleDS.
> 4.  how can I configure the OracleDS to use the subject's
> username/password
> to make it's connection to the db?
>  
> i've gone through the purchased documentation a number of times, but this
> isn't covered.  any help is of course greatly appreciated.
>  
> (login-config.xml and oracle-service.xml included to increase
> readability)
>  
> 
> 
> 
> 
> 
> 
> 
> @page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt
> 72.0pt 90.0pt; }
> P.MsoNormal {
>   FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New
> Roman"
> }
> LI.MsoNormal {
>   FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New
> Roman"
> }
> DIV.MsoNormal {
>   FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New
> Roman"
> }
> A:link {
>   COLOR: blue; TEXT-DECORATION: underline
> }
> SPAN.MsoHyperlink {
>   COLOR: blue; TEXT-DECORATION: underline
> }
> A:visited {
>   COLOR: purple; TEXT-DECORATION: underline
> }
> SPAN.MsoHyperlinkFollowed {
>   COLOR: purple; TEXT-DECORATION: underline
> }
> SPAN.EmailStyle17 {
>   COLOR: windowtext; FONT-FAMILY: Arial
> }
> DIV.Section1 {
>   page: Section1
> }
> 
> 
> 
>  size=2>Short 
> and sweet question,
>  size=2>I'm 
> trying to configure the example oracle-service.xml to use 'By Container' 
> authentication to have the authenticated user connect using their 
> username/password.
>  size=2> 
>  size=2>since 
> it's not currently working, here's my understanding of how it 
> works:
>  size=2&

[JBoss-user] Oracle "By Container" JCA configuration

2002-09-24 Thread Sonnek, Ryan



Short 
and sweet question,
I'm 
trying to configure the example oracle-service.xml to use 'By Container' 
authentication to have the authenticated user connect using their 
username/password.
 
since 
it's not currently working, here's my understanding of how it 
works:
1.  added a DatabaseServerLoginModule to 
login-config.xml.
2.  user logs in using DatabaseServerLoginModule 
(querying DBA_USER and DBA_ROLE_PRIVS).
3.  application uses java:/OracleDS.
4.  how can I configure the OracleDS to use the subject's 
username/password to make it's connection to the db?
 
i've 
gone through the purchased documentation a number of times, but this isn't 
covered.  any help is of course greatly appreciated.
 
(login-config.xml and oracle-service.xml included to increase 
readability)
 


login-config.xml
Description: Binary data


oracle-service.xml
Description: Binary data


[JBoss-user] jboss 3.0.x authentication with active directory

2002-09-06 Thread Sonnek, Ryan

has anyone worked with a login module that connects to active directory
using jboss 3.0?  

Ryan J. Sonnek
Brown Printing Company
IT Programmer/Analyst
(507) 835-0803





---
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] oracle proxy authentication

2002-09-05 Thread Sonnek, Ryan

david, thank you so much for your replies.  you've helped me out on more
than one occasion!

i think you hit the nail right on the head with my objectives.  my current
goal is to get the authenticated identity from the middle tier, and use that
identity to make the connection to the back end database.  it sounds a lot
like this is possible with the login modules you talked about, so i'm going
to dig into them and see if they fit our needs.

i would absolutely love to stay working with jboss and not have to move to
oracle's application server, so i will start looking into the modules you
talked about.

thanks again.
Ryan

Ryan J. Sonnek
Brown Printing Company
IT Programmer/Analyst
(507) 835-0803
<mailto:[EMAIL PROTECTED]>


-Original Message-
From: David Jencks [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 1:26 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] oracle proxy authentication


This stuff is jboss 3/4 only, but should work fine in 3.0.2.

The CallerIdentityLoginModule is kind of between the ejb (or even jsp) part
of the app and the resource adapter/jdbc datasource.  If you set up jca
(database, here) security using the JAAS framework, you use a login module
to supply the security info to the adapter.  This login module can use
whatever means it wants to come up with a suitable Subject for the
ManagedConnectionFactory.  Basically there are only 3 possible kinds: you
always use the same identity ("configured identity", which corresponds to
what you are using now"), the same identity as the user in the app ("caller
identity", which seems to be what you want) and mapping the app user
identity to something else (your choice how:-).

You should be able to set up the CallerIdentityLoginModule in jboss 3
without too much trouble. (I haven't tested it, but the guy who wrote it
did).  You will need to set the pooling criteria to ByApplication.  One
factor to be aware of with the current pooling implementation is that there
is one pool (using the min, max, etc parameters) for each distinct user. 
You will probably want to set the pool size low and have a short idle
timeout.  There is currently no global maximum on the number of pools.
(this wouldn't be hard to add, but I'm not sure of the most appropriate
logic).

So far this will work with any database.  There is a concept in jca of
reauthentication, which sounds like pretty much what Oracle is supporting
here.  So, I imagine you could write an Oracle specific jca wrapper that
supported reauthentication using this oracle specific feature.  This would
let you use just one pool, avoiding the potential problem I mentioned
above.  If you want to work on this I can try to give you some hints, and I
hope you would consider contributing the result: I think others could use
it as well.

Thanks
david jencks

On 2002.09.05 13:54:51 -0400 "Sonnek, Ryan" wrote:
> thanks for the quick reply!  i'll try and clarify my situation.
> 
> yes, this seems to be an EXTREMELY non standard request, and against a
> lot
> of what i believe to be so great about J2EE, but trying to appease some
> very
> difficult people.  
> 
> our current setup is that an application is deployed with an ldap
> security
> domain, so when a user accesses a web page, they'll be prompted for a
> username/password, and be logged in.  from there, calling a stateless
> session bean to make the database connection and return certain results.
> the SLSB is looking up a datasource with a configured
> url/username/password
> to connect to the database.  since the connection is made through this
> generic account, and records modified will show "generic user" as the
> audit
> user instead of the logged in person.  is there any way to propogate the
> security credentials that the user logged in with to that database
> connection?
> 
> i've been reading about oracles ability to use a "proxy authentication"
> to
> have one database connection but several individual sessions within that
> connection.  when an insert/update/delete occurs, it happens within that
> session, and the audit user will reflect that.
> 
> you lost me with the CallerIdentityLoginModule.  what does that do again
> (how does jboss use it)??
> 
> we're currently using jboss 2.4.6 w/ tomcat 4.0.1 and planning on
> upgrading
> sometime soon, so if this feature exists only in 3.0.x we'll definately
> be
> moving up ASAP.
> 
> Ryan J. Sonnek
> Brown Printing Company
> IT Programmer/Analyst
> (507) 835-0803
> <mailto:[EMAIL PROTECTED]>
> 
> 
> -Original Message-
> From: David Jencks [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 05, 2002 12:35 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] oracle proxy authentication
> 
> 

RE: [JBoss-user] oracle proxy authentication

2002-09-05 Thread Sonnek, Ryan

thanks for the quick reply!  i'll try and clarify my situation.

yes, this seems to be an EXTREMELY non standard request, and against a lot
of what i believe to be so great about J2EE, but trying to appease some very
difficult people.  

our current setup is that an application is deployed with an ldap security
domain, so when a user accesses a web page, they'll be prompted for a
username/password, and be logged in.  from there, calling a stateless
session bean to make the database connection and return certain results.
the SLSB is looking up a datasource with a configured url/username/password
to connect to the database.  since the connection is made through this
generic account, and records modified will show "generic user" as the audit
user instead of the logged in person.  is there any way to propogate the
security credentials that the user logged in with to that database
connection?

i've been reading about oracles ability to use a "proxy authentication" to
have one database connection but several individual sessions within that
connection.  when an insert/update/delete occurs, it happens within that
session, and the audit user will reflect that.

you lost me with the CallerIdentityLoginModule.  what does that do again
(how does jboss use it)??

we're currently using jboss 2.4.6 w/ tomcat 4.0.1 and planning on upgrading
sometime soon, so if this feature exists only in 3.0.x we'll definately be
moving up ASAP.

Ryan J. Sonnek
Brown Printing Company
IT Programmer/Analyst
(507) 835-0803



-Original Message-
From: David Jencks [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 12:35 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] oracle proxy authentication


This seems like a rather non standard feature.  As I understand it from
your description you can use the same database connection under several
security identities?  What calls do you need to make to establish the
identity?

How do you plan to use this in a j2ee environment?

In jboss 3, it is already possible with any jdbc driver to get database
connections using a variety of security identities, by using an appropriate
login module.  We supply a CallerIdentityLoginModule that provides the
actual user/pw from application login to the database, and a
ConfiguredIdentityLoginModule that always supplies the same user/pw.  I
have some parts of a mapping login module that looks up in a db table the
db user/pw to use for each application user.

Please explain how you want to use this Oracle feature.

thanks
david jencks



---
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



[JBoss-user] oracle proxy authentication

2002-09-05 Thread Sonnek, Ryan

has anyone used oracle proxy authentication from within jboss?  

it allows for the application server to connect to the database through a
pooled connection, and multiple user sessions can connect with their
authenticated identities so oracle can extract correct audit information.  

from what i've read, this is available only with oracle's 'thick' JDBC
client or their 'OCI' drivers.  do i need to look into oracle's application
server in order to get this functionality? i'd hate to use something other
than jboss!!!  :)

Ryan J. Sonnek
Brown Printing Company
IT Programmer/Analyst
(507) 835-0803



---
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



[JBoss-user] busted jboss dtd's?

2002-06-12 Thread Sonnek, Ryan

what's up with the DTD's on JBoss' site?
every time i try to work with jboss-web.dtd or jboss-web_3_0.dtd, i'm
receiving errors.

http://www.jboss.org/j2ee/dtd/jboss-web.dtd
http://www.jboss.org/j2ee/dtd/jboss-web_3_0.dtd


___

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] Binding Datasource problems

2002-06-12 Thread Sonnek, Ryan

here's a bit more info on my situation.  when i deploy my ejb, here's the
log that's displayed.

[DEBUG,EntityContainer] Begin java:comp/env for EJB: EmployeeEJB
[DEBUG,EntityContainer] TCL: java.net.URLClassLoader@ec5677
[DEBUG,EntityContainer] Binding resource manager: jdbc/mcs/database to JDNI
ENC
as: jdbc/mcs/mcsuser
[DEBUG,EntityContainer] End java:comp/env for EJB: EmployeeEJB

that still hasn't helped me figure out which JNDI name I should be using
inside my ejb.  thanks again.

-Original Message-
From: Sonnek, Ryan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 11:06 AM
To: '[EMAIL PROTECTED]'
Subject: [JBoss-user] Binding Datasource problems


hopefully this will be a simple question for someone out there.  I'm trying
to use an already configured datasource from an ejb, but i'm getting mixed
up on how the JNDI name is bound.  I'm using jboss 2.4.4 with tomcat 4.0.1.
I've tried several different JNDI names, and servlets are able to use the
literal JNDI name from the jboss.jcml, but my EJB can't connect.

any help would be greatly appreciated.  thanks.

EJB DAO source code:

Context naming = new InitialContext();
DataSource dataSource = (DataSource)
naming.lookup("java:comp/env/jdbc/mcs/mcsuser);
connection = dataSource.getConnection();

ejb.xml



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


  Machine Crewing System Enterprise Java Beans
  MCS EJB
  

  Employee BMP
  EmployeeEJB
  EmployeeEJB
  bpc.mcs.ejb.employee.EmployeeHome
  bpc.mcs.ejb.employee.Employee
  bpc.mcs.ejb.employee.EmployeeEJB
  Bean
  java.lang.Integer
  False
  


  
  
jdbc/mcs/mcsuser
javax.sql.DataSource
Container
Shareable
  

  
  

  
EmployeeEJB
*
  
  Required



jboss.xml



  

  EmployeeEJB
  ejb/mcs/employee
  
jdbc/mcs/mcsuser
javax.sql.DataSource
jdbc/mcs/database
  

  


jboss.jcml


  jdbc/mcs/database
  org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
  jdbc:oracle:thin:@xxx.xx.xxx:orcl
  blah
  blah
  20  
  30
  true
  30
  true   
  12


___

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] Binding Datasource problems

2002-06-12 Thread Sonnek, Ryan

hopefully this will be a simple question for someone out there.  I'm trying
to use an already configured datasource from an ejb, but i'm getting mixed
up on how the JNDI name is bound.  I'm using jboss 2.4.4 with tomcat 4.0.1.
I've tried several different JNDI names, and servlets are able to use the
literal JNDI name from the jboss.jcml, but my EJB can't connect.

any help would be greatly appreciated.  thanks.

EJB DAO source code:

Context naming = new InitialContext();
DataSource dataSource = (DataSource)
naming.lookup("java:comp/env/jdbc/mcs/mcsuser);
connection = dataSource.getConnection();

ejb.xml



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


  Machine Crewing System Enterprise Java Beans
  MCS EJB
  

  Employee BMP
  EmployeeEJB
  EmployeeEJB
  bpc.mcs.ejb.employee.EmployeeHome
  bpc.mcs.ejb.employee.Employee
  bpc.mcs.ejb.employee.EmployeeEJB
  Bean
  java.lang.Integer
  False
  


  
  
jdbc/mcs/mcsuser
javax.sql.DataSource
Container
Shareable
  

  
  

  
EmployeeEJB
*
  
  Required



jboss.xml



  

  EmployeeEJB
  ejb/mcs/employee
  
jdbc/mcs/mcsuser
javax.sql.DataSource
jdbc/mcs/database
  

  


jboss.jcml


  jdbc/mcs/database
  org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
  jdbc:oracle:thin:@xxx.xx.xxx:orcl
  blah
  blah
  20  
  30
  true
  30
  true   
  12


___

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



[JBoss-user] jboss 3.0 ConnectionManager

2002-06-04 Thread Sonnek, Ryan

If a ConnectionManager is set to ByContainer, does that mean that each
connection to a datasource will attempt to use the JAAS stored principal and
credentials to make that connection?

So, if they access a restricted web resource, authenticate successfully, and
that .jsp page uses a datsource, will their username and password be used to
make this connection?  This is the impression I got from reading the jboss
3.0 quick start pdf.  page 60 says that if the ConnectionManager is set to
ByContainer, you'll have a "distinguishable set of connections" for each
user.  What exactly does that mean?

Ryan J. Sonnek
Brown Printing Company
IT Programmer/Analyst
(507) 835-0803

 

___

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] No auth prompt using security-constraint

2002-05-31 Thread Sonnek, Ryan

More importantly, can you send your configuration?  
web.xml
jboss-web.xml
auth.conf
My guess is that there's something missing from the jboss-web.xml to bind it
to the correct Security Constraints.

Ryan

-Original Message-
From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 31, 2002 11:43 AM
To: [EMAIL PROTECTED]
Cc: Piwowar, Heather
Subject: Re: [JBoss-user] No auth prompt using security-constraint


As long as I remember myself I have always been having problems with BASIC
auth in JBoss :)) In that cases I switched to FORM and everything started to
work properly :)

alex

-Original Message-
From: "Piwowar, Heather" <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'"<[EMAIL PROTECTED]>
Date: Fri, 31 May 2002 11:47:10 -0400
Subject: [JBoss-user] No auth prompt using security-constraint

> I'm trying to get BASIC auth up and running for my web application. I have
> modified my web.xml file (see below). The implementation works fine under
> the J2EE reference implementation (I get prompted for a username and
> password when I try to reference the page).
> 
> However, When I try to deploy my EAR under Jboss-2.4.4_Tomcat-4.0.1, I do
> not get prompted for a username and password... it acts as if the
> security-contraint is not set. There are no errors in loading the EAR or
> showing the page (see below).
> 
> Any ideas? I'm feeling really stuck!
> 
> Thanks so much, 
> Heather
> 
> 
> 1. I'm going to the url
>  in IE6
> 
> 2. Extract my project tree under docroot/WEB-INF/web.xml
> 
> 
> 
> DataPortal Application
> /*
> 
> 
> dpuser
> 
> 
> SSL not required
> NONE
> 
> 
> 
> 
> BASIC
> DataPortal Application
> 
> 
> 3. Extract from run_with_catalina as it deploys EAR and then serves page:
> 
> [INFO,J2eeDeployer] Deploy J2EE application:
> file:/C:/java/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/dp_war.ear
> [INFO,J2eeDeployer] Create application dp_war.ear
> [INFO,J2eeDeployer] inflate and install WEB module dp_war.war
> [INFO,ContainerFactory]
>
Deploying:file:/C:/java/JBoss-2.4.4_Tomcat-4.0.1/jboss/tmp/deploy/Default/dp
> _war.ear
> [INFO,ContainerFactory] Deployed application:
> file:/C:/java/JBoss-2.4.4_Tomcat-4.0.1/jboss/tmp/deploy/Default/dp_war.ear
> [INFO,J2eeDeployer] Starting module dp_war.war
> [INFO,EmbeddedCatalinaServiceSX] deploy, ctxPath=/dataportal,
>
warUrl=file:/C:/java/JBoss-2.4.4_Tomcat-4.0.1/jboss/tmp/deploy/Default/dp_wa
> r.ear/web1003/
> [INFO,EmbeddedCatalinaServiceSX] WebappLoader[/dataportal]: Deploying
class
> repositories to work directory 
> C:\java\JBoss-2.4.4_Tomcat-4.0.1\catalina\work\localhost\dataportal
> [INFO,EmbeddedCatalinaServiceSX] StandardManager[/dataportal]: Seeding
> random number generator class 
> java.security.SecureRandom
> [INFO,EmbeddedCatalinaServiceSX] StandardManager[/dataportal]: Seeding of
> random number generator has 
> been completed
> [INFO,EmbeddedCatalinaServiceSX] ContextConfig[/dataportal]: Added
> certificates -> request attribute 
> Valve
> [INFO,EmbeddedCatalinaServiceSX] ContextConfig[/dataportal]: Configured an
> authenticator for method 
> BASIC
> [INFO,EmbeddedCatalinaServiceSX] StandardWrapper[/dataportal:default]:
> Loading container servlet default
> [INFO,EmbeddedCatalinaServiceSX] default: init
> [INFO,EmbeddedCatalinaServiceSX] TemplateServlet: init
> [INFO,EmbeddedCatalinaServiceSX] StandardWrapper[/dataportal:invoker]:
> Loading container servlet invoker
> [INFO,EmbeddedCatalinaServiceSX] invoker: init
> [INFO,EmbeddedCatalinaServiceSX] jsp: init
> [INFO,J2eeDeployer] J2EE application:
> file:/C:/java/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/dp_war.ear 
> is deployed.
> [INFO,AutoDeployer] Auto deploy of
> file:/C:/java/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/lib/jms-ra.rar
> [INFO,RARDeployer] Attempting to deploy RAR at
> 'file:/C:/java/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/lib/jms-ra.rar'
> [WARN,JmsXA] Using default value 'java:DefaultJMSProvider' for config
> property 'JmsProviderAdapterJNDI'
> [INFO,JmsXA] FINE: Setting LogWriter:
> org.jboss.logging.log4j.CategoryWriter@670479
> [INFO,JmsXA] Bound connection factory for resource adapter 'JMS Adapter'
to
> JNDI name 'java:/JmsXA'
> [INFO,AutoDeployer] Started
> [INFO,JMXAdaptorService] Starting
> [INFO,JMXAdaptorService] Started
> [INFO,RMIConnectorService] Starting
> [INFO,RMIConnectorService] Started
> [INFO,MailService] Starting
> [INFO,MailService] Mail Service 'Mail' bound to java:/Mail
> [INFO,MailService] Started
> [INFO,ServiceControl] Started 48 services
> [INFO,Default] JBoss-2.4.4 Started in 0m:23s.184
> [INFO,EmbeddedCatalinaServiceSX] jsp: init 
> 
> 
> ___
> 
> 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.ne

RE: [JBoss-user] LdapLoginModule null password

2002-05-28 Thread Sonnek, Ryan

First of all, thank you so much for your help.  We found that the problem
was with the configuration of openLDAP allowing anonymous binding.  The
wierd thing is that we're using an LDAP module for Apache for a similar
purpose, and Apache did not have any of these quirks.  

Thank you again for your time, and patience!!!
Ryan Sonnek

-Original Message-
From: Scott M Stark [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 25, 2002 12:14 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] LdapLoginModule null password


I added a testcase of sending a null password to the LdapLoginModule
and it correctly fails to authenticate the user. Have you tried a simple
JNDI test against your server to make sure it it not allowing this? If it
does not create a simple war or ear the demonstrates the problem
and post it as a bug to sourceforge.


Scott Stark
Chief Technology Officer
JBoss Group, LLC

- Original Message -
From: "Sonnek, Ryan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 24, 2002 11:17 AM
Subject: RE: [JBoss-user] LdapLoginModule null password


> thanks for the reply, but taking out the principal and credentials from
the
> auth.conf file didn't change the outcome.  when I hit a protected url, I'm
> prompted for the username and password, and if I input my username with a
> null password, it still let's me in.
>
> checking the jboss logs, i get this information when i first hit the url :
> [DEBUG,LdapLoginModule] Bad password for username=null
> which seems to mean that first it tries to access the resource as an
> anonymous user, then if that fails, i'm prompted with the dialog box.
>
> using the jboss 2.4.4 documentation, page 261 says that the
> java.naming.security.principal and java.naming.security.credentials
> properties are allowed for authenticating the caller to the service.  i
> thought this was required if you're not allowing anonymous queries and
> needed to bind as a user in order to authenticate with the desired
username.
>
>
> any other ideas on why this could be happening?
>
> -Original Message-
> From: Scott M Stark [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 24, 2002 11:58 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] LdapLoginModule null password
>
>
> Because you are supplying the credentials to use in the configuration.
> Neither
> > java.naming.security.principal="cn=admin,dc=mybpc,dc=net"
> > java.naming.security.credentials="xx"
>
> should be in the configuration. These are generated based on the caller
> principal and credentials, but if you sepecify them and then do not
provide
> this info you have defined a default login for everyone. Where in the docs
> does it say to include these?
>
> 
> Scott Stark
> Chief Technology Officer
> JBoss Group, LLC
> 
> ___
>
> 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



RE: [JBoss-user] LdapLoginModule null password

2002-05-24 Thread Sonnek, Ryan

thanks for the reply, but taking out the principal and credentials from the
auth.conf file didn't change the outcome.  when I hit a protected url, I'm
prompted for the username and password, and if I input my username with a
null password, it still let's me in.

checking the jboss logs, i get this information when i first hit the url :
[DEBUG,LdapLoginModule] Bad password for username=null
which seems to mean that first it tries to access the resource as an
anonymous user, then if that fails, i'm prompted with the dialog box.

using the jboss 2.4.4 documentation, page 261 says that the
java.naming.security.principal and java.naming.security.credentials
properties are allowed for authenticating the caller to the service.  i
thought this was required if you're not allowing anonymous queries and
needed to bind as a user in order to authenticate with the desired username.


any other ideas on why this could be happening?

-Original Message-
From: Scott M Stark [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 24, 2002 11:58 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] LdapLoginModule null password


Because you are supplying the credentials to use in the configuration.
Neither
> java.naming.security.principal="cn=admin,dc=mybpc,dc=net"
> java.naming.security.credentials="xx"

should be in the configuration. These are generated based on the caller
principal and credentials, but if you sepecify them and then do not provide
this info you have defined a default login for everyone. Where in the docs
does it say to include these?


Scott Stark
Chief Technology Officer
JBoss Group, LLC

___

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] LdapLoginModule null password

2002-05-24 Thread Sonnek, Ryan

why can a user log in with a null password?

the LdapLoginModule works great, except for it's allowing people to login
with null passwords.  here's how the setup's working now:

if username is invalid, user is rejected.
if username exists, but password is invalid, user is rejected.
if username exists, and password is valid, user is logged in.
if username exists, and no password is input, user is logged in.

WHAT???
docs say that the SimpleLoginModule allows this, but not the
LdapLoginModule.  What's going on here?  how can i prevent this behavior?

-
auth.conf
-
ldap {
  org.jboss.security.plugins.samples.LdapLoginModule required
java.naming.factory.initial="com.sun.jndi.ldap.LdapCtxFactory"
java.naming.provider.url="ldap://172.16.1.26:389/";
java.naming.security.authentication="simple"
java.naming.security.principal="cn=admin,dc=mybpc,dc=net"
java.naming.security.credentials="xx"
principalDNPrefix="cn="
principalDNSuffix=",ou=users,dc=mybpc,dc=net"
rolesCtxDN="ou=roles,dc=mybpc,dc=net"
roleAttributeID="cn"
uidAttributeID="uniqueMember"
matchOnUserDN=true
 ;
};


Ryan J. Sonnek
Brown Printing Company
IT Programmer/Analyst
(507) 835-0803



___

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