JohnJohn SmithSmith

Greenhorn
+ Follow
since Aug 11, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by JohnJohn SmithSmith

Hello, I've been searching for information on creating a CMP bean that has a compound primary key. I'm getting close, but it still isn't working properly.
It would help me a ton if someone knew of an example I could look at (with the deployment descriptors). I'm using JBoss 3.2.1. Does an example exist somewhere?
Here's my problem.
I've created a primary key object with two public string fields. When I call findByPrimaryKey() and pass it an instance of this object which is filled with valid values, I get a FinderException. Here's what is in the log:
2003-10-04 22:36:56,031 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException, causedBy:
javax.ejb.NoSuchObjectLocalException: Entity not found: primaryKey={GroupMemberPk group_id=00000000000000000200,agent_id=00000000000000000100}
If I call findAll(), I get a collection of the proper size, but as soon as I try to access any item inside the collection, I get a FinderException.
The same happens if I call one of my other finders. I get a collection of the proper size, but when I access anything, I get a FinderException.
Thanks
Jay
We develop Web applications. It looks like this book might not cover web development at all. Has anyone looked at the book? Would it be helpful for people who develop web applications?
Thanks
Jay
Look at the source code to Tomcat. It has implemented Webdav in a servlet. The servlet is
org.apache.catalina.servlets.WebdavServlet
Jay
20 years ago
The advise about URL re-writing that can provide automatic login is incorrect.
A session only lives for a short amount of time. I believe the default is an hour.
The only way I know that you do what you want to do is if cookies are enabled on the client browser and you write a cookie.
Any Java book that talks about servlets will talk about the session. I would encourage you to read about it. You will then understand how it works. It wasn't designed to be a long living session, if the person closes their browser, the session is over.
Jay
[ July 18, 2003: Message edited by: Jay Sissom ]
20 years ago
When you run a web application within JBuilder, it modifies the web.xml to add a special jsp running servlet that will let you debug jsp's. I don't know how to turn it off. It really isn't a problem if you always stop the running web app before editing web.xml.
Jay
21 years ago

Originally posted by Tom long:
I create a jsp file just for out print hello.
the jsp can work under weblogic.
but it will get an error under jbuilder6. I use the tomcat4.0 ships with jbuilder.
-------------------------------------------------
-------------------------------------------------
the exception is:
type Exception reportmessage Internal Server Errordescription The server encountered an internal root cause java.lang.ClassCastException: org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
at
-------------------------------------------------
-------------------------------------------------
I have run some servlets under jbuilder with tomcat4.0, I think it is working right. but when compile jsp file, it is error.
any help?
thank you


Instead of a completely unhelpful reply like the last person gave, how about one that might help.
It looks like you might not have the right version of the crimson XML package. Make sure the proper one is in your classpath.
Jay
21 years ago
JSP
Hi Shawn, Congratulations on your book coming out. I have a copy on order.
Jay Sissom
21 years ago
JSP