This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Java SE 8 Programmer II Exam Study Guide and have Kathy Sierra, Bert Bates, & Elizabeth Robson on-line!
See this thread for details.
Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!

bharat nagpal

Ranch Hand
+ Follow
since Oct 26, 2002
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 bharat nagpal

Your check.action.PropertySearchAction in not in classpath.
13 years ago
Has anyone used hibernate with Eclipse?
Just wanted to know which plug-in is better (if there is any difference!) ? Hibernator or hibernate sync or ...anyother

TIA
Bharat
I've started two independent servers(weblogic application server) on two different machines, with a hardware loadbalancer(on third machine,with round robin scheme). Everything seems to be fine when both servers are running, but when I bring down one of the servers session, sometimes it asks for user login again.Means session replication is not happening properly. Any suggestions, what could be wrong?
you need to add following to PATH.
D:\jakarta-ant-1.5.1\bin

(I assume that D:\jakarta-ant-1.5.1 is the directory where you have installed/copied ANT)

also set environmental variable
ANT_HOME=D:\jakarta-ant-1.5.1
13 years ago
To be precise, I'm not able to see the jsp page, when I try to fwd. the request. it's not getting compiled. But when I access it directly through browser, it gets compiled and after that the above Fwd. stuff works fine.

-Bharat
13 years ago
JSP
There is no error message anywhere. The only thing I'm able to see in logs is 404 (in access.log). and When I debug the code it goes to the line where the request Forward is executed with all valid values.
The code works fine even for the first time, if I remove container authentication.
13 years ago
JSP
I’m migrating an existing application’s authentication from Database to container managed authentication. There is a case where I need to catch the exception and display an error page. I get a 404 when exception is caught, instead of getting jsp page.
When I open a browser window and try to access that error page using http://localhost/common/abc/myError.jsp
The page is shown.
"Now" If I go to my application and replicate that error condition, exception is caught and also the error page is displayed. I can’t understand why, first time, I don’t get error page???

any clue?
13 years ago
JSP
you can include the classpath in startweblogic.cmd
set CLASSPATH=%WEBLOGIC_CLASSPATH%;%POINTBASE_CLASSPATH%;%JAVA_HOME%\jre\lib\rt.jar;%WL_HOME%\server\lib\webservices.jar;%CLASSPATH%

I guess it adds the jar files from the folder:
BEA_HOME\server\lib

HTH
13 years ago
Basically JSP+Beans serve same purpose as Servlets. Servlets tend to mix presentation with business logic, while using JSP with Java beans allows you to seperate your presentation logic from business logic. So whenever there is presentation involved always use JSP with beans. Let's say tomorrow you need to change HTML to UML...only your jsp files will change and also your jsp can be easily maintained by designers. Servlets are generally used when there is no presentation invloved. e.g as controller(in MVC).
HTH
[ July 17, 2004: Message edited by: bharat nagpal ]
13 years ago
simplest way
create a new dir c:\lib
copy servlet.jar and j2ee.jar in this directory.
open command prompt and type.
SET CLASSPATH=%CLASSPATH%;.;c:\lib\servlet.jar;c:\lib\j2ee.jar
Now try to compile.
Later set the values in environmental variables.
[ February 10, 2004: Message edited by: bharat nagpal ]
14 years ago
I won't advice you to go only for Vertical cloning, as horizontal cloning gives you failover support. So the combination of 2 would be a better approach.The exact configuration depends on many aspects like your data access, dynamic stuff and appraoch followed while development. Any other ideas?
14 years ago
Let's say I want to change my application in any of three ways:
1) There is slight change in one of the bean's method. Let's say I'm incrementing the value of a local varibale by one.
2) Method's signatures have been changed.
3) The EJB is new one (is it possible to add new ejb jar in the existing EAR, without redeploying the whole EAR?)
what exactly I need to do in these three cases (Let's say I'm not using WSAD), and using ANT to build the application.
14 years ago
There are so many ways. what exactly is your requirement?
14 years ago

Originally posted by S Mi:
Hello,
well, I've tried to use that AAT and it always throws the error that my WAR file is of an incorrect type.


Could you post contents of your web.xml file?
14 years ago
yup.Thats very much clear now.
Thanks a lot
14 years ago
JSP