shriram iyer

Ranch Hand
+ Follow
since Dec 10, 2003
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 shriram iyer

Hi,

i am trying to deploy an EJB in Glassfish.

my ejb-jar.xml is as follows



my sun-ejb-jar.xml is as follows




my client is as follows



i am using a Stateless Session Bean

I am getting look up failed,when i try to run above code

Cheers
12 years ago
Hi,

i have a form to capture user data.If user enters "null" in all the fields and submits the page,how to validate it using jsp.

Cheers,
12 years ago
JSP

Tim Moores wrote:Sounds like all windows of IE share the same cookies/sessions. I think that's true for all browsers, though.



How to distinguish one user from another user.

thanks
12 years ago
JSP
i am using apache-tomcat-5.5.34,to run following JSP Code




First i open an internet explorer and type in address bar

http://localhost:8082/jsp-examples/SessionTrack/index.jsp

new session created,when i refresh the page,the varible

accessCount increases by value 1

But when i open an another internet Explorer (without closing

previous one) and type in address bar


http://localhost:8082/jsp-examples/SessionTrack/index.jsp

i am getting accessCount variable value same as in first ie

browser.

my doubt is why new session is not created for second internet

Explorer i opened.Any fault in settings of my internet explorer


thanks
12 years ago
JSP

Darryl Burke wrote:To find out, I would go through the source of the method and trace the execution. TreeSet#add(...) calls TreeMap#put(...) on a TreeMap constructed with the supplied comparator, and that comparator is used in put(...)



do you mean following method



i have doubt in above method.what t.left ,t.right means

thanks
12 years ago
my question is based on following program



when i use ts.add("G") how compare method in MyComp is called?

thanks
12 years ago

Rob Spoor wrote:If you want to start using a TreeMap you will need to change not only that method, but also all methods that call that method and use Hashtable as reference type. By using Map you can change anytime you want:
If you now need to switch to TreeMap, you only need to change line 3 into this:
All other code will still compile without a problem. And if you really need the Map to be synchronized, just use this:



my question is that,whether there is any drawback in "using hashtable object" as return type
12 years ago
code snippet is as follows

My question is based on following method



What is the drawback of returning Hashtable as return type.Is there is any drawback as such ?

thanks
12 years ago

Peter Johnson wrote:That error usually means that only some of the information for that artifact appears in your local repository. You can usually overcome that by either removing the artifact's directory from your local repository, or by running mvn with the -U parameter.

Another possibility is that the remote repository does not contain the full artifact information (it might have the pom or other metadata files, but not the jar itself). I looked a Maven Central and for version 1.0.1B, there is no JAR file, only a POM. There is a 1.1 version that does have a JAR. You will have to find out which of your dependencies is pulling in the 1.0.1B version, pass the -X option to mvn to get that information. Once you know that, there are several ways to proceed: switch to a different version of that dependency (usually the best course of action), or configure the dependency to ignore the JTA sub-depenendency.



i included below repository in my pom.xml,now it works fine



cheers
12 years ago
hi,

i am getting following error while using mvn compile exec:java command

Failure to find javax.transaction:jta:jar:1.0.1B in http://repo1.maven.org/maven2 was cached in the local
repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced


my pom.xml is as follows




i am using maven version 3.0.3

thanks
12 years ago

Peter Johnson wrote:None of the Spring JARs are in WEB-INF/lib, and it is a Spring class that is missing.

What do you mean by "Actually Reference Libraries (ie External Jars)"? Exactly where are those JARs located?



Reference Librarires means i am adding all the jars from C:\Documents and Settings\admin\Desktop\strutsspringintegrate

i did following and now its working

i created a user library and included all the jars from C:\Documents and Settings\admin\Desktop\strutsspringintegrate
After that i added that user library to Project,Properties,Deployment Assembly

thanks


Peter Johnson wrote:Post the full stack trace, and post the contents of your WAR (use "jar -tf xxx.war" where xxx.war is the path to your war file)



full stack trace is




strutstag.war file content is



Actually Reference Libraries (ie External Jars)



already i have shown web.xml,struts-config.xml,applicationcontext.xml

thanks

Peter Johnson wrote:You are missing the JAR file that contains that class.

If you need more help than that, consider providing more information about your application. TellTheDetails




hi,

apart from jre system library (jdk),i am referencing following jars



my strutsconfig.xml is as follows


my applicationcontext.xml is as follows



my web.xml is as follows



thanks
hi,

i am getting error mentioned below,i included all the required jars,i am using eclipse helios,server is jboss

Error configuring application listener of class org.springframework.web.context.ContextLoaderListener: java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

same program works in NetBeans 6.9

Peter Johnson wrote:Let me google that for you: spring hibernate struts eclipse tutorial. I saw several.



i want to use the option "Add Struts Capabilities" and integrate.I have already integrated Struts,Spring and Hibernate in NetBeans 6.9.