[JBoss-user] [Security & JAAS/JBoss] - Re: j_security_check & Struts

2004-11-08 Thread tschraepen
Thanks for the quick reply Cuoz.

I'm beginning to understand what the actual problem is with my web-app.
You see, I've been mixing the j_security_check and a self-written JAAS 
authentication method.
j_security_check however, doesn't provide the solution I'm looking for.
Because it doesn't integrate with a struts environment. I would have to code a 
Servlet separate from struts for the building of the web-app so to say. And 
have struts handle the rest of the workflow.
I'm going to read some more about JAAS authentication, I think I was on the 
right track with the filter.

As for the logout action, I've noticed that if I just invalidate the session, 
the server will create a new one when the user presses the "back"-button. I 
solved that issue with another filter which checks if a user has credentials 
(just for now, but I will make it more secure with time). And I remove those 
credentials with the logoutAction. But that's kind of off-topic here :)

Anyway, thanks again. You've helped me back on track.

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Warning: HANamingService: Failed to start AutomaticDiscover

2004-11-08 Thread nirmaljeet
I have JBoss 3.2.6 and when I start the server I am getting this warning 
message.  How can I fix this?

11:47:02,181 WARN  [HANamingService] Failed to start AutomaticDiscovery
java.net.SocketException: error setting options
at java.net.PlainDatagramSocketImpl.join(Native Method)
at 
java.net.PlainDatagramSocketImpl.join(PlainDatagramSocketImpl.java:134)
at java.net.MulticastSocket.joinGroup(MulticastSocket.java:274)
at 
org.jboss.ha.jndi.DetachedHANamingService$AutomaticDiscovery.start(DetachedHANamingService.java:440)
at 
org.jboss.ha.jndi.DetachedHANamingService.startService(DetachedHANamingService.java:243)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:884)
at $Proxy18.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:414)
at org.jboss.system.ServiceController.start(ServiceController.java:436)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:251)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:829)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:604)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy8.deploy(Unknown Source)
at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
at 
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)

[JBoss-user] [EJB/JBoss] - Re: JBoss 4.0 ejb-descriptors

2004-11-08 Thread aibo
I usually used to take jonas ejb-server for my application. There everything 
works fine with EJB1.1 and the application is rather huge, so I don't want to 
migrate to 2.0. But I want to test the JBoss Server if it is better than Jonas 
for my needs.

Isn't it possible to migrate from Jonas to JBoss 4 with EJB1.1?

Anyway, thanks for your help

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - how to use sequence to autogenerate pk for ejb

2004-11-08 Thread jiakekuge
i have viewed the example code in xdoclet,still feel nervous.the key issue is 
how to use it when i want to invoke the ejbCreate. 

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - critical exception using jaas on a production server - too m

2004-11-08 Thread aagmon
Hello , 
we have deployed an application to production 2 weeks ago 
application has an administration screen using a jaas domain and a 
user/properties file -  

today the admin failed to login - when i checked the log : 
i saw an IOException saying that it cant find the users/roles file and - 
".. (too many open files ).." 

of course we checked and files were there but what does the too many open files 
means..??

if anyone has a clue..
a restart solved it , but it cannot be restarted every time !

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - servlet-api.jar equivalent in JBoss 4.0.0

2004-11-08 Thread hsutarwala
Does anybody know the servlet-api.jar equivalent in JBoss 4.0.0?

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets & JSP] - Re: Classloader problem in JBoss 3.2.3 with Jetty

2004-11-08 Thread mysorevish
I am getting this error how to slove this

java.lang.LinkageError: loader constraints violated when linking 
javax/servlet/jsp/tagext/BodyContent class
at 
org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryImpl.java:170)
at 
org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:154)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:64)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [News & Announcements] - 3.2.7RC1 Release Available

2004-11-08 Thread [EMAIL PROTECTED]
The 3.2.7RC1 release is available here:

JBoss-3.2.7 Files

The change notes are available here:
Changes between 3.2.7RC1 and 3.2.6

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - findByPrimaryKey using Compound Key

2004-11-08 Thread mcenita
Hi!

Im emplementing a CMP which uses a compound key as the primary key. If I create 
an entity by calling the create method of the local home interface, the entity 
was succesfully created. But when i call on the method findByPrimaryKey, it 
throws an ObjectNotFoundException. This means that it did not found the data i 
just added. Why it didnt found the data i just added?

Primary Key Class:

  | public class PR_ContentPK implements Serializable {
  | 
  | public Long getID() {
  | return ID;
  | }
  | 
  | public void setID(Long id) {
  | ID = id;
  | }
  | 
  | public String getLang() {
  | return lang;
  | }
  | 
  | public void setLang(String lang) {
  | this.lang = lang;
  | }
  | 
  | public Long ID;
  | 
  | public String lang;
  | 
  | public PR_ContentPK() {
  | }
  | 
  | public PR_ContentPK(Long ID, String lang) {
  | this.ID = ID;
  | this.lang = lang;
  | }
  | 
  | public int hashCode() {
  | StringBuffer buffer = new StringBuffer();
  | buffer.append(this.ID.toString());
  | buffer.append(this.lang);
  | String key = buffer.toString();
  | return key.hashCode();
  | }
  | 
  | public boolean equals(Object object) {
  | if (object instanceof PR_ContentPK) {
  | return ((PR_ContentPK) object).ID.longValue() == this.ID
  | .longValue() && ((PR_ContentPK) object).lang.equals(this.lang); 

  | } else {
  | return false;
  | }
  | }
  | 
  | public String toString() {
  | return new String(this.ID + this.lang).toString();
  | }
  | 
  | }
  | 

The method on the session bean


  | public void addNewArticle(Date date, String title, String content)
  | throws RemoteException, UnableToAddNewArticleException {
  | 
  | try {
  | Context ctx = new InitialContext();
  | PR_HeaderLocalHome headerHome = (PR_HeaderLocalHome) ctx
  | .lookup(PR_HEADER_JNDI);
  | PR_HeaderLocal pr_header = headerHome.create(null, date);
  | 
  | PR_ContentLocalHome contentHome = (PR_ContentLocalHome) ctx
  | .lookup(PR_CONTENT_JNDI);
  | 
  | PR_ContentLocal pr_content = 
contentHome.create(pr_header.getID(),
  | "en", title.getBytes(), content.getBytes());
  | 
  | try {
  | pr_content = contentHome.findByPrimaryKey(new 
PR_ContentPK(pr_header.getID(),"en"));
  | } catch (FinderException e2) {
  | e2.printStackTrace();
  | }
  | } catch (NamingException e) {
  | throw new RemoteException(e.getMessage());
  | } catch (CreateException e1) {
  | throw new UnableToAddNewArticleException(
  | "Unable to create new article.");
  | }
  | }
  | 
  | 


Thanks in advance!



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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Installing struts in jboss 3.2.3

2004-11-08 Thread becker
hi guys,
i'm using jboss 3.2.3 server and i have installed the struts.jar file in 
web-inf/lib directory.
But when i compile the class, it gives
  " pakcage  org.apache.struts.Action doesn't exist " 
 
error. 
 Is it right place to put the jar file in jboss? 

any ideas?


-bala

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: using hibernate in jboss-4.0.0

2004-11-08 Thread utkarshpune
I am geting following error when I try to deploy hibernate Mbean,

org.jboss.deployment.DeploymentException: No Attribute found with name: 
MapResources

I tried to google for this problem but couldn't find any useful info.

My Abhyasika.har has following structure,
com   <--This folder contains my package hierarchy with classes and hbm.xml 
files
META-INF  <-- It contains hibernate-service.xml
hibernate.cfg.xml
hibernate.properties

The Exception:
org.jboss.deployment.DeploymentException: No Attribute found with name: 
MapResources
rces
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.ja
va:340)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura
tor.java:160)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
:114)
at org.jboss.system.ServiceController.install(ServiceController.java:200
)
at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:242)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:208)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:889)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:881)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:745)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:141)


Here is my hibernate-service.xml

  | 
  | 
  | 
  | 
  | 
  |
  |jboss.har:service=HARDeployer
  |jboss.jca:service=LocalTxCM,name=MySqlDS
  |com/utkarsh/abhyasika/hibernate/Category.hbm.xml
  |
  |java:/MySQLDS
  |net.sf.hibernate.dialect.MySQLDialect
  |true
  |false
  |UserTransaction
  |net.sf.hibernate.transaction.JTATransactionFactory
  |net.sf.hibernate.transaction.JBossTransactionManagerLookup
  |   java:/hibernate/SessionFactory
  |net.sf.hibernate.cache.HashtableCacheProvider
  |update
  |
  | 
Let me know as to what could be problem?

Thanks
Utkarsh

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: auto-testing my JBoss application

2004-11-08 Thread [EMAIL PROTECTED]
The testsuite/build.xml in the latest releases (4.0.1RC1, 3.2.7RC1) illustrates 
how we start/stop several jboss configurations to test clustering, 
customization of the tomcat container to use ssl, running jboss with a security 
manager, etc. 

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Problem solved

2004-11-08 Thread robbutera
Thanks for your reply Scott.

Had tried to explicity specify the user and roles file in the application 
policy. however it didn't make a difference.   

The problem ended up being the ClientLoginModule that was included in my 
application policy.   i.e.

Before:


  
 
 

  nobody 
  users.properties
  roles.properties

  


After:


  

  nobody 
  users.properties
  roles.properties

  


This rectified the problem in both jboss 4.0 and jboss 4.0.1RC1.



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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: auto-testing my JBoss application

2004-11-08 Thread danl_thompson
Thanks, nice and simple, just the way I like it.
Good job!

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: LdapLoginModule overrides the principal and credentials

2004-11-08 Thread Claudio4J
 Thanks, for your fastest assistance.

 As stated at the JBoss documentation, 
http://docs.jboss.org/admin-devel/Chap8.html#0_pgfId-920186 
a login and password can be configured to bind to ldap.


  | * java.naming.security.principal, The principal for authenticating the 
caller to the service. This is 
  | built from other properties as described below.
  | * java.naming.security.credentials, The value of the property depends on 
the authentication scheme. 
  | For example, it could be a hashed password, clear-text password, key, 
certificate, and so on.
  | 

At our project the users under ou=people cannot have permissions to do a BIND 
on LDAP.

Anyway, what do you think in the following fix:

If a Context.PRINCIPAL is supplied, use the way I specified above and let the 
Context.PRINCIPAL do a BIND to LDAP. 
If Context.PRINCIPAL is not specified the use the actual code. 


  | String _principal = env.getProperty(Context.SECURITY_PRINCIPAL);
  | if (_principal == null) {
  | env.setProperty(Context.SECURITY_PRINCIPAL, userDN);
  | env.put(Context.SECURITY_CREDENTIALS, credential);
  | }
  | 

And the question about role-group mapping ?

Thank you

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Problem with j_security_check, Form Login and Filter

2004-11-08 Thread Claudio4J
"victorl" wrote : 
  | I eliminated the filter and the loggin process against iPlanet LDAP 
  | is done, but I get the following message: 
  | 
  | HTTP Status 403 
  | Access to the specified resource 
  | (Access to the requested resource has been denied) has been forbidden.
  | 

See the iDS Log and look whos is trying to do the BIND to iDS.

The post below, is something related.

http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854364

Claudio Miranda

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: findByPrimaryKey not calling ejbLoad

2004-11-08 Thread rajeshcm
"rajeshcm" wrote : Hi
  | 
  | I am using container managed bean. All my entity and session beans are 
deployed with transaction required. I am using local interfaces for acessing 
ejbs from session beans. When I am calling findByPrimaryKey it
  | container is not invoking ejbLoad method. 
  | 
  | My commit options is 
  | C
  | 
  | Any help will be appreciated,
  | 
  | Thanks. 

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - findByPrimaryKey not calling ejbLoad

2004-11-08 Thread rajeshcm
Hi

I am using container managed bean. All my entity and session beans are deployed 
with transaction required. I am using local interfaces for acessing ejbs from 
session beans. When I am calling findByPrimaryKey it
container is not invoking ejbLoad method. 

My commit options is 
C

Any help will be appreciated,

Thanks. 

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: JMS subscriber reconnect

2004-11-08 Thread gmand
Thanks - 

Here is what I've implemented, however I am still having issues with regards to 
closing the connection.  When there is a network failure, I get a ping timeout 
exception, which is what I expect, but when I go to close the connection it 
just hangs there.  I never reach my notify() statement.  What am I missing?  
This works on SilverStreams app server, is there something different that I 
need to do on JBoss?

anonymous wrote : 
  | import javax.jms.*;
  | import javax.naming.InitialContext;
  | import java.io.PrintWriter;
  | import java.io.FileWriter;
  | import java.io.IOException;
  | import java.util.Date;
  | import java.text.DateFormat;
  | 
  | public class SmartListener implements MessageListener, ExceptionListener, 
Runnable{
  | String topicName;
  | TopicSubscriber topicSubscriber;
  | TopicConnection connection;
  | 
  | public void run(){
  | startConnection();
  | }
  | 
  | public SmartListener(String topicName){
  |  this.topicName = topicName;
  | }
  | 
  | public void startConnection(){
  | 
  | /**
  |  * Thread which performs reconnections, usually waiting for to be 
instructed to start
  |  * the re-connection process
  |  */
  | Thread t = new Thread(){
  | public void run(){
  | while(true){
  | reconnect();
  | }
  | }
  | };
  | t.start();
  | 
  | //Create TopicSubscriber, if it fails immediatley notify re-connect 
thread
  | try{
  | topicSubscriber = createSubscriber();
  | }
  | catch(JMSException jmse){
  | System.out.println("JMSException: " + jmse);
  | synchronized(this){
  | notify();
  | }
  | }
  | }
  | 
  | public String buildFilter(){
  | String filter = "alias in (";
  | for(int i=0; ihttp://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854353#3854353

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - NamingException error

2004-11-08 Thread johnhelen
Hello 

I tried to compile JavaClient runing in a JBoss server and there is 
NamingException error. The error message is "error setting options" when my 
bean is trying to create (.getHome().create()...

Could you please help
Many thank
S.Hoa

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: updating single war when there are multiple wars in vm

2004-11-08 Thread Raist_Majere
About your first question, if you "touch" your web.xml file in the WAR exploded 
dir, then JBoss redeploys that WAR. If using linux, it's easy to do it with the 
"touch" command; in windows I know there are some free utilities that do this, 
but don't know where you can get them (a home-made solution would be to edit 
the web.xml file and force it saving it with Save As command, for example).
About the second question... Well, it does depend on various factors. If you 
use interfaces to access your common libraries and the interfaces aren't 
changed, then I think it's possible to modify them without restarting the 
dependent WARs, but not really sure of how to make this possible. On the other 
hand, if you don't use interfaces or your interfaces are changed, then the 
dependent WARs must be redeployed in order to access the new classes/interfaces.
Be advised that I'm not really sure about my answers because they are based on 
the J2EE spec, the JBoss code I could understand and my experience, so I'm sure 
someone from JBoss can answer better your questions, but maybe my answers 
helped you someway...


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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: LdapLoginModule authenticates against active directory,

2004-11-08 Thread hawkinsak
Let me give you some more information.  
I have tried using the jboss ldaploginmodule with a tomcat jaas realm.  I have 
been able to authenticate agains active directory, but the only group returned 
was Roles.  From reading some jboss documentation, I think that the active 
directory groups are a subgroup to Roles.  This seems to be specific to Jboss, 
because Tomcat isn't expecting the groups to be in a subgroup.  

So I've tried to use jboss completely to see if that would fix the problem.  
Now, I can authenticate, but there are no groups returned.  Do I need to 
specify what implementation of userprinciple to use, like I did in the tomcat 
realm?  I try to log into a protected directory and access is denied.  Then I 
go to a jsp page that is unprotected that returns 
<%=request.getUserPrincipal()%> which only shows my username.  So I dont 
understand why I can't access the group information.  I'm using Form based 
authentication.  Thanks


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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: JBossMQ JDBC2 Persistence Manager using Oracle 9.2

2004-11-08 Thread schambers
Adrian,

Could you please re-post the url above from April 22, 2003? Part of it is 
missing. Is this the only workaround for this situation? I am getting exactly 
the same error in 3.2.5.

Thanks,
Steve

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - updating single war when there are multiple wars in vm

2004-11-08 Thread shacka
Hi, all..

My Application has 4 different war "zones" running on a single JVM
and there are common library files and all of these archives are 
"exploded" on a $jbossdir/deploy/xxx.ear/...

I can go and update JSP files without redeploying..
But when I replace servlet class files or library class files, they obviously
aren't affective immediately until I restart jboss or change top-level
DD xml file..

Is it possible to force jboss to redeploy single war zone without interrupting 
other war's..?

Also, is there any hope to change library class without restarting or
redeploying the whole ear application...??

We are trying to add reseller zones and they would be sharing same
components (i.e. libraries) therefore, when we change the library should
not cause interruption to all of our reseller zones..

Any help or insight will be greatly appriciated..

Thanks...


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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - updating single war when there are multiple wars in vm

2004-11-08 Thread shacka
Hi, all..

My Application has 4 different war "zones" running on a single JVM
and there are common library files and all of these archives are 
"exploded" on a $jbossdir/deploy/xxx.ear/...

I can go and update JSP files without redeploying..
But when I replace servlet class files or library class files, they obviously
aren't affective immediately until I restart jboss or change top-level
DD xml file..

Is it possible to force jboss to redeploy single war zone without interrupting 
other war's..?

Also, is there any hope to change library class without restarting or
redeploying the whole ear application...??

We are trying to add reseller zones and they would be sharing same
components (i.e. libraries) therefore, when we change the library should
not cause interruption to all of our reseller zones..

Any help or insight will be greatly appriciated..

Thanks...


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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: ServiceBindingManager and JMS - Address Conflicts in JB

2004-11-08 Thread Joel.Rosi-Schwartz
Piero,

Thanks! I just ran into the same problem and your post saved me the effort of 
working the service-config out. Much appreciated.

/joel

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets & JSP] - Session passivation...

2004-11-08 Thread titom
Hi,

I want to prevent mistakes in our application. To do this, I need to disable 
the session serialization.

When JBoss server is shutdown or when a hot deploy occurs, the sessions are 
serialized. If the user browser is not killed, the sessions will be 
deserialized after the JBoss server start up of immediately after the hot 
deploy to be effective.

All the attributes that are not Serializable (and it is not easy to put them 
Serializable) in the session will be no more available. Some of those 
attributes are mandatory in our application to run correctly. In this case I 
need to disable the session serialization. Is it possible?

Thanks,

Gael

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Applet problem - ClassNotFoundException

2004-11-08 Thread alehrens
Turns out that everything that the applet is going to use had to go into my 
applet ear.  So, the classes reside in two places, but theoretically, should 
never conflict because they're the same classes.


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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - LdapLoginModule authenticates against active directory, but

2004-11-08 Thread hawkinsak
I can authenticate against active directory using the jboss LdapLoginModule, 
however, there are no roles returned.  I am able to use a different login 
module that doesn't use ldap to authenticate and authorize, but I would really 
like to use an ldap implementation.  Any help would be welcome.

Aaron Hawkins

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - J2EE Application testing framework?

2004-11-08 Thread dhartford
Hey all,
Been going down the road of an assumption (for a while), and since assumptions 
are bad, asking the question:

What tools/frameworks are available for testing J2EE Applications that are 
running on Jboss?

My assumption has been that the only open-source tool that will support 
in-container testing is Cactus.  Are there any others that people are actually 
using?  Junit in some type of in-container testing for Application testing?

-D

Oh, what I want to test:
*Entering base dataset into the database
*EJB-QL queries against dataset.
*Session bean logic (both without Entity data, and with Entity data).
*Some workflow-based testing (i.e. Sessionbean method1 to modify data, 
sessionbean method2 to retrieve modified data, expect certain result on 
sessionbean method2).
*Performance over Load testing on local and remote methods.


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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Problems with CallerIdentityLoginModule

2004-11-08 Thread rrhodes
I am trying to setup the CallerIdentityLoginModule to use with the JCA adapter 
for jakarta slide.  I tested the ConfiguredIdentityLoginModule first, and that 
worked fine, but I keep getting a SecurityException when I switch to 
CallerIdentity.

I am using Slide as my user store, and I use a SlideLoginModule to authenticate 
the web applications.  I want to then have the current logged-in user and 
credentials used whenever a JCA connection is created.  I have verified that I 
am getting the correct principals from the SlideLoginModule.

I'm including here the error log and the login config.

Here is my login-config.xml.  The configured identity is commented out.


   
  
 
slide
 
  
   

   


root
root
jboss.jca:service=TxCM,name=WebDAV-Connector









Here is the error log:
java.lang.SecurityException: Invalid authentication attempt, principal=john
at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.getSubject(BaseConnectionManager2.java:666)
at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:495)
at 
org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:887)
at 
org.apache.webdav.connector.WebDAVConnectionFactory.getConnection(WebDAVConnectionFactory.java:56)
at 
org.apache.jsp.protected_.davtest_jsp._jspService(davtest_jsp.java:66)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:158)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11

[JBoss-user] [Persistence & CMP/JBoss] - Re: javax.naming.NameNotFoundException: ejb not bound

2004-11-08 Thread joerage
Forget about that, i found my (stupid) mistake!


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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Problem with j_security_check, Form Login and Filter

2004-11-08 Thread victorl
Hello Scott, thank you very much once again.

I eliminated the filter and the loggin process against iPlanet LDAP is done, 
but I get the following message: 

HTTP Status 403 Access to the specified resource (Access to the requested 
resource has been denied) has been forbidden.

And the protected jsp is not displayed.

Do you know where is the trouble ?

Thank you very much.
All the best,

Victor

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - javax.naming.NameNotFoundException: ejb not bound

2004-11-08 Thread joerage
Hi, 

I have a problem locating the home interface of my ejb. The beans seem to 
deploy without errors on the app server. 

Here is the code I use:


private UserDetailHome lookupUser() throws NamingException {
  | 
  | Context context = new InitialContext();
  | Object objref = context.lookup("ejb/UserDetailLocal");
  | return (UserDetailHome) PortableRemoteObject.narrow(objref, 
UserDetailHome.class);
  | }

Please advice,
Thanks
Joe



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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: Naming.list(

2004-11-08 Thread [EMAIL PROTECTED]
rmi: is not a valid jndi protocol for the jboss naming service. The string 
should be "jnp://localhost:1099"

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Connect to the JBoss Server failed !!!

2004-11-08 Thread mikefinn
May be obvious, but are you sure your JNP server is listening on 
localhost:1099? Use netstat -a to make sure.

Mike

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Problem with j_security_check, Form Login and Filter

2004-11-08 Thread [EMAIL PROTECTED]
No, not without writing your own custom 
org.apache.catalina.authenticator.FormAuthenticator that allows for this.

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Naming.list("rmi://localhost:1099"); does not work

2004-11-08 Thread thoste
>From a java client class I tried to find out all currently 
offered rmi servers (server objects) by coding:

String[] objlist = Naming.list("rmi://localhost:1099"); 

But this yields the exception shown at the bottom of this posting.
Why?

How do I list otherwise all objects?

Do I have to setup JBoss for this "pure" (=not EJB) RMI usage?
Do I have to include some special jars in the client app CLASSPATH?
With an external rmiregistry all works fine.

Thomas


error during JRMP connection establishment; nested exception is:
java.net.SocketException: Software caused connection abort: recv failed
java.rmi.ConnectIOException: error during JRMP connection establishment; nested 
exception is:
java.net.SocketException: Software caused connection abort: recv failed
at 
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:274)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313)
at sun.rmi.registry.RegistryImpl_Stub.list(Unknown Source)
at java.rmi.Naming.list(Naming.java:191)
at test.rmi.simple.MyClient.main(MyClient.java:25)
Caused by: java.net.SocketException: Software caused connection abort: recv 
failed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
at java.io.DataInputStream.readByte(DataInputStream.java:331)
at 
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:215)
... 5 more

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Problem with roles: principalRoles=null

2004-11-08 Thread [EMAIL PROTECTED]
principal=cam has no roles assigned. The roles.properties file must not contain 
any mappings for this principal. To be sure of what properties file is being 
picked up you should define properties files unique to the login configuration 
as show here:


  | 
  |
  |   
  |  esubmit-users.properties
  |  esubmit-roles.properties
  |   
  |
  | 
  | 


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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - JCA/Cics Interaction

2004-11-08 Thread mlavarreda
I have a problem. 
I am running a cicsr9s-ds.xml into Jboss 4.0.0. I have the cicseci.rar into 
deploy folder and i have the Cics Transaction Server v. 1.3.0. 

***
This is my cicsr9s-ds.xml

 



  ra/cicsr9s 

  cicseci.rar 
  
javax.resource.cci.ConnectionFactory
 

  tcp://10.x.x.xxx 
  2006 
  CICSSERVER 
  CICSUSER 

  50 



  


*
This is my code: 
try{
   InitialContext initialcontext = new InitialContext();
   ECIConnectionFactory source= 
(ECIConnectionFactory)initialcontext.lookup("java:/ra/cicsr9s");
   ECIConnection connection = (ECIConnection)source.getConnection(); 
   ECIInteraction eciInt = (ECIInteraction) connection.createInteraction();
ECIInteractionSpec intSpec = new ECIInteractionSpec();
   intSpec.setFunctionName("CiepTCPI"); 
   intSpec.setTranName("CIEP");
   intSpec.setCommareaLength(10);
   intSpec.setReplyLength(10);
   intSpec.setInteractionVerb(intSpec.SYNC_SEND_RECEIVE);
   String commarea = "--";
   JavaRecord in = new JavaRecord(commarea.getBytes("IBM037"));
   JavaRecord out = new JavaRecord(commarea.getBytes("IBM037"));
   eciInt.execute(intSpec, in, out);
   eciInt.close();
   connection.close();
   }catch(Exception ex){
  ex.printStackTrace();
   } 
 
Y get the next error on the execute method .

11:22:16,375 INFO  [ra/cicsr9s] 11:22:16:375 : [http-0.0.0.0-8080-Processor25:60
1f3f] :  Exception Logged com.ibm.connector2.cics.ECIManagedConnection
11:22:16,375 INFO  [ra/cicsr9s] javax.resource.spi.CommException: CTG9630E: IOEx
ception occurred in communication with CICS.
11:22:16,375 INFO  [ra/cicsr9s] at com.ibm.connector2.cics.ECIManagedCon
nection.call(ECIManagedConnection.java:1009)
11:22:16,375 INFO  [ra/cicsr9s] at com.ibm.connector2.cics.ECIConnection
.call(ECIConnection.java:128)
11:22:16,375 INFO  [ra/cicsr9s] at com.ibm.connector2.cics.ECIInteractio
n.execute(ECIInteraction.java:275)
11:22:16,375 INFO  [ra/cicsr9s] at com.bi.tei.Cics.execute(Cics.java:70)
11:22:16,375 INFO  [ra/cicsr9s] at com.bi.tei.Cics.doGet(Cics.java:36)
11:22:16,375 INFO  [ra/cicsr9s] at javax.servlet.http.HttpServlet.servic
e(HttpServlet.java:697)
11:22:16,375 INFO  [ra/cicsr9s] at javax.servlet.http.HttpServlet.servic
e(HttpServlet.java:810)
11:22:16,375 INFO  [ra/cicsr9s] at org.apache.catalina.core.ApplicationF
ilterChain.internalDoFilter(ApplicationFilterChain.java:237)
11:22:16,375 INFO  [ra/cicsr9s] at org.apache.catalina.core.ApplicationF
ilterChain.doFilter(ApplicationFilterChain.java:157)
11:22:16,375 INFO  [ra/cicsr9s] at org.jboss.web.tomcat.filters.ReplyHea
derFilter.doFilter(ReplyHeaderFilter.java:75)
11:22:16,375 INFO  [ra/cicsr9s] at org.apache.catalina.core.ApplicationF
ilterChain.internalDoFilter(ApplicationFilterChain.java:186)
11:22:16,375 INFO  [ra/cicsr9s] at org.apache.catalina.core.ApplicationF
ilterChain.doFilter(ApplicationFilterChain.java:157)
11:22:16,375 INFO  [ra/cicsr9s] at org.apache.catalina.core.StandardWrap
perValve.invoke(StandardWrapperValve.java:214)
11:22:16,375 INFO  [ra/cicsr9s] at org.apache.catalina.core.StandardValv
eContext.invokeNext(StandardValveContext.java:104)
11:22:16,375 INFO  [ra/cicsr9s] at org.apache.catalina.core.StandardPipe
line.invoke(StandardPipeline.java:520)
11:22:16,375 INFO  [ra/cicsr9s] at org.apache.catalina.core.StandardCont
extValve.invokeInternal(StandardContextValve.java:198)
11:22:16,375 INFO  [ra/cicsr9s] at org.apache.catalina.core.StandardCont
extValve.invoke(StandardContextValve.java:152)
11:22:16,375 INFO  [ra/cicsr9s] at org.apache.catalina.core.StandardValv
eContext.invokeNext(StandardValveContext.java:104)
11:22:16,375 INFO  [ra/cicsr9s] at org.jboss.web.tomcat.security.CustomP
rincipalValve.invoke(CustomPrincipalValve.java:44)
11:22:16,375 INFO  [ra/cicsr9s] at org.apache.catalina.core.StandardValv
eContext.invokeNext(StandardValveContext.java:102)
11:22:16,375 INFO  [ra/cicsr9s] at org.jboss.web.tomcat.security.Securit
yAssociationValve.invoke(SecurityAssociationValve.java:169)
11:22:16,375 INFO  [ra/cicsr9s] at org.apache.catalina.core.StandardValv
eContext.invokeNext(StandardValveContext.java:102)
11:22:16,375 INFO  [ra/cicsr9s] at org.apache.catalina.core.StandardPipe
line.invoke(StandardPipeline.java:520)
11:22:16,375 INFO  [ra/cicsr9s] at org.apache.catalina.core.StandardHost
Valve.invoke(StandardHostValve.java:137)
11:22:16,375 INFO  [ra/cicsr9s] at org.apache.catalina.core.StandardValv
eContext.invokeNext(StandardValveContext.java:104)
11:22:16,375 INFO  [ra/cicsr9s] at org.apache.catalina.valves.ErrorRepor
tValve.invoke(ErrorReportValve.java:118)
11:22:16,375 INFO  [ra/cicsr9s] at org.apache.catalina.core.StandardValv
eContext.in

[JBoss-user] [Security & JAAS/JBoss] - Re: from web.xml &&

2004-11-08 Thread [EMAIL PROTECTED]
A redirect only occurs for authentication failures, not authorization. You map 
the roles to a user using the roles.properties file as discussed in the JAAS 
Howto in this forum.

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: SecurityProxy reset?

2004-11-08 Thread [EMAIL PROTECTED]
Show your proxy code.

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: LdapLoginModule overrides the principal and credentials

2004-11-08 Thread [EMAIL PROTECTED]
This the expected behavior. The LdapLoginModule authenticates the caller based 
on the ability to bind to the ldap server using the username/password passed to 
the login module, not some static configuration value.



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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Connect to the JBoss Server failed !!!

2004-11-08 Thread ericmacau
Hello,

When I tried to connect to the JBoss4 from a client to look up a remote session 
bean, it just raised the following exceptions, please tell me what's wrong with 
my programs ? The EJBs are deployed successfully without any errors.


  | 00:52:48,312 INFO  [EjbModule] Deploying Restaurant
  | 00:52:48,328 INFO  [EjbModule] Deploying RestaurantManager
  | 00:52:48,562 INFO  [EJBDeployer] Deployed: 
file:/C:/jboss4.0.0/server/default/myapp/ejfood-ejb-1.0.jar
  | 


  | package com.echows.ejfood.clients;
  | 
  | import java.util.Properties;
  | 
  | import javax.naming.InitialContext;
  | import javax.naming.Context;
  | import javax.naming.NamingException;
  | import javax.rmi.PortableRemoteObject;
  | import java.rmi.RemoteException;
  | 
  | import com.echows.ejfood.interfaces.RestaurantManagerHomeRemote;
  | import com.echows.ejfood.interfaces.RestaurantManagerRemote;
  | import com.echows.ejfood.interfaces.RestaurantManagerUtil;
  | 
  | 
  | public class RestaurantClient 
  | {
  |public static void main(String [] args) 
  |{
  |   try 
  |   {
  |  Context jndiContext = getInitialContext();
  |  RestaurantManagerHomeRemote home = 
(RestaurantManagerHomeRemote)RestaurantManagerUtil.getHome();
  |  RestaurantManagerRemote rManager = home.create();
  |  rManager.addRestaurant(1, "Test Restaurant");
  |   } catch (java.rmi.RemoteException re) {
  |  re.printStackTrace();
  |   } catch (javax.naming.NamingException ne) {
  | ne.printStackTrace();
  |   } catch (javax.ejb.CreateException ce) {
  |  ce.printStackTrace();
  |   }/* catch (javax.ejb.FinderException fe) {
  |  fe.printStackTrace();
  |   }*/
  |}
  | 
  |public static Context getInitialContext() 
  |   throws javax.naming.NamingException 
  |{
  |   //return new InitialContext();
  |   // context initialized by jndi.properties file
  | Properties p = new Properties();
  | p.put(Context.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory");
  | p.put(Context.URL_PKG_PREFIXES, 
"jboss.naming:org.jnp.interfaces");
  | p.put(Context.PROVIDER_URL, "localhost:1099");
  | return new javax.naming.InitialContext(p);
  |   
  |   
  |}
  | }
  | 
  | 



  | package com.echows.ejfood.controller;
  | 
  | import java.util.ArrayList;
  | import java.util.Date;
  | import java.util.Collection;
  | import java.util.Iterator;
  | import java.util.Set;
  | 
  | import javax.ejb.CreateException;
  | import javax.ejb.EJBException;
  | import javax.ejb.FinderException;
  | import javax.ejb.DuplicateKeyException;
  | import javax.ejb.RemoveException;
  | import javax.ejb.SessionBean;
  | import javax.ejb.SessionContext;
  | import javax.naming.NamingException;
  | 
  | 
  | import org.apache.commons.logging.Log;
  | import org.apache.commons.logging.LogFactory;
  | 
  | 
  | import com.echows.ejfood.pk.RestaurantPK;
  | import com.echows.ejfood.interfaces.RestaurantValue;
  | import com.echows.ejfood.interfaces.Restaurant;
  | import com.echows.ejfood.interfaces.RestaurantHome;
  | import com.echows.ejfood.interfaces.RestaurantUtil;
  | 
  | 
  | 
  | /**
  |  * the RestaurantManagerBean.
  |  *
  |  *
  |  * @ejb.bean
  |  *name="RestaurantManager"
  |  *type="Stateless"
  |  *transaction-type="Container" 
  |  *local-jndi-name="ejfood/local/RestaurantManager"
  |  *jndi-name="ejfood/remote/RestaurantManager"
  |  *view-type="both"
  |  *
  |  * @ejb.home
  |  *local-class="com.echows.ejfood.interfaces.RestaurantManagerHome"
  |  *
remote-class="com.echows.ejfood.interfaces.RestaurantManagerHomeRemote"
  |  *
  |  * @ejb.interface
  |  *local-class="com.echows.ejfood.interfaces.RestaurantManager"
  |  *remote-class="com.echows.ejfood.interfaces.RestaurantManagerRemote"
  |  *
  |  *
  |  * @ejb.ejb-ref
  |  *ejb-name="Restaurant"
  |  *ref-name="ejfood/local/Restaurant"
  |  *view-type="local"
  |  *
  |  *
  |  *
  |  * @ejb.util
  |  *generate="${ejb.util.generate}"
  |  *
  |  * 
  |  * @author
  |  *mailto:[EMAIL PROTECTED]">Eric Chow
  |  */
  | public abstract class RestaurantManagerBean implements SessionBean {
  | 
  |private Log log = LogFactory.getLog(this.getClass());
  | 
  |protected SessionContext sc = null;  
  | 
  | 
  |/**
  | * @ejb.create-method
  | */
  |public void ejbCreate() { }
  |
  |// =
  |// Implementation of Local Interface
  |// =
  | 
  | /**
  | *
  | * @ejb.interface-method
  | *
  | */  
  |public void addRestaurant(long restaurantId, String restaurantName) 
throws EJBException, CreateException {   
  |   try {
  |  addRestaurant(new Long(restaurantId), restaurantName);
 

[JBoss-user] [JCA/JBoss] - Re: Accessing Datasource error

2004-11-08 Thread adini
OK found the problem I replace every occurence of jdbc_AdminDB by AdminDB
And I think this was really the problem:
I replace 

  | java:/comp/env/jdbc/AdminDB
  |  by 
 java:/AdminDB
And now it's work Fine

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: Deployment Order

2004-11-08 Thread ahahamyan
I have a similar issue. I also have hasingleton mbeans that are now dependent 
on a jar that is deployed in the deploy folder (not the deploy-ha-singleton). 
This works, however, the hasingleton mbeans in the deploy-ha-singleton 
directory do not use the classes deployed on the deploy folder. I get 
ClassNotFoundExceptions, when deploying the mbeans, so I had to duplicate some 
of the jars in the deploy-ha-singleton directory as well. How can I have the 
singleton mbeans use the classes that are deployed in the deploy directory 
inside ears and jars?

I would appreciate any help on this. Thanks

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - JBoss 4 won't run on HP-UX with changed port

2004-11-08 Thread KITT3
I'm looking to upgrade an HP-UX machine to JBoss 4.0, from 3.2.5. For some 
reason the following three lines do not show up when starting JBoss, resulting 
in the application server to not respond:

09:26:00,952 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on 
http-0.0.0.0-8080
09:26:01,061 INFO  [ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8009
09:26:01,061 INFO  [JkMain] Jk running ID=0 time=0/31  config=null

I have not even deployed my application yet. I'm just trying to get the default 
jboss page to show up. The only thing I'm changing from the stock installation 
is the port number from 8080 to 18080. I do this by changing the HTTP/1.1 
connector port in the \server\default\deploy\jbossweb-tomcat50.sar\server.xml 
file.

Here's the last few lines of my server.log where it seems to be missing the 
three steps listed above:

2004-11-08 09:42:11,734 DEBUG 
[org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread] Notified 
that enabled: true
2004-11-08 09:42:11,734 DEBUG 
[org.jboss.deployment.scanner.URLDeploymentScanner] Started 
jboss.deployment:flavor=URL,type=DeploymentScanner
2004-11-08 09:42:11,735 DEBUG [org.jboss.system.ServiceController] Starting 
dependent components for: jboss.deployment:flavor=URL,type=DeploymentScanner 
dependent components: []
2004-11-08 09:42:11,904 DEBUG [org.jboss.deployment.MainDeployer] End 
deployment start on package: jboss-service.xml
2004-11-08 09:42:11,904 DEBUG [org.jboss.deployment.MainDeployer] Deployed 
package: 
file:/home/users/sys19_1/avi/jboss-4.0.0/server/default/conf/jboss-service.xml
2004-11-08 09:42:11,908 DEBUG [org.jboss.web.tomcat.tc5.Tomcat5] Saw 
org.jboss.system.server.started notification, starting connectors
2004-11-08 09:42:12,013 INFO  [org.jboss.system.server.Server] JBoss (MX 
MicroKernel) [4.0.0 (build: CVSTag=JBoss_4_0_0 date=200409200418)] Started in 
1m:18s:1ms

Can anybody give me an idea of what may be going wrong? Oddly, JBoss 3.25 works 
fine. 

Also, not sure if it's related, but if I then shutdown JBoss, I get this error:

09:42:12,013 INFO  [Server] JBoss (MX MicroKernel) [4.0.0 (build: 
CVSTag=JBoss_4_0_0 date=200409200418)] Started in 1m:18s:1ms
09:50:17,790 INFO  [STDOUT] java.lang.OutOfMemoryError: unable to create new 
native thread
09:50:17,864 INFO  [STDOUT] at java.lang.Thread.start(Native Method)
09:50:17,871 INFO  [STDOUT] at 
java.lang.Shutdown.runHooks(Shutdown.java:126)
09:50:17,871 INFO  [STDOUT] at 
java.lang.Shutdown.sequence(Shutdown.java:165)
09:50:17,871 INFO  [STDOUT] at java.lang.Shutdown.exit(Shutdown.java:210)
09:50:17,871 INFO  [STDOUT] at 
java.lang.Terminator$1.handle(Terminator.java:35)
09:50:17,912 INFO  [STDOUT] at sun.misc.Signal$1.run(Signal.java:195)
09:50:17,913 INFO  [STDOUT] at java.lang.Thread.run(Thread.java:534)


Thanks in advance,
Kenny

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: Datasource failover with MySQL?

2004-11-08 Thread terry
Thanks Adrian. That worked!

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Updating login information

2004-11-08 Thread arnold
Thanks a lot for the tip!

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: MessageDrivenBean automatically triggered or manually st

2004-11-08 Thread Frito
The MDB is called after deployment when a matching message is recognized.
Is your MDB properly deployed? Is the message propertly sent to the topic (e.g. 
don't forget to commit transacted messages ;-)  ? Is your MDB properly 
configured to receive the sent messages (e.g. message filter) ?


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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - client side code

2004-11-08 Thread mhemling
I am using JBOSS 3.2.5 on Redhat ES 3 with Java 1.4.2_05 and I am having a 
problem with the connection listener.  

I have 2 queue receivers.  One that connects to a JBOSS instance running 
locally, machine A, and I have another queue receiver (running on A) that 
connects to a remote JBOSS on machine B.  Each of these connections has a 
connection listener which awakens when the connection is broken.  If I break 
the connection to the remote JBOSS on machine B then the onException method 
gets called and that is good.  The problem is that the onException method for 
the local connection gets called as well.

Has anyone seen this before?

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets & JSP] - Tomcat's Persistent Session Manager

2004-11-08 Thread djoukit
I would like to use the Persistent Session Manager of Tomcat. 
Therefore, I added the following lines to my 
/server/tomcat5/deploy/jbossweb-tomcat50.sar/server.xml file.

  
  | 
  | 
  | 
  |   

But when I start JBoss i get the following errors :

2004-11-08 16:20:04,718 ERROR [org.apache.commons.modeler.BaseModelMBean] 
Exception invoking method start
  | java.lang.ExceptionInInitializerError
  | at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4197)
  | at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
  | at org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
  | at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
  | at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
  | at 
org.apache.catalina.core.StandardService.start(StandardService.java:519)
  | at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2343)
  | at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at 
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
  | at org.jboss.web.tomcat.tc5.Tomcat5.startService(Tomcat5.java:157)
  | at 
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
  | at $Proxy14.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:394)
  | at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
  | at $Proxy4.start(Unknown Source)
  | at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
  | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
  | at $Proxy6.deploy(Unknown Source)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
  | at 
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
  | at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
  | at $Proxy0.start(Unknown Source)
  | at org.j

[JBoss-user] [Clustering/JBoss] - Re: Cluster & MDB's

2004-11-08 Thread sudkampf
I have not found a solution yet.  Have you?

At this point we will probably use two server instances on two seperate boxes 
and any other instances we want will be consumers of the message queues managed 
by the original two instances.  

If you hear of a solution...let me know.  I'd like to get it corrected if 
possible.

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Writing custom LoginModule

2004-11-08 Thread time4tea
So, I found one small bug! 

In the constructor:

  public xxLoginModule() {
  | log.error ( "Creating " + this.getClass().getName() );
  |   }

but, "log" is not defined at this point, so resulting in NPE, which is not 
logged, and which results in no authentication

Setting ths log level to:

   
  |  
  |

Logged the output of the module, so I could see that the Exception was being 
thrown.



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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: JBoss 4.0 ejb-descriptors

2004-11-08 Thread ltexier
why don't you migrate to EJB 2.0?
http://java.sun.com/developer/technicalArticles/ebeans/ejbmigrate/

You'll find more people to help you out IMO

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Help on DATE format error

2004-11-08 Thread wdfink
Sorry,
I'm not familiar with the SUN 'Duke Bankaccount' example.

But the result of you deployment for EJB must have an ejb-jar.xml, jboss.xml 
and jaws.xml in the META-INF of the EJB.jar file

ejb-jar.xml:
EntityBean
  | 
  | xxxDate
  | 
jaws.xml:
  
  |  EntityBean
  | 
  |  
  | xxxDate
  | yyyDate
  |  
  | 

In the .java code of AccountEJB an attribute like java.sql.Timestamp and the 
Table a coresponding column, see XML-files.
Have a short look into jboss.../server/default/conf/standardjaws.xml, here you 
will find the mapping:
  
  |  mySQL
  | 
  | java.util.Date
  | DATE
  | DATETIME
  |  
  | 

I think this can be your problem ...

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: ERROR [HypersonicDatabase] Starting failed

2004-11-08 Thread ltexier
this article is not very good.

Redo the whole procedure using the Getting Started book
http://www.jboss.org/docs/index#free-32x

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: j_security_check & Struts

2004-11-08 Thread cuoz
It sounds like you are quite close on this.  I think your problem should be 
pretty easy to fix.  To answer your questions:
1.  I don't have any authentication code at all in my webapp.  The 
j_security_check sets up the context for you.  I don't use a struts-form for my 
login.  Do this:  Use a straight-up html/jsp page and don't post to a struts 
action.  Post the j_security_check.  That should be all you need.  By posting 
to your logon action, you are bypassing the container security code that would 
set all security context for you.

2.  You should not reference your login page or the the j_security_check 
directly.  You should only allow the web container to redirect you to it as 
necessary.  I think you will get exceptions or http error codes back if you try 
to force this.  The container will handle it all for you.  To logout, I have a 
logout action that checks for a valid session and if there is one, invalidates 
it.

Do that and let me know if you still need further help.
gary.


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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss.NET] - Digest authentication

2004-11-08 Thread gsarno
Hi,
could anyone help me understanding whether its possible on
JBOSS3.x to implement a Digest Auth scheme for a web service (using axis) and 
whether there is any example available ?

Note: It seems that Axis doesn't currently support digest.

cheers.
Giuseppe.

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: j_security_check & Struts

2004-11-08 Thread tschraepen
"cuoz" wrote : I just noticed this thread, and am not really sure what the big 
issue is.  My form based login page is a JSP and uses struts tags and tiles.  
My form action posts directly to j_security_check.
  | 
  | The struts controller servlet does not enter the picture until after the 
authentication is complete.
  | 
  | I think this would be the life cycle for my webapp:
  | 1.  browser requests /webapp/protectedresource/mainmenu.do
  | 2.  tomcat redirects to login page which is a jsp page that uses struts 
tags and tiles
  | 3.  user logs in.  post goes to j_security_check
  | 4.  container authenticates and loads 
/webapp/protectedresource/mainmenu.do, which is mapped to the struts controller 
servlet.
  | 5.  struts takes over from here, runs the action and forwards to the view.
  | 
  | I have my struts controller mapped to *.do in my web.xml.
  | 
  | If I'm missing the real issue and this doesn't help let me know.  Maybe you 
are trying to do something additional that I'm not.
  | 
  | gary.

I'm aware of the fact that this is kind of late for a follow-up, but this is 
the only thread (out of the other 20 I've read) that matches my JAAS/Struts 
problem.

That having said, could you post the code for the form of your logon page?

The things I don't understand are:
1. where do you put your authentication code (the LoginContext lc.login and 
stuff)?
2. if one were to start from a logon-page (opposing to your case, where a user 
tries to request a secured web-page), how would you suggest forwarding to the 
correct page after login was succesful?

FYI, here's my scenario:

I'm using Struts - tags and ActionForms - on every page.
The web-application starts with a logon page.
Currently I've got a LogonAction which merely checks if the username exists in 
a database (through an EJB layer), and if it does, forward to the main-page.
I tried using FORM authentication like this:

--- In login-config.xml ---

  | 
  |
  |   
  |  ReqPoster-users.properties
  |  ReqPoster-roles.properties
  | 
  |
  | 
  | 

I keep the usersProperties.properties and the rolesProperties.properties files 
in the web.war 's /WEB-INF/classes/ directory. (Where is that defined anyway, I 
didn't know for sure until recently when I read some posts)

--- In web.xml ---

  | 
  | FORM
  | ReqPoster
  | 
  | 
  | /pages/login.jsp
  | /pages/error.jsp
  | 
  | 
  | 
  | 
  |  
  | 
  | ReqPosterWeb 
  | *.do 
  |  
  |  
  | UserRole 
  | AdminRole 
  |  
  |  
  | 

--- In login.jsp ---

  | 
  | 
  |
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |  
  | 
  | 
  | 
  | 
  | 

I've got my actionform set to accept these values, but the logonAction does not 
redirect to the j_security_check.
Instead I've got this in a filter:


  | public void init(FilterConfig filterConfig) throws ServletException {
  | this.filterConfig = filterConfig;
  | System.out.println("AuthenticationFilter.init()");
  | configName = filterConfig.getInitParameter("configName");
  | username = filterConfig.getInitParameter("username");
  | String x = filterConfig.getInitParameter("password");
  | if( x != null )
  | password = x.toCharArray();
  | handler = new UsernamePasswordHandler(username, password);
  | }
  | 
  | public void doFilter(
  | ServletRequest request,
  | ServletResponse response,
  | FilterChain chain) throws IOException, ServletException {
  | LoginContext lc = null;
  | try {
  | System.out.println("AuthenticationFilter, login as: 
"+username);
  | lc = new LoginContext(configName, handler);
  | lc.login();
  | } catch(LoginException e) {
  | throw new ServletException("Failed to perform JAAS 
login", e);
  | }
  | try {
  | chain.doFilter(request, response);
  | } finally {
  | if( lc != null ) {
  | try{
  | 
System.out.println("AuthenticationFilter, logout");
  | lc.logout();
  | } catch(LoginException e) {
  | e.printStackTrace();
  | }
  | }
  | }
  | }
  | 

--- Filter statements in web.xml ---

  |
  |   AuthenticationFilter
  |   AuthenticationFilter
  |   
  |   
org.ineos.RequestPosterAdmin.filters.AuthenticationFilter
  |   
  |  configName
  |  ReqPoster
  |   
  |   
  |  username
  |  test
  |   
  |   
  |  pas

[JBoss-user] [Security & JAAS/JBoss] - Re: from web.xml &&

2004-11-08 Thread liooil

I understand that's a redirect redirect because it has been coded in this way 
in the web.xml file :


 FORM
   
  /action/authenticationView
  /action/authenticationProcess 

 

Dynamicly, i can see the process authentication that succeeds :

 1 - /action/authenticationProcess identifies properly the client
  i.e, my loginContext works well : i get my subject and my principals

 2 - /action/authenticationProcess tries a forward to action/menuView

 3 - this forward is rejected (our 302 redirect) because this URL is a 
protected resource (my )

Maybe the relevant question is how can i map the  with one of the 
principals i get from my loginContext ?



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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Help on DATE format error

2004-11-08 Thread fly2moon2
Hi,


Thanks for your reply.
I simply follow the Duke bank's example and didn't change anything.

But I was compiling/packaging the programs from a Windows XP workstation and 
then copy the EAR file to JBoss on a Linux server. Would this make a difference 
(causing the problem)?

thanks,
jackling

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Accessing Datasource error

2004-11-08 Thread adini
Hello,

I have got some problem in trying to access my mySQL DB from my ear.
I use Jboss4.0 with MySQL and I have got the following error in Jboss console:
anonymous wrote : 
  | 14:40:05,625 INFO  [STDOUT] javax.naming.NamingException: Could not 
dereference object [Root exception is javax.naming.NameNotFoundException: 
jdbc_AdminDB not bound]
  | 14:40:05,625 INFO  [STDOUT] at 
org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:971)
  | 14:40:05,625 INFO  [STDOUT] at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:614)
  | 14:40:05,625 INFO  [STDOUT] at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:643)
  | 14:40:05,625 INFO  [STDOUT] at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:508)
  | 14:40:05,625 INFO  [STDOUT] at 
javax.naming.InitialContext.lookup(InitialContext.java:347)
  | 14:40:05,625 INFO  [STDOUT] at 
com.iratensolutions.applications.ejb.admin.tools.AdminTools.getConnection(AdminTools.java:36)
  | 

But when I look in the begining of the Jboss console I can see that 
jdbc_AdminDB is known :
anonymous wrote : 
  | 14:39:23,406 INFO  [WrapperDataSourceService] Bound connection factory for 
resource adapter for ConnectionManager 
'jboss.jca:name=jdbc_AdminDB,service=DataSourceBinding to JNDI name 
'java:jdbc_AdminDB'

Here is a part of my jboss.xml File:

  |   
  | ConfigModuleDBTasksBean
  | ConfigModuleDBTasksLocalHome
  | 
  | jdbc/AdminDB
  | jdbc_AdminDB
  | 
  |   
  | 

Here is the way I call my DB from my code


  | static public Connection getConnection(InitialContext jndiContext) {
  | Connection connection = null;
  | try {
  | DataSource ds = (DataSource) 
jndiContext.lookup("java:comp/env/jdbc/AdminDB");
  | connection = ds.getConnection();
  | } catch (NamingException ne) {
  | AdminAgentLogger.logException(ne);
  | } catch (SQLException sqle) {
  | String message = "Error when connecting to the 
Administration database. Maybe you don't have access rights.";
  | AdminAgentLogger.logException(message, sqle);
  | }
  | return connection;
  | }
  | 

And finally my Admin-ds.xml file

  | 
  | 
  | 
  | 
  | 
  | 
  |   
  | jdbc_AdminDB
  | jdbc:mysql://localhost:3306/admin13b
  | com.mysql.jdbc.Driver
  | root
  | tenari
  |   
  | 
  |   
  |  mySQL
  |   
  | 
  | 

Where am I doing wrong ? I think its a problem of configuration
please help
Thanks in advance 

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Nukes User] - Re: nukes-installer problem

2004-11-08 Thread gator
I had the same problem.  I think mysql is not ignoring the garbage whitespace 
characters after the ';' on windows platforms.  To fix, go into the 
JBOSS_HOME/server/default/deploy/nukes-installer.war/WEB-INF/setup/mysql.xml 
and remove all the whitespaces after the sql statement ending ';' characters.

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Tomcat 5

2004-11-08 Thread djoukit
Hi,

I would like to use Tomcat 5 embed in JBoss and I have a problem when I try to 
use the Tomcat's Persistent Session Manager.

With Tomcat and JBoss separated it worked well, but when I try to use the embed 
Tomcat i get the following error :

14:13:10,828 ERROR [BaseModelMBean] Exception invoking method start
  | java.lang.ExceptionInInitializerError
  | at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4197)
  | at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
  | at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
  | at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
  | at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
  | at 
org.apache.catalina.core.StandardService.start(StandardService.java:519)
  | at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2343)
  | at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at 
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
  | at org.jboss.web.tomcat.tc5.Tomcat5.startService(Tomcat5.java:157)
  | at 
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
  | at $Proxy14.start(Unknown Source)
  | at 
org.jboss.system.ServiceController.start(ServiceController.java:394)
  | at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
  | at $Proxy4.start(Unknown Source)
  | at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
  | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
  | at $Proxy6.deploy(Unknown Source)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
  | at 
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
  | at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
  | at 
org.jboss

[JBoss-user] [Messaging, JMS & JBossMQ] - MessageDrivenBean automatically triggered or manually starte

2004-11-08 Thread thoste
Assume I deployed successfully a MDB.
Then I sent some JMS messages from another SessionBean to a JmsTopic
but the consuming MDB currently does not fetch the topic messages. Absolut no 
reaction from the MDB can be observed.

The question: Does the MDB automatically recognize that there are some messages 
waiting for it
or do I have to start the MDB manually before the MDB can inspect the topic 
stream?

Thomas

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Writing custom LoginModule

2004-11-08 Thread time4tea

I've looked at the relevant Wiki page about writing a custom login module. I 
can't get it to work at all. I'm trying right now for it to just log that its 
even being loaded. I can't see anything to indicate that it is. Nor can I see 
what LoginModule is being called, if any.

Any help to diagnose what is goin on would be much appreciated! Thanks!!


It says to add the following to your login-config.xml:


   
 
   


And the following to your jboss-web.xml

   java:/jaas/xx

I have also added this to web.xml

 
   
 Everything
 The site
 /*
 GET
 POST
   
   
 Any Domain User
 Domain Users
   
 

 
   BASIC
 

 
   Domain Users
 


My code is here (log.error to encourage message to show up!):


package com.xx.es.security.jaas;

import java.util.Map;
import java.util.Iterator;

import java.security.Principal;
import java.security.acl.Group;

import javax.security.auth.Subject;
import javax.security.auth.callback.CallbackHandler;
import javax.security.auth.login.LoginException;
import javax.security.auth.login.FailedLoginException;

import org.jboss.security.auth.spi.AbstractServerLoginModule;

public class xxLoginModule extends AbstractServerLoginModule {

  protected Principal identity;
  

  public xxLoginModule() {
log.error ( "Creating " + this.getClass().getName() );
  }

  public void initialize(Subject s, CallbackHandler cbh, Map state, Map opts ) {
super.initialize ( s,cbh, state, opts );
log.error ( "xxLoginModule: Initialise" );
log.error ( "Subject:  " + s.toString() );
log.error ( "CallbackHandler: " + cbh.toString() );

log.error ( "State:" );

for ( Iterator i = state.keySet().iterator() ; i.hasNext() ; ) {
  Object key = i.next();
  log.error ( i + " : " + state.get(key) );
}

log.error ( "Opts:" );

for ( Iterator i = opts.keySet().iterator() ; i.hasNext() ; ) {
  Object key = i.next();
  log.error ( i + " : " + opts.get(key) );
}
  }

  public boolean login() throws LoginException {
log.error ( "Login()" );
return true;
  }

  public boolean commit() throws LoginException {
log.error ( "commit()" );
return true;
  }

  protected Principal getIdentity() {
log.error ( "getIdentity()" );
return identity;
  }

  protected String getUsername() {
log.error ( "getUsername() " );
return null;
  }

  protected Group[] getRoleSets() throws LoginException {
log.error ( "getRoleSets()" );
return new Group[0];
  }

}



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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: Unable to display PDF's

2004-11-08 Thread tomislavr
You can do with it like that, and this is also possible (read that MS KB 
article)

1. Create a filter with this in doFilter:

res.setHeader("Cache-Control", "");
res.setHeader("Pragma", "");


2. Map filter to pdf's:


Cache-Control filter
*.pdf


And that's it ;). Works nice with jboss-3.2.6 (tc5). 


cheers,
Tomislav


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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: JBoss 4.0 ejb-descriptors

2004-11-08 Thread aibo
..hmm, but I use EJB1.1...so I need CMP1.1...or not?

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: JBoss 4.0 ejb-descriptors

2004-11-08 Thread ltexier
Read this book 
http://www.jboss.org/docs/index#free-40x

and forget jaws.xml which is used for CMP 1.1

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - JBoss 4 with EJB1.1

2004-11-08 Thread aibo
Hello everybody,

I'm using JBoss 4 und EJB1.1. Now I want to know if jaws.xml can further be 
used or if all specifications have to be in ejb-jar.xml (how does the 
ejb-jar.xml file look like then? - Example).

Many thanks.



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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets & JSP] - Re: JBOSS 3.2.6 and Tomcat 4.X

2004-11-08 Thread ltexier
if you download 3.2.5, there is a service Tomcat41 ready to deploy into 
/docs/examples/tomcat

It no longer exists in 3.2.6 but it should be working just fine. Give it a try.



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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: error running a servlet.

2004-11-08 Thread rk_ilango
Hi alexandru,
I am getting the same error. If you got the solution to this problem then 
Please let me know.


regards,
Rajesh.

2004-11-08 15:49:23,929 ERROR [org.jboss.ejb.plugins.LogInterceptor] 
TransactionRolledbackException in method: public abstract java.lang.Integer 
org.learn.labormgmt.customer.interfaces.CustomerManagerBean.save(org.learn.labormgmt.customer.value.CustomerValues)
 throws 
org.learn.labormgmt.customer.CustomerException,java.rmi.RemoteException, 
causedBy:
org.jboss.tm.JBossRollbackException: Unable to commit, 
tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=ILANGO/17, BranchQual=, 
localId=17] status=STATUS_NO_TRANSACTION; - nested throwable: 
(javax.ejb.EJBException: Method is not a known CMP field accessor, CMR field 
accessor, or ejbSelect method: methodName=ejbStore)


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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - JNDI Problem on Applet->SFSB

2004-11-08 Thread Schokoladenhase
Hi everyone...
Im quite desperate trying to enable a JNDI lookup for several days now.
I have a signed applet contacting a stateful session bean.
Since Applets are only allowed to load code from the machine they came from the 
specific code is like:

  | Properties props = System.getProperties();
  | 
props.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory"
 );
  | props.setProperty("java.naming.provider.url", this.getCodeBase().getHost());
  | GTCSessionHome home = 
  | (GTCSessionHome) PortableRemoteObject.narrow(new 
InitialContext(props).lookup("GTCSession"),GTCSessionHome.class);
  | 

The code works fine as long as i have it in a LAN environment, but as soon as i 
set it up on a remote server the lookup fails. I opened the standard TCP Ports 
for JNDI, Tomcat and RMI (1098,1099,,8080).
I heard there are some problems with the NAT Translation, but i dont know how 
to bypass them, since i have to get the URL with a this.getCodeBase().getHost() 
due to security limitations.

Looking up a stateful session bean on the internet should be working somehow... 
any hints would be appreciated.

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Linux Machine and its EVS distribution for JBOSS

2004-11-08 Thread Mohammed Ashfaq S
Hi Guys, 
We have a requirement to shit our JBOSS server from Window's to Linux.

I have some problem in setting up my Linux Machine and its EVS distribution. 
Looked thru the documentation, but no much luck.
Can anyone suggest a good tutorial or Send some text ?

Your Help is highly appreciated.

Thanks in Advance
Ashfaq


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: UDP bind_addr vs. -Dbind.address JBoss 3.2.6

2004-11-08 Thread bela
"sheckler" wrote : Yes, that is exactely my problem. I want the clustering bind 
to an other lan address than the jboss instance does to and this is working 
with 3.2.5. The -b option should n o t override the UDP.bind_addr for my 
purpose. 
  | 
  | May be the physical network configuration I have to consider shoud better 
be changed. If the new behaviour of JBoss 3.2.6 is the correct, planned 
behaviour I will have talk to my network people. Will this behaviour stay like 
this in future? 
  | 
  | Thanks fir Your answer in advance
  | Stefan
  | 
  | 
  | 

Yes, as I said: n 3.2.6, if you use -b or --host, then this *overrides* the 
UDP.bind_addr property in the cluster-service.xml .


Let me know if this is a problem for you. An option might be to add another 
system prop that ignore the -Dbind.address property.

Bela

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [The Lizzard's corner] - Connection reset by peer: socket write error

2004-11-08 Thread [EMAIL PROTECTED]
I use a custom driver (easysoft) for JDBC/ODBC connection.

I make some test to re-create DB connection when this one is lost.
It's from an applet.

When I try my connection (unplugged) with tomcat-4.1.29 : connection.isClosed() 
I recieve true, but when I try the same java instruction on bundle 
JBoss-3.2.3_tomcat-4.1.29 I recieve false. I can't have the status on my 
connection.

Anybody could say me why, my configuration is wrong ?

thank for your help.


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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Nukes User] - Re: nukes-installer problem

2004-11-08 Thread LCB
What mysql version do you use?
Mysql 3.2 has some problems with the semikolon at end of each row, but mysql 
4.1 works well.

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Help on DATE format error

2004-11-08 Thread wdfink
Hi,
looks like an Configuration/Mapping or Programmers fail.

I'm not working with MySQL.
But it seems that the DB has a incompatible datatype.

For more you must post the mapping (if you change) the JBoss version and a pice 
of your DeployDesc and code...



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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: UDP bind_addr vs. -Dbind.address JBoss 3.2.6

2004-11-08 Thread sheckler
Yes, that is exactely my problem. I want the clustering bind to an other lan 
address than the jboss instance does to and this is working with 3.2.5. The -b 
option should n o t override the UDP.bind_addr for my purpose. 

May be the physical network configuration I have to consider shoud better be 
changed. If the new behaviour of JBoss 3.2.6 is the correct, planned behaviour 
I will have talk to my network people. Will this behaviour stay like this in 
future? 

Thanks fir Your answer in advance
Stefan




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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - JBoss 4.0 ejb-descriptors

2004-11-08 Thread aibo
Hi,

I'm using JBoss 4 and after having read several instructions and posts I'm not 
sure which descriptors I need in order to deploy my ejbs.
I need the ejb-jar.xml and probably the jboss.xml but what's with jaws.xml.

Furthermore it would be nice, if anyone could post a short sample of the 
necessary files, so that I know which settings have to be made in which 
descriptor.

Thanks.

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets & JSP] - Content-Type without Charset on JBoss 3.2.6

2004-11-08 Thread indianboy78in
Hi All,

I am using jboss 3.2.6 with tomcat5. 

I have servlet which sends binary data in response and sets content-type as 
"application/my type" but tomcat automatically appends charset=ISO-8859-1 to 
content type. This is causing problem on browser. I deployed same application 
on Jboss 3.0.8 which works fine as jboss dosen't appends charset=ISO-8859-1 to 
content type. Is there any way on JBoss3.2.6/Tomcat 5 by which I can disable 
this?

Thnaks in Advance

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Help on DATE format error

2004-11-08 Thread fly2moon2
Hi,


Finally, I'm able to start JBoss with MySQL database server.  But when I login 
to the Duke's bank example,  the following error come out stating problem on 
DATE conversion. Pls help...:


(code)
Server Error
Your request cannot be completed. The server got the following error:

EJBException:; nested exception is: javax.ejb.EJBException: 
getAccountsOfCustomer: ejbLoad: Cannot convert value '2004-11-08 15:45:49' from 
column 6(2004-11-08 15:45:49 ) to DATE.; nested exception is: 
javax.ejb.EJBException: ejbLoad: Cannot convert value '2004-11-08 15:45:49' 
from column 6(2004-11-08 15:45:49 ) to DATE. 
(/code)


thanks in advance,
jackling

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Getting Started Documentation] - Pls help to solve DATE format problem

2004-11-08 Thread fly2moon2
Hi,


Finally, I'm able to start JBoss with MySQL database server.  But when I login 
to the Duke's bank example,  the following error come out stating problem on 
DATE conversion. Pls help...:


(code)
Server Error
Your request cannot be completed. The server got the following error:

EJBException:; nested exception is: javax.ejb.EJBException: 
getAccountsOfCustomer: ejbLoad: Cannot convert value '2004-11-08 15:45:49' from 
column 6(2004-11-08 15:45:49 ) to DATE.; nested exception is: 
javax.ejb.EJBException: ejbLoad: Cannot convert value '2004-11-08 15:45:49' 
from column 6(2004-11-08 15:45:49 ) to DATE. 
(/code)


thanks in advance,
jackling

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: EJB QL parsing pb

2004-11-08 Thread adini
Thank you for your reply I would like to precise that I am using JBoss 4.0.0.


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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Performance Tuning] - Re: Implications of increasing TransactionTimout value in jb

2004-11-08 Thread azydron
Many thanks for your reply - your explanation is very enlightening and most 
useful.

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

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


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user