Ganesh Sundaresan

Ranch Hand
+ Follow
since Feb 09, 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 Ganesh Sundaresan

Thanks Tim and Deepak for your suggestions.

Tim,

The WS is not under our control!!!
11 years ago
We are calling a RESTFull webservice which gives location details on passing the longitude and latitude.
Currently we are passing the request (from datastage) to this webservice (java client) one by one for 1 milliion records (of longitude and latitude parameters) and the time it
takes to complete the processing of entire 1 million records is around 16 hours.

We tried to improve the performace by doing the following:

1. calling the WS client in Thread - 15 threads each of which processes in equal share (of 1 million)
Now the performance is : 1 hr - 25000 records


Would appreciate if there are any other good approach for this.

Thanks,
Ganesh
11 years ago
Thanks for your reply Paul. Any idea why initialization failure occurs?
13 years ago
the ear file is not in the classpath..any other reason why it is not able to find the class?

1. I have chekced the class exixts in the correct package
2. JAVA_HOME is set
3. tools.jar is in the classpath
13 years ago
yes it is Struts application

and struts-config.xml has proper entries

Should the application ear be also in the classpath?
13 years ago
I am also getting the following exception


0000001d WebExtensionP E Error occured while preparing the servlet for initialization.
javax.servlet.ServletException: SRVE0207E: Uncaught initialization exception thrown by servlet
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:271)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:319)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1251)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:152)
at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:99)
13 years ago
yes "com.xxxx.exxx.web.action.homepage.HomepageAction" is available in the application ear under a warfile/WEB-INF/classes

and I can see the application in websphere admin console
13 years ago
Hi,

I am currently migrating websphere App server from 5.1 to 6.1.


After the successful deployment of the application ear I am getting the following exception:

java.lang.NoClassDefFoundError: com.xxxx.exxx.web.action.homepage.HomepageAction (initialization failure)

at java.lang.J9VMInternals.initialize(J9VMInternals.java:132)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1328)
at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:145)
at org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:282)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:220)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1102)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1037)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:832)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:679)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:566)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:321)
at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:518)
at com.ibm._jsp._index._jspService(_index.java:64)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1102)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1037)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:832)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:679)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:566)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:226)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:321)
at com.ibm.ws.webcontainer.servlet.FilterProxyServlet.dispatch(FilterProxyServlet.java:78)
at com.ibm.ws.webcontainer.servlet.FilterProxyServlet.service(FilterProxyServlet.java:57)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1102)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1037)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:832)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:742)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:695)
at com.ibm.ws.wswebcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:101)
at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.invokeFilters(DefaultExtensionProcessor.java:833)
at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:560)
at com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:113)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3444)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:815)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1466)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:119)


My classpath has the following entries

Classpath =
/opt/was61/AppServer/profiles/AppSrv01/properties:
/opt/was61/AppServer/lib/startup.jar:
/opt/was61/AppServer/deploytool/itp/batchboot.jar:
/opt/was61/AppServer/deploytool/itp/batch2.jar:
/opt/was61/AppServer/java/lib/tools.jar:
/opt/was61/AppServer/properties:
/opt/was61/AppServer/lib/bootstrap.jar:
/opt/was61/AppServer/lib/j2ee.jar:
/opt/was61/AppServer/lib/lmproxy.jar:
/opt/was61/AppServer/lib/urlprotocols.jar:

Can anyone please help me in resolving this issue? Should we give the aplication ear file also in the classpath?

Regards,
Ganesh
13 years ago
Hello everyone,

I am planning to take SCDJWS certification. I live in Chennai,India. I am not able to find J2EE Webservices Book by Richard Monson-Haefel.Can anyone send me the online store link.

Thanks.
Congrats Janna Davis

How much time did you take to complete these study materials?
16 years ago
Is there a option in Jboss to create new connections(to certain limit) even when the connection size reaches max limit?
16 years ago
Hi,

I am getting this Exception

Failed getDBPoolorg.jboss.util.NestedSQLException: No ManagedConnections available
within configured blocking timeout ( 30000 [ms] );

I have set min pool size as 5 and did not specify max size and it defaults to 20.

I have closed all connections in finally block. I beleive connection.close() is not returning the connection back to pool.

Can anyone help me on this. Thanks in advance.
16 years ago
Hi,

I planing to take Webservices Certification by September end 2006.
I dont have previous experiance in webservices. I am working in J2EE technologies for 5 years. Will it be possible for me to take the certification by september end? can you refer me good books and links for preparation.
Hi,
I am trying to compile JSP using Ant build tool.The generated source(.java) file contains package org.apache.jsp. Due to this package the Compiled JSP(servlet) name has to be preceeded with package org.apache.jsp. How do I avoid creating package? Find below my Ant build.xml.

project name Webapp Precompilation default all basedir .
target name jspc
taskdef classname org.apache.jasper.JspC name jasper2
classpath id jspc.classpath
pathelement location java.home..libtools.jar
fileset dir tomcat.home
include name *.jar
fileset
fileset dir lib.dir
include name *.jar
fileset
fileset dir ant.homelib
include name ant.jar
fileset
fileset dir webapp.pathWEB-INFlib
include name *.jar
fileset
classpath
taskdef
jasper2
validateXml false
uriroot webapp.path
webXmlFragment webapp.pathWEB-INFgenerated_web.xml
outputDir webapp.pathWEB-INFsrc
target
target name compile
javac destdir webapp.pathWEB-INFclasses
optimize on
debug on failonerror false
srcdir webapp.pathWEB-INFsrc
classpath
pathelement location web.inf.dirclasses
fileset dir tomcat.home
include name *.jar
fileset
fileset dir lib.dir
include name *.jar
fileset
fileset dir ant.homelib
include name ant.jar
fileset
fileset dir webapp.pathWEB-INFlib
include name *.jar
fileset
classpath
javac
target
target name all depends jspc,compile
target
project
16 years ago
Hi,

Anyone have sample Ant build.xml for JBoss 4.0.2. I am trying to compile JSP and build a jar file and move the jar file to WEB-INF/lib dir through a script.


Thanks
Ganesh
16 years ago