[JBoss-user] [EJB/JBoss] - loader-repository stuff

2005-11-23 Thread spoonman464
Oops! It looks like I made a mistake. In the above document, I should have said that the stuff goes in the "jboss-app.xml" file in the META-INF folder and not in the jboss.xml file. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3908711#3908711 Reply to

[JBoss-user] [EJB/JBoss] - Excellent answer!

2005-04-08 Thread spoonman464
Nice work, Vishal. I will give that a try. Just like everything else in J2EE, there's probably some downside to going this route. I'll check out the doc but do you know of anything 'bad' about using this technique? Spoon View the original post : http://www.jboss.org/index.html?module=bb&op=

[JBoss-user] [EJB/JBoss] - I think there is a deployment descriptor for this problem

2005-04-08 Thread spoonman464
In the jboss.xml file there is a "loader-repository" element designed to permit two EARs with similar contents to be deployed without interference. The modules inside an application often contain compiled Java classes. EJB-JARs always have classes in them. Maintaining uniqueness among class na

[JBoss-user] [EJB/JBoss] - What does the entire query node look like...

2005-04-07 Thread spoonman464
... in your ejb-jar.xml? With some more information I can tell what's wrong. You will also find that every app server vendor adds their own features to EJB-QL so some fancy things that work on one server might not work on another. It doesn't look like you are doing anything too fancy, but I'd

[JBoss-user] [EJB/JBoss] - Can you provide more info?

2005-04-07 Thread spoonman464
Like a code example of the code that is causing this error? Maybe it's the argument you are passing to the finder method? Spoon View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3873157#3873157 Reply to the post : http://www.jboss.org/index.html?module=bb&op=p

[JBoss-user] [EJB/JBoss] - Have you tried redeploying the web apps, too?

2005-04-07 Thread spoonman464
I find that whenever I redeploy an EJB-JAR, any web apps that had already been using those EJBs also need to be redeployed. I don't know the true technical reasons for it but it seems pretty consistent to me. If it's true, the reason why it all seems to work after restarting the JBoss server i

[JBoss-user] [EJB/JBoss] - It's just a standard findByPrimaryKey(pk) method, yes?

2005-04-07 Thread spoonman464
Did you write code for this query? It's my understanding that you never have to write any SQL or EJB-QL for either findAll() or findByPrimaryKey() If you have written some SQL or EJB-QL, maybe you are making problems for yourself. public ComponentIntf findByPrimaryKey(primaryKeyDataType pk) t

[JBoss-user] [EJB/JBoss] - I have only succeeded using the JNDI lookup...

2005-04-07 Thread spoonman464
when accessing EJBs remotely from a separate JVM. I don't really know for sure but I've always worked from the assumption that one server's JNDI directory only listed things from the same JVM, but I don't really know a lot about JNDI. Every time I've had the client and the EJB server runni

[JBoss-user] [EJB/JBoss] - Two datasources, two different JNDI names

2005-04-07 Thread spoonman464
I realize that I'm not giving enough information right now for you to actually DO what I suggest, but I might be able to help with some details if you are interested in this approach. In JBoss, you can use XML files in the \deploy directory to declare datasources, for example, a file called mys

[JBoss-user] [EJB/JBoss] - Maybe it's a silly question but...

2005-04-07 Thread spoonman464
are you using a real hostname in your jndi.properties file or does your actual file look exactly as you posted it? If so, take a look at this line: java.naming.provider.url=jnp://:1099 You really need a hostname and cannot leave it as Let me know because I have lots of experience getting

[JBoss-user] [EJB/JBoss] - When is it necessary to set reentrant to true?

2005-04-05 Thread spoonman464
It appears difficult to find a conceptual explanation of when the reentrant node in an entity bean should be set to true. I realize that deep under the covers it has to do with concurrency and allowing multiple threads to access the same instance of an entity bean, blah, blah, blah, but I am a

[JBoss-user] [HTTPD, Servlets & JSP] - Re: exception-type ignored in web.xml

2005-04-03 Thread spoonman464
Have a look at the topic I posted late last night. It explains my problem and may shed some light on yours as it encompasses the majority of what I have learned while experimenting. http://www.jboss.org/index.html?module=bb&op=viewtopic&t=62187 View the original post : http://www.jboss.org/in

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Displaying images in a JSP.

2005-04-03 Thread spoonman464
You did manage to make it work but that's not really the way you want to do it. You need something more dynamic in your JSP than a hard-coded context root. If, for example, you change the context root, you will have to change the hardcoded path in every img tag. Yuck! Instead, you should com

[JBoss-user] [HTTPD, Servlets & JSP] - HTTP code 500 conflicting with errorPage page directive

2005-04-02 Thread spoonman464
I'm using JBoss/Tomcat bundle JBoss version 3.2.7 running on XP SP2 I've been studying and experimenting all day with the various ways of implementing JSP error pages. It appears that there are 2 ways: 1) map HTTP error codes or Java Exception classes to error pages via web.xml deployment desc

[JBoss-user] [Beginners Corner] - Re: Is it possible to have custom error (404, 500) pages in

2005-04-02 Thread spoonman464
If anyone is still interested, I believe I can help. I've been working on these puzzles for about 14 hours now and have many correct answers. Spoon View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872466#3872466 Reply to the post : http://www.jboss.org/index

[JBoss-user] [HTTPD, Servlets & JSP] - Re: exception-type ignored in web.xml

2005-04-02 Thread spoonman464
I find some trouble when using BOTH the 500 error thing AND an exception class thing in the DDs at the same time. If I only do one or the other, I get better results. Overall, I am having lots of trouble getting the stuff to work as advertised. Between using some stuff and some JSP page di

[JBoss-user] [Security & JAAS/JBoss] - Re: securing a remote client for a simple session bean

2005-01-29 Thread spoonman464
Complete Success! I have gotten BOTH the JNDI login and the LoginContext way working. Does anyone know of a way to Logout when using the JNDI way? Since the LoginContext is abstracted when going this route, I don't see a way to execute a logout() method. Any ideas? Spoon View the origin

[JBoss-user] [Security & JAAS/JBoss] - It was DEFINITELY the Notes JVM

2005-01-07 Thread spoonman464
as I finally got it all working. Thanks so much for your continued interest in this problem. One problem was the JVM version that Notes uses: 1.3.1 By installing the 1.3.1 J2SEEJDK thing, I had the right version of j2ee.jar. Then I had to add a JavaUserClasses entry in the notes.ini file (t

[JBoss-user] [Security & JAAS/JBoss] - Another control group

2005-01-07 Thread spoonman464
Throughout all of this research and discussion, I have decided to try to create another control in this experiment. I have been running a web app and an ejb-jar both on the same JBoss server thus all of the contact between the web app as the client and the ejb container was within the same JVM.

[JBoss-user] [Security & JAAS/JBoss] - Here's stack trace

2005-01-07 Thread spoonman464
Being the novice Java guy I am, I've never really been able to make much out of a stack trace but here you go. It's all of the System.out stuff including my silly little messages so that I know which line of code explodes. I tried putting a JAR file containing the javax.xml.parsers classes in

[JBoss-user] [Security & JAAS/JBoss] - Still trying more stuff to get this thing working.

2005-01-06 Thread spoonman464
I've become a little bit suspect of something in my java.security file: | # | # Class to instantiate as the javax.security.auth.login.Configuration | # provider. | # | login.configuration.provider=com.sun.security.auth.login.ConfigFile | So it makes me wonder. Am I using the correct

[JBoss-user] [Security & JAAS/JBoss] - Inching ever closer

2005-01-06 Thread spoonman464
To try to divide and conquer this problem some more, I've decided to attack the java.security and java.policy files in the jvm\lib\security directory of the Lotus Notes JVM. These files and their behaviors ought to be fairly normal for a JVM regardless of whether its running inside Notes or not

[JBoss-user] [Security & JAAS/JBoss] - I looked at the stuff and it doesn't tell me

2005-01-06 Thread spoonman464
Thanks so much for posting those URLs but there was almost nothing about the java.security.auth.login.config (i.e. mentioned only once) and nothing at all about how to include a auth.conf file in any way other than using the -Djava approach. Now, I realize that I'm maybe using a JVM that somehow

[JBoss-user] [Security & JAAS/JBoss] - So, did you get it working?

2005-01-06 Thread spoonman464
Mine is still not. Like every other Java/J2EE puzzle, you just have to keep slugging it out until you get it. There's just no other way... I'm increasingly more convinced that my problem is related to not having a way to tell my JVM where the auth.conf file is. Every reference I can find says

[JBoss-user] [Security & JAAS/JBoss] - Re: securing a remote client for a simple session bean

2005-01-06 Thread spoonman464
It looks like several of us are all working on the same problem and having the same difficulties. I have seen many partial answers and many partial code examples and I have read just about everything there is on this topic yet I cannot get it to work either. As I understand that there are 2 wa

[JBoss-user] [Installation & Configuration] - Excellent! That's exactly the problem. Thank you.

2004-11-19 Thread spoonman464
It turns out that the client application is forced to use a 1.3.x JVM for some architectural reasons that I can't change. So, we'll stick with JBoss 3.2.x until we grow out of our old JVM. Thanks, Scott. Spoon View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&

[JBoss-user] [Installation & Configuration] - What happened to the ..\client\jnet.jar file in JBoss 4.0.x?

2004-11-19 Thread spoonman464
I have a stand-alone Java client that needs to be able to get an initial JNDI context. It worked fine in JBoss 3.2.x but no longer works when I run it against a JBoss 4.0.x server. The trouble is that at runtime, my client cannot get an initial context because of the NoClassDefNotFoundError wh