bharat nagpal

Ranch Hand
+ Follow
since Oct 26, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by bharat nagpal

Your check.action.PropertySearchAction in not in classpath.
19 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
20 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
20 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.
20 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?
20 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
20 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 ]
20 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 ]
20 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?
20 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.
20 years ago
There are so many ways. what exactly is your requirement?
20 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?
20 years ago
yup.Thats very much clear now.
Thanks a lot
20 years ago
JSP