[JBoss-user] [Security & JAAS/JBoss] - JIRA issue created

2005-08-24 Thread ahardy66
Here we go: http://jira.jboss.com/jira/browse/JBAS-2158 Sorry for the delay. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3891491#3891491 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3891491 -

[JBoss-user] [Security & JAAS/JBoss] - Re: JBoss not setting up application-policy entries

2005-08-06 Thread ahardy66
Easy to find on jmx-console: log in to http://localhost:8080/jmx-console/ click on link to service=JNDIView click on button 'Invoke' to MBean operation String list() look in the java: Namespace section, under the jaas branch, on my server the section looks like this: | +- XAConnectionFa

[JBoss-user] [Security & JAAS/JBoss] - Re: JBoss not setting up application-policy entries

2005-08-04 Thread ahardy66
I doubt it's been resolved at this point in time, since I haven't even got around to submitting a bug report for it yet :O So you've got exactly this problem then? An entry in the login-config.xml that doesn't show up in the JNDI jaas java namespace? I will log it tomorrow, but I'll see if I c

[JBoss-user] [Security & JAAS/JBoss] - Re: JBoss not setting up application-policy entries

2005-08-02 Thread ahardy66
Hi Scott, thanks for the info. However even with trace level logging configured, there is no information being logged that might reveal why my Realm is not being set up. I dislike reading posts myself that have huge amounts of logging output, but I can't think of what else to do. I reduced a

[JBoss-user] [Security & JAAS/JBoss] - Re: Servlet init() calling secured EJBs

2005-07-28 Thread ahardy66
"sgodden" wrote : | Unfortunately, if I secure my EJBs, then the servlet cannot access them, as it runs under a null user principal. Run-as role doesn't help that. | Are you sure? From reading the servlet spec just now, run-as seems to be exactly what you need. Do you have the role specif

[JBoss-user] [Security & JAAS/JBoss] - Re: JBoss not setting up application-policy entries

2005-07-28 Thread ahardy66
In case it's not clear, please ignore the bottom 2 posts here - the question is still VERY valid! thanks Adam View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3887034#3887034 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&

[JBoss-user] [Security & JAAS/JBoss] - !!!! ignore that 'thread change' msg please!

2005-07-27 Thread ahardy66
:O View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3886780#3886780 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3886780 --- SF.Net email is sponsored by: Discover Eas

[JBoss-user] [Security & JAAS/JBoss] - please see other thread......

2005-07-27 Thread ahardy66
New thread: JBoss not setting up application-policy entries View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3886779#3886779 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3886779 --

[JBoss-user] [Security & JAAS/JBoss] - JBoss not setting up application-policy entries

2005-07-27 Thread ahardy66
I recently upgraded from 3.x to 4.0.2, and migrated my main app. One of the changes from 3.x is that the jaas.conf file was dropped and replaced with the login-config.xml. So I set up my new login-config.xml as below, but JBoss is not setting up the application-policy I need, resulting in the

[JBoss-user] [Security & JAAS/JBoss] - Re: problem upgrading 3.2 to 4.0.2, security manager config

2005-07-21 Thread ahardy66
I investigated as much as I can and I found that JBoss's security config service is not loading the JNDI names of my application-policies from my login-config.xml at start-up. I ran the JBossJAAShowto example and that works fine, so I need to find the problem in what I am doing. When I use th

[JBoss-user] [Security & JAAS/JBoss] - Re: Can't load user roles

2005-07-21 Thread ahardy66
Michel, I had a similar problem about a year ago with v3.2.5. I don't know if it is the same problem, or if the solution is still valid - I am currently unable to get JAAS working in JBoss 4 at the moment. Here is the code I have: I have this.roles as a member variable arraylist which I fill ear

[JBoss-user] [Security & JAAS/JBoss] - problem upgrading 3.2 to 4.0.2, security manager config

2005-07-18 Thread ahardy66
I upgraded my dev environment to JBoss 4.0.2 and I am trying to set up the security, but I cannot work out what mistake I have made that prevents a normal form-based login succeeding. It is a servlet & EJB app, with seperate war and ear files. It throws this exception when I try to log in:

[JBoss-user] [Beginners Corner] - Re: CMP finder methods

2004-04-23 Thread ahardy66
Grand. Thanks for the advice. Petino - what are you hinting? No comprendo, senor. Adam View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3832084#3832084 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3832084 -

[JBoss-user] [Beginners Corner] - CMP finder methods

2004-04-23 Thread ahardy66
Am I right in thinking that I have to return a Collection from all of my finder methods except findByPrimaryKey()? In the DB I have a users table with a userId and a loginName. Both have unique constraints on them, but only the Id is the primary key. If I want to create a findByUserName() the

[JBoss-user] [Persistence & CMP/JBoss] - Re: CMR throws 'can only be used in transaction in which it

2004-04-21 Thread ahardy66
OK, thanks again. Actually I think I'm jumping the gun a little in my disappointment that I couldn't set the transaction level as I wished. I shall have to stress test the app at some point anyway, so if I see performance problems down the line, then I know I can reprogram my methods to avoid

[JBoss-user] [Persistence & CMP/JBoss] - Re: CMR throws 'can only be used in transaction in which it

2004-04-21 Thread ahardy66
Thank you for replying, sesques Actually this is in a Session bean and I'm getting the local home for the bean I want and then calling its getChildren method. I don't need a transaction in this case and transactions will slow the performance down, surely? Are you absolutely sure about it bei

[JBoss-user] [Persistence & CMP/JBoss] - CMR throws 'can only be used in transaction in which it was

2004-04-20 Thread ahardy66
I ran a few CMRs happily with transactions set to 'Required', but now I am setting only the create, update & removes to 'Required' and I set the rest via the whole class * catch-all to 'Supports'. JBoss throws the CMR exception, 'collection can only be used in transaction in which it was creat

[JBoss-user] [Beginners Corner] - Re: standard practice for getting user info from tomcat logi

2004-04-18 Thread ahardy66
Right, thanks Steve, but I had cottoned on to that one already. What I need to know is, once I've got my userId, can I store it in EJB anywhere? What the equivalent of the HTTP session? Is it possible to edit the caller principal object? View the original post : http://www.jboss.org/index.htm

[JBoss-user] [Beginners Corner] - standard practice for getting user info from tomcat login in

2004-04-18 Thread ahardy66
I need the user's userId when processing data in my app and I get this in tomcat by getting the request.getUserPrincipal().getName() and then I look up the ID for that name from the DB and keep it in the user's servlet session scope. I could pass this into the EJB with every call, but isn't the

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Servlet using a Jboss Session - Bean

2004-04-18 Thread ahardy66
Georg, I don't know what your code for the SecurityAssociationHandler or UserPrincipal does, but you don't say whether your user is logged in or whether you have set a security-domain in your jboss.xml. If you have set a security-domain, then you must login with an authorized user to get past

[JBoss-user] [Persistence & CMP/JBoss] - ordering data returned by CMR

2004-04-17 Thread ahardy66
In a CMR relationship, I would like to get my child beans from a parent bean's getChildren method sorted by a particular field. Is this possible? I can't find anything about it in the docs / list archive. I can see the SQL generated by JBoss which I would like to have an ORDER BY clause on,

[JBoss-user] [Installation & Configuration] - Re: browsing CVS web interface?

2004-04-17 Thread ahardy66
Thanks very much for the help. I sorted it out now. It is not trivial at all! Is that use of module composition for projects in the repository some feature of CVS? I've not seen anything like it before. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831

[JBoss-user] [Installation & Configuration] - browsing CVS web interface?

2004-04-16 Thread ahardy66
I need to find out whether there were any changes to the config files that I changed, i.e. log4j.xml, hsqldb-ds.xml, server.xml, login-config.xml etc, in the last few weeks since I checked out & built JBoss last time (it had a bugfix I needed). In the CVS web interface, I can't find the jboss-3

[JBoss-user] [HTTPD, Servlets & JSP] - Re: WAR not deploying properly, despite logging showing so

2004-04-16 Thread ahardy66
It's not a JSP. Both times involved struts action subclasses, being called by the struts action servlet. However this sounds like it would cause exactly the problem I am seeing, if it also affects other classes rather than just JSPs. But I can't see any other classes being cached anywhere like

[JBoss-user] [HTTPD, Servlets & JSP] - WAR not deploying properly, despite logging showing so

2004-04-15 Thread ahardy66
I was caught out twice today by a deployment problem with my WAR file in tomcat. It seems JBoss is caching the classes from the old WAR somewhere and only replacing the updated classes from the new WAR, not the whole thing. I changed some constants in my global constants class for my app, com

[JBoss-user] [Persistence & CMP/JBoss] - unexpected SQL from entity beans

2004-04-15 Thread ahardy66
I am calling up some entity beans via a 1..n relationship method on my parent entity bean, and I notice that the SQL that JBoss CMP generates in the logging is surprisingly 1 SQL per field. For instance, I have this output from JDBCLoadEntityCommand: SELECT question_option_id, answer_id FROM

[JBoss-user] [Beginners Corner] - Re: JAVA_HOME set, not finding /lib/tools.jar

2004-04-05 Thread ahardy66
could it be a permissions problem? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3829241#3829241 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3829241 --- This SF.Ne

[JBoss-user] [Beginners Corner] - Re: How to organize a project structure for team development

2004-04-05 Thread ahardy66
cvs will merge differences, and any conflicting edits will be highlighted, so you can sort them out quite simply. Oh, and ant is also your friend. :) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3829240#3829240 Reply to the post : http://www.jboss.org/ind

[JBoss-user] [HTTPD, Servlets & JSP] - Re: tag lib initialization

2004-04-05 Thread ahardy66
Sergio, I assume that you translated your message using babelfish. It is not very comprehensible! Anyway, I know of a bug affecting Jboss 3.2 which might be your problem. Try this link, and I hope it helps. [url] http://marc.theaimsgroup.com/?l=jboss-user&m=107775484723042&w=2 [/url] Adam View

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Bug with post data surviving form based login?

2004-04-05 Thread ahardy66
Martin, well done pointing out that bug. Would have caused me untold hassle no doubt before realising. (& thks for fixing it, Jbossos) With cvs, try this (works for me - in fact I'm doing it right now) cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/jboss co -r Branch_3_2 jboss-3.2 This checks ou

[JBoss-user] [Security & JAAS/JBoss] - Re: custom LoginModule based on AbstractServerLoginModule

2004-03-30 Thread ahardy66
Has anybody got any comments on this? It does seem like a bug. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828069#3828069 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828069 --

[JBoss-user] [Security & JAAS/JBoss] - Re: Executing code immediately after form-base JAAS-login

2004-03-30 Thread ahardy66
You can achieve what you want if you set up a filter to check the session for a flag, and to check for login with getRemoteUser() When login is true but flag is null, do your 'write_into_database' and then put the flag in the session. View the original post : http://www.jboss.org/index.html?

[JBoss-user] [Installation & Configuration] - Re: Logging stacktraces from tomcat

2004-03-30 Thread ahardy66
Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828065#3828065 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828065 --- This SF.Net email is sponsored by: IBM

[JBoss-user] [Installation & Configuration] - Re: Logging stacktraces from tomcat

2004-03-29 Thread ahardy66
I don't know what it is that is causing log4j to wrap the stacktraces from tomcat, presumably it's something in the tomcat - jboss integration. I'd love to know - anyone from JBoss? Anyway the solution is to adjust the log4j configuration. It means taking the appenders off the root category an

[JBoss-user] [Installation & Configuration] - Re: Log4j problem on jboss3.2.3!!!!

2004-03-28 Thread ahardy66
taking a wild guess, I would say that you are running JBoss as a user who doesn't have the rights to create the log directory or log file. http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827787#3827787";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode

[JBoss-user] [Installation & Configuration] - Re: Best way to share classes in several SAR files ?

2004-03-28 Thread ahardy66
Hi Jean, is there any reason why you do not want to install a copy of the jar into each sar? http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827785#3827785";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827785>Reply to the post --

[JBoss-user] [Beginners Corner] - Re: EJB Design Patterns - primary key 'sequence block'

2004-03-26 Thread ahardy66
Excellent. Middlegen does indeed generate one (or rather both) EJBs. I appreciate the reasons for the session bean, now that I'm looking at the code, but isn't the bean going to get cached by JBoss at any point and lose the sequence block? In which case it will have to get a new block and if it

[JBoss-user] [Beginners Corner] - EJB Design Patterns - primary key 'sequence block'

2004-03-26 Thread ahardy66
Do any of you nice folk out there have an example of the primary-key-generating SequenceBlock entity bean ? I'm taken by the EJB Design Pattern's pattern, but unfortunately unlike most books, it doesn't have any example code and I can't find anything like it elsewhere either. I hope you know

[JBoss-user] [Installation & Configuration] - Logging stacktraces from tomcat

2004-03-25 Thread ahardy66
When I get an exception thrown in JBoss, the stacktrace comes out to the log / console as it is. When I do that in embedded tomcat, JBoss or Log4J or something preceeds each line of the stacktrace with a logging format, e.g. 17:50:08,297 INFO [STDOUT] java.lang.Exception: blah blah 17:50:08,29

[JBoss-user] [Security & JAAS/JBoss] - Re: Using isUserInRole() on unsecured page

2004-03-25 Thread ahardy66
That is just your interpretation of the spec. It doesn't mention what should happen on pages that are not under any security constraint. I have to admit though that I am not prepared to read the whole spec from back to front to find out if they do mention what should happen anywhere, because I'

[JBoss-user] [Beginners Corner] - Re: CMP vs. BMP

2004-03-25 Thread ahardy66
The optimisation is basically just the caching that the container does. So if you have an application which uses lots of the same data over and over, yes it will be faster. But if you have an app that uses all sorts of different data without much re-use, then there will be no difference. Anyo

[JBoss-user] [Beginners Corner] - Re: Storing usernames, password, and roles

2004-03-25 Thread ahardy66
Check out the documentation about login modules, JAAS and realms. That'll get you started. Oh, yes, you can use any database that you can set up a dataservice for. http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827479#3827479";>View the original post http://www.jboss.org/index.html?

[JBoss-user] [Installation & Configuration] - Re: problems logging into JBoss **URGENT**

2004-03-25 Thread ahardy66
Akravets, you should be happy. This is a positive sign that your webserver is running. A 500 means you tried to call a URL on your server which it doesn't recognise. Google won't help you. You need to make sure your war file is deployed properly. It's hardly surprising that people don't bother a

[JBoss-user] [Installation & Configuration] - Re: Logging stacktraces from tomcat

2004-03-25 Thread ahardy66
Any idea why it would be doing that? It is just my normal error handling in my servlet. Running under standalone tomcat, exception.printStackTrace() has never done this. The standard-out from JBoss-tomcat is obviously being funnelled through a log4j logger somehow - hence the INFO level - but

[JBoss-user] [Security & JAAS/JBoss] - custom LoginModule based on AbstractServerLoginModule

2004-03-25 Thread ahardy66
It looks to me like JBoss's AbstractServerLoginModule's roles grouping method is incompatible with tomcat. In this class's commit() method, there's this little bit of code: if( subjectGroup instanceof NestableGroup ) | { | /* A NestableGroup only allows Groups to be added to it so we

[JBoss-user] [Security & JAAS/JBoss] - Re: Using isUserInRole() on unsecured page

2004-03-25 Thread ahardy66
Huck, is your embedded tomcat 4.x or 5.x? AFAIK tomcat 5.x standalone invokes this behaviour as well, PITA that it may be. While I mostly hold the servlet spec team & tomcat (& increasingly the JBoss) developers in high regard for the quality of their decisions, in this case it smacks to me o

[JBoss-user] [Beginners Corner] - Re: JNDI naming for EJBs

2004-03-24 Thread ahardy66
Great, thanks for info. One more Q: is there a big performance hit if I initialize my context with the external form "localhost:1099" when it's not necessary? http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827206#3827206";>View the original post http://www.jboss.org/index.html?mod

[JBoss-user] [Beginners Corner] - Re: CMP - repeated sql condition

2004-03-23 Thread ahardy66
It would be easier to tell what is going wrong if you posted a bit of info about the findXXX method that the query comes from. http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827149#3827149";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827

[JBoss-user] [EJB/JBoss] - Re: using ServiceLocator to cache RemoteHomes

2004-03-23 Thread ahardy66
Actually I got it the wrong way around. My service locator is in the war, and it's when I redeploy the EJB ear that all the cached RemoteHomes are invalidated. So following your logic still though, is there some sort of ContextListener for the EJB ear? The ear and the war are seperate. Tx

[JBoss-user] [Beginners Corner] - JNDI naming for EJBs

2004-03-23 Thread ahardy66
I am trying to figure out the exact nature of the JNDI environment with regard to EJBs, JNDI names, initial contexts, local and remote settings, JVMs and networking. I've got my stuff working but I would like to make sure I'm correct. I have 2 EJBs. A stateless session facade and an entity. In

[JBoss-user] [Beginners Corner] - Re: Jboss start up time?

2004-03-23 Thread ahardy66
I should also check how much logging you are doing. Having your all your loggers set to TRACE level can cause a log file to grow to 10MB on startup and take ages. I know, I tried :) http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827099#3827099";>View the original post http://www.jbo

[JBoss-user] [Beginners Corner] - Re: Strange problem

2004-03-23 Thread ahardy66
Cosmin, when posting html snippets, check that it shows up properly first! You can use the 'preview' button. Test in your browser whether you can call up your css & js files. As you access log shows, you are calling them. Doing it directly will show you some sort of error in the browser. Or yo

[JBoss-user] [Beginners Corner] - Re: Shocked and stunned from JBOSS!

2004-03-23 Thread ahardy66
Hey Zeron, I've been there & done that. I spent a whole day on this one and related errors, and found the best solution was to tidy up my development environment so that the class path available when I compile is exactly the same or more restricted than the class path used by JBoss's class loade

[JBoss-user] [EJB/JBoss] - Re: using ServiceLocator to cache RemoteHomes

2004-03-23 Thread ahardy66
Thanks Steve. I'll give it a blast. http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827050#3827050";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827050>Reply to the post --- This SF.Ne

[JBoss-user] [EJB/JBoss] - using ServiceLocator to cache RemoteHomes

2004-03-22 Thread ahardy66
I'm using the ServiceLocator pattern to cache my RemoteHome objects in the client, which is in a war. Each time I redeploy the war, somehow tomcat or jboss keeps the ServiceLocator instance in memory so that the cache is still there and I can use the old RemoteHome for any EJB, but it will thr

[JBoss-user] [Security & JAAS/JBoss] - Re: custom login module using AbstractServerLoginModule

2004-03-21 Thread ahardy66
Basically I am trying to establish whether this is a bug in the class, a deficiency in the documentation, or a bug in my code. To summarise: AbstractServerLoginModule.createGroup() creates Roles that tomcat cannot handle, leading to no roles being loaded for the user. http://www.jboss.org/

[JBoss-user] [Advanced Documentation] - Re: pay-on-demand docs

2004-03-20 Thread ahardy66
Hang on a moment! Let me make a point that I am sure has been made a hundred times before: what makes JBoss different from Ant, emacs, Debian, Tomcat, Struts, the list server operator for my favourite mailing list etc etc? I would be down $100 if I had to pay for all the docs. And when it gets

[JBoss-user] [Advanced Documentation] - Re: pay-on-demand docs

2004-03-19 Thread ahardy66
"jae77" wrote : and besides, you're getting a full j2ee app server for free , is 10 bux really that much money to shell out for documentation? With no disrespect to JBoss as a product, this idea of charging $10 for the docs is appalling marketing. There is a whole mind-set behind the idea of ope

[JBoss-user] [Security & JAAS/JBoss] - Re: custom login module using AbstractServerLoginModule

2004-03-19 Thread ahardy66
It seems to work the way I have programmed it, which violates what the javadoc in the AbstractServerLoginModule class tells me to do. Is the AbstractServerLoginModule wrong when it nests the Roles group within another nestable group? I doesn't show up correctly in the logging - the log statem

[JBoss-user] [Advanced Documentation] - pay-on-demand docs

2004-03-19 Thread ahardy66
Just a note to say that the JBoss Admin & Development manual is a bit of let-down after paying for it. If it was a book in a bookstore and I'd seen it beforehand, I would have saved myself the cash. $10 = 4 pints of beer. The inclusion of pages and pages of logging output - what's that in aid o

[JBoss-user] [Security & JAAS/JBoss] - Re: Problems with FORM Authentication

2004-03-17 Thread ahardy66
guess somebody took the pin out of their little voodoo doll of your jboss server. Actually I had some baffling experiences before I sorted out the TRACE logging. http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826125#3826125";>View the original post http://www.jboss.org/index.html?m

[JBoss-user] [Security & JAAS/JBoss] - Re: custom login module using AbstractServerLoginModule

2004-03-16 Thread ahardy66
Here's the code in my subclass: | /** | * This is required by the parent class. It puts the gargantus role | * objects which we fetched during login() into a group | * for the parent class to commit. | * @return group array containing the Roles group | */

[JBoss-user] [Security & JAAS/JBoss] - Re: custom login module using AbstractServerLoginModule

2004-03-16 Thread ahardy66
I'm with you so far. I have logging on trace and I can see it all happening, and it succeeded, stone the crows. BUT then having surmounted that hurdle, it fell at the next one. Tomcat threw a 403 access denied error on the protected pages. So, the roles must be up the creek. I was using Abst

[JBoss-user] [Security & JAAS/JBoss] - Re: Problems with FORM Authentication

2004-03-16 Thread ahardy66
Don, I'm assuming from your comments that the BASIC login causes the LoginModule to output heaps of successful login messages, and that when you change it to FORM, your LoginModule goes quiet. To me this says that your login form HTML is wrong. Are you sure you have spelt the j_username and j_p

[JBoss-user] [Installation & Configuration] - Re: log4j.xml and output from a JBoss class

2004-03-15 Thread ahardy66
In the latest push up the side of Mount Everest, err, I mean the JBoss learning curve, I have narrowed down the problem to the fact that the log statements are all TRACE priority. Does that give any kind JBoss guru an idea what I need to do? Strangely, setting the priority level in the log4j.

[JBoss-user] [Installation & Configuration] - Re: log4j.xml and output from a JBoss class

2004-03-15 Thread ahardy66
Guess I know too many logging frameworks too poorly. Actually I deliberately got rid of the file appender to speed it up a bit. Thanks for the diagnosis. http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3825804#3825804";>View the original post http://www.jboss.org/index.html?module=

[JBoss-user] [Installation & Configuration] - Re: log4j.xml and output from a JBoss class

2004-03-15 Thread ahardy66
| | | | | | | | | | | | | | http://jakarta.apache.org/log4j/"; debug="false"> | | | | | | | | | | | | | | | | | | | | |

[JBoss-user] [Installation & Configuration] - Re: log4j.xml and output from a JBoss class

2004-03-15 Thread ahardy66
In the latest blind stumblings in the regions beyond the JBossLog4j.pdf, I have found that I am incapable of turning on JBoss's TRACE logging level. Even with the XLevel class in the Priority setting. Even (despairing laughter coming from off-stage) after commenting out all my commons-logging

[JBoss-user] [Installation & Configuration] - log4j.xml and output from a JBoss class

2004-03-15 Thread ahardy66
I can't configure log4j to output the logging from a JBoss class that I'm extending in my JAAS setup, and it's causing me major problems because I need the logging output to resolve a problem that's creating a brick wall in my path. The class is org.jboss.security.auth.spi.AbstractServerLoginMo

[JBoss-user] [Security & JAAS/JBoss] - Re: How to get custom security athentication to integrate wi

2004-03-15 Thread ahardy66
With J2EE container managed security, the user must trigger the authentication by trying to access a protected area, EJB, webpage, whatever. There are always 'ways' of doing things like this by proxy from your custom security login, but many are considered dirty hacks and you already say you do

[JBoss-user] [Security & JAAS/JBoss] - Re: custom login module using AbstractServerLoginModule

2004-03-15 Thread ahardy66
I'm just wondering whether my problem could be down to the Principal class that I'm using. I subclassed it to provide my own functionality on top of Principal. Could jbosssx be objecting to it? http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3825641#3825641";>View the original post

[JBoss-user] [Security & JAAS/JBoss] - Re: Container idependent JAAS Login Module

2004-03-14 Thread ahardy66
Toby, just write different implementations of LoginModule for each container, e.g. JBossLoginModule, TomcatLoginModule, WebsphereLoginModule. Extract your login code into a seperate shared utils class. It makes no difference, since you have to configure each container's login setup with contai

[JBoss-user] [Security & JAAS/JBoss] - custom login module using AbstractServerLoginModule

2004-03-14 Thread ahardy66
I wrote a custom login module extending the AbstractServerLoginModule. I have successfully set it up so that it is being called when I try to access a protected page on my website, and it looks up the user and roles via a local-tx-datasource. I can see from the logging output that it initialize

[JBoss-user] [Beginners Corner] - Re: log format

2004-03-10 Thread ahardy66
you can check out the different variables to put in the pattern attribute at the jakarta-tomcat website. It's pretty easy. http://jakarta.apache.org/ http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3825044#3825044";>View the original post http://www.jboss.org/index.html?module=bb&op=po

[JBoss-user] [Beginners Corner] - Re: Search engine doesn't work for me ??

2004-03-01 Thread ahardy66
I have been either googling with site:www.jboss.org or searching on http://marc.theaimsgroup.com/?l=jboss-user&r=1&w=2 It seems the search facility on the jboss website is only half operational. Adam View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3823701#38

[JBoss-user] [Beginners Corner] - Re: Incomplete Deployment: no attribute: MinimumThreads

2004-03-01 Thread ahardy66
Can some kind soul out there give me a clue how to sort this issue out? I've searched and googled for help, but haven't found anything relevant. Thanks Adam View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3823691#3823691 Reply to the post : http://www.jboss.o

[JBoss-user] [Beginners Corner] - Incomplete Deployment: no attribute: MinimumThreads

2004-02-27 Thread ahardy66
I wonder if anyone else sees this on startup? I've got yesterday's CVS code for jboss-3.2 Branch_3_2 and with a clean build (the only thing I changed was the log4j.xml) I get this: | ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] MBeanException: Incomplete Deployment listing: |

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Standard taglib with jboss 3.2.3, tomcat 5

2004-02-26 Thread ahardy66
Can someone tell me which module to download? I've downloaded and compiled the whole lot from CVS 3 times now and I'm not getting any further. I assumed that the module I needed is JBoss-3.2, looking at the list of modules in the jboss root. That wouldn't checkout though. I tried jboss-all, j

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Standard taglib with jboss 3.2.3, tomcat 5

2004-02-26 Thread ahardy66
This is the one that compiles into jboss-3.2.4RC1? Adam View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3823152#3823152 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3823152 ---

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Standard taglib with jboss 3.2.3, tomcat 5

2004-02-26 Thread ahardy66
It worked. Thanks v. much for the fix. Adam View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3823178#3823178 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3823178 ---

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Standard taglib with jboss 3.2.3, tomcat 5

2004-02-25 Thread ahardy66
Yes, I read the spec. Glad it works for you with Jetty. I might have to debug this tomorrow with extra logging statements in the TldConfig class, where the action is meant to happen. I can't see anything in the code that gives any hint why it would fail. If I compile the tomcat jars myself fro

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Standard taglib with jboss 3.2.3, tomcat 5

2004-02-24 Thread ahardy66
Thanks for the response. However it's definitely tomcat 5.0.16 that I'm using - I installed it using the ant build script in the jboss docs directory. I've narrowed it down to a particular class in tomcat's catalina startup but I'd have to run a debugger over it to work out why it's failing. I s

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Standard taglib with jboss 3.2.3, tomcat 5

2004-02-24 Thread ahardy66
Tomcat.SAR is not searching in the war through the Jar files for tlds. I can't see why. In stand-alone mode, tomcat5 handles this fine. It extracts the tlds from the jars in the war. Why or how can tomcat.sar be different from stand-alone mode? This is causing me alot of wasted time, I'd rea

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Standard taglib with jboss 3.2.3, tomcat 5

2004-02-24 Thread ahardy66
my mistake, going on about dtds when I meant tlds. sorry. Anyway I discovered the tlds jboss needs are in the JSTL taglib jars jstl.jar and standard.jar. I've included these jars in both my project WAR and in the JBoss server/default/lib directory already anyway so they're not helping. "fmt" i

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Standard taglib with jboss 3.2.3, tomcat 5

2004-02-24 Thread ahardy66
Ah OK. Thanks for the info. But that URL is not meant to be looked up - it's just meant to be unique and somehow the container can match it against the dtd in a jar somewhere. So it doesn't matter whether my machine is online or not. Or at least it shouldn't. The one that is causing me problem

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Standard taglib with jboss 3.2.3, tomcat 5

2004-02-23 Thread ahardy66
I also just ran into this issue and am trying to figure it out. Does JBoss require DTDs to be located locally? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822618#3822618 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply

[JBoss-user] [JBoss Getting Started Documentation] - Re: JBoss 3.2.3 ships with previous version of xercesImpl.ja

2004-02-20 Thread ahardy66
"amayingenta" wrote : We're planning to use a more recent version of xercesImpl.jar in production because we're switching to Jetty 5 for the Servlet 2.4 & JSP 2.0 features and this requires a newer version of Xerces to validate web.xml which now uses a schema (so I suspect anyone using Tomcat 5

[JBoss-user] [JBoss Getting Started Documentation] - Re: mysql example for RosterCMP up creek

2004-02-20 Thread ahardy66
"luke_t" wrote : Maybe you "skimmed" an important chapter and missed something :) Another chicken comes home to roost! But I read them all now :) I fixed it by changing all the primary keys in the EJBs to Long. anonymous wrote : | Are you using the same versions of MySQL and the JDBC driver

[JBoss-user] [JBoss Getting Started Documentation] - RosterCMP app & learning

2004-02-17 Thread ahardy66
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821870#3821870 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821870 In the Getting Started chapter on CMP, I'm looking at the Roster app and at the Hypersonice database,

[JBoss-user] [JBoss Getting Started Documentation] - Re: Duke application error

2004-02-16 Thread ahardy66
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821659#3821659 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821659 You can get the 1.3 tutorial from java.sun.com. Download the zip version and unpack it. All the stuff

[JBoss-user] [JBoss Getting Started Documentation] - Re: Getting Started on JBoss 3.2.x

2004-02-16 Thread ahardy66
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821658#3821658 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821658 "darranl" wrote : I take it you didn't read chapter 2 in the getting started guide then - The one that

[JBoss-user] [JBoss Getting Started Documentation] - Re: Duke application error

2004-02-13 Thread ahardy66
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821417#3821417 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821417 then jboss either hasn't found the ear file or it threw an exception loading it. Make sure you ran the

[JBoss-user] [JBoss Getting Started Documentation] - Re: Duke application error

2004-02-13 Thread ahardy66
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821415#3821415 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821415 on the jmxconsole then, under the header jboss.web, do you see the following entries: # context=/

[JBoss-user] [JBoss Getting Started Documentation] - Re: Duke application error

2004-02-13 Thread ahardy66
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821409#3821409 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821409 The first thing I would check is that the jboss console is running, under http://localhost:8080/jmx-

[JBoss-user] [JBoss Getting Started Documentation] - Re: Security information - totally confusing

2004-02-13 Thread ahardy66
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821400#3821400 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821400 shame I can't edit the message - what I also meant to ask is whether this security domain config in JB

[JBoss-user] [JBoss Getting Started Documentation] - Re: Security information - totally confusing

2004-02-13 Thread ahardy66
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821398#3821398 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821398 Hi all, just working my way thro' the getting started, and I'm trying to configure the Bank app to tak

[JBoss-user] [JBoss Getting Started Documentation] - Re: Duke application error

2004-02-13 Thread ahardy66
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821394#3821394 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821394 Hi there, I'm a jboss newby myself but it looks like your webapp isn't running because you haven't dep

[JBoss-user] [JBoss Getting Started Documentation] - Re: Getting Started on JBoss 3.2.x

2004-02-12 Thread ahardy66
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821209#3821209 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821209 "ahardy66" wrote : Then I spent ages looking for the J2EE 1.3 tutorial

[JBoss-user] [JBoss Getting Started Documentation] - Re: Getting Started on JBoss 3.2.x

2004-02-12 Thread ahardy66
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821207#3821207 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821207 I had all the problems mentioned above. I thought I couldn't get the Getting Started guide without pay