[JBoss-user] [Installation, Configuration Deployment] - Upgrade 3.0.6 to 4.0.2 NoSuchMethodException on EJB Call

2006-01-07 Thread leathurman
Hi All,

I am trying to move to 4.0.2 from 3.0.6 and am getting a NoSuchMethodException 
when I make a remote EJB call.

I have pinned it down to the class which is passed in this call. Without any  
parameters the calls works ok.

I am now thinking it is related to changes in the classloader architecture. Is 
the classloading architecture for 4.0.2 the same as 4.0.1? I can only find the 
documentation for 4.0.1.

As a side question ..i n the past we have isolated each of our ears using a 
loader-repository entry in each jboss-app.xml. Does this still apply to 4.0.2?

I did not really understand the classloading document on the WIKI, but I will 
reread if this is likely to be the source of the problem.

Regards
Lea Thurman.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3916294#3916294

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3916294


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - Re: Upgrade 3.0.6 to 4.0.2 NoSuchMethodException on EJB Call

2006-01-07 Thread leathurman
The problems seems to be because the class I am passing in the remote call 
comes from two different classloaders.

We are using Spring and if I instantiate the class in the WAR controller and 
dump the classloader it comes out as below:


  | 23:00:29,807 INFO  [STDOUT] WebappClassLoader
  |   delegate: false
  |   repositories:
  | -- Parent Classloader:
  | [EMAIL PROTECTED]
  | 

When I instantiate the same class in the EJB it comes out as follows:


  | 23:00:29,907 INFO  [STDOUT] [EMAIL PROTECTED] 
url=file:/usr/local/jboss-4.0.2/server/default/tmp/deploy/tmp5306102-os-onevehiclecheck.ear
 ,addedOrder=45}
  | 

However I have other classes in this ejb jar that do come from the same 
classloader and their EJB calls are successful.

When we were on 3.0.6 we were on Jetty and now we are moving to Tomcat. Are 
there any differences here?

Help is much appreciated.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3916304#3916304

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3916304


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - Re: The new 4.0.3 JBossEntityResolver and resolving DTD's lo

2005-10-13 Thread leathurman
Thankyou for the response Scott. 

I would not normally response but I figured why not .. you normally only ever 
hear gripes...

I have only asked 2 or 3 questions since JBoss 2.x and I was worried about the 
success of JBoss generating a distance between the organisation and its users. 

However the fact that I got a response from the CTO simply confirms my 
commitment to professional open source and specifically JBoss. Thankyou Scott.

I was even recently asked at an interview here in the UK with one of the top 5 
global IT consultancies Would you consider JBoss to be reputable J2EE 
Application Server Provider I was pleasantly surprised by the question and 
since we have been running it 24x7 for the last 3 years it was one of the 
easier questions to answer ;-)

Keep up the good work.

Regards
Lea Thurman.






View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3901016#3901016

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3901016


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - The new 4.0.3 JBossEntityResolver and resolving DTD's locall

2005-10-10 Thread leathurman
Hi All,

We are trying to migrate a Spring/Hibernate based app from 3.0.6 to 4.0.3 
running on Mac OS 10.4 but I am unable to get Spring XML docs to be resolved 
against local DTD's.

I have read the changes to the JBossEntityResolver in 4.0.3 and assumed this 
solved my problem but I still cannot get the app to locate the DTD.

I have amended my Spring DOCTYPE so that it is 
!DOCTYPE beans SYSTEM spring-beans.dtd and amended my build script so that 
the dtd is included in the same location as the Spring file.

However when I deploy the file is not found and within the exploded EAR 
structure the DTD is not present but it is in the ejb.jar file.

I am assuming I have missed something obvious here as I thought 4.0.3 would 
just pick it up from the classpath.

Any help would be much appreciated.

Regards
Lea Thurman.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3900297#3900297

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3900297


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - Re: How to turn off XML validation of Spring documents on 4.

2005-10-08 Thread leathurman
Sorry I meant 4.0.2 but I had the issue with 3.2.7 upwards.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=397#397

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=397


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - How to turn off XML validation of Spring documents on 4.0.7

2005-10-02 Thread leathurman
Hi,

Running 4.0.7 on Mac os X 10.4

We have upgraded from 3.0.6 to 4.0.7 and are now unable to run jboss offline. 
It appears an attempt is being made to download the Spring DTD's.

Is there a way to turn off DTD validation? The jboss-service is already set to 
false.

Searching through the forums the only solution seems to be to include the DTD's 
in the web tier and amend the XML doctype. If this is the only solution where 
do I put the DTD for the ejb tier. Would JBoss find them if I included them in 
the ejb-jar?

Any help would be much appreciated.

Regards
Lea Thurman.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3898378#3898378

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3898378


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - Which version should I take - going from JBoss 3.0.6

2005-09-14 Thread leathurman
Hi All,

We have been on JBoss 3.0.6 for aslong as I can remember and found it to be 
rock solid. However I have recently had a few issues with the MBeanServer and 
think it's probably best if I upgrade if only to get my queries answered.

Which version should I take?, should I take the latest 3.n or start on version 
4.0. We dont upgrade very often so it will be used for a year atleast but I do 
want to minimise the amount of change. Am I correct in assuming that some 
versions are full of AOP which I am not familiar with to be confident of 
supporting.

Any thoughts?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3894638#3894638

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894638


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Duplicate MBean Timer Events

2005-09-13 Thread leathurman
Hi all,

I am using JBoss-3.0.6 on Mac OS X (Tiger) with code below invoke for each 
message received by SLSB 

Integer eventId = (Integer)this.mBeanServer.invoke(
  |   this.timer.getObjectName(),
  |   addNotification,
  |   new Object[] {
  | IDoNotKnowWhatTypeIs,
  | ,
  | null,
  | new Date(new Date().getTime() + Timer.ONE_MINUTE),
  | new Long(Timer.ONE_MINUTE),
  | new Long(2)
  |   },
  |   new String[]{
  | .getClass().getName(),
  | .getClass().getName(),
  | java.lang.Object,
  | Date.class.getName(),
  | Long.TYPE.getName(),
  | Long.TYPE.getName()
  |   }
  | 
  | // Listener
  | this.mbeanServer.addNotificationListener(
  |   this.timer.getObjectName(),
  |   new NotificationListener {
  | private void handleNotification(Notification notification, Object 
callback){
  |   TimerNotification timerNotification = (TimerNotification)notification;
  |   System.out.println(Event generated using event ID  + 
timerNotification.getTimerID());
  | }
  |   }
  | )
  |  
  | 
  | )

For each message a new timer and a new listener are added which produce 2 
events each 1 minute apart.

It seems the events are not de-registerd since first time through I get

Event generated using event ID 1
Event generated using event ID 1
(so far so good)

Second message and 

Event generated using event ID 1
Event generated using event ID 2
Event generated using event ID 1
Event generated using event ID 2

i.e the listener is still receiving events from event id 1 event though the 
jmx-console only reports event 2 as active. Any ideas? Am I using the listener 
correctly and any thoughts on the whole approach of creating new events and 
listeners for each message time .. is this a robust strategy? The reason I am 
doing this is because I need exactly 1 min delay for each message.

Regards
Lea.



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3894425#3894425

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894425


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets JSP] - Session Information Lost when Fronting Jboss with Apache

2005-01-25 Thread leathurman
Hi All, 

Before I start to crack up can someone atleast confirm that this is possible.. 
this will atleast put my mind and heart at rest. 

I am running JBoss3.0.6/Jetty and have two applications (ears) deployed. One is 
mapped to the root context and the other to a customer specific context. I have 
also purchased two domains for these two applications. So 

www.app1.co.uk - nn.nn.nn.nnn/index.jsp 
www.app2.co.uk - nn.nn.nn.nnn/context/index.jsp 

(both domains point to the same box) 

Since JBoss is running on a hosted server all requests are being forwarded by 
Apache running on port 80. 

I am using the following Apache directives: 

VirtualHost nn.nn..nn 
ServerName www.app1.co.uk 
ServerAlias www.app1.co.uk 
ProxyVia On 
ProxyPass / http://localhost:8080/ 
ProxyPassReverse / http://localhost:8080/ 


and 

VirtualHost nn.nn..nn 
ServerName www.app2.co.uk 
ServerAlias www.app2.co.uk 
ProxyVia On 
ProxyPass / http://localhost:8080/context/ 
ProxyPassReverse / http://localhost:8080/context/ 


However the application deployed to root functions perfectly however the 
application deployed to /context does not. 

The problem is that any information which is held in the session disappears if 
the application is accessed via www.app2.co.uk if it Iaccess via 
http://nn.nn.nn.nnn/context it all works. 

I think it is to do with the session values being context specific and the 
browser not sending them in. 

The second question is concerning the apache stuff I have read on the Wiki and 
mod_jk and mod_jk2. I think I am not using these and would these solve my 
problem? 

Regards 
Lea.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3863571#3863571

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3863571


---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag--drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Is this Possible - multiple domains - multiple contexts on

2005-01-15 Thread leathurman
Hi All,

Before I start to crack up can someone atleast confirm that this is possible.. 
this will atleast put my mind and heart at rest. 

I am running JBoss3.0.6/Jetty and have two applications (ears) deployed. One is 
mapped to the root context and the other to a customer specific context. I have 
also purchased two domains for these two applications. So

www.app1.co.uk - nn.nn.nn.nnn/index.jsp
www.app2.co.uk - nn.nn.nn.nnn/context/index.jsp 

(both domains point to the same box)

Since JBoss is running on a hosted server all requests are being forwarded by 
Apache running on port 80. 

I am using the following Apache directives:

VirtualHost nn.nn..nn
ServerName www.app1.co.uk
ServerAlias www.app1.co.uk
ProxyVia On
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/


and 

VirtualHost nn.nn..nn
ServerName www.app2.co.uk
ServerAlias www.app2.co.uk
ProxyVia On
ProxyPass / http://localhost:8080/context/
ProxyPassReverse / http://localhost:8080/context/


However the application deployed to root functions perfectly however the 
application deployed to /context does not.

The problem is that any information which is held in the session disappears if 
the application is accessed via www.app2.co.uk if it Iaccess via 
http://nn.nn.nn.nnn/context it all works.

I think it is to do with the session values being context specific and the 
browser not sending them in.

The second question is concerning the apache stuff I have read on the Wiki and 
mod_jk and mod_jk2. I think I am not using these and would these solve my 
problem?

Regards
Lea.



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3862264#3862264

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3862264


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
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=bbop=viewtopicp=3852940#3852940

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=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=5588alloc_id=12065op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Do I need to amend the ClientLoginModule?

2004-10-26 Thread leathurman
Hi All,

I have written my own custom login module which is working fine. This returns a custom 
principal instead of the SimplePrincipal which has an additional organisation 
attribute.

However I was thinking in my EJB  I could cast down to my custom principal and access 
the organisation accessor. e.g 

CustomPrincipal caller = (CustomPrincipal)(this.sessionContext.getCallerPrincipal());

Logger.info(caller.getOrganisation());

However I am getting a classcast exception as it appears I am still using 
SimplePrincipal.

I think I I need to amend the ClientLoginModule to return this as well. Is this what 
everyone would expect? 

I have looked at the code for the ClientLoginModule and I assume I need to create a 
new callback to gather the organisation, construct my custom principal and provide 
this in the SecurityAssociation.setPrincipal call. 

However I am unsure if I need to invoke SecurityAssociation.setCredential(password) 
why is this used?

Any help is much appreciated.

Regards
Lea.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3852716#3852716

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3852716


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Re: Questions about Custom Login Modules

2004-10-26 Thread leathurman
Hi Minmay.

I too noticed the discrepency regarding super.login. I actually made this the first 
call in my login module (subclass of abstractServerLoginModule). I notice that the 
UsernamePasswordLogin module also calls it first.

As far as my understyanding goes (which is not very far as we dont support this yet) 
the shared state map is for password stacking i.e when you have multiple modules and 
you want the username/password to be passed through. I guess the useFirstPass mean use 
the username and password from the first login module. 

I currently dont stack them so its not a problem for me.

Regards
Lea.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3852721#3852721

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3852721


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Re: Is it Valid to Cast Down the Principal

2004-10-20 Thread leathurman
Hi ragavgomatam,

I am using a custom built login module. I am still in the process of development but 
yes I am expecting to bundle the login module and the custom principle with the ear. 
This will be interesting though as I am half expecting classloading issues. However if 
this is the case I will adopt the same principle as the jbosssx jar and put it in lib 
since our login module will be used by many ears and I am happy with the wider scope 
in this case. Are you having issues with this?

The other problem I am expecting to face is the propagation problem. My custom login 
module returns a bespoke caller principle identity however I am unsure whether I will 
have problem with the ClientLoginModule which just transfers the username and 
password. 

If this is the case how can i expect my EJB's to get access to bespoke called 
principle on subsequent EJB invocations. Does JBoss use the username to locate the 
original principle?

Regards
Lea.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3852024#3852024

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3852024


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Is it Valid to Cast Down the Principal

2004-10-15 Thread leathurman
Hi all,

I am relatively new to JAAS so please be gentle ...

As far as I can see the only way for me to introduce new caller principal information 
and have them propagated into the EJB is by writing my own login module and a concrete 
user principal with the additional attributes.

Once in the EJB then I invoke context.getCallerPrincipal and then cast down to my 
concrete class to get access to the additional information.

Is this the correct way to go or I do I need to explicity pass the Subject into each 
EJB call?

Any help would be much appreciated?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3851545#3851545

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3851545


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Re: How to use JAAS_HOWTO Filter example with Secure Servlet

2004-09-13 Thread leathurman
thanks for that Scott, I was hoping that wouldnt be the conclusion.

A collegue of mine suggested another solution:

Use declarative security in the web tier (FORM) and once logged in the principal 
details are available in the EJB tier

Aparantly it was not with JBoss but the container login called JAAS 
automatically.

It sounds like the ideal solution but I guess it depends on the container 
implementation.

I am gonna try it tonight but is there any reason why if I did a FORM authentication 
it would be propagated to the EJB.

Lea.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3848018#3848018

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3848018


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - How to use JAAS_HOWTO Filter example with Secure Servlet?

2004-09-11 Thread leathurman
Hi All,

I am attempting to secure both my EJB and web content.

I have implemented a login servlet and login filter as per the instructions in 
jaas_howto and this is all working as expected with the principal being propagated 
through to the EJB layer. Heavy going but an excellent document.

However what surprised me was that when I secured some web content using BASIC HTTP 
authentication I was still asked for the username and password even after logging on.

Reading the howto document I was under the impression that the filter using the 
ClientLoginModule would transfer these details so they would be visible to the web 
layer.

The jass_howto example does not really exercise this case i,e logging on and then 
accessing a secured servlet.

In my application now the user successfully logs on and then keeps getting asked for a 
username and password every time they request secure content

I have read some alternative solutions, one being to code another filter to reject all 
access to anything other than the login however I would sooner use the declarative 
approach since then I can control based on role and I will need to use the role in 
this layer. (I bet isInRole will not work also)

Am i doing something wrong or is this the expected behaviour? If its the latter how is 
everyone else achieving this using declarative security?

Any help would be much appreciated.

Lea. 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3847892#3847892

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3847892


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: After redeployment jndi lookup gets ClassCastException

2004-08-15 Thread leathurman
Hi,

I too am experiencing this very same problem on 3.0.6 but I do need to make a remote 
call so its not an option for me to comment out the jndi url line.

Does anyone know why this is occurring and whether or not there is a workaround?

Regards
Lea.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3845134#3845134

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3845134


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink  Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: deployment order of ejb modules, how?

2004-08-11 Thread leathurman
Hi OBender,

We are using JBoss 3.0.6 and do order the deployment of the ears by:

1. Amend jboss-service.xml in server//conf to use the PrefixDeploymentSorter. (If you 
do a search for 'prefix' there is a good explanation of how this deployment sorter 
works.

2. We prefix the name of ear with its level in our hierarchy, i.e an ear with 
01-parent.ear gets deployed before all 02-child.ear

Just had a look in the 3.2.3 config and the same options seem to be available in 
server//conf 

Regards
Lea.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3844831#3844831

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3844831


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink  Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Spring LocalStatelessSessionProxyFactoryBean and Hot Deploy

2004-08-09 Thread leathurman
Hi all,

Has anyone manaed to get springs LocalStatelessSessionProxyFactoryBean class (or the 
Remote version) to work on hot deploy?

I get the usual ClassCastException as soon as I fetch and cast the bean out of the 
Spring ApplicationContext and sure enough the reference and casting class are from 
difference classloaders.

The ear is scoped and does not reference any other ear. The only thing I can think is 
that the spring classes are from a jar which is in the default/config/lib and this is 
somehow causing it to retain a reference to the old classloader.

Any help would be much appreciated.

Lea.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3844592#3844592

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3844592


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink  Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Spring LocalStatelessSessionProxyFactoryBean and Hot Dep

2004-08-09 Thread leathurman
I suspect that the LocalStatelessSessionProxyFactoryBean class and the Remote version 
cache classes as it seems when I hot deploy the classloader used for the cast class 
increases but the reference returned via the spring ApplicationContext is still from 
the old classloader. 

I believe (although someone with more knowledge would need to confirm) that since the 
spring class is loaded from a jar in the lib then this classloader is not touched on 
hot-deploy.

Can anyone confirm? and if so does anyone have a workaround. I cannot think of one off 
the top of my head (but I cannot believe you cannot hot deploy if using spring in this 
way)

ps the code I am using to locate the bean is 

BeanFactoryLocator bf = ContextSingletonBeanFactoryLocator.getInstance();

BeanFactoryReference br = bf.useBeanFactory(com.a.b);
ApplicationContext context = (ApplicationContext)br.getFactory();

NotificationService svc = (NotificationService)context.getBean(NotificationService);

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3844593#3844593

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3844593


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink  Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Scoped beans Remote classloader issue

2004-07-26 Thread leathurman
Hi cruinne,

I may have misunderstood your question, so if I have I apologise.

Is it not just a case of treating the EJB call from the web tier as you would a normal 
EJB client i.e it just needs access to the Remote and Home classes, the implementation 
is not shipped.

We current have a situation (with 3.0.6!) with mutliple scope ears and a call from the 
web tier. In our case we just supplied to the container a jar of the home and remotes. 
Only the ejb container has visibility of the impls.

Hot-deploy still work as we employ a facade pattern which means we rarely need to 
change to EJB the web tier calls.

When we use the embedded web tier we just put this jar into server/default/lib.

Lea.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3843245#3843245

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3843245


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721alloc_id=10040op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: accessing EJB/Classes across EAR's

2004-05-10 Thread leathurman
Hi all,

I guess jae77 has already answered the questions.

mroony: Yes in 3.0.6 the default classloading behaviour is as per the UCL (Unified 
Classloader) Its in the docos provided by jae77.

Its desirable for us to scope our ears since each ear represents a customers product. 
When we change either a common customer class or a framework class we do not want 
these changes cascading to other products from the same customer and more importantly 
products from other customers.  We do have to track versions very carefully!

mathias: You dont need to put the home and remote in lib, we only did this because we 
have a gateway ear which calls down into the customer product ears. I guess we could 
also have put them in an unscoped gateway ear also.

We have found this structure coupled with hot-deploy a real bonus for our business. I 
would be interested in everyones thoughts and soes anyone know of a better solution?

Regards
Lea.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3834314#3834314

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3834314


---
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson  Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: accessing EJB/Classes across EAR's

2004-05-06 Thread leathurman
Hi Mathias,

Yes this is possible. We currently use 3.0.6 but the principles should apply to later 
versions. We have 1 ear containing a war and some ejbs. A servlet in this ear routes 
calls to a routing service also deployed in this ear. This routing service then 
examines the job and routes to a GatewayBean in another ear. All beans implementations 
that wish to be called in this way must subclass from the GatewayBean which just 
offers a ProcessCall like interface. Each of the these beans are then deployed in 
their own ear. Each of the ear's are hot-deployable so when we add a new customer we 
add a new route (via the DB) and just deploy their implementation in their own ear)

However there are a few pitfalls. The first being that each ear is scoped to have its 
own classloader, the second that calls between the ears are sprecified to use pass by 
value (a different container configuration). We also retain pass by reference when in 
the same ear. It is also important that you package up all classes that form part of 
the interface into their own jar. We put this in the lib directory. 

Sorry its a little garbled as I am rushing.

Regards
Lea.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3833946#3833946

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3833946


---
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson  Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - java.util.Date is incorrect after British Summer Time switch

2004-03-30 Thread leathurman
JBoss 3.0.6, Linux, Blackdown Java

I am guessing this is something very obvious but I have searched the forums to no 
avail.

Recently in the UK we switched to British Summer Time (GMT + 1) but  when I now run 
Jboss all the logs are an hour behind and our scheduled jobs which should run at 6am 
and 10pm now run at 7am and 11pm respectively. In addition any times we create in our 
application are using GMT.

This problem does not seem to exist on our Win2K development machines but only on our 
hosted servers.

Any help is much appreciated.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3828187#3828187

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3828187


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - Re: Does 3.0.6 support passing by Value?

2004-03-09 Thread leathurman
Its working! I am not sure if this is of interest to anyone but I thought I would 
share this with you as I am not sure my solution is 100% correct.

I have app1.ear and app2.ear both of which have their own classloader repositories. An 
EJB in app1.ear makes a call on an EJB in app2.ear. Both apps run in the same JBoss 
JVM.

In order to get it to work I had amend the EJB in app1.ear so that instead of using an 
no argument InitialContext I supplied it with properties. I have also specified the 
EJB in app2.ear as using a pass by value container configuration.

Whilst this all works I am not sure if I strictly need to do both. Some other posts 
suggest that you do but in my mind why should I need to create an InitialContext with 
proprties since I am in the same JVM.

a 
href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3824889#3824889;View 
the original post/a

a 
href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3824889Reply 
to the post/a


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - Re: Does 3.0.6 support passing by Value?

2004-03-07 Thread leathurman
Well I thought I would post an update as I still cannot get this to work butI believe 
I have followed all other posts.

Essentially I have in my jboss.xml the following:

?xml version=1.0 encoding=UTF-8?

enterprise-beans

ejb-nameOrderService/ejb-name
jndi-namecust/OrderService/jndi-name
configuration-nameBy Value Standard Stateless 
SessionBean/configuration-name

/enterprise-beans


and I have added the following to standardjboss.xml in server.default/conf:

container-configuration extends=Standard Stateless SessionBean
container-nameBy Value Standard Stateless 
SessionBean/container-name
call-loggingtrue/call-logging
client-interceptors

org.jboss.proxy.ejb.HomeInterceptor
org.jboss.proxy.SecurityInterceptor
org.jboss.proxy.TransactionInterceptor
org.jboss.invocation.ByValueInvokerInterceptor


org.jboss.proxy.ejb.StatelessSessionInterceptor
org.jboss.proxy.SecurityInterceptor
org.jboss.proxy.TransactionInterceptor
org.jboss.invocation.ByValueInvokerInterceptor

/client-interceptors
/container-configuration

However my calls still fail and looking at the error it appears that I am still using 
the org.jboss.invocation.InvokerInterceptor.

Is there a way to tell if I have configured the container-configuration correctly.

Regards
Lea.


a 
href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3824624#3824624;View 
the original post/a

a 
href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3824624Reply 
to the post/a


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - Re: Does 3.0.6 support passing by Value?

2004-03-07 Thread leathurman
Well in order to simplify things I put the container configuration into the jboss.xml.

container-configurations
container-configuration extends=Standard Stateless SessionBean
container-nameBy Value Standard Stateless SessionBean/container-name
client-interceptors

org.jboss.proxy.ejb.HomeInterceptor
org.jboss.proxy.SecurityInterceptor
org.jboss.proxy.TransactionInterceptor
org.jboss.invocation.ByValueInvokerInterceptor


org.jboss.proxy.ejb.StatelessSessionInterceptor
org.jboss.proxy.SecurityInterceptor
org.jboss.proxy.TransactionInterceptor
org.jboss.invocation.ByValueInvokerInterceptor

/client-interceptors
/container-configuration
/container-configurations

If I comment this out I get an error saying it cannot find the configuration name so I 
know the bean is configured with the correct name.

But when I put the container config back in JBoss startes but still i get the 
classcast exception when a make a call from one ear to another in a seperate 
classloader.

Any ideas.

a 
href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3824625#3824625;View 
the original post/a

a 
href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3824625Reply 
to the post/a


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - Does 3.0.6 support passing by Value?

2004-03-06 Thread leathurman
Hi all,

I have searched the news groups and found example configurations for 3.2.2 but the 
DTDs look significantly different to 3.0.6.

I am hoping its conceptually similar i,e I can add a configuration name to my 
jboss.xml and then define it in standardjboss.xml.

Any help would be much appreciated.

Lea.

a 
href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3824525#3824525;View 
the original post/a

a 
href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3824525Reply 
to the post/a


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user