satyanarayana bnv

Greenhorn
+ Follow
since Aug 07, 2008
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 satyanarayana bnv

Hi,

Thanks for replying. I am not supposed to use deprecated attributes.

Thanks,
Satya.
12 years ago
Hi All,

I am using @HandlerChain(file="HandlerConfig.xml") annotation to configure a SOAPMessageHandler in my Impl file. This annotation contains a deprecated "name" attribute. When I am not specifying "name" attribute in the annotation, JWSC task is throwing "Null Pointer Exception" while creating the war of the service. This is probably because the HandlerConfig.xml contains handler-chain-name element and the annotation doesn't contain "name" attribute. When I am specifying name attribute in the annotation everything is fine. Please help me in resolving the problem without "name" attribute.

This is the code I am having:

SubmitApplicationServiceImpl.java:

package com.project.webservices.submitappservice;
import javax.jws.WebService;
import weblogic.jws.WLHttpTransport;
import javax.jws.HandlerChain;

@HandlerChain(file = “SubmitAppHandlerChain.xml”)
@WebService(serviceName = "SubmitApplicationService", targetNamespace = "http://project.com/ SubmitApplicationService", endpointInterface = "com.project.webservices.submitappservice.SubmitApplicationServiceSoap")
@WLHttpTransport(contextPath = "SubmitApplicationService", serviceUri = "SubmitApplicationService", portName = "SubmitApplicationServiceSoapSoapPort")
public class SubmitApplicationServiceSoapImpl implements
SubmitApplicationServiceSoap {
public SubmitApplicationRes submitApplication(
SubmitApplicationReq submitApplicationRq) {
// Our business logic here.
return submitApplicationRes;
}
}



This is my handler configuration file in the same package:

SubmitAppHandlerChain.xml:

<?xml version='1.0' encoding='UTF-8'?>
<jwshc:handler-config xmlns:jwshc="http://www.bea.com/xml/ns/jws"
xmlns="http://java.sun.com/xml/ns/j2ee" >

<jwshc:handler-chain>
<jwshc:handler-chain-name>HandlerChain</jwshc:handler-chain-name>
<jwshc:handler>
<handler-name>AppServiceHandler</handler-name>
<handler-class>com.project.webservices.submitappservice.AppServiceHandler</handler-class>
</jwshc:handler>
</jwshc:handler-chain>

</jwshc:handler-config>




This is the build target that creates war of the service:

<taskdef name="jwsc"
classname="weblogic.wsee.tools.anttasks.JwscTask"
classpathref="compile.classpath" />

<target name="create-appservice-war>
<jwsc srcdir="${basedir}/project/src" destdir="${basedir}/projectEAR/build">
<jws file="com/project/webservices/submitappservice/SubmitApplicationServiceSoapImpl.java"/>
<classpath refid="jwsant.classpath" />
</jwsc>
</target>



Thanks,
Satya
12 years ago
Hi All,

Can anyone tell me how to configure a SOAPMessageHandler in a service's Impl file using annotations.


Thanks,
Satya.
12 years ago
How to get Yes/No buttons instead Ok/Cancel in confirm box?
I am using "selectOneRadio" in JSF. I need the layout of radio buttons in rows and columns other than "page direction" and "line direction". My requirement is like I have six radio buttons and I need them to be in 3 rows and 2 columns. Can anyone please help me.

Thanks in advance.

Satya
12 years ago
JSF
When Javascript is disabled this functionality fails. So we are going for JSF functionality.
12 years ago
JSF
Hi All,

Is there any way to close the browser window in JSF without using Javascript window.close().
12 years ago
JSF
What is the exact difference between Overloading and Polymorphism?
12 years ago
I am using tomahawk <t:validateEmail> tag to validate email. When I am doing this I am getting an exception as ...


java.lang.NoClassDefFoundError: org / apache/commons/ validator/ GenericValidator
12 years ago
JSF
Hi,

I my application I am trying to send an email using JavaMail API. I have written the code as .

try
{
Properties props=new Properties ();
props.put("mail.smtp.host","HOSTNAME");
Session session = Session.getInstance (props, null);
Message message =new MimeMessage (session);
message.setFrom(new InternetAddress("XYZ@DOMAIN.com"));
message.setRecipients(Message.RecipientType.TO,InternetAddress.parse("XYZ@DOMAIN.com",true));
message.setSubject("hai");
message.setText("hello");
Transport.send(message);
System.out.println("mail has been sent");
}
catch(MessagingException ex)
{
System.out.println("ERROR....."+ex);
}

While I am trying to run this I am getting an Exception as follows�

ERROR.....javax.mail.MessagingException: [EOF]

I have no idea where might I have gone wrong.
Can anyone please help me if you have come across this kind of exception.


Thanks & regards,

Satyanarayana.
12 years ago
JSF

Originally posted by Ulf Dittmer:
Welcome to JavaRanch.

A mailto URL causes a mail window to be opened on the client, which is not really what you want.
You should write the logic to send the mail as part of the server-side code. The relevant Java API for sending mail is called JavaMail; you'll need a mail server to use it (or use a library like Aspirin -on dev.java.net- that can send email without a server). An introduction to JavaMail can be found here.

12 years ago
JSF
In my JSF application when a new user registers I want to send an auto email to the admin. I have tried using mailto url but couldn't succeed.
Can anyone please help me...
12 years ago
JSF