Re: [JBoss-user] No auth prompt using security-constraint

2002-06-19 Thread Cloudor Pu

I have got the same problem in JBoss3.0fr. I think it is because of my
incorrect login-config.xml, for if i change the security-domain in
jboss-web.xml to an invalid one auth will pop up indicating default
UsersRolesLoginModule works.

Could anyone show me where i miss in my login-config.xml ? Attached is a
part of my login-config.xml and WEB-INF files of my war.
Thanks for reading.

regards,
Cloudor

 - Original Message -
 From: Piwowar, Heather [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, May 31, 2002 8:47 AM
 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



   application-policy name=mydomain
   authentication
  login-module code=org.jboss.security.ClientLoginModule
 flag = required
  /login-module
  login-module code = org.jboss.security.auth.spi.DatabaseServerLoginModule
 flag = required
 module-option name=dsJndiNamejava:/MySqlDS/module-option
 module-option name=principalsQuery
select passwd from Passwd where username=?
 /module-option
 module-option name=rolesQuery
select role, 'Roles' from Roles where username=?
 /module-option
 module-option name=unauthenticatedIdentitynobody/module-option
  /login-module
   /authentication
/application-policy



?xml version=1.0 encoding=UTF8?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
   security-constraint
  web-resource-collection
 web-resource-nameROOT/web-resource-name
 url-pattern/*/url-pattern
  /web-resource-collection
  auth-constraint
 role-nameecho/role-name
  /auth-constraint
   /security-constraint
   login-config
  auth-methodBASIC/auth-method
   /login-config
  
/web-app


jboss-web
	context-root//context-root
   security-domainjava:/jaas/mydomain/security-domain
/jboss-web



Re: [JBoss-user] deployment on 3.0 release

2002-06-19 Thread Cloudor Pu

yes, i have seen this before when i miss the META-INF/ejb-jar.xml file
in my jar.

regards,
Cloudor

ÔÚ 2002-06-04 ¶þ µÄ 20:21£¬ Gary S. Cuozzo дµÀ£º
 Hello all,
 I've got an app that I developed using JBoss3.0Beta and am trying to 
 deploy it on 3.0 release but am having some issues.
 
 I don't really get an error, the log just says:
 15:56:00,398 INFO  [MainDeployer] Deployment of package: 
 file:/usr/local/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/isg-ejb.jar 
 is waiting for an appropriate deployer.
 
 Anybody seen this before and have any ideas what I'm doing wrong?
 
 Thanks in advance,
 gary.
 
 
 
 ___
 
 Don't miss the 2002 Sprint PCS Application Developer's Conference
 August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user




   Bringing you mounds of caffeinated joy
http://thinkgeek.com/sf

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



Re: [JBoss-user] WARN [EmbeddedCatalinaServiceSX] No/WEB-INF/web.xml descriptor found

2002-06-19 Thread Cloudor Pu

I have met the same error when i use a command-line jar to generate a
war file. I worked around by using ant to generate it.

ÔÚ 2002-06-10 Ò» µÄ 18:56£¬ [EMAIL PROTECTED] дµÀ£º
 Hello !
 
 
 I am using jboss-3.0.0RC1_tomcat-4.0.3 and I want to deploy a simple
 Servlet (see attached .war-file), but the following error occours, do
 you have any idea ?
 The error is, that no web.xml is found, but there is an web.xml in the
 war-file, and the WEB-INF directory is spelled in capital letters.
 
 Thank you very much, greetings Romeo Kienzler
 
 10:52:26,200 INFO  [MainDeployer] Starting deployment of package:
 file:/usr/local/jboss-3.0.0RC1_tomcat-4.0.3/server/default/deploy/lala.w
 ar
 10:52:26,299 INFO  [EmbeddedCatalinaServiceSX] deploy, ctxPath=/lala,
 warUrl=file:/usr/local/jboss-3.0.0RC1_tomcat-4.0.3/server/default/tmp/de
 ploy/usr/local/jboss-3.0.0RC1_tomcat-4.0.3/server/default/deploy/lala.wa
 r/95.lala.war
 10:52:26,451 INFO  [Engine] WebappLoader[/lala]: Deploying class
 repositories to work directory
 /usr/local/jboss-3.0.0RC1_tomcat-4.0.3/catalina/work/localhost/lala
 10:52:26,455 INFO  [Engine] StandardManager[/lala]: Seeding random
 number generator class java.security.SecureRandom
 10:52:26,462 INFO  [Engine] StandardManager[/lala]: Seeding of random
 number generator has been completed
 10:52:26,674 INFO  [Engine] ContextConfig[/lala]: Missing application
 web.xml, using defaults only
 10:52:26,676 INFO  [Engine] ContextConfig[/lala]: Added certificates -
 request attribute Valve
 10:52:26,678 WARN  [EmbeddedCatalinaServiceSX] No /WEB-INF/web.xml
 descriptor found
 10:52:26,691 INFO  [Engine] StandardWrapper[/lala:default]: Loading
 container servlet default
 10:52:26,691 INFO  [Engine] default: init
 10:52:26,694 INFO  [Engine] StandardWrapper[/lala:invoker]: Loading
 container servlet invoker
 10:52:26,695 INFO  [Engine] invoker: init
 10:52:26,701 INFO  [Engine] jsp: init
 10:52:26,704 INFO  [Engine] Internal Error: File /WEB-INF/web.xml not
 found
 10:52:26,708 INFO  [MainDeployer] Successfully completed deployment of
 package:
 file:/usr/local/jboss-3.0.0RC1_tomcat-4.0.3/server/default/deploy/lala.w
 ar




   Bringing you mounds of caffeinated joy
http://thinkgeek.com/sf

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



Re: [JBoss-user] Security question

2002-06-18 Thread Cloudor Pu

I guess jboss makes a container for every jar/war which is decided by
jboss.xml/jboss-web.xml and its standard ones, each container manages
its own security business.

regards,
Cloudor

在 2002-06-03 一 的 12:40, Ferran Puig 写道:
   
  I'm using jboss3.0.0-tomcat4.0.3 to test my j2ee application, and I have the
 following problem:
 
  I have an EAR deployed with a couple of web-apps. In both web-apps I have
 security constraints, so I have the jboss-web.xml descriptor for each of the
 web-apps, pointing to the security domain I use. Both web-apps expect the same
 roles for the security constraints.
 
  The problem is that one web-app redirects to the other, and although I have
 logged in the first one, the second web-app asks me to log in again. I expected
 that the second web-app would notice that the user is already in that role but
 it doesn't.
 
  I don't know if this a specification issue or a bug. Can anyone tell me?
 
  Thanks.
  Ferran
 
 ___
 Copa del Mundo de la FIFA 2002
 El único lugar de Internet con vídeos de los 64 partidos. 
 ¡Apúntante ya! en http://fifaworldcup.yahoo.com/fc/es/
 
 ___
 
 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




   Bringing you mounds of caffeinated joy
   http://thinkgeek.com/sf

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



Re: [JBoss-user] Deploy an EJB *without* a jar, war, or ear?

2002-06-18 Thread Cloudor Pu

Someone in this list had posted that we could make a directory with the
same name as the jar/war/ear filename and put the files in it under
proper architecture.

regards,
Cloudor

ÔÚ 2002-06-04 ¶þ µÄ 19:18£¬ Brandon Knitter дµÀ£º
 Cool, now...how do I point JBoss to my directory? :)  I come from a Resin
 (Caucho) background, so I know how to configure that, but the only thing I can
 see to configure is the deploy directory.
 
 Just to be clear, *exactly* which config file(s) do I need to modify to point
 the web/ejb container to my directory structure, under, say,
 /home/knitterb/projects, assuming that I have WEB-INF and META-INF dirs under
 the projects dir.
 
 Thanks in advance.  I wish this were documented in the book I paid good $$ for,
 but it seems that the documentation is lacking, and I can't find any newbie docs.
 
 -- 
 -bk
 
 
 Quoting Jules Gosnell [EMAIL PROTECTED]:
 
  I'm only really clued up on the web-container side of things, but I 
  think everything else works the same way,
  
  Build your app into a directory structure that mirrors the war,ejb-jar 
  or ear structure that you want, within the deploy directory.
  
  Each time you rebuild e.g. classes within the war, touch the 
  WEB-INF/web.xml - This will cause JBoss to reload this module.
  
  I assume that touching the META-INF/application.xml will reload the 
  whole J2EEApp - but haven't tried it.
  
  
  Jules
  
  
  
  Brandon Knitter wrote:
   How can I make jboss look into a directory structure and allow me to deploy
  my
   ejbs without building out a jar, war, or ear?  Also, does JBoss
  automagically
   reload the classes when they change (i.e. I make a change to my EJB), I
  want to
   be able to develop in place without a) redeploying a couple hundred times,
  and
   b) without having to bounce the server a couple hundred times.
   
   I am using JBoss 2.4.6, and am willing to go to 3.0 if necessary.  I bought
  the
   documentation and still find that it doesn't walk you through the
  configuration
   of JBoss in this manner.
   
   Thanks,
   
   
  
  
  
  
  ___
  
  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




   Bringing you mounds of caffeinated joy
   http://thinkgeek.com/sf

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



RE: [JBoss-user] jboss 3.0.0 db configure

2002-05-20 Thread Cloudor Pu

hello,

I am setting a mysql connection to Jboss3.0.0rc2 and have 
followed the steps posted at 
http://jboss.org/forums/thread.jsp?forum=67thread=13366 .
I modifed standardjaws.xml and standardjbosscmp.xml to 
make java:/MySqlDS as the default datasource. When i start 
jboss, there is no error reported. But when i copy the online 
docs example cd.jar to jboss/server/default/deploy/ , i got 
an exception as follows :

20:33:25,559 INFO  [MainDeployer] Starting deployment of package:
file:/var/jboss/server/default/deploy/cd.jar
20:33:26,883 INFO  [EjbModule] Creating
20:33:27,046 INFO  [EjbModule] Deploying CDBean
20:33:29,858 INFO  [EjbModule] Deploying CDCollectionBean
20:33:34,529 ERROR [EntityContainer] Exception in service lifecyle
operation: create
java.sql.SQLException: ResourceException
javax.resource.ResourceException: Could not create connection
at
org.jboss.resource.adapter.jdbc.local.LocalDataSource.getConnection(LocalDataSource.java:105)
at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.getConnection(JDBCCommand.java:694)
at
org.jboss.ejb.plugins.jaws.jdbc.JDBCInitCommand.execute(JDBCInitCommand.java:120)
at
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.create(JAWSPersistenceManager.java:130)
at
org.jboss.ejb.plugins.CMPPersistenceManager.create(CMPPersistenceManager.java:155)
at org.jboss.ejb.EntityContainer.create(EntityContainer.java:337)
at org.jboss.ejb.Container.invoke(Container.java:790)
-
I would like to know what mis-configurations could cause 
this kind of errors? wrong userName,password,url,and any more?


在 2002-05-20 一 的 09:24, Sacha Labourey 写道:
 Hello,
 
 In order to help you with your connection, please provide us with the
 Exception trace you see.
 
 Then, for your second point (CMP), take a look at the free on-line doco for
 CMP: you will see how to give the name of the datasource to your CMP beans.
 By default, they will use the java:DefaultDS JNDI name which is linked to
 the Hypersonic database that is embedded in JBoss.
 
 Cheers,
 
 
   Sacha
 
  -Message d'origine-
  De : [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]De la part de Centaur
  zeus
  Envoyé : lundi, 20 mai 2002 11:18
  À : [EMAIL PROTECTED]
  Objet : [JBoss-user] jboss 3.0.0 db configure
 
 
  hi all,
 
  I would like to know how could I set an oracle connection in
  Jboss 3.0.0
  ? I search through the web and I found a sample
  oracle-service.xml. But when
  I put it into the same directory as hypersonic-service.xml, it generates
  lots of exceptions during startup. So can any one help me ?
 
  Also , I would like to know if I could configure which
  connection (like
  mysql, oracle ) to use when using cmp ?
 
  Perseus
 
 
  _
  Join the world’s largest e-mail service with MSN Hotmail.
  http://www.hotmail.com
 
 
  ___
  Hundreds of nodes, one monster rendering program.
  Now that's a super model! Visit http://clustering.foundries.sf.net/
 
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 
 ___
 Hundreds of nodes, one monster rendering program.
 Now that's a super model! Visit http://clustering.foundries.sf.net/
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user



___
Hundreds of nodes, one monster rendering program.
Now that's a super model! Visit http://clustering.foundries.sf.net/

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



Re: [JBoss-user] JBoss_3_0_0_RC3 released

2002-05-20 Thread Cloudor Pu

hello,

I have a problem with my downloaded jboss-3.0.0RC3_tomcat-4.0.3.zip .
When i deploy the example cd.jar i get an error message as follows:
--
08:40:11,862 INFO  [MainDeployer] Starting deployment of package:
file:/var/jboss/server/default/deploy/cd.jar
08:40:12,170 ERROR [XmlFileLoader] failed to load jboss.xml.  There
could be a syntax error.
org.jboss.deployment.DeploymentException: Error in jboss.xml for Bean
CDBean: configuration '' not found in standardjboss.xml or jboss.xml
at
org.jboss.metadata.ApplicationMetaData.importJbossXml(ApplicationMetaData.java:544)
at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:186)
at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:324)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:651)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:526)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:490)

--

 /META-INF/jboss.xml in cd.jar:
--
?xml version=1.0 encoding=iso8859-1?

jboss
securefalse/secure
container-configurations /
resource-managers /
enterprise-beans
session
ejb-nameCDCollectionBean/ejb-name
jndi-namecd/CDCollection/jndi-name
configuration-name/configuration-name
/session
entity
ejb-nameCDBean/ejb-name
jndi-namecd/CD/jndi-name
configuration-name/configuration-name
/entity
/enterprise-beans
/jboss
---

regards,
Cloudor

ÔÚ 2002-05-20 Ò» µÄ 23:22£¬ Scott M Stark дµÀ£º
 The last release candidate before the final release of 3.0 is available on
 SourceForge:
 http://sourceforge.net/project/showfiles.php?group_id=22866
 
 Change notes:
 http://sourceforge.net/project/shownotes.php?release_id=62219
 
 Get your bug reports submitted to SourceForge. If your bugs are there
 and aren't being resolved have you submitted a testcase?
 
 
 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



Re: [JBoss-user] JBoss_3_0_0_RC3 released

2002-05-20 Thread Cloudor Pu

hello,

I have worked around by removing the lines as
configuration-name/configuration-name
from jboss.xml .

regards,
Cloudor

ÔÚ 2002-05-21 ¶þ µÄ 09:05£¬ Cloudor Pu дµÀ£º
 hello,
 
 I have a problem with my downloaded jboss-3.0.0RC3_tomcat-4.0.3.zip .
 When i deploy the example cd.jar i get an error message as follows:
 --
 08:40:11,862 INFO  [MainDeployer] Starting deployment of package:
 file:/var/jboss/server/default/deploy/cd.jar
 08:40:12,170 ERROR [XmlFileLoader] failed to load jboss.xml.  There
 could be a syntax error.
 org.jboss.deployment.DeploymentException: Error in jboss.xml for Bean
 CDBean: configuration '' not found in standardjboss.xml or jboss.xml
   at
 org.jboss.metadata.ApplicationMetaData.importJbossXml(ApplicationMetaData.java:544)
   at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:186)
   at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:324)
   at org.jboss.deployment.MainDeployer.create(MainDeployer.java:651)
   at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:526)
   at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:490)
 ...
 --
 
  /META-INF/jboss.xml in cd.jar:
 --
 ?xml version=1.0 encoding=iso8859-1?
 
 jboss
 securefalse/secure
 container-configurations /
 resource-managers /
 enterprise-beans
 session
   ejb-nameCDCollectionBean/ejb-name
   jndi-namecd/CDCollection/jndi-name
   configuration-name/configuration-name
 /session
 entity
   ejb-nameCDBean/ejb-name
   jndi-namecd/CD/jndi-name
   configuration-name/configuration-name
 /entity
 /enterprise-beans
 /jboss
 ---
 
 regards,
 Cloudor
 
 ÔÚ 2002-05-20 Ò» µÄ 23:22£¬ Scott M Stark дµÀ£º
  The last release candidate before the final release of 3.0 is available on
  SourceForge:
  http://sourceforge.net/project/showfiles.php?group_id=22866
  
  Change notes:
  http://sourceforge.net/project/shownotes.php?release_id=62219
  
  Get your bug reports submitted to SourceForge. If your bugs are there
  and aren't being resolved have you submitted a testcase?
  
  
  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



[JBoss-user] How to configure another database in Jboss3 ?

2002-05-19 Thread Cloudor Pu

Hello,

I want to configure a MySQL database for my downloaded
Jboss3.0.0rc2-tomcat4.0.3. I read the online docs 
at http://www.jboss.org/online-manual/HTML/index.html;
but only got incomplete pieces of information.

I want to know which files i should modify or add, 
and how those files effect on others.

Any advices appreciated. Thanks.

regards,
Cloudor


___
Hundreds of nodes, one monster rendering program.
Now that's a super model! Visit http://clustering.foundries.sf.net/

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



Re: [JBoss-user] javax.naming.NameNotFoundException interest notbound

2002-05-18 Thread Cloudor Pu

hello,

Albretch, you didn't see 'interest/Interest' listed, because 
the deploy directory of jboss3.0 is jboss/server/default/deploy/ , 
NOT jboss/deploy/. You can work around by copying interest.jar from
examples/build-examples/interest/ to jboss/server/default/deploy/
manually after you do ant intro-interest-jar from examples/build/.

You got an exception when java InterestClient, because the CLASSNAME
of the file InterestClient.class is
org.jboss.docs.interest.InterestClient, NOT InterestClient. 
You can try java org.jboss.docs.interest.InterestClient instead if 
the parent directories are named correctly and can be found in
CLASSPATH.

regards,
Cloudor

ÔÚ 2002-05-17 Îå µÄ 15:48£¬ Albretch Mueller дµÀ£º

 java InterestClient
 Exception in thread main java.lang.NoClassDefFoundError:
 InterestClient (wrong
 name: org/jboss/docs/interest/InterestClient)
 at java.lang.ClassLoader.defineClass0(Native Method)

 _ but the class is definitely there
 
 dir *.class
  . .
 
 05/16/2002  03:44p   2,158 InterestClient.class
 05/16/2002  03:44p   1,250 InterestBean.class
 05/16/2002  03:44p 296 InterestHome.class
 05/16/2002  03:44p 246 Interest.class




___
Hundreds of nodes, one monster rendering program.
Now that's a super model! Visit http://clustering.foundries.sf.net/

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