Nageswar Kakolla

Ranch Hand
+ Follow
since Jan 16, 2006
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 Nageswar Kakolla

I would use Enterprise Architect from Sparx Systems as it is widely used as design tool for J2EE applications.

You can download trial version. You can google to get the link

Thank You
Nageswar
Oct 23, 2009 1:50:41 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/63 config=null
Oct 23, 2009 1:50:41 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1389 ms
Oct 23, 2009 1:50:56 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Oct 23, 2009 1:50:56 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/Retailer-7.1.0.3] startup failed due to previous errors

I am using Tomcat 6.0.0_20 with JDK 1.6.0.04 and trying to deploy war file.

here is snippet of web.xml

<listener>
<listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
</listener>
<display-name>Retailer</display-name>
<servlet>
<servlet-name>jaxws-servlet</servlet-name>
<servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>jaxws-servlet</servlet-name>
<url-pattern>/delta/Retailer</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
</web-app>

and sun-jaxws.xml

<endpoints xmlns='http://java.sun.com/xml/ns/jax-ws/ri/runtime' version='2.0'>
<endpoint
name='NetQualService'
implementation='com.xx.Retailers'
url-pattern='/delta/Retaler'>
<javaee:handler-chains xmlns:javaee="http://java.sun.com/xml/ns/javaee">
<javaee:handler-chain>
<javaee:handler>
<javaee:handler-class>com.xx.handler.RetailerHandler
</javaee:handler-class>
</javaee:handler>
<javaee:handler>
</endpoint>
</endpoints>

Apprecaite any help and i found following link but not quite clear about the solutions,

http://www.nabble.com/SEVERE:-Error-listenerStart-td23642483.html

14 years ago

I resolved the issue by copying latest JAXWS2.1 of webservices-rt.jar in tomcat lib and WEBAPPS\*\lib directory but now i am getting similar NoSuchMethodError,. there was some explanation somewhere like JAVA might be reading Webservice related from its own lib rather new WS provided in tomcat lib. put all relevatn libraries in endorsed so i copied in jdk endorsed but no luck.

SEVERE: WSSERVLET11: failed to parse runtime descriptor: java.lang.NoSuchMethod
rror: com.sun.xml.ws.api.pipe.ServerPipeAssemblerContext.createValidationPipe(L
om/sun/xml/ws/api/pipe/Pipe;)Lcom/sun/xml/ws/api/pipe/Pipe;
java.lang.NoSuchMethodError: com.sun.xml.ws.api.pipe.ServerPipeAssemblerContext
createValidationPipe(Lcom/sun/xml/ws/api/pipe/Pipe;)Lcom/sun/xml/ws/api/pipe/Pi
e;
at com.sun.xml.ws.assembler.PipelineAssemblerFactoryImpl$WsitPipelineAs
embler.createServer(PipelineAssemblerFactoryImpl.java:305)
at com.sun.xml.ws.api.pipe.TubelineAssemblerFactory$TubelineAssemblerAd
pter.createServer(TubelineAssemblerFactory.java:140)
at com.sun.xml.ws.server.WSEndpointImpl.<init>(WSEndpointImpl.java:152)
at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory
java:217)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:467)
at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapte
s(DeploymentDescriptorParser.java:253)
at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(Deplo
mentDescriptorParser.java:147)
at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.conte
tInitialized(WSServletContextListener.java:108)
at org.apache.catalina.core.StandardContext.listenerStart(StandardConte
t.java:3934)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:
429)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java
14 years ago
Hi,

I am deploying webservices war file on Aapche tomcat. I got cleared of issues, Handler,setting up sun-jaxws.xml etc. war.

apache 6.x version which uses JDK 1.6 and also, war file is also compiled using JDK 1.6. war files consists of WSDL, Handlers etc. web.xml has context listener as well.

following seems, getPolicyMap() method is called and when I checked WSEndPoint.java which is abstract class does not have getPolicyMap() method ?

Appreciate any help?

SEVERE: WSSERVLET11: failed to parse runtime descriptor: java.lang.NoSuchMethodE
rror: com.sun.xml.ws.api.server.WSEndpoint.getPolicyMap()Lcom/sun/xml/ws/policy/
PolicyMap;
java.lang.NoSuchMethodError: com.sun.xml.ws.api.server.WSEndpoint.getPolicyMap()
Lcom/sun/xml/ws/policy/PolicyMap;
at com.sun.xml.ws.assembler.ServerTubelineAssemblyContext.<init>(ServerT
ubelineAssemblyContext.java:67)
at com.sun.xml.ws.assembler.TubelineAssemblerFactoryImpl$MetroTubelineAs
sembler.createServer(TubelineAssemblerFactoryImpl.java:108)
at com.sun.xml.ws.server.WSEndpointImpl.<init>(WSEndpointImpl.java:152)
at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.
java:217)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:467)
at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapter
s(DeploymentDescriptorParser.java:253)
at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(Deploy
mentDescriptorParser.java:147)
at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contex
tInitialized(WSServletContextListener.java:108)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3934)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
429)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:
1249)
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServl
et.java:612)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServl
et.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF

web.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
<web-app>
<listener>
<listener-class>
com.sun.xml.ws.transport.http.servlet.WSServletContextListener
</listener-class>
</listener>
<servlet>
<servlet-name>HelloWorld</servlet-name>
<servlet-class>
com.sun.xml.ws.transport.http.servlet.WSServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>HelloWorld</servlet-name>
<url-pattern>/real/HelloWorld</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>60</session-timeout>
</session-config>
</web-app>

sun-jaxws.xml


<endpoints xmlns='http://java.sun.com/xml/ns/jax-ws/ri/runtime' version='2.0'>
<endpoint
name='HelloWorld'
implementation='com.company.services.real.HelloWorld'
wsdl="WEB-INF/wsdl/HelloWorld"
url-pattern='/HelloWorld'>
<javaee:handler-chains xmlns:javaee="http://java.sun.com/xml/ns/javaee">
<javaee:handler-chain>
<javaee:handler>
<javaee:handler-class>com.company.services.real.handler.HelloWorldHandler
</javaee:handler-class>
</javaee:handler>
</javaee:handler-chain>
</javaee:handler-chains>
</endpoint>
</endpoints>

14 years ago
Hi there,

I am able to deploy ear file thru weblogic console but when i am using maven comman to deploy ear file, i am getting following exception Also, jdk was set to 1.5 and i changed to 1.4 in .profile.


weblogic:deploy:
weblogic:prepare-deploy:
[echo] Preparing deployment

[java] DeploymentData : Delete Files:false
[java] Timeout :3600000
[java] Targets:
[java] Files:
[java] null
[java]
[java] dumping Exception stack
[java] java.io.EOFException
[java] at weblogic.rjvm.t3.T3JVMConnection.endOfStream(T3JVMConnection.java:874)
[java] at weblogic.socket.SocketMuxer.deliverExceptionAndCleanup(SocketMuxer.java:583)
[java] Unexpected Exception
[java] at weblogic.socket.SocketMuxer.deliverEndOfStream(SocketMuxer.java:533)
[java] at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:691)
[java] at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:638)
[java] at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:282)
[java] at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:32)
[java] at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
[java] at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
14 years ago
Thank You guys for your opinion.

My 2 cents,

1. first it reduce code from 3 to 5 lines to single line

2. Also, if it was poor programming style, why would java authors would keep it in the first place

3. Whether you are from C background or not, You will learn your programming language features in Java and sometimes unlearn if you are coming from other programming languages background.

I always like to use ternary operator as it simplifies number of lines period.
14 years ago
Hi there,

I recently happen to use ternary operator while implementing some logic in java

for example
boolean flag = false;

if(){
flag = false;
}
...

x= flag?2:3;

where x will be set 2 or 3 depending on the flag true or false;

I got review feedback from one of my team member that ternary operator in java is considered seriously poor programming style if one is not coming from c background. I am not sure that is true.

would like to seek your opinion

14 years ago
It was conveyed to me by my Manager that some other senior person gave feedback like code quality is not meeting the high expectations
15 years ago
Hi there,

I was told that my java code is not of good quality. I am experienced guy in java, EJB, JMS, J2EE , Weblogic, struts etc How can I improve my java quality code.


..
15 years ago
Cameron,

File referenced is available in same directory. Somtimes, error file changes but same error. Something wrong with basic setup of RAD or dont know.

my co-workers are not getting same error when they get code base from ClearCase.

Nag
15 years ago
I am running IBM RAD V6.0 and getting following error

for VendorMaintenance.jsp

JspTranslate:inputFileName:VendorProductConsumer.jsp where VendorProductConsumer.jsp is referenced in VendorMaintenance.jsp


Appreciate the help,

Nag
15 years ago
Hi there,

I have an error in my following WSDL file

at output Message and Binding Port Type (I have put them in Bold and Italics)

any pointers will be great help,

<?xml version="1.0" encoding="UTF-8"?>
<wsdl efinitions
xmlns:impl="http://audithistory.service.webservice.eah.cih.bmp.emdeon.com"
xmlns:intf="http://audithistory.service.webservice.eah.cih.bmp.emdeon.com"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsi="http://ws-i.org/profiles/basic/1.1/xsd"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://audithistory.service.webservice.eah.cih.bmp.emdeon.com">
<wsdl:types>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://audithistory.service.webservice.eah.cih.bmp.emdeon.com"
xmlns:impl ="http://audithistory.service.webservice.eah.cih.bmp.emdeon.com"
xmlns:intf="http://audithistory.service.webservice.eah.cih.bmp.emdeon.com"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="auditHistoryRequest">
<complexType>
<xsd:sequence>
<xsd:element name="applicationName"
nillable="false" type="xsd:int" />
<xsd:element name="category" type="xsd:string" />
<xsd:element name="fromDate" type="xsd ate" />
<xsd:element name="toDate" type="xsd ate" />
<xsd:element name="limit" type="xsd:int" />
</xsd:sequence>
</complexType>
</xsd:element>
</schema>
</wsdl:types>

<wsdl:message name="auditHistoryRequest">
<wsdl art name="auditHistoryInput" element="impl:auditHistoryRequest"/>
</wsdl:message>

<wsdl:message name="auditHistoryResponse">
<wsdl art name="auditHistoryOutput" element="impl:auditHistoryResponse"/></wsdl:message>

<wsdl ortType name="AuditHistoryPortType"><wsdl peration name="retrieveAuditHistory">
<wsdl:input message="impl:auditHistoryRequest"/>
<wsdl utput message="impl:auditHistoryResponse" />
</wsdl peration>
</wsdl ortType>

<wsdl:binding name="AuditHistorySoapBinding" type="AuditHistoryPortType">
<wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl peration name="retrieveAuditHistory">
<wsdl:input name="auditHistoryInput">
<wsdlsoap:body use="literal" />
</wsdl:input>
<wsdl utput name="auditHistoryOutput">
<wsdlsoap:body use="literal" />
</wsdl utput>
</wsdl peration>
</wsdl:binding>

<wsdl:service name="AuditHistoryService">
<wsdl ort binding="impl:AuditHistorySoapBinding"
name="AuditHistoryRequest">
<wsdlsoap:address location="https://localhost:9080/webservices/AuditHistory" />
</wsdl ort>
</wsdl:service>

</wsdl efinitions>
15 years ago
I am convinced with Contract First as opposed to Contract Last. Spring argument is very good one.
15 years ago
Hi there,

I am using IBM RAD to generate Webservices. My dilemma is should I start with WSDL definition and generate Binding Classess or go ahead and start with Java Classes and expose them as Webservices by generating WSDL, Stub etc.

It seems either approach is Ok except that I am more comfortable with Java Code than WSDL nuances

Nag
15 years ago
Guys,

static final String A = "A";

is allowed since static final is way of defining CONSTANTS in java.

whereas static variable is not allowed in inner class.

Try
static String A ="A";
and you will get compiler error since above String A is static variable and is not allowed in inner class due to Instance is required for outer class and static variables are not applicable for Instance classes. Hence Non static Inner classes can not contain static member variables but constants are allowed.

Hope this explanation suffice !