[JBoss-user] [Javassist user questions] - Re: use n times a class created

2004-10-27 Thread tar
First, are you sure that you need to re construct a new class each time ? Your code 
seems always do the same things...

In absolute you cannot load two class with the same name (1). Try to use different 
class name each time you create and execute your class.

hope this can help

(1) article about class loader :
http://www.javaworld.com/jw-10-1996/jw-10-indepth.html

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

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


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

2004-10-27 Thread Raist_Majere
Is "location" a CMP field of ControlLogix? Can you provide the ejb-jar.xml file?

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

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


---
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: JBoss 4.0: can't get CMP and Oracle JDBC working

2004-10-27 Thread Raist_Majere
You should have restarted JBoss after placing Oracle-ds.xml on the deploy dir. But 
before that, have you already copied the jdbc Oracle drivers to the jboss/server/< 
instance >/lib directory?
Try this and tell us your results.


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

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


---
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: JNDI Binding error

2004-10-27 Thread Raist_Majere
You have to put the correct JNDI name of the Datasource on jboss-web.xml. In your 
case, your jboss-web.xml file should be:

  |  
  |  
  |  
  | jdbc/SampleDS 
  | javax.sql.DataSource 
  | java:/jdbc/SampleDS
  |  
  |  
  | 


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

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


---
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: SSL via HTTPS Standardport 443 / Redirect to 8443

2004-10-27 Thread nehring
I generally run some varient of RedHat Fedora, but it's still using iptables.   I 
don't like the way iptables is setup on RedHat, so I generally replace the RC script 
at /etc/init.d/iptables with my own script/firewall rules.

You'll need to load the "iptable_nat" kernel module to get the Network Address 
Translation.Then the forwarding rules look something like this  (where "$IPADDR" 
is your IP address):


  | ## Port forwarding 80 to 8080
  | iptables -t nat -A OUTPUT --destination localhost -p tcp --dport 80 \
  | -j REDIRECT --to-ports 8080
  | iptables -t nat -A OUTPUT --destination $IPADDR -p tcp --dport 80 \
  | -j REDIRECT --to-ports 8080
  | iptables -t nat -A PREROUTING --destination $IPADDR -p tcp --dport 80 \
  | -j REDIRECT --to-ports 8080
  | 
  | ## Port forwarding 443 to 8443
  | iptables -t nat -A OUTPUT --destination localhost -p tcp --dport 443 \
  | -j REDIRECT --to-ports 8443
  | iptables -t nat -A OUTPUT --destination $IPADDR -p tcp --dport 443 \
  | -j REDIRECT --to-ports 8443
  | iptables -t nat -A PREROUTING --destination $IPADDR -p tcp --dport 443 \
  | -j REDIRECT --to-ports 8443
  | 

You'll have your other ingress and egress rules as you normally would.   I can post a 
more complete script if you like that should be able to work on most any newer Linux 
using iptables.

r,
Lance

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

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


---
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: Using UserTransaction from a Mbean doesn't commit agains

2004-10-27 Thread Raist_Majere
I've never used what you're trying to do, but in a book I have says that you get 
access to JTA looking up "java:comp/UserTransaction", not "UserTransaction" as you 
have in your code. Try it, but don't know if this is the problem you have...


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

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


---
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] - JNDI Binding error

2004-10-27 Thread mtembene
Hi all

It's been a long time since I worked with java and I have never worked with JBoss or 
JNDI before so please bear with me. 

I am trying to configure oracle-ds.xml, web.xml and jboss-web.xml so that I can use 
JNDI to get a datasource object. (Note that I am not using EJB's just servlets and 
jsp's ) 

hear is a copy of my oracle-ds.xml file with connection bits stripped out





jdbc/SampleDS

oracle.jdbc.driver.OracleDriver


  


Here is my jboss-web.xml file 





jdbc/SampleDS
javax.sql.DataSource
jdbc/SampleDS




Here is my part of my web.xml file



SampleDS
jdbc/SampleDS
javax.sql.DataSource
Container



When I go to deploy my ear file I get several error messages regarding JNDI including 

org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: 
(javax.naming.NamingException: resource-ref: jdbc/SampleDS has no valid JNDI binding. 
Check the jboss-web/resource-ref.)

and 


MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
ObjectName: jboss.web.deployment:war=sample.war,id=-2112006021
 state: FAILED
 I Depend On:
 Depends On Me: MBeanException: org.jboss.deployment.DeploymentException: Error during 
deploy; - nested throwable: (javax.naming.NamingException: resource-ref: jdbc/SampleDS 
has no valid JNDI binding. Check the jboss-web/resource-ref.)
Cause: org.jboss.deployment.DeploymentException: Error during deploy; - nested 
throwable: (javax.naming.NamingException: resource-ref: jdbc/SampleDS has no valid 
JNDI binding. Check the jboss-web/resource-ref.)
ObjectName: jboss.j2ee:service=EARDeployment,url='sample.ear'


If anyone could offer any suggestions as to what I am doing wrong it would be greatly 
appreciated. 

Thanks





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

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


---
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] - Help required in Configuring Jboss in server/all mode

2004-10-27 Thread cheenu78
Hi all,
I am facing problems while starting server in server/all mode 

C:\jboss-3.2.2RC3\bin\run.bat -c all
I am not sure whether i have done some setting wrongly, can any one explain what are 
the step required in starting jboss in run.bat -c all
Thanks and Regards
srinivas

I am getting the following error.

---
GMS: address is srinivas:1388 (additional data: 18 bytes)
---
10:41:50,428 INFO  [ClusterPartition] Starting channel
10:41:50,428 INFO  [DefaultPartition] Number of cluster members: 1
10:41:50,428 INFO  [DefaultPartition] Other members: 0
10:41:50,428 INFO  [ClusterPartition] Started ClusterPartition: DefaultPartition
10:41:50,428 INFO  [ClusterPartition] Started
10:41:50,428 INFO  [EntityContainer] Starting
10:41:50,468 INFO  [EntityInstancePool] Starting
10:41:50,468 INFO  [EntityInstancePool] Started
10:41:50,468 INFO  [EntityContainer] Started
10:41:50,478 INFO  [ClusteredHTTPSessionService] Starting
10:41:50,608 INFO  [ClusteredHTTPSessionService] Started
10:41:50,608 INFO  [HASessionStateService] Starting
10:41:50,608 INFO  [HASessionStateService] Started
10:41:50,608 INFO  [HANamingService] Starting
10:41:50,668 INFO  [HANamingService] Listening on 0.0.0.0/0.0.0.0:1100
10:41:54,684 WARN  [HANamingService] Failed to start AutomaticDiscovery
java.net.UnknownHostException: 192.168.1.23x: 192.168.1.23x
at java.net.InetAddress.getAllByName0(InetAddress.java:999)
at java.net.InetAddress.getAllByName0(InetAddress.java:969)
at java.net.InetAddress.getAllByName(InetAddress.java:963)
at java.net.InetAddress.getByName(InetAddress.java:883)
at 
org.jboss.ha.jndi.HANamingService$AutomaticDiscovery.start(HANamingService.java:478)
at org.jboss.ha.jndi.HANamingService.startService(HANamingService.java:261)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
at sun.reflect.GeneratedMethodAccessor8.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 $Proxy12.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:394)
at org.jboss.system.ServiceController.start(ServiceController.java:411)
at sun.reflect.GeneratedMethodAccessor7.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:824)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
at sun.reflect.GeneratedMethodAccessor19.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 $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.GeneratedMethodAccessor8.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.S

[JBoss-user] [HTTPD, Servlets & JSP] - Re: WebService Work, Servlet deploys, but can't locate

2004-10-27 Thread Raist_Majere
Can you provide your web.xml, jboss-web.xml and/or application.xml? If you deployed it 
as a WAR and have no jboss-web.xml, provide de WAR file name, please.


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

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


---
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] - how to implement a change of user password?

2004-10-27 Thread ereze
Hi, 

(I am running with JBoss 3.2.5.)

In my application the user can change his password. The change should 
take effect immediately. But unfortunately the JBoss keep the user older credentials 
in the cache for the amount of time specified where the default is 1800 seconds (30 
min.). 

First I suppose I am not the first to come across such a requirement. So I am pretty 
sure (I hope) someone has a solution. The JBoss security credentials cache is a great 
feature and I would like to continue using it, so a solution of setting the entry 
time-to-leave to 0 is not a good solution for me. I read about the flush option that 
clears the cache - this is also not very good for me - why loose all the cache because 
of just one user.

I would appreciate any help

Erez


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

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


---
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: Problem with remove()

2004-10-27 Thread Raist_Majere
Can you provide the stack trace of this exception, as well as the source code of 
ejbRemove of the implied beans and the ejb-jar.xml file, please? That could help...


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

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


---
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: CMP - failed to retrieve data from database - but NO exc

2004-10-27 Thread Raist_Majere
I think I've found where your problem really is, but I'm not sure at all...
In your bean, you have this tag:

  | * @jboss.persistence 
  | * datasource="java:/jdbc/dev01" 
  | * datasource-mapping="mySQL" 
  | * create-table="False" 
  | * remove-table="False" 
  | * table-name="GROUPS" 
  | 
Note that you have written "False". I think that it should be "false" instead (it must 
be a bool, and in Java it's written "true" and "false", all letters in lowercase). So 
when XDoclet generates the file jbosscmp-jdbc.xml, fails retrieving all your info and 
table-name defaults to the EJB name ("GROUPSEJB" in your case), as it's shown by this 
snipplet of the debug trace you wrote:

  | 23:15:53,566 INFO [STDOUT] 466528 [http-0.0.0.0-8080-Processor25] DEBUG 
org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.GroupEJB#findAllGroups - Executing SQL: 
SELECT t0_g.UIN FROM GROUPEJB t0_g
  | 
Try changing this and tell us about the result.


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

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


---
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: Is there any way to config max user using JBoss?

2004-10-27 Thread duylt
it's max user logged on to web app
I found that config that in tomcat Manager->MaxActiveSession.
But I don't know how to do that in jboss

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

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


---
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: running servlet with JBoss Please Help

2004-10-27 Thread Raist_Majere
Hi.
I haven't used JBuilder X, but I'll try to figure out with the answers to these 
questions:
- Do you use an EAR file to package your web-app or just a WAR one? If it's the second 
option, can you tell us the name of that file (like .war)?
- Is this file properly deployed? You should look for it on your 
C:/jboss-3.2.5/server/default/deploy directory. Is it there?
Waiting for your reply ;-)

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

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


---
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] [Jobs@JBoss] - JBoss Development Manager - Admin Console

2004-10-27 Thread ivelin
Come join a rapidly growing enterprise software and services company and the home of 
Professional Open Source. JBoss, Inc. has immediate opening for a Development Manager 
to join our team in Atlanta, Georgia or Austin, Texas. This is a tremendous 
opportunity to be a part of a fast-paced, leading edge software company that is 
changing the way Middleware software is developed, sold, and supported. This position 
will report to the Director of Product Development. For consideration, please send 
your resume to: mailto:[EMAIL PROTECTED]

Essential Job Functions:
In this exciting position, you will:
- Become certified in the JBoss product suite.
- Add value to the overall JBoss Development model.
- Manage the development of the next generation JBoss Admin Console. 
- Be responsible for the functional specification and project schedule 
- Apply an effective development and QA process
- Help with the product architecture, design and coding

Required Skills and Experience:
- Several years of professional work experience
- Several years of software design and development experience using Java and J2EE is 
required
- JBoss experience is preferred
- Strong people skills
- Strong leaderhip skills
- Strong team-building skills
- Ability to work with a geographically distributed team
- MBA or Bachelors Degree in Computer Science or related field is preferred
- PMI certification is a plus


Equal Opportunity Employer / Drug Free Workplace

For consideration, please send your resume to: [EMAIL PROTECTED]


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

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


---
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] - checksum error extractiving jboss-4.0.0.tar file

2004-10-27 Thread vidyesh
Hi,

I downloaded jboss-4.0.0.tar.gz file to XP box. 
FTPed (Binary) to AIX box.
gunzip  jboss-4.0.0.tar.gz to jboss-4.0.0.tar file.
tar -xvf jboss-4.0.0.tar  throws checksum error as follows

x jboss-4.0.0/server/all/deploy-hasingleton/jms/hsqldb-jdbc2-service.xml, 4759 b
ytes, 10 media blocks.
x jboss-4.0.0/server/all/deploy-hasingleton/jms/jbossmq-destinations-service.xml
, 4057 bytes, 8 media blocks.
x jboss-4.0.0/server/all/deploy-hasingleton/jms/jbossmq-httpil.sar/META-INF/MANI
FEST.MF, 106 bytes, 1 media blocks.
x jboss-4.0.0/server/all/deploy-hasingleton/jms/jbossmq-httpil.sar/META-INF/jbos
s-service.xml, 639 bytes, 2 media blocks.
x ././@LongLink, 105 bytes, 1 media blocks.
x jboss-4.0.0/server/all/deploy-hasingleton/jms/jbossmq-httpil.sar/jbossmq-httpi
l.war/META-INF/MANIFES, 106 bytes, 1 media blocks.
x ././@LongLink, 155 bytes, 1 media blocks.
x jboss-4.0.0/server/all/deploy-hasingleton/jms/jbossmq-httpil.sar/jbossmq-httpi
l.war/WEB-INF/classes
tar: 0511-169 A directory checksum error on media; 1 not equal to 21471.
-

Initial thought was may be file did not get downloaded properly. So I tried 
downloading those files from different mirror sites, but got the same error. 

I got same error on Solaris box. 

Could you please help me out resolving this issue ?

File Size: 116418560 Oct 27 17:38 jboss-4.0.0.tar

Thanks,
Vidyesh




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

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


---
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: WebService Work, Servlet deploys, but can't locate

2004-10-27 Thread cballew
Sorry left out a couple of things, first yes I remembered the :8080 when calling the 
Servlet. Second, I'm using JBoss 4

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

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


---
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] - HAJNDI Access Error via HTTPS from internal VM

2004-10-27 Thread ahahamyan
Hello,

Using Jboss 3.2.6 I am setting up a cluster of 3 jboss boxes behind a apache load 
balancer box (via mod_jk2) talking to the coyote AJP connectors on the jboss boxes. I 
am using the clustering doc (Edition 6). Just to get things started I am only using 
one of the jboss boxes and the load balancer box. I am using HTTP(S) exclusively for 
all this. My problem is that when I do a lookup via HAJNDI via HTTPS for a stateless 
session bean from an external VM things work fine, however I get the following 
exception when I access the HAJNDI from within the jboss VM the same way. 

 EXCEPTIONINFO: classname= class javax.naming.ServiceUnavailableException  message= 
Unexpected failure  stacktrace= javax.naming.ServiceUnavailableException: Unexpected 
failure [Root exception is ReflectionException: Invoke failure
Cause: java.lang.NullPointerException]
at 
org.jboss.naming.interceptors.ExceptionInterceptor.invoke(ExceptionInterceptor.java:56)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
at 
org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:55)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
at $Proxy253.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:530)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at com.inphact.common.dac.DacFactory.cacheReportService(DacFactory.java:1677)
at com.inphact.common.dac.DacFactory.getReportService(DacFactory.java:1646)
at 
com.inphact.radweb.application.bricks.mud.ReportImpl.getPrintableReport(ReportImpl.java:374)
at 
com.inphact.radweb.navigation.patientdata.ReportBureaucrat.buildPage(ReportBureaucrat.java:124)
at 
com.inphact.radweb.navigation.patientdata.PatientDataModuleBureaucrat.activateReport(PatientDataModuleBureaucrat.java:189)
at 
com.inphact.radweb.navigation.patientdata.ExamsBureaucrat$ReportEventHandler.processEvent(ExamsBureaucrat.java:262)
at 
com.inphact.radweb.navigation.bureaucracy.Bureaucracy.sendUserEvent(Bureaucracy.java:194)
at 
com.inphact.radweb.navigation.bureaucracy.Bureaucracy.buildResponse(Bureaucracy.java:83)
at 
com.inphact.radweb.navigation.RadwebBureaucracy.buildResponse(RadwebBureaucracy.java:57)
at com.inphact.radweb.servlets.Radweb.buildPage(Radweb.java:202)
at com.inphact.radweb.servlets.Radweb.doPost(Radweb.java:134)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
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.jboss.web.tomcat.tc5.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:80)
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.authenticator.SingleSignOn.invoke(SingleSignOn.java:417)
at 
org.apac

[JBoss-user] [Clustering/JBoss] - Re: Clustered HASingleton How-To

2004-10-27 Thread lokki
Thanks for all of you work deciphering how to make HASingletons work. 


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

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


---
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: Problem with remove() URGENT!!!

2004-10-27 Thread optimusprime
Could someone please help me. I really need help on this

Thanks

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

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


---
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] - WebService Work, Servlet deploys, but can't locate

2004-10-27 Thread cballew


I have a webservice I deployed and can access at 
http://localhost:8080/ws4ee/services/WebServiceSourceService?wsdl and it works like a 
champ.

I deployed a Servlet and it deploys just fine, but I can't figure out how to access it.

in my web.xml I have /servlet/ConfigUpdater

I go to http://localhost/servlet/ConfigUpdater and nada, budkus, not there. I'm not 
figuring this one out, sorry, probably something stupid.

thanks in advance...


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

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


---
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] [Jobs@JBoss] - JBoss Community Manager

2004-10-27 Thread ivelin

Come join a rapidly growing enterprise software and services company and the home of 
Professional Open Source. JBoss, Inc. has immediate opening for Proactive Support 
Specialists to join our team in Atlanta, Georgia or Austin, Texas. This is a 
tremendous opportunity to be a part of a fast-paced, leading edge software company 
that is changing the way Middleware software is developed, sold, and supported. This 
position will report to the Director of Product Development. For consideration, please 
send your resume to: mailto:[EMAIL PROTECTED]

Essential Job Functions:
In this exciting position, you will:
- Become certified in the JBoss product suite.
- Add value to the overall JBoss Development model.
- Work with community contributors to maximize their time. 
- Develop metrics for tracking contributions.
- Help identify high potential contributors and open source projects 

Required Skills and Experience:
- Several years of professional work experience
- Several years of software development experience using Java and J2EE is required
- JBoss experience is preferred
- Strong people skills
- Strong leaderhip skills
- Strong team-building skills
- Ability to work with a geographically distributed team
- MBA or Bachelors Degree in Computer Science or related field is preferred


Equal Opportunity Employer / Drug Free Workplace

For consideration, please send your resume to: mailto:[EMAIL PROTECTED] 


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

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


---
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] [Javassist user questions] - synchronized

2004-10-27 Thread Bill Burke
hey, can javassist support synchronized blocks?  Is it too hard to implement?

Thanks,

Bill

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

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


---
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] - cannot get server to run on boot...

2004-10-27 Thread zambizzi
I'm trying to get jboss to run on startup but I just can't figure out what's going 
wrong...

I can start it manually and it works just fine, however, jboss constantly writes to 
the console so I'm "locked" into it until I shut it down, when it is started manually, 
so I need the startup script to auto-launch and silence it (not familiar enough w/ it 
to know exactly what happens here but it normally would work).

I'm using Gentoo Linux on an x86 athlon-xp machine.

Here's my (bash) shell script (added my own output for testing):


  | depend() {
  | use net
  | }
  | 
  | start() {
  | ebegin "Starting JBoss"
  | if [ -z "$JBOSS_HOME" ]; then
  | eerror "The JBOSS_HOME environment variable is not set."
  | return 1
  | fi
  | if [ ! -d ${SERVER_HOME}/${JBOSS_CONF}/tmp ]; then
  | mkdir ${SERVER_HOME}/${JBOSS_CONF}/tmp
  | chown jboss:jboss ${SERVER_HOME}/${JBOSS_CONF}/tmp
  | echo "DEBUG: temp directory did not exist!"
  | fi
  | cd ${SERVER_HOME}/${JBOSS_CONF}/tmp
  | if [ -z "${SUBIT}" ]; then
  | eval ${CMD_START} >${JBOSS_CONSOLE} 2>&1 &
  | else
  | ${SUBIT} "${CMD_START} >${JBOSS_CONSOLE} 2>&1 &"
  | echo "DEBUG: Jboss console started, should work! "
  | fi
  | eend $?
  | }
  | 
  | stop() {
  | ebegin "Stopping JBoss"
  | if [ -z "$SUBIT" ]; then
  | ${CMD_STOP}
  | else
  | ${SUBIT} "$CMD_STOP"
  | fi
  | eend $?
  | }
  | 

While watching the services start on boot I see ""DEBUG: Jboss console started, should 
work! " of course, but it isn't *really* working...

...my JBOSS_HOME value:


  | /opt/jboss-3.2.6
  | 

I've verified that this is correct, remember I said I could launch run.sh manually 
from the /opt/jboss-3.2.6/bin directory, works great, but not what I need.

When I launch it manually I can see "localhost:8080/jmx-console" without a problem, 
when I let the script launch it on startup, I get an error, connection refused, so I 
know the server hasn't started.  It also appears to start just a *little* too fast, 
like it is immediately shutting down.

If I knew how to get my hands on this output from the console w/o "locking  up" on 
startup, it might help.

The logs are not being written to with the boot script so there is no help there...

Any help would be very much appreciated, thanks!!

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

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


---
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] - EJB Remote interfaces and Caching

2004-10-27 Thread sudhadoesnotexist
Hello,

I am rather new to this, so please excude my ignorance. I am developing an application 
that needs frequent read access to data in a database and infrequent write access. 
Hence I am using entity beans to access this data. For performance reasons, I will be 
using session beans as a wrapper around the entity beans. Now I have a few questions:

1. I dont need a remote interface for my entity beans. If I do not specify the 
ejb-ref, will that suffice? How should my session beans instantiate the entity beans? 
Should the entity beans have ejb-local-ref mappings, and must the session beans use 
JNDI to instantiate the entity beans, or can the session beans directly call the 
constructor of the home interface - new MyEJBHome()?  

2. Can the home interface object be a singleton and simultaneously be used (without 
any synchronization) by multiple session beans?

3. My application is a web application, servicing client requests. Though I can 
instantiate a session bean per request, this would be expensive since I do not want to 
have to refill properties from the entity bean/database for every request, unless 
there has been a change. I would like to share (stateful) session and entity beans 
across client requests (with proper synchronization, of course, so that one bean is 
used by one client at any point of time). How does JBoss manage the session/entity 
bean cache? Should I do application level caching (that sounds rather silly). I am 
using commit option A, btw, for the entity beans.

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

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


---
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] - EJB QL Parsing problem

2004-10-27 Thread derekbotfield
Can anyone point out what must be quite obvious:

This is an error message from the console concerning the failure to
parse a query. What's wrong with the query? Note that there is a CMP
field called 'location'. with a getter and a setter. The problem seems
to be syntactic..?

...
Caused by: org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement

 'SELECT OBJECT(c) FROM ControlLogix AS c WHERE c.location = ?1'; - 

nested throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered 
"c.location" at line 1, column 49.

Was expecting one of:
"NOT" ...
"(" ...
 ...
 ...
"CONCAT" ...
"SUBSTRING" ...
 ...
 ...
 ...
 ...
 ...
"LENGTH" ...
"LOCATE" ...
"ABS" ...
"SQRT" ...
"MOD" ...


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

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


---
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] - Username passed to LoginModule from Web tier

2004-10-27 Thread MLipp
I'm using my own login module since 2.x. One special feature of this module is that 
the principal returned after successful authentication is not the user name. It is a 
special id associated with the user name (yes, this does make sense, actually it is 
common practice: think of Unix, your user id is independant of your login name which 
allows you to change your name [e.g. marry] without having to change the owner of all 
your files afterwards; the same applies here: if a user name changes, I do not want to 
create a new user and copy the role assignments from the "old" to the "new" user).

When upgrading from 3.2.5 to 3.2.6, my module didn't work anymore. I tracked things 
down and found that the result of the name callback issued in my login module now 
depends on the invocation context. When my login module is invoked by the web tier 
(step 1), I get the username as it was entered in the browser's username/password 
prompt. Later, when the web tier (i.e. servlet) tries to invoke ejbs' methods (step 
2), the ejb container invokes my login module again. But now I get the name of the 
principal returned by my login module during step 1, not the user name entered by the 
user in the authentication dialog. Before 3.2.6, I got the user name here as well.

Can anybody tell me if I should submit this as bug or consider it a feature (though I 
cannot really see why)?

 - Michael


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

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


---
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: NamingContext and HA discovery

2004-10-27 Thread kalyan120
I **guess** this feature is provided to faciliate the creation of NamingContext in 
clustering scenarios. Looks like HA JNDI is used as the JNDI provider in clusters and 
hence, even if you do not provide PROVIDER_URL value, it will try to obtain a 
NamingContext, if it could find any server in the cluster. So, I again **guess** that 
this would be useful in a server instance to server instance call, but not from a 
client app to server instance call.

Can someone validate my understanding?

Thanks,
Kalyan.

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

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


---
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] - Using UserTransaction from a Mbean doesn't commit against XA

2004-10-27 Thread alexOscar
I am not sure if I post this to JMX forum or here, hoping this is the right place. 
I've defined an Xa Oracle Datasource and I'm using UserTransaction to commit, but it 
is not happening (I am not getting any error or something) Here's the simplified code 
below (the actual code involves a distributed transaction, that's why I need to use 
UserTransaction, If I change the ut.commit() below with the m_db_conn.commit(); it 
would commit, so please don't suggest that)

  try {
  |   InitialContext iniCtx = new InitialContext();
  |   DataSource ds = (DataSource) iniCtx.lookup("java:/OracleDS/XA_TX/MyDB");
  |   UserTransaction ut = (UserTransaction) iniCtx.lookup("UserTransaction");
  |   Connection m_db_conn = ds.getConnection();
  |   m_db_conn.setAutoCommit(false);
  |   String storedProc = "begin insert into test values 
(to_char(sysdate,'S')) ; end;";  
  |   CallableStatement update_stmt = m_db_conn.prepareCall(storedProc);
  |   ut.begin();
  |   update_stmt.execute();
  |   ut.commit();
  |   System.out.println("{{{Insert DB");   
  |   } catch (Exception e) { System.out.println("Error testUT "+ e.getMessage()); 
}

And here's the -ds.xml file


  |   
  | OracleDS/XA_TX/MyDB
  | false  
  | jdbc:oracle:thin:@myacme.com:1521:orcl
  | true
  | 
oracle.jdbc.xa.client.OracleXADataSource
  | scott
  | tiger
  | 
  | 
  | 
  | 
  | 
  | 
  |   
  | 
  | 



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

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


---
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: Image Retrieved from DB, doeesnt get displayed correctly

2004-10-27 Thread craigdberry
Rather than embedding a reference to the image data, you need to return a properly 
formed response containing the correct http headers, then the image data.  Here's an 
excerpted example from one of my servlets that does this:


  | ImageDTO imageValue =
  | ResourceFacadeDelegate.getInstance().getImageDTO(imageKey);
  | 
  | response.setContentType(imageValue.getMimeType());
  | response.getOutputStream().write(imageValue.getImageData());
  | 

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

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


---
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] - CachedRowSet.getBlob() throws Datatype mismatch while retrie

2004-10-27 Thread robinbajaj

My Servlet code  is using a CachedRowSet to get a blob datatype from mySQL4 database  
using getBlob() function,from the table 
uploads(uploadid int(10),filename varchar(20),BINARYFILE BLOB);

using the following code.
  
CachedRowSet rs;
rs =new CachedRowSetImpl();
rs.setCommand("SELECT * FROM uploads2");
rs.execute(con);

while(rs.next()){
System.out.println("hi there");
String s=rs.getString("filename");  
//executes successfully
   
java.sql.Blob image=
rs.getBlob("BINARYFILE");
 //throws exception
 }  
catch(java.sql.SQLException s){
   System.out.println("SQLException:"+s.getMessage);
 }

-jboss output console
12:04:15,942 INFO  [STDOUT] hi there
12:04:15,942 INFO  [STDOUT] Type is :-4
12:04:15,942 INFO  [STDOUT] SQLException: Data Type Mismatch
12:04:15,942 INFO  [STDOUT] java.sql.SQLException: Data Type Mismatch
12:04:15,942 INFO  [STDOUT] at com.sun.rowset.CachedRowSetImpl.getBlob(Unknown 
Source)
12:04:15,942 INFO  [STDOUT] at com.sun.rowset.CachedRowSetImpl.getBlob(Unknown 
Source)
12:04:15,942 INFO  [STDOUT] at 
dev.servlets.AccessTimerServlet.doPost(AccessTimerServlet.java:85)

---
kindly help me .
If I use simple ResultSet instead of CachedRowSet ,
then though it works but then ResultSets are not Serializable.(i.e the only reason i 
want to use CachedRowSet
beacuase they are Serializable)

Please help.

regards
robin 
--

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

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


---
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] - Image Retrieved from DB, doeesnt get displayed correctly in

2004-10-27 Thread robinbajaj
Summary ::
Why is my browser not showing my constructed image
Retrieved image from DB , constructed using ImageIcon 

Details

My Servlet code is retrieving image using resultset.getBlob() method
and then constructs an ImageIcon from it using the following code.
But when i display it usinghtml tag
the image doesnt get displayed and the browser shows an empty placeholder instead of 
image.?
Please help !!!
(P.s: rest of the printed parameters show correct values confirming an image is 
constructed correctly , but i dont know how to display it in the browser.)

while(rs.next()){
System.out.println("hi there");
s=rs.getString("filename");

image=rs.getBlob(3);

   System.out.println("filename "+s);
   System.out.println("image"+image);
   
   iLength = (int)image.length();
   
   System.out.println("ilength="+iLength);

ii = new ImageIcon(image.getBytes( 1, iLength ));
System.out.println("sucessflag");

out.println("here's the icon");
out.println("");


  }

///output on the  jboss application server console for the 


System.out.println() statements
12:51:34,504 INFO  [STDOUT] hi there
12:51:34,504 INFO  [STDOUT] filename jchatbox.gif
12:51:34,504 INFO  [STDOUT] [EMAIL PROTECTED]
12:51:34,504 INFO  [STDOUT] ilength=5779
12:51:34,624 INFO  [STDOUT] sucessflag



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

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


---
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: Why an ejbLoad() call for each get* method?

2004-10-27 Thread ricardovm
"dannyb23" wrote : You probably need to update to commit option A etc...
  | in the default commit option, you application server does not assume he is the 
only one touching the database therefore with every "get" you perform your app server 
refreshes itself from the database in case anyone else updated the database.

How do I do this in JBoss?

Thank you,

Ricardo

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

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


---
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: Why an ejbLoad() call for each get* method?

2004-10-27 Thread dannyb23
You probably need to update to commit option A etc...
in the default commit option, you application server does not assume he is the only 
one touching the database therefore with every "get" you perform your app server 
refreshes itself from the database in case anyone else updated the database.

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

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


---
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: Manually emtying the CMP beans cache

2004-10-27 Thread nickman
Your question is really more an issue of understanding EJB and not JBoss specifically. 

When using commit option A, the container assumes exclusive "ownership" of the 
database so it can cache the data very aggresively. However, at no time does the cache 
contain incomplete writes to the database outside the scope of a transaction. The data 
in the cache is synchronized with the database and as such, the container can serve 
data to requesting clients without re-reading from the database.

The flush() command simply invalidates the cache so when a request for that data comes 
in, the container will re-request the data from the database.

The documentation makes this fairly clear. See this chapter of the on-line docs:  
http://docs.jboss.org/admin-devel/Chap11.html

Specifically reference Commit Options here: 
http://docs.jboss.org/admin-devel/Chap11.html#0_pgfId-926545

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

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


---
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: SSL via HTTPS Standardport 443 / Redirect to 8443

2004-10-27 Thread begemotic
Hi, 
currently I'm using SuSe 8.2, but I will switch to Debian30. Because I'm new to 
managing the firewall with iptables (I use the SuSe yast tool), it would be nice to 
have an initial help to build the filter tables for NAT.  

Regards,

Roland 

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

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


---
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 ANT tasks?

2004-10-27 Thread ronchalant
Are there any ant tasks similar to those available for Tomcat to restart a context 
within JBoss?

If not, how can I configure the Tomcat bundled with JBoss to be able to use the ant 
tasks for it?  You need to deploy the Tomcat Administration Tool to the installation, 
but I'm unsure of how to do this correctly under JBoss.

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

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


---
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: SSL via HTTPS Standardport 443 / Redirect to 8443

2004-10-27 Thread nehring
What operating system are you running?   With Linux I use iptables to redirect port 
443 to 8443 and run JBoss as a non-privileged user.This involves setting up 
iptables for destination NAT.

r,
Lance


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

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


---
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] - SSL via HTTPS Standardport 443 / Redirect to 8443

2004-10-27 Thread begemotic
How can I configure JBoss 3.2.5, so I can access the SSL configured Tomcat container 
via Port 443, and have not to run JBoss as a system user with a userid below 1024? I 
must use the standard HTTPS port 443, because my external JBoss server is outside the 
company firewall and will run my browser from inside and outside this firewall. As a 
workaround I tried to use SSH local forwarding at the JBoss system with ssh -L 
443:localhost:8443 localhost, but this doesn't work.
How can I bind the privileged system port 443 to a non privileged port above 1024 
(e.g. 8443)? 
The local firewall at the JBoss system allows only port 443 and 8443.

Regards,

Roland

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

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


---
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] - Duke's Bank: EJB security-domain doesn't work, gives Authent

2004-10-27 Thread alchemista
I tried enabling security for the Duke's Bank application as mentioned in the Getting 
Started guide.

When I added the security-domain element for the jboss-web.xml file for the web 
application, the login does work.

However, the Getting Started guide also says to add a security-domain element to the 
jboss.xml file in the EJB package. However, if I add the security-domain element 
there, I then get an error after logging into the web app:

SecurityException - Authentication error: principal=null

on the CustomerBean EJB.

Why isn't the EJB-level security working? It's the same exact line as the web app 
security, using the dukesbank security domain.

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

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


---
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: Problems under heavy production load

2004-10-27 Thread tsnoke
Hi-

What this issue address in 3.2.6? We are running JBoss 3.2.6 under heavy load with 
1.5GB for the JVM and finding that the JVM heap keeps growing and we are having to 
reboot the servers daily to keep from having JBoss generate out-of-memory errors.

We have set the acccept count to 10 and the max processes to 300, our model has the 
average user spending 3 minutes to access a series of 12 web pages without heavy 
graphics (pulling a total of 45kB of data). The load is distributed among 3 machines, 
averaging 5% CPU Utilization and the JVM heap is growing 50MB every hour while 300-400 
users are completing the process every minute.

Where can we start to look for answers?

thanks in advance,

Timur

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

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


---
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: how to use singleton

2004-10-27 Thread monocongo
"monocongo" wrote : Once I finally have everything worked out I will post a forum 
message or Wiki entry outlining all of the steps I needed to take to get this working. 
 Hopefully it will help other developers who want to use Singletons in a clustered 
JBoss application avoid the headaches I've gone through.
  | 

This is now available under the title "Clustered HASingleton How-To".


--James

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

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


---
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] - Why an ejbLoad() call for each get* method?

2004-10-27 Thread ricardovm
I'm writing an entity bean called from a session bean. For tests only, I do:

ctx.getUserTransaction().begin();
TestLocal t = home.findByPrimaryKey(id);

String str_field = t.getStringField();
Integer int_field = t.getIntegerField();

t.setStringField("New Value");
t.setIntegerField(new Integer(123));

ctx.getUserTransaction().commit();

And I see in the logs two calls to ejbLoad() and one to ejbStore().

In my application, I need to do 70 get* calls (for different table fields), and these 
calls to ejbLoad() are slowing my application.

Can anyone help me? 

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

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


---
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] - Why an ejbLoad() call for each get* method?

2004-10-27 Thread ricardovm
I'm writing an entity bean called from a session bean. For teste only, I do:

   ctx.getUserTransaction().begin();
   TestLocal t = home.findByPrimaryKey(id);

   String str_field = t.getStringField();
   Integer int_field = t.getIntegerField();

   t.setStringField("New Value");
   t.setIntegerField(new Integer(123));

   ctx.getUserTransaction().commit();

And I see in the logs two calls to ejbLoad() and one to ejbStore().

In my application, I need to do 70 get* calls (for different table fields), and these 
calls to ejbLoad() are slowing my application.

Can anyone help me?


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

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


---
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] - jBoss 4.0 charpter 5/ Web services deployment

2004-10-27 Thread wy_zhu
I followed the example in the book. However, I got the following exception when 
running deploy-ws command. What did go wrong in parsing Webservices.xml?

11:19:18,824 ERROR [ObjectModelBuilder] Failed to invoke method newChild
java.lang.NoClassDefFoundError: javax/wsdl/WSDLException
at org.jboss.webservice.metadata.WebservicesFactory.newChild(Webservice
Factory.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.xml.binding.ObjectModelBuilder.invokeFactory(ObjectModelBu
lder.java:346)
at org.jboss.xml.binding.ObjectModelBuilder.newChild(ObjectModelBuilder
java:246)
at org.jboss.xml.binding.ObjectModelBuilder.startElement(ObjectModelBui
der.java:166)
at org.jboss.xml.binding.Content$StartElement.read(Content.java:295)
at org.jboss.xml.binding.Content.build(Content.java:187)
at org.jboss.xml.binding.ObjectModelBuilder.build(ObjectModelBuilder.ja
a:87)
at org.jboss.xml.binding.Unmarshaller.unmarshal(Unmarshaller.java:156)
at org.jboss.xml.binding.Unmarshaller.unmarshal(Unmarshaller.java:140)
at org.jboss.webservice.ServiceDeployer.parseWebservicesXML(ServiceDepl
yer.java:278)
at org.jboss.webservice.ServiceDeployer.createWebservice(ServiceDeploye
.java:146)
at org.jboss.webservice.ServiceDeployer.handleNotification(ServiceDeplo
er.java:103)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.notification.NotificationListenerProxy.invoke(Notificat
onListenerProxy.java:138)
at $Proxy21.handleNotification(Unknown Source)
at javax.management.NotificationBroadcasterSupport.handleNotification(N
tificationBroadcasterSupport.java:98)
at javax.management.NotificationBroadcasterSupport.sendNotification(Not
ficationBroadcasterSupport.java:83)
at org.jboss.deployment.SubDeployerSupport.create(SubDeployerSupport.ja
a:163)
at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:591)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:817)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:673)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatc
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:230)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy7.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeployme
tScanner.java:304)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeployment
canner.java:478)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread
doScan(AbstractDeploymentScanner.java:201)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread
loop(AbstractDeploymentScanner.java:212)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread
run(AbstractDeploymentScanner.java:191)
11:19:18,844 ERROR [ServiceDeployer] Cannot startup webservice for: bankws-ejb.
ar
org.jboss.deployment.DeploymentException: Cannot obtain webservices meta data;
 nested throwable: (java.lang.IllegalStateException: Failed to invoke method ne
Child)
at org.jboss.webservice.ServiceDeployer.parseWebservicesXML(ServiceDepl
yer.java:287)
at org.jboss.webservice.ServiceDeployer.createWebservice(ServiceDeploye
.java:146)
at org.jboss.webservice.ServiceDeployer.handleNotification(ServiceDeplo
er.java:103)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.notification.NotificationListenerProxy.invoke(Notificat
onListenerProxy.java:138)
at $Proxy21.handleNotification(Unknown Source)
at javax.management.NotificationBroadcasterSupport.handleNotification(N
tificationBroadcasterSupport.java:98)
at jav

[JBoss-user] [Nukes User] - How to Get Rid of "Modules" Title on Left menu?

2004-10-27 Thread mchinn
Is there a way within the Gui or JXM console to get rid of the "Modules" title/label 
on the default menu? I want the default user menu items to slam up against the Home 
link...

Matt

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

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


---
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] - How To Restrict Users From Viewing Certain Items in Download

2004-10-27 Thread mchinn
I have a site with A LOT of groups, each wanting their own download view for their 
items. How can I either:

-Restrict permissions to certain categories within the main downloads module screen.

or

-Add a downloads menu item for each group that will only list thier downloads?

Matt

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

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


---
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: Is it safe to update xalan, xercesImpl and xml-apis jar

2004-10-27 Thread raja05
One thing you can try (if you are using jboss-3.2.5 or above) is set the isolated 
property on EARDeployer to true so that your EAR has a scoped classloader. If you are 
using a earlier version, then you can always set scoped class loading for your ear 
using jboss-app.xml. Check the jboss docs for Scoped EAR Loading.



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

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


---
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] - startDatabaseManager failing

2004-10-27 Thread TechWizard
I'm working my way through the getting started guide, and have created the DB, and 
data. I bring up the jmx-console and go to the Hypersonic service. But, when I invoke 
startDatabaseManager the console displays  the following error:

12:18:59,979 ERROR [STDERR] java.lang.NoClassDefFoundError
12:18:59,983 ERROR [STDERR] at java.lang.Class.forName0(Native Method)
12:18:59,984 ERROR [STDERR] at java.lang.Class.forName(Class.java:141)
12:18:59,984 ERROR [STDERR] at 
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
12:18:59,985 ERROR [STDERR] at sun.awt.motif.MToolkit.(MToolkit.java:81)
12:19:00,021 ERROR [STDERR] at java.lang.Class.forName0(Native Method)
12:19:00,023 ERROR [STDERR] at java.lang.Class.forName(Class.java:141)
12:19:00,026 ERROR [STDERR] at java.awt.Toolkit$2.run(Toolkit.java:748)
12:19:00,041 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native 
Method)
12:19:00,056 ERROR [STDERR] at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:739)
12:19:00,057 ERROR [STDERR] at 
java.awt.SystemColor.updateSystemColors(SystemColor.java:417)
12:19:00,058 ERROR [STDERR] at java.awt.SystemColor.(SystemColor.java:409)
12:19:00,059 ERROR [STDERR] at org.hsqldb.util.CommonSwing.setDefaultColor(Unknown 
Source)
12:19:00,059 ERROR [STDERR] at org.hsqldb.util.DatabaseManagerSwing.main(Unknown 
Source)
12:19:00,061 ERROR [STDERR] at org.hsqldb.util.DatabaseManagerSwing.main(Unknown 
Source)
12:19:00,061 ERROR [STDERR] at 
org.jboss.jdbc.HypersonicDatabase$1.run(HypersonicDatabase.java:207)

And the HSQL database manager is not launched.

What is causing this, and how do I correct the problem? 

I'm running JBoss 3.2.3 on a Linux system with Sun JDK 1.4.2_06.

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

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


---
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: afterCompletion() & database connection closing

2004-10-27 Thread natebowler
This is the exact same problem I am having, but this thread died without an 
explanation of the fix.

What was the trick here? How did you modify the TopLink JTSSynchronizationListener to 
play nice with JBoss?

Nate

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

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


---
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: TransactionManager - error in delist; already committed

2004-10-27 Thread natebowler
Could somebody please post what exactly was fixed here? I'm using 3.2.6 final and I'm 
getting the same error I've always been getting trying to integrate TopLink using JTS 
and JBoss 3.2.6.

The problem is this: In the afterCompletion() event, TopLink closes the DB connections 
(returns them to the pool). Every time this happens, I get a stack trace with the 
message:

org.jboss.resource.JBossResourceException: Error in delist!; - nested throwable: 
(java.lang.IllegalStateException: Already committed.)
at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.rethrowAsResourceException(BaseConnectionManager2.java:113)
at 
org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.delist(TxConnectionManager.java:489)
at 
org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.connectionClosed(TxConnectionManager.java:523)
at 
org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.closeHandle(BaseWrapperManagedConnection.java:320)
at 
org.jboss.resource.adapter.jdbc.WrappedConnection.close(WrappedConnection.java:123)
at 
oracle.toplink.internal.databaseaccess.DatabaseAccessor.closeDatasourceConnection(DatabaseAccessor.java:326)


If I remove the TopLink call that closes the connection 
(UnitOfWork.afterTransaction(boolean, boolean), I get an error in the 
beforeCompletion() callback that I didn't close the connection.

I can't win here!

Now, TopLink allows you to write your own JTS hook, and this is what I'm doing. 
TopLink comes with JTS listeners for many platforms be default, but JBoss is not one. 
I would like to create one that will work, but I have no idea how to make JBoss happy.

Does anyone have any ideas how I can integrate TopLink JTS support into JBoss? If I 
can't get an answer here, where can I go?

Nate

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

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


---
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: Can not publish a MapMessage

2004-10-27 Thread gmand
Anyone? Ideas?

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

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


---
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: JBoss3.2.6-JNDI Over https not working

2004-10-27 Thread ss_jain
Here is the exception I am getting, please let me know how to fix this as soon as you 
can-

Exception in thread "main" javax.naming.NamingException: Failed to retrieve Nami
ng interface [Root exception is java.io.IOException]
at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamin
gContextFactory.java:69)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
62)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243
)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.(InitialContext.java:195)
at TopicSendClient.setupPubSub(Unknown Source)
at TopicSendClient.sendAsync(Unknown Source)
at TopicSendClient.main(Unknown Source)
Caused by: java.io.IOException
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:593)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Dash
oA6275)
at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingC
ontextFactory.java:118)
at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamin
gContextFactory.java:65)
... 7 more
Caused by: java.io.IOException: HTTPS hostname wrong:  should be 
at sun.net.www.protocol.https.HttpsClient.b(DashoA6275)
at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA6275)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
(DashoA6275)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:617)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLCon
nection.java:1451)
at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:476)
at java.net.URLConnection.getContentLength(URLConnection.java:371)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentLength(Da
shoA6275)
at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingC
ontextFactory.java:113)
... 8 more


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

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


---
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] - Re: Error after login on Duke´s Bank

2004-10-27 Thread alchemista
I'm having the same problem. I added the security domain information, and then login 
works (it rejects if I've used a bad password, and lets me in if I use a correct 
password).

However, once I login with the correct password, I get the same error that the poster 
mentioned.

The stacktrace from the server says:

"Authentication exception, principal=null" which causes a SecurityException.

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

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


---
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: Manually emtying the CMP beans cache

2004-10-27 Thread bobjones
Will flush() write the contents of the cache to the data store (as the name suggests), 
or simply invalidate the contents of the cache?
If running in commit option A, perhaps flush() knows that it is in control of the DB 
and therefore knows that it is in sync with the DB and there would be no need to flush 
its contents to the DB. If that's the case, then maybe it doesn't bother emptying the 
contents of the cache either?

This is all guess work as the documentation available for JBoss is dreadful and the 
forums have little on the topic. I'm afraid that the jboss code may be the best place 
to find answers.

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

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


---
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 Client : How do they work?

2004-10-27 Thread alchemista
I went through the JBoss Getting Started tutorial, and was wondering how J2EE 
Application Clients worked with JBoss.

I see that in the Duke's Bank example, the Ant target that launches run-client simply 
makes a normal Java call to the application client main class. However, there's no 
launch of a client container that I can see.  I thought the container was required for 
a J2EE application client?

The only other thing I see is that the application client CLASSPATH is set to include 
the JBOSS client JARs. Does something in there override the normal JDK jars in order 
to make it behave as a J2EE app client? If not, how is JBoss mapping the application 
client's coded references to the real JNDI references?

I've always been slightly confused about what makes a real J2EE Application Client, so 
any info would help.

Thanks

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

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


---
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] - Clustered HASingleton How-To

2004-10-27 Thread monocongo
Here is an outline of the steps I took in order to use HASingletons in a clustered 
JBoss application.  I hope it will be helpful to others who try to use HASingletons 
for the first time.  The below is based on the approach explained by Ivelin Ivanov in 
the ONJava article found here: 
http://www.onjava.com/pub/a/onjava/2003/08/20/jboss_clustering.html.  Additional 
information is provided in order to explain the steps necessary for accessing the 
HASingleton's operations from other classes.  

Bear in mind that a JBoss HASingleton is not a true Singleton per se in that you won't 
get a reference to it and call methods on it like you would with a normal Singleton.  
Instead it is a JMX service (MBean) with managed operations that you invoke somewhat 
indirectly.  Once I finally understood this the whole approach made a whole lot more 
sense to me.

The below is working for me using JBoss 3.2.6.


First you create the HASingleton MBean and configure it to be controlled by a 
HASingletonController.


1.  Create an MBean which has lifecycle methods for use by JBoss for initialization 
and shutdown of the service.  Name them whatever you like, I used the names 
startSingleton() and stopSingleton() as in Ivanov's example.  Other methods which 
return values shoud return Objects instead of primitives, due to the mechanism used 
for invoking them, as we'll see later.  Below is an simple example HASingleton MBean 
interface and class:


  | //   ExampleMBean interface  
--
  | package com.example.mbean;
  | 
  | import org.jboss.system.ServiceMBean;
  | 
  | public interface ExampleMBean
  | extends ServiceMBean
  | {
  | 
//===
  | // Managed MBean operations which control the lifecycle of the HASingleton 
service
  | 
//===
  | 
  | /**
  |  * Starts the service.
  |  */
  | public void startSingleton ();
  | 
  | 
  | /**
  |  * Stops the service.
  |  */
  | public void stopSingleton ();
  | 
  | 
  | 
//
  | // Managed MBean operations
  | 
//
  | 
  | /**
  |  * Determine whether or not a user ID is present in the collection.
  |  * 
  |  * @param userId the user ID to check
  |  * @return whether or not the specified user ID is present in the collection
  |  */
  | public Boolean isUserIdPresent (String userId);
  | 
  | 
  | /**
  |  * Add a user ID to the collection.
  |  * 
  |  * @param userId the user ID to add to the collection
  |  */
  | public void addUserId (String userId);
  | 
  | 
  | /**
  |  * Remove a user ID from the collection.
  |  * 
  |  * @param userId the user ID to remove from the collection
  |  */
  | public void removeUserId (String userId);
  | }
  | 
  | 
  | 
  | //   Example MBean class 
--
  | 
  | package com.example.mbean;
  | 
  | import java.util.Vector;
  | import org.jboss.system.ServiceMBeanSupport;
  | 
  | 
  | public class Example
  | extends ServiceMBeanSupport 
  | implements ExampleMBean
  | {
  | // collection of user IDs
  | private Vector m_userIds;
  | 
  | 
//==
  | // Managed MBean operations which control the lifecycle of the HASingleton 
service
  | 
//==   
  | 
  | /**
  |  * Starts the service.
  |  */
  | public void startSingleton ()
  | {}
  | 
  | /**
  |  * Stops the service.
  |  */
  | public void stopSingleton ()
  | {}
  | 
  |
  | /**
  |  * Constructor.
  |  */
  | public Example ()
  | {
  | // create the collection of user IDs
  | m_userIds = new Vector();
  | }
  | 
  | 
  | //
  | // Managed MBean operations
  | //
  | 
  | /**
  |  * Determine whether or not a user ID is present in the collection.
  |  * 
  |  * @param userId the user ID to check
  |  * @return whether or not the specified user ID is present in the collection
  |  */
  | public Boolean isUserIdPresent (String userId)
  | {
  | return new Boolean(m_userIds.contains(userId));
  | }
  | 
  | 
  | /**
  |  * Add a user ID to the collection.
  |  * 
  |  * @param userId t

[JBoss-user] [Persistence & CMP/JBoss] - Re: could not instantiate CacheProvider: net.sf.hibernate.ca

2004-10-27 Thread Furykid
... look inside the ehcache.jar file itself !

regards
furykid

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

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


---
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: apache commons-logging stopped working under jboss 4.0

2004-10-27 Thread mboulatian
Hi,

I figured out myself. Here is the explanation if someone gets the same problem. There 
is a new package under deploy directory called ebxmlrr-service.sar. Apparently, this 
package contains commons-logging.properties file that specifies NoOpLog as an 
implementation for the logger that stops all the logging from jakarta commons. The 
solution is to create commons-logging.properties file and drop it under the 
server/[server name]/lib directory with the following contents:

org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger

This is, of course, if you want to use log4j as an underlying mechanism.
Thanks,
Misak

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

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


---
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: could not instantiate CacheProvider: net.sf.hibernate.ca

2004-10-27 Thread beyarecords
I have changed the cache provider name to :

net.sf.ehcache.hibernate.Provider

but am now getting the following message:

[Configurator] No configuration found. Configuring ehcache from ehcache-failsafe.xml 
found in the classpath: 
jar:file:/Library/jboss-3.2.6/server/default/lib/ehcache-1.0.jar!/ehcache-failsafe.xml

When I go to /Library/jboss-3.2.6/server/default/lib/ there is no directory:

ehcache-1.0.jar!/ehcache-failsafe.xml

Is this a bug?


regards



Andrew

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

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


---
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] - NamingContext and HA discovery

2004-10-27 Thread Frito
Hi,

today I was a bit surprised when I tried to lookup an object with the url 
jnp:/localhost:1099 finding an object with no JBoss running on my computer.
Looking into the sources of NamingContext, I found the jnp.disableDiscovery property 
and the "feature" of this NamingContext to do some broadcasting over the network, 
finding a HA naming service and returning the wanted object proxy.
Is this a JBoss feature or should every InitialContext behave like this? 
I would say this is a bug. The default should be to return null. If I really want to 
do some magic things, I would like to set a property.
What do you think? 

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

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


---
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] - JBoss 4.0 + HAR archive = classloading hell.

2004-10-27 Thread destr0
I'm trying to deploy a har archive to jboss.  When the session factory is bieng built, 
particularly when the mapping files are bieng mapped to classes, the class that 
corresponds to a found hmb.xml file is reported as not bieng found.  These classes are 
most definitely in the archive, both the hbm.xml files and the .class files are 
wrapped up in the same package structure.

I posted this thread on hibernates forums as well:



Here's my har mbean descriptor:


  | 
  | 
  | jboss.har:service=HARDeployer
  | jboss.jca:service=LocalTxCM,name=jdbc/DBONewDS
  | java:/hibernate/DBOFactory
  | java:/jdbc/DBONewDS
  | net.sf.hibernate.dialect.MySQLDialect
  | net.sf.hibernate.cache.HashtableCacheProvider
  | 
  | 

here's the exception I'm getting:

10:41:49,515 INFO  [Environment] Hibernate 2.1.5
  | 10:41:49,515 INFO  [Environment] hibernate.properties not found
  | 10:41:49,531 INFO  [Environment] using CGLIB reflection optimizer
  | 10:41:49,546 INFO  [Configuration] Searching for mapping documents in jar: 
dbohibernate.har
  | 10:41:49,546 INFO  [Configuration] Found mapping documents in jar: 
com/smokinhotsnakes/hibernate/dbo/Attribute.hbm.xml
  | 10:41:49,828 ERROR [Configuration] Could not compile the mapping document
  | net.sf.hibernate.MappingException: persistent class 
[com.smokinhotsnakes.hibernate.dbo.Attribute] not found
  | at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:84)
  | at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:221)
  | at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1253)
  | at net.sf.hibernate.cfg.Configuration.add(Configuration.java:249)
  | at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:285)
  | at net.sf.hibernate.cfg.Configuration.addJar(Configuration.java:393)
  | at org.jboss.hibernate.jmx.Hibernate.buildSessionFactory(Hibernate.java:467)
  | at org.jboss.hibernate.jmx.Hibernate.startService(Hibernate.java:444)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
  | at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
  | at $Proxy0.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:416)
  | at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.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.start(Unknown Source)
  | at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
  | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:935)
  | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:927)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:746)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
  | at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  | at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  | at 
org.jboss.mx.server.AbstractMBeanInvok

[JBoss-user] [Security & JAAS/JBoss] - Re: Principal=null.... please help me

2004-10-27 Thread craig1980
Hi again.. well i have changed my servlet code; now it's this one:

import java.lang.reflect.InvocationTargetException;
  | import java.lang.reflect.Method;
  | import java.security.PrivilegedAction;
  | import java.security.PrivilegedActionException;
  | import java.security.PrivilegedExceptionAction;
  | import java.security.Principal;
  | 
  | import java.util.Set;
  | import java.util.Iterator;
  | 
  | import javax.security.auth.Subject;
  | import javax.security.auth.callback.Callback;
  | import javax.security.auth.callback.CallbackHandler;
  | import javax.security.auth.callback.NameCallback;
  | import javax.security.auth.callback.PasswordCallback;
  | import javax.security.auth.callback.TextOutputCallback;
  | import javax.security.auth.callback.UnsupportedCallbackException;
  | import javax.security.auth.login.LoginContext;
  | import javax.security.auth.login.LoginException;
  | import javax.servlet.Filter;
  | import javax.servlet.FilterChain;
  | import javax.servlet.FilterConfig;
  | import javax.servlet.ServletException;
  | import javax.servlet.ServletRequest;
  | import javax.servlet.ServletResponse;
  | import javax.servlet.http.HttpServletRequest;
  | import javax.servlet.http.HttpServletResponse;
  | import javax.servlet.http.HttpServlet;
  | import javax.servlet.http.HttpSession;
  | 
  | import java.io.IOException;
  | 
  | public class Dispatcher extends HttpServlet {
  | 
  | /** The WLS security class. Indicates if WLS security is used. */
  | private Class wlsSec = null;
  | 
  | /** The context used for the login and logout operations */
  | private LoginContext loginContext;
  | private static final org.apache.commons.logging.Log logger
  | = org.apache.commons.logging.LogFactory.getLog
  | (Dispatcher.class);
  | 
  | private String applicationPolicy = "client-login";
  | 
  | //Initialize global variables
  | public void init() throws ServletException {
  | }
  | 
  | //Process the HTTP Get request
  | public void doGet(HttpServletRequest request, HttpServletResponse response) 
throws
  | ServletException, IOException {
  | doPost( request, response );
  | }
  | 
  | //Process the HTTP Post request
  | public void doPost(HttpServletRequest request, HttpServletResponse response) 
throws
  | ServletException, IOException {
  | 
  | String username = request.getParameter( "username" );
  | String password = request.getParameter( "password" );
  | System.out.println( "Tento login con username: ["+ username+ "] e 
password: ["+password+"]" + " Il principal à nullo? "+ ( request.getUserPrincipal() ) 
);
  | request.getRequestDispatcher( "/processDef.jsp" ).forward( request, 
response );
  | //response.sendRedirect( "processDef.jsp" );
  |
  | }
  | 
  | //Clean up resources
  | public void destroy() {
  | }
  | }

While my filter code is:

import java.io.IOException;
  | 
  | import java.util.Set;
  | import java.util.Iterator;
  | import java.util.Enumeration;
  | 
  | import java.lang.reflect.InvocationTargetException;
  | import java.lang.reflect.Method;
  | 
  | import java.security.PrivilegedAction;
  | import java.security.PrivilegedActionException;
  | import java.security.PrivilegedExceptionAction;
  | import java.security.Principal;
  | 
  | 
  | import javax.security.auth.Subject;
  | import javax.security.auth.callback.Callback;
  | import javax.security.auth.callback.CallbackHandler;
  | import javax.security.auth.callback.NameCallback;
  | import javax.security.auth.callback.PasswordCallback;
  | import javax.security.auth.callback.TextOutputCallback;
  | import javax.security.auth.callback.UnsupportedCallbackException;
  | import javax.security.auth.login.LoginContext;
  | import javax.security.auth.login.LoginException;
  | 
  | import javax.servlet.Filter;
  | import javax.servlet.FilterChain;
  | import javax.servlet.FilterConfig;
  | import javax.servlet.ServletException;
  | import javax.servlet.ServletRequest;
  | import javax.servlet.ServletResponse;
  | import javax.servlet.http.HttpServletRequest;
  | 
  | import org.jboss.security.SimplePrincipal;
  | 
  | import de.danet.an.workflow.api.WorkflowServiceFactory;
  | import de.danet.an.workflow.api.WorkflowService;
  | 
  | public class LoginFilter implements Filter {
  | 
  | private String applicationPolicy = null;
  | private static final org.apache.commons.logging.Log logger
  | = org.apache.commons.logging.LogFactory.getLog
  |   (LoginFilter.class);
  | 
  | /**
  |  * Simple login context for authentication.
  |  */
  | private static class LoginFilterLoginContext extends LoginContext {
  | 
  | private static class CBH implements CallbackHandler {
  | private String userName = null;
  | private String password = null;
  | 
  | 

[JBoss-user] [Security & JAAS/JBoss] - Re: Does security work on jboss 4?

2004-10-27 Thread p_nevilleuk
BTW: The same project works in 3.2.5, so I would love to hear from anyone with similar 
experience.

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

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


---
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: TransactionRolledBackException, IllegalStateException, J

2004-10-27 Thread ivanlc
Hi all,

error is due to a compilation of EJB-QL sentence.
There must be a good reason why it doesn't compile
but I can't see it (yet).


2004-10-27 14:23:21,484 ERROR [org.jboss.ejb.EntityContainer] Starting failed 
jboss.j2ee:jndiName=pdmV1-I1.EDestinLocalHome,service=EJB
org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 'SELECT 
OBJECT(o) FROM ET01 o WHERE o.programa = ?1 AND o.fDesde = ?2 AND o.fHasta = ?3 AND 
o.tipoHab = ?4 AND o.regAlimento = ?5'; - nested throwable: 
(org.jboss.ejb.plugins.cmp.ejbql.UnknownPathException: Unknown terminal field: at line 
1, column 63.  Encountered: "fDesde" after: "o.")
   at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.(JDBCEJBQLQuery.java:52)
   at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createEJBQLQuery(JDBCCommandFactory.java:60)
 

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

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


---
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: Do I have to close QueueSession

2004-10-27 Thread adamrice32
Hi Adrian,

I was experiencing something similar, where I was getting a SocketException after 
pumping a bunch of messages onto a queue.  I added code to close the session and then 
close the connection, but I still see a single EOFException when the client shuts 
down.  Any thoughts?

Thanks,
Adam Rice

"[EMAIL PROTECTED]" wrote : That is a bug in the JMS adapter which I will be fixing 
for 3.2.4
  | If you don't close the session, you get a "Do your own housekeeping" warning
  | and jboss closes it for you.
  | 
  | Regards,
  | Adrian

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

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


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

2004-10-27 Thread adamrice32
I am experiencing the exact same behavior.  Did you figure out what was wrong?  My 
first thought was that the queue connection was not closed, but explicitly calling 
queueConnection.close() did not make a difference.

Any thoughts?

Thanks,
Adam Rice

"hswen" wrote : Hi,
  | I have a stand alone MDB client that sends message to the defaule queue/A and a 
MDB that read the message from queue/A and display on the screen using System.out. I 
keep getting the Socket closed exception. Where do I go wrong? Thanks.
  | 
  | JBoss Version: 3.2.5
  | 
  | from the log:
  | 2004-08-14 14:17:49,375 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin 
ReadTask.run
  | 2004-08-14 14:17:49,375 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin 
WriteTask.run
  | 2004-08-14 14:17:49,375 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created 
ObjectOutputStream
  | 2004-08-14 14:17:49,453 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created 
ObjectInputStream
  | 2004-08-14 14:17:49,500 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] 
Setting up the UILClientIL Connection
  | 2004-08-14 14:17:49,500 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] 
The UILClientIL Connection is set up
  | 2004-08-14 14:18:28,078 DEBUG [org.jboss.mq.il.uil2.SocketManager] End 
WriteTask.run
  | 2004-08-14 14:18:28,078 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] 
Exiting on IOE
  | java.net.SocketException: socket closed
  | 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 
org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:67)
  | at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2133)
  | at 
java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2313)
  | at 
java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2380)
  | at 
java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2452)
  | at 
java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2601)
  | at java.io.ObjectInputStream.readByte(ObjectInputStream.java:845)
  | at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:279)
  | at java.lang.Thread.run(Thread.java:534)
  | 2004-08-14 14:18:28,078 DEBUG [org.jboss.mq.il.uil2.SocketManager] End ReadTask.run
  | 
  | My MDB class
  | 
  | public class SimpleMessageBean implements MessageDrivenBean, 
  | MessageListener {
  | 
  | private transient MessageDrivenContext mdc = null;
  | private Context context;
  | 
  | public SimpleMessageBean() {
  | System.out.println("In SimpleMessageBean.SimpleMessageBean()");
  | }
  | 
  | public void setMessageDrivenContext(MessageDrivenContext mdc) {
  | System.out.println("In "
  | + "SimpleMessageBean.setMessageDrivenContext()");
  | this.mdc = mdc;
  | }
  | 
  | public void ejbCreate() {
  | System.out.println("In SimpleMessageBean.ejbCreate()");
  | }
  | 
  | public void onMessage(Message inMessage) {
  | TextMessage msg = null;
  | 
  | try {
  | if (inMessage instanceof TextMessage) {
  | msg = (TextMessage) inMessage;
  | System.out.println("MESSAGE BEAN: Message received: " 
  | + msg.getText());
  | } else {
  | System.out.println("Message of wrong type: " 
  | + inMessage.getClass().getName());
  | }
  | } catch (JMSException e) {
  | e.printStackTrace();
  | mdc.setRollbackOnly();
  | } catch (Throwable te) {
  | te.printStackTrace();
  | }
  | }  // onMessage
  | 
  | public void ejbRemove() {
  | System.out.println("In SimpleMessageBean.remove()");
  | }
  | 
  | } // class
  | 
  | ejb-jar.xml
  | 
  | 
  | 
  | SimpleMessageBean
  | com.hp.mdb.SimpleMessageBean
  | Container
  | 
  | javax.jms.Queue
  | 
  | 
  | 
  | 
  | 
  | 
  | jboss.xml
  | 
  | 
  | 
  | 
  | SimpleMessageBean
  | queue/A
  | 
  | 
  | 
  | 
  | 
  | My client class
  | 
  | public class SimpleMessageClient {
  | 
  | public static void main(String[] args) {
  | 
  | Context jndiContext = null;
  | QueueConnectionFactory  queueConnectionFactory = null;
  | QueueConnection queueConnection = null;
  | QueueSession

[JBoss-user] [Installation & Configuration] - apache commons-logging stopped working under jboss 4.0

2004-10-27 Thread mboulatian
We hava been using jboss 3.2.3 for some time. I tried to migrate to jboss 4.0. One 
thing I notice that logging does not work in jboss 4.0. I cannot get logging to work 
from our applications. All appenders are setup properly but things that worked in 
3.2.3 don't work under jboss 4.0. We use jakarta commons logging as a wrapper to the 
jboss log4j service. I have commons-logging.jar file in the server/[server name]/lib 
directory. Here is my log4j.xml file in the conf directory. 


  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | http://jakarta.apache.org/log4j/"; debug="false">
  | 
  |
  |
  |
  | 
  |
  |
  |   
  |   
  |   
  | 
  |   
  |   
  | 
  |   
  | 
  |   
  |  
  |  
  | 
  |  
  |   
  |
  | 
  | 
  | 
  | 
  | 
  | 
  |   
  |   
  |   
  | 
  |   
  |  
  |  
  |   
  | 
  | 
  |   
  |   
  |   
  | 
  |   
  | 
  |   
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |  
  |  
  | 
  | 
  | 
  |   
  |   
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |   
  |   
  | 
  |   
  | 
  |   
  |   
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |   
  |   
  | 
  |   
  | 
  |   
  | 
  |   
  |   
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |   
  |   
  | 
  |   
  | 
  |   
  |   
  |   
  |   
  |   
  | 
  |   
  | 
  | 
  |   
  |   
  | 
  | 
  |   
  |   
  | 
  | 
  |   
  |   
  | 
  | 
  |   
  |   
  |   
  | 
  |   
  |   
  |   
  | 
  |   
  |   
  | 
  |   
  |   
  | 
  |   
  | 
  | 
  |   
  | 
  | 
  | 
  |   
  | 
  | 
  | 
  |   
  | 
  | 
  |   
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |   
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

Appreciate the response,
Misak

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

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


---
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: UnsupportedCallbackException using TextInputCallback

2004-10-27 Thread leathurman
I know this thread is very old but I am trying to implement something very similar, I 
too need to capture the users organisation. 

However all I did was amend my customer and the ClientLoginModule to supply a 
TextInputCallback. Both my JAAS login and the filter which uses the Client-login 
module populate this callback with the organisation.

Why should I need to amend the jboss-service.xml?

Regards
Lea.

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

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


---
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] - Does security work on jboss 4?

2004-10-27 Thread p_nevilleuk
Hi,
Thought I would as this as I have spent a day trying various configurations with 
little joy.
I am simply trying to use basic authentication (configured in web.xml) and then use a 
policy for UsersRolesLoginModule.  I have set up some secutiry on the EJB that the 
servlet is calling and get mixed results:

The authentication is working from the servlet (i.e. login takes place and EJB is 
aware of the role and principal (sometimes).

If I add permission to call the EJB's create method alone then I get the exception = 
Insufficient method permissions, principal=externaluser, method=processMsg, 
interface=LOCAL, requiredRoles=[], principalRoles=[external]
So if required roles is empty, what is the problem?

If I add permission to both the create and busness method (processMsg) for the same 
role I get:
CreateException, causedBy:
java.lang.SecurityException: Insufficient method permissions, principal=null, me
thod=create, interface=LOCALHOME, requiredRoles=[], principalRoles=[external]
Strange as previously create was happy.

If I add permission to the create and business method under different roles (but not 
giving the user this new role) I get:
Insufficient method permissions, principal=externaluser, method=processMsg, 
interface=LOCAL, requiredRoles=[external1], principalRoles=[external]
This sounds promising as it looks like I just need to add this role to the user.

If I add the role 'external1' to the user I get:
Insufficient method permissions, principal=null, me
thod=create, interface=LOCALHOME, requiredRoles=[], principalRoles=[external]
Again strange as previosuly create was working!

Help much appreciated...


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

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


---
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: JBOSS start-up problem

2004-10-27 Thread kalyan120
Why can't a SAR be deployed with PrefixDeploymentSorter? I don't see any reason for 
not employing this technique. 

>From what you say (or from the comments in jboss-service.xml), it appears that, SARs 
>should get deployed first. But from the exception that's mentioned, it shows that the 
>SARs are not getting deployed. So, that would mean that DeploymentSorter isn't 
>functioning properly.

Kalyan

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

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


---
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] - How to get failover with HASingletons ?

2004-10-27 Thread monocongo
I have created an application which uses "stateful" HASingletons.  In the event of the 
master node going down these HASingletons are successfully started on the new master 
node, but they lose all state information.  Once this occurs my application becomes 
confused and bad voodoo ensues.  I had assumed that the state would be preserved when 
failover occurs, but this isn't happening in my case.

Is there something I can do to enable failover of the state of these HASingletons ?  
If there's nothing provided by JBoss then is it possible to hack something together ?  
If so then where would I start ?

Thanks in advance for any suggestions.


--James

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

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


---
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] - Integration of JBoss/Tomcat and IIS on different servers?

2004-10-27 Thread osma
Hi,

I'm trying to integrate IIS (IIS5) with JBoss/Tomcat (3.2.5/5.0.26) that are on 
different servers. Does anyone know any good guides or have any tips on how to set it 
up? All examples I have found uses a standalone tomcat, that's run on the same server 
as the IIS.

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

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


---
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: Principal=null.... please help me

2004-10-27 Thread craig1980
Hi i haven't showed the de.danet.an.staffmgmt.jbossx.StaffMemberLoginModule, here it 
is:

import java.security.acl.Group;
  | import java.util.Map;
  | import java.util.List;
  | import java.util.ArrayList;
  | import java.sql.Connection;
  | import java.sql.Statement;
  | import java.sql.PreparedStatement;
  | import java.sql.ResultSet;
  | import java.sql.SQLException;
  | import javax.sql.DataSource;
  | import javax.naming.InitialContext;
  | import javax.naming.NamingException;
  | import javax.security.auth.Subject;
  | import javax.security.auth.callback.CallbackHandler;
  | import javax.security.auth.login.LoginException;
  | import org.jboss.security.SimpleGroup;
  | import org.jboss.security.SimplePrincipal;
  | import org.jboss.security.auth.spi.UsernamePasswordLoginModule;
  | 
  | /**
  |  * A login module that uses methods from the staff management package 
  |  * to authenticate the users.
  |  *
  |  * The resulting LoginContext has as CallerPrincipal 
  |  * "StaffManagementMember_DBId" where
  |  * DBId is the primary key of the 
  |  * StaffManagementMember.
  |  *
  |  * Every authenticated user has a default role
  |  * "StaffManagementUser" assigned. Additional
  |  * roles are derived from the group memberships of the authenticated
  |  * member. Groups with primary keys less than 100 have role names
  |  * "StaffManagementRole_DBId" where
  |  * DBId is the primary key of the 
  |  * StaffManagementGroup. For other groups the group
  |  * name is used directly as role name.
  |  *
  |  * Groups with primary keys below 100 are handled specially to simplify
  |  * internationalization. Those group ids are never assigned when a group
  |  * is created. Rather, those are predefined groups such as "administrators"
  |  * with permissions properly configured in the deployment descriptors.
  |  * By using "StaffManagementRole_DBId" as role,
  |  * it is not necessary to modify the deployment descriptors when the
  |  * group name of those administrative groups is changed.
  |  */
  | public class StaffMemberLoginModule extends UsernamePasswordLoginModule {   
  | 
  | private String dsJndiName;
  | private String daemonUsername = null;
  | private String daemonPassword = null;
  | 
  | /**
  |  * Initialize this LoginModule.
  |  */
  | public void initialize(Subject subject, CallbackHandler callbackHandler, 
  |Map sharedState, Map options) {
  | super.initialize(subject, callbackHandler, sharedState, options);
  | 
  | dsJndiName = (String) options.get("dsJndiName");
  | if( dsJndiName == null ) {
  | dsJndiName = "java:/DefaultDS";
  | }
  | 
  | daemonUsername = (String) options.get("daemonUsername");
  | daemonPassword = (String) options.get("daemonPassword");
  | }
  | 
  | /** 
  |  * Return null as the cleartext password is not available.
  |  * This is not a problem as we override validatePassword
  |  * as well.
  |  * @return null
  |  * @throws LoginException as defined by the interface, not really thrown.
  |  */
  | protected String getUsersPassword() throws LoginException {
  | return null;
  | }
  | 
  | /**
  |  * The validation of the input password against the expected password. 
  |  * This version ignores the value of the expected password and uses
  |  * methods from staff management to verify the password.
  |  * @param inputPassword the password as given by the user.
  |  * @param expectedPassword the expected password, ignored.
  |  * @return true if the inputPassword is valid, false otherwise.
  |  */
  | protected boolean validatePassword
  | (String inputPassword, String expectedPassword) {
  | if(getUsername() == null || inputPassword == null) {
  | return false;
  | }
  | if (daemonUsername != null && getUsername().equals (daemonUsername)
  | && daemonPassword != null 
  | && inputPassword.equals (daemonPassword)) {
  | return true;
  | }
  | Connection con = null;
  | PreparedStatement ps = null;
  | ResultSet rs = null;
  | try {
  | InitialContext ctx = new InitialContext();
  | DataSource ds = (DataSource) ctx.lookup(dsJndiName);
  | con = ds.getConnection();
  | // Get the password
  | ps = con.prepareStatement
  | ("SELECT PASSWORD FROM STAFFMEMBER WHERE MEMBERID = ?");
  | ps.setString(1, getUsername());
  | rs = ps.executeQuery();
  | if(rs.next()) {
  | return rs.getString(1).equals (inputPassword);
  | }
  | } catch(NamingException ex) {
  | ex.printStackTrace();
  | } catch(SQLException ex) {
  | ex.printStackTrace();
  | } finally {
  | try {
  | closeAll (rs, ps, con);
  | } catch (SQLException ex) {
  | ex.printStackTrace();
  | }
  | }
  | 

[JBoss-user] [Installation & Configuration] - Why is Xalan included in JBoss 3.2.6 distribution?

2004-10-27 Thread fredrik_is
Why is Xalan included in JBoss 3.2.6 distribution?

The jars xml-apis.jar, xercesImpl.jar and xalan.jar are included in the directories 
jboss/lib and jboss/server/default/lib, respectively. They are also included in the 
JRE distribution.
This would be reasonable if some startup config file states that the jre should use 
those directories as endorsed library directories, but I can't find any such 
configuration.

What JBoss modules use these libraries? Which ones are actually loaded, those of JBoss 
or those of the JRE?

The reason I ask is that I need to update these jar files, and I would like which ones 
I need to replace in order to make things work.

I posted a similar question in the beginner's corner, but I feel that it is more 
accurate to ask this in this forum instead. Please correct me if I have broken any of 
the posting rules!

Regards,
Fredrik Israelsson

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

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


---
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: Is it safe to update xalan, xercesImpl and xml-apis jar

2004-10-27 Thread fredrik_is
I have already tried that.
I put the three jars in my .ear file, and declared them as java modules in the ear's 
META-INF/application.xml, as I do with several other libraries used, but it does not 
work. I get the same error as I get when running with the old jars only.

/Fredrik

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

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


---
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: 3.2.4 -> 4.0 migration guidance?

2004-10-27 Thread fengleit
I would like to see a migration guidance too.

Regards



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

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


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

2004-10-27 Thread ThReCa
Please delete this thread...
http://jboss.org/index.html?module=bb&op=viewtopic&t=55767

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

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


---
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] - could not instantiate CacheProvider: net.sf.hibernate.cache.

2004-10-27 Thread beyarecords
Hi,
I get the above mentioned error when I try to use EhCache in Hibernate. I have placed 
ehcache-1.0.jar in:

/default/deploy/lib/

Is this the correct place to put the jar file?


regards


Andrew

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

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


---
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] - RMIAdaptor Call From JBoss 4.0.0 to JBoss 3.2.5 - InvalidCla

2004-10-27 Thread nickman
I am trying to make an RMIAdaptor call from JBoss 4.0.0 to JBoss 3.2.5. However, when 
I lookup the RMIAdaptor in 3.2.5 from 4.0.0 using JNDI, I get the following error:

  | Caused by: java.rmi.UnmarshalException: error unmarshalling return; nested 
exception is:
  | java.io.InvalidClassException: org.jnp.interfaces.MarshalledValuePair; 
local class incompatible: stream classdesc serialVersionUID = -340384351571113913

Since the error seems to originate from incompatibilities in JNDI, I am assuming that 
any sort of remote lookup is not viable.

Is there any way to do this short of a custom solution ?

Thanks.

//Nicholas

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

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


---
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: Is it safe to update xalan, xercesImpl and xml-apis jar

2004-10-27 Thread wdfink
Hi,
if you want save, the best way (IMO) is to put all in an EAR-File.
So your application work with the necassary XSLT and JBoss and other applications in 
the same JBoss AS runs with different..

Wolf

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

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


---
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: Posting Again: Can Servlet automatically listen to user-

2004-10-27 Thread poojac20

Actually, I have most of the business logic already available as EJBs. 
Hence J2ee as back end is already there. 

I need to use these EJBs and am trying to avoid RMI calls through another home-made 
server. 
And then I also thought IF JBoss can manage multiple sockets/threads/clients on its 
own  , then I can avoid this work. 

It seems Connector can achieve this multiple socket management .. am i right? So the 
next question is can a servlet (or something else from which I can call EJBs) be 
automatically called by the container when request comes on a certain port?

Thanx for the help. 


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

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


---
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: Couldn't lookup

2004-10-27 Thread diripu
  I could resolve the problem.
The problem was because I didn't deploy the ejb-management.jar .
And by default its not being deployed in version 3.2.5 and 4.0.0.

But in the prev. version of JBoss ie (3.0.8, 3.0.4) this application was being 
deployed by default.

Thanks


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

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


---
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: Couldn't lookup

2004-10-27 Thread robisz
What version of JBoss?
ejb/mgmt/MEJB exist only in 4.0

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

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


---
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: unknown pk beans - db2

2004-10-27 Thread jornik


Here is my jbosscmp-jdbc.xml





   
   java:/test
  DB2
  
  
  false
  false
  false
  false
  300
  false
  true
  foreign-key
   


   



Image


false

java.lang.Integer
ID
INTEGER
INTEGER


  

 
 

  
 





As you see, I tried your suggstion, but then I got an error from the jdbc driver.  To 
me it looks like a "linking" error.  What jdbc level is required? I use the driver 
that is shipped with the db2 database. I have the latest patchlevel.


13:03:12,358 ERROR [LogInterceptor] TransactionRolledbackLocalException in method:
 public abstract test.ImageLocal test.ImageLocalHome.create() throws 
javax.ejb.CreateException, causedBy:
javax.ejb.EJBException: Unexpected Error
java.lang.AbstractMethodError: COM.ibm.db2.jdbc.app.DB2Connection.prepareStatement
(Ljava/lang/String;I)Ljava/sql/PreparedStatement;
at org.jboss.resource.adapter.jdbc.WrappedConnection.prepareStatement(Wrap
pedConnection.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBC30GeneratedKeysCreateCommand.
prepareStatement(JDBC30GeneratedKeysCreateCommand.java:65)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.performInsert(
JDBCAbstractCreateCommand.java:276)

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

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


---
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] - Cache invalidation of all entities programatically - possibl

2004-10-27 Thread bobjones
This is not a clustering question, it's a cache invalidation question. And although 
the two usually go hand in hand, they do not necessarily do so. But this does seem to 
be a place where experienced Cache Invalidation Framework experts hang out. So, any 
CIF experts out there then please help!!!

I want to invalidate all instances of all entities from the container's cache 
programatically.

In the deployment descriptor of all my entity beans I will set cache-invalidation to 
false. I will do this because I do not want to invalidate entities on transaction 
commits (i.e. when an RW entity has changed in a container). This is not a clustering 
issue. I do not want the InvalidationManager to automatically inform containers' 
caches to invalidate an entity. I need to do that myself at a particular point in 
time. I could prevent the automatic invalidation in two ways -
1. set cache-invalidation to false
2. deploy the entities to a container that does not have the 
EntityBeanCacheBatchInvalidatorInterceptor interceptor configured.
Either one of the above should achieve the same effect. I have chosen the first.

I have written the code to invoke the batchInvalidation method on the 
InvalidationManager mbean. However, I need to supply keys and a group name. I could 
configure all my entity beans to have the same invalidation-group-name, but what do I 
supply for the keys? I want to evict all entities from the cache. I kinda want to say 
"*".

Even if I was to supply keys, what confuses me is that if I have two entity bean 
classes - Customer and Order say - and configure each to have the same invalidation 
group name, then if I supply keys 001 and 003 to the InvalidationManager, how does it 
know that key 001 is for a Customer and key 003 is an Order!?

Many thanks,
Bob

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

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


---
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] - Is it safe to update xalan, xercesImpl and xml-apis jar file

2004-10-27 Thread fredrik_is
Hi!
I am writing an application that uses Xalans XSLTC package. When testing outside JBoss 
I am using the latest jars from Xalan's web site, put in the 
$JAVA_HOME/jre/lib/endorsed directory. This I do because the jars that comes along in 
the J2SDK 1.4.2_06 are not working correctly.

Now I want to deploy this on a test server running JBoss 3.2.6.
I have noticed that the jars I need are also included in the JBoss distribution. 
However, the xsltc package is missing in $JBOSS_HOME/server/default/lib/xalan.jar.

Is it safe to update the jar files xercesImpl.jar, xml-apis.jar and xalan.jar on the 
server, and where should i put them? Should I replace the ones in the JBoss 
distribution, or should I place them in the $JAVA_HOME/jre/lib/endorsed directory on 
the server?

Regards,
Fredrik Israelsson

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

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


---
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] - Cache invalidation of all entities programatically - possibl

2004-10-27 Thread bobjones
Any CIF experts out there then please help!!!

I want to invalidate all instances of all entities from the container's cache 
programatically.

In the deployment descriptor of all my entity beans I will set cache-invalidation to 
false. I will do this because I do not want to invalidate entities on transaction 
commits (i.e. when an RW entity has changed in a container). This is not a clustering 
issue. I do not want the InvalidationManager to automatically inform containers' 
caches to invalidate an entity. I need to do that myself at a particular point in 
time. I could prevent the automatic invalidation in two ways -
1. set cache-invalidation to false
2. deploy the entities to a container that does not have the 
EntityBeanCacheBatchInvalidatorInterceptor interceptor configured.
Either one of the above should achieve the same effect. I have chosen the first.

I have written the code to invoke the batchInvalidation method on the 
InvalidationManager mbean. However, I need to supply keys and a group name. I could 
configure all my entity beans to have the same invalidation-group-name, but what do I 
supply for the keys? I want to evict all entities from the cache. I kinda want to say 
"*".

Even if I was to supply keys, what confuses me is that if I have two entity bean 
classes - Customer and Order say - and configure each to have the same invalidation 
group name, then if I supply keys 001 and 003 to the InvalidationManager, how does it 
know that key 001 is for a Customer and key 003 is an Order!?

Many thanks,
Bob

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

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


---
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: Couldn't lookup

2004-10-27 Thread diripu
Thanks
  Will post this in beginners corner forum. 

 But the program i have written is correct ?

 I couldn't see any errors on deployment. Also i couldn't find this JNDI name in the 
JNDI-view .


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

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


---
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: unknown pk beans - db2

2004-10-27 Thread robisz
You should try with get-generated-keys entity-command.

Please post your jbosscmp-jbc.xml

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

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


---
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: Does data get flushed to the DB on commit when in Commit

2004-10-27 Thread tomerbd
http://www.jboss.org/wiki/Wiki.jsp?page=CMPCaching

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

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


---
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: Couldn't lookup

2004-10-27 Thread darranl
Have a look at JNDI View from jmx-console to see what is bound.  Were there any errors 
on deployment?

Your question would be better in the beginners corner forum.



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

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


---
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: unknown pk beans - db2

2004-10-27 Thread jornik
I took away the hypersonic one and tried with 

default
key-generator

without success


I also added one myself into the standardjbosscmp-jdbc.xml which mapped to 
org.jboss.ejb.plugins.cmp.jdbc.DB2IdentityValLocalCreateCommand, 
which was mentioned in some posts about it being developed... (This was a guess from 
my side and I have not seen it defined really.)
All this without success either...






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

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


---
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: make a jsp runnin' on https

2004-10-27 Thread Lviz
hi

yea i think you can do it without apache...
http://www.jguru.com/faq/view.jsp?EID=748030

for redirect with no logon take a look...
[url]http://struts.application-servers.com/[url]
we use struts layout with all of our jsp's


it will take some time to prepare an example... and i am busy right now

email me:
lothar.egger at spamcop.net

cheers
L[/url]

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

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


---
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] - Couldn't lookup

2004-10-27 Thread diripu
 
 Couldn't get ManagementHome and getting exception "ejb not bound"...
My program is like the below.

 ---
Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
props.put(Context.PROVIDER_URL, "jnp://localhost:1099");
props.put(Context.SECURITY_PRINCIPAL, "");
props.put(Context.SECURITY_CREDENTIALS, "");
try{
InitialContext context= new InitialContext(props);
Object o = context.lookup( "ejb/mgmt/MEJB" );
ManagementHome home =  (ManagementHome) 
PortableRemoteObject.narrow(o,ManagementHome.class);
Management mejb = home.create();
ObjectName searchpattern = new ObjectName(args[1]);
Set managedObjects = mejb.queryNames(searchpattern,null);
System.out.println(  "Found " +  managedObjects.size() +  " matching Managed 
Objects.");
}catch(Exception ee){
System.out.println("Error: -> "+ee.getMessage());
}
-

Pl. help me. 

Thanks


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

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


---
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] - weird jar dependency loading problems

2004-10-27 Thread hany_bee
When I configure the Hibernate mbean service, I get a weird problem about missing 
dependency class.

I added the following to $server/conf/jboss-service.xml:

   
   jboss.jca:service=RARDeployer
   jboss.jca:name=DefaultDS, service=LocalTxCM
   
   test/web/project/beans/Event.hbm.xml, test/web/project/beans/User.hbm.xml
   
   java:/hibernate/HibernateFactory
   java:PostgresDS
   net.sf.hibernate.dialect.PostgreSQLDialect
   net.sf.hibernate.transaction.JTATransactionFactory
   net.sf.hibernate.transaction.JBossTransactionManagerLookup
   UserTransaction
   

When I start up JBoss, it would complain about missing class file:

.
Caused by: java.lang.reflect.UndeclaredThrowableException
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:204)
at 
org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:149)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:114)
... 36 more
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at net.sf.hibernate.jmx.HibernateService.(HibernateService.java:30)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1212)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:269)
at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:327)
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:125)
... 38 more

I can only solve this problem by copying the files commons-logging.jar
and log4j.jar to $server/lib. This does not make sense, these two packages are used by 
almost all components in JBoss, and it didn't complain about it, until I configure the 
Hibernate mbean.

What's wrong with this?



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

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


---
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: JDK5.0 JMX Agent conflit

2004-10-27 Thread Furykid
> Yes, this has been fixed for 4.0.1 and 3.2.7

could you please specify when it will be available for download ?

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

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


---
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] [Javassist user questions] - Re: dispatch algorithm limitation

2004-10-27 Thread tar
Sorry the layout may be a little confussing... here is the right layout.

We can read this at the end of the tutorial : 

anonymous wrote : The compiler does not correctly implement the Java method dispatch 
algorithm. The compiler may confuse if methods defined in a class have the same name 
but take different parameter lists.

what it really mean ? 

I construct (with javassist) a new class with a new method which call a method 
'foo(...)'. Two methods 'foo' are implemented in a other class which i defined in a 
classic way (with my IDE). One accept a Java.lang.Object as argument and the other 
accept a java.lang.String as argument. 

I understand that javassist might produce bytecode that call foo(String) instead of 
foo(Object) or foo(Object) instead of foo(String). 

Is it correct ? How can i recognize such case ? This limitation still exist in 
javassist v3 ? 

Thanks in advance.

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

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


---
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] [Javassist user questions] - dispatch algorithm limitation

2004-10-27 Thread tar
We can read this at the end of the tutorial :
anonymous wrote : The compiler does not correctly implement the Java method dispatch 
algorithm. The compiler may confuse if methods defined in a class have the same name 
but take different parameter lists.anonymous wrote : 
  |   | 
  |   | what it really mean ?
  |   | 
  |   | I construct (with javassist) a new class with a new method which call a method 
'foo(...)'. Two methods 'foo' are implemented in a other class which i defined in a 
classic way (with my IDE). One accept a Java.lang.Object as argument and the other 
accept a java.lang.String as argument.
  |   | 
  |   | I understand that javassist might produce bytecode that call foo(String) 
instead of foo(Object) or foo(Object) instead of foo(String).
  |   | 
  |   | Is it correct ? How can i recognize such case ? This limitation still exist in 
javassist v3 ?
  |   | 
  |   | Thanks in advance.
  |   | 

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

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


---
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] [Javassist user questions] - Re: unable to locate the proper class - and some newbie ques

2004-10-27 Thread alvlim1982
Hi again,
I have another problem (again...never ending problems). This time, I really really 
have no idea what is happening.

As I've said earlier, I tried to use javassist to generate run-time Value Object 
(there's no physical file). Then after that, I will pass the instance of the newly 
generate VO through EAI (then to DB). Some weird errors occurred. Even if I somehow 
provide the physical class.the error is the same.

--
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
java.lang.ClassNotFoundException: com.temp.EmployeeVO:  This error could 
indicate that a component was deployed on a  cluster member but not other members of 
that cluster. Make sure that any component deployed on a server that is part of a 
cluster is also deployed on all other members of that cluster
at 
weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
at 
weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:284)
at 
weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
at com.ejb.CommonGenericEJB_e1n9qi_EOImpl_813_WLStub.callEAIManager(Unknown 
Source)
at com.ORBSPerformanceTest.testManualInsert(ORBSPerformanceTest.java:119)
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 junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at junit.textui.TestRunner.doRun(TestRunner.java:116)
at com.intellij.rt.execution.junit2.IdeaJUnitAgent.doRun(Unknown Source)
at junit.textui.TestRunner.start(TestRunner.java:172)
at com.intellij.rt.execution.junit.TextTestRunner2.startRunnerWithArgs(Unknown 
Source)
at 
com.intellij.rt.execution.junit2.JUnitStarter.prepareStreamsAndStart(Unknown Source)
at com.intellij.rt.execution.junit2.JUnitStarter.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.intellij.rt.execution.application.AppMain.main(Unknown Source)
--

I really ran out of ideas trying to solve this thing. Please help, i need them 
desperately.

Thanks.

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

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


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


  1   2   >