Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link

karthik mama

Ranch Hand
+ Follow
since Aug 27, 2007
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 karthik mama

Hi All,

can anyone please tell me where to put in my ActionForm class like will it be in the same directory as the Action classes?
please help me I'm new to struts.

Thanks
13 years ago
The code generated automatically is through SOAP messages and what i need is the code for a servlet where in i can invoke a WS...
13 years ago
yes for a WS client code is automatically generated. But the thing is without the help of the client generated i need to invoke the WS from a servlet after getting the form parameters leave aside 'bean' a mistype
13 years ago
Hi
I am using RAD 7 and the server is WAS 6.1.

I need to send the form details to the servlet from where in i need to create a bean based on those form details. then invoke a service on that bean get the response back then present it.

Thanks
13 years ago
Hi All,
i am actually new as to how can we call a web service from a servlet/jsp. I could do the same from a client but not from a servlet can anyone please help.
13 years ago
how to add it to websphere class path by the way??

And after removing mail.jar and activation.jar as you said the errors followed.....

Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/SharedByteArrayInputStream
at JavaMail.send(JavaMail.java:14)
at JavaMail.main(JavaMail.java:26)
13 years ago
I ran it on websphere app server 6.x ....
so you want me to also include rt.jar??
13 years ago

Right clicking my project and selecting build path i included the activation.jar files.....this was what i did....
13 years ago
"This class should be part of rt.jar"

I'm using RAD.... so how do i include the activation.jar as part of rt.jar......

If you don't mind could you please explain...
13 years ago
hey,

I did add the activation.jar to my class path but still it persists....
13 years ago
This was the code written....

13 years ago

The error when I'm trying to send a mail in my servlet application is...

Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport
at javax.activation.MailcapCommandMap.<init>(MailcapCommandMap.java:111)
at javax.activation.CommandMap.getDefaultCommandMap(CommandMap.java:44)
at javax.activation.DataHandler.getCommandMap(DataHandler.java:136)
at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:567)
at javax.activation.DataHandler.writeTo(DataHandler.java:294)
at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:230)
at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1065)
at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:1923)
at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1904)
at javax.mail.Transport.send(Transport.java:79)
at JavaMail.send(JavaMail.java:21)
at JavaMail.main(JavaMail.java:26)


Can anyone please help out.

Regards
Karthik
13 years ago
Hey Mike,

I was going through some forums....found out that in the servers view-->publishing section--> we need to uncheck minimize application files copied to server.... that actually helped me the errors vanished after i re-deployed my app and ran it..... and the advice you gave specifying run as roles in application.xml of EAR did work

So thanks a lot Mike

Regards
Karthik
13 years ago
Hey mike thanks for the reply.......

I'm using RAD...and i do have access to the admin console....


The role-based authorization check failed for admin-authz operation Server:getName....

Could you please tell in detail...
sorry for the trouble...

thanks in advance

Regards
Karthik
13 years ago