Mahesh Kulkarni

Ranch Hand
+ Follow
since Jul 05, 2001
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 Mahesh Kulkarni

Hi Adam,
Thx for your reply I will try that and let you the results.I think it will work.
Thx,
Mahesh
21 years ago
Hi,
I couldn't get the following in the code
lotsTO.getLot()??
What is lotsTo in this code.
also I would like to inform you that my link is the one which is dynamic. That is I'm fetching a vector from the Action class and for each row the Order number will be different. I want to pass the order number on which the client clicks
<a href=<%="/servlet.com.wl.orders.OrderDetailsServlet?"+SONo%>><%=SONo%</a>
With the servlet this is working fine. But with link tag I'm still not clear how to do it.The above link will be there for each row of the table.
Thx,
Mahesh
21 years ago
Hi Adam,
Thx for ur reply. I'm using struts 1.0 version. I temporarily did the link through <a> tag only and the querustring part is working. But the link tag gives lot of problems I feel. As my requirement is there will number of Order numbers and the link is for order number to get the details of the same. As I've to pass the order number whichever the Client clicks the Link tag is not working properly.
Any ideas about 1.1 struts please let me know
Thx
Mahesh
21 years ago
Hi Friends,
I'm working with Struts. I want to pass the querystring through a link tag and read the same in my action class.I'm not clear how to do the same.If anybody has answer please reply.
Thx,
Mahesh
21 years ago
Hi Friends,
I'm working with struts and successfully could run some egs. But for one specific eg when I changed the form beans, application is not working and giving me the exception.The struts.jar file is in lib directory.
EXCEPTION
======================
10/08 14:36:20 user FileServlet: init
10/08 14:36:21 error Unhandled exception thrown from /index1.jsp:17
[1]java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at jrunx.util.JRunURLClassLoader.defineClass(JRunURLClassLoader.java:168)
at jrunx.util.JRunURLClassLoader.findClass(JRunURLClassLoader.java:133)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at jrunx.util.JRunURLClassLoader.loadClass(JRunURLClassLoader.java:79)
at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
at jrunx.util.JRunURLClassLoader.loadClass(JRunURLClassLoader.java:79)
at jrunx.util.JRunURLClassLoader.loadClass(JRunURLClassLoader.java:71)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:563)
at jrun__index12ejspb._jspService(jrun__index12ejspb.java:97)
at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
at jrun.jsp.JSPServlet.service(JSPServlet.java:106)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.java:414)
at jrun.servlet.JRunRequestDispatcher.forwardInvoke(JRunRequestDispatcher.java:387)
at jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:172)
at jrun.servlet.file.FileServlet.service(FileServlet.java:339)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:241)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
[0]jrun.jsp.runtime.UncaughtPageException: Unhandled exception thrown from /index1.jsp:17
at jrun.jsp.runtime.Utils.handleException(Utils.java:57)
at jrun.jsp.runtime.JRunPageContext.handlePageException(JRunPageContext.java:381)
at jrun__index12ejspb._jspService(jrun__index12ejspb.java:247)
at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
at jrun.jsp.JSPServlet.service(JSPServlet.java:106)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.java:414)
at jrun.servlet.JRunRequestDispatcher.forwardInvoke(JRunRequestDispatcher.java:387)
at jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:172)
at jrun.servlet.file.FileServlet.service(FileServlet.java:339)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:241)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
======================================
strut-config.xml
=========================
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
<struts-config>

<!-- ========== Form Bean Definitions =================================== -->
<form-beans>
<form-bean name="login"
type="com.struts.ejb.LogonForm"/>
</form-beans>
<!-- ========== Global Forward Definitions ============================== -->
<global-forwards>
<forward name="start" path="/index.jsp"/>
</global-forwards>
<!-- ========== Action Mapping Definitions ============================== -->
<action-mappings>
<action
path="/logon"
type="com.struts.ejb.LogonAction"
name="login"
input="/logon.jsp">
<forward name="home" path="/home.jsp"/>
<forward name="logon" path="/logon.jsp"/>
</action>
</action-mappings>
</struts-config>
===============================
Please help me
Thx in advance
Mahesh
21 years ago
Hi Friends,
I'm working with JCA on JRUN4 and I've succesfully deployed the Blackbox resource adapter for SQL server.The insert procedure is working very fine. But I have some questions about the procedure returning the resultset.
1) How to read The records returned by a procedure i.e. all records. (For one output we can use OUTPUT parameter from the procedure.I've successfully used that).The Procedure is returning all the records and I'm not able to read it through Iterator or any other method.
2) Is there any other method through which I can read all records through JCA.
3) If the SQL server stored procedure returns the XML then how to get it in our application.
If anybody has any answers please help.
Thx in advance,
Mahesh
Hi raj,
The main use of different files is as follows.
1) .jar(Java archive) file
This is used to create jar for ejb classes(Remote,Home,Implementation) and META-INF. Also jar can be used when you want ship your own classes in .jar format (Eg being j2ee.jar or struts.jar)
2) .war(web archive) file
This is used to create the web archive.This will have all the classes,web.xml other web required files.
3) .ear (Enterprise Archive) file
This is used to combine .war and .jar files for enterprise deployment.
4) .rar (Resource Archive) file
This is used to archive the Resource adapter files (for JCA only).
The major use of this formats is that it helps us to ship the application on different servers.
yes servlet can be run through .war application and also through .ear files
Thx
Mahesh
Hi Friends,
I'm working with JCA on JRUN4 and I've succesfully deployed the Blackbox resource adapter for SQL server.The insert procedure is working very fine. But I have some questions about the procedure returning the resultset.
1) How to read The records returned by a procedure i.e. all records. (For one output we can use OUTPUT parameter from the procedure.I've successfully used that).The Procedure is returning all the records and I'm not able to read it through Iterator or any other method.
2) Is there any other method through which I can read all records through JCA.
3) If the SQL server stored procedure returns the XML then how to get it in our application.
If anybody has any answers please help.
Thx in advance,
Mahesh
Dear friends,
I'm working on JRUN4 app server. The initial deployment worked very fine and I could deply with struts also. But for this specific application Igetting following error.My directory structure and all is same for this application also.Only thing I added to this deployment was Entity bean.But I feel it should not create any problem.
The error is as follows
=========================
09/27 20:18:59 info Deploying enterprise application "myejdandstrut-ear" from: file:/D:/jrun4/servers/jrunprojects/myejdandstrut-ear/
09/27 20:18:59 info Unregistering enterprise application: file__D__jrun4_servers_jrunprojects_myejdandstrut-ear_#myejdandstrut-ear
09/27 20:18:59 error Deployer Service failed to deploy file:/D:/jrun4/servers/jrunprojects/myejdandstrut-ear/
* Could not deploy web application at file:/D:/jrun4/servers/jrunprojects/myejdandstrut-ear/myejdandstrut-war/.
* Failed to parse XML: file:/D:/jrun4/servers/jrunprojects/myejdandstrut-ear/myejdandstrut-war/
* null
[1]Failed to find WEB-INF/web.xml.
at jrun.servlet.WebApplicationFactory.loadWebAppMetaData(WebApplicationFactory.java:388)
at jrun.servlet.WebApplicationFactory.create(WebApplicationFactory.java:157)
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
====================================
Anybody has any idea please help.
Thx in advance
Mahesh
Hi friends,
I'm still waiting fo rsome replies regarding my question.If anybody has any information regarding the same please write.
Thx in advance,
Mahesh
Hi all,
Thank you very much for your replies.We are developing a Forward supply chain mangement system for a local vendor who has supplied the ERP. The database is SQL server. We are building it on JRUN. Can anybody please guide me how to go ahead with this type of project ie using connector architecture. Is resource adapter specific to a database or ERP vendor?
Thx in advance,
Mahesh
Thx Kyle for your reply.
But still I'm not clear about the resource adapter part of it. Can we develop a resource adapter for our own ERP(local) or can we get one downloadable from somewhere (not specific to any vendor).
Thx in advance,
Mahesh
Dear friends,
I've got Question on J2EE and Connector architecture.
As the Connector architecture is similar to JDBC why we have to use the Connector architecture.As the connector architecture requires resource adapter specific to ERP vendor,can we develop resource adapter for different vendors(low profile ERP solution providers).What is the so much hype about Conector architecture.
If anybody has answers please reply
Thx in advance,
Mahesh
Hi Friends,
We are working on project for an Automobile sector.The project is in EJB and on iplanet App server.My client here wants to know what is the standard code lines per day a coder can code? The code lines per day should include proper testing,proper commenting that is a standard code line.
So friends if anybody has the data please answer
Thanx in advance
Mahesh Kulkarni
Hello friends,
We'r facing the following problem
We've deployed an application on iplanet app server using oracle 8i as the rdbms.
we've aet max_open_cursors =2000.The following is the details of our deployment.
We would like to know about reserved,unreserved and total pools available.
1.We created one external database driver(jdbc driver) viz ora-type4 with the proper classes and classpath.
2.We then created one datasource viz connectdb/ConnectDbDB for the above specified driver.
Details of the same are as follows.
a)Jndi name = connectdb/ConnectDbdB.
b)Driver type =ora-type4.
c)Database url= jdbc racle:thin:@server:1521:WEB
d)Username = scott
e) password= tiger
f) DebugLevel =1
g) MaxPoolSize =15
h) MaxWait= 5
i) Monitorinterval = 10
j) SteadyPoolSize=5
k) UnUsedMaxLife = 120
3.We created a stateless session bean viz ConnectBean which has all the methods, for eg getConnection(),insert(String sql),update(String sql)etc.This bean is used to get the connection with the oracle as well as querying the database etc.
4.We have used the above session bean in our other EJB or servlets for making/executing the database queries.
5.We are getting the exception as follows.

Error while retriving..Closed Connection
ResultSet..null
After Retriving.....
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:381)
at com.netscape.server.servlet.platformhttp.PlatformHttpServletRequest.s
etAttribute(Unknown Source)
at com.wl.scms.tpl.tplconsign.CustomerWiseViewConsignServlet.service(Cus
tomerWiseViewConsignServlet.java:109)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
Source)
at com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
wn Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at java.lang.Thread.run(Thread.java:479)
Finally Connection Closing...
closing Statement
closing Connection
[18/Jan/2002 18:27:36:2] info: RLOPMGR-023: connectdb/ConnectDbDB: Reserved=13
Also some times we r getting the exception as follows
closing Statement
#
# An EXCEPTION_ACCESS_VIOLATION exception has been detected in native code outsi
de the VM.
# Program counter=0x4f31f73
#
# Problematic Thread: prio=5 tid=0xfdc2a30 nid=0x223 runnable
#
#
# An EXCEPTION_ACCESS_VIOLATION exception has been detected in native code outsi
de the VM.
# Program counter=0x4f31f73
#
# Problematic Thread: prio=5 tid=0xfdc2a30 nid=0x223 runnable
#
#
# An EXCEPTION_ACCESS_VIOLATION exception has been detected in native code outsi
de the VM.
# Program counter=0x4f31f73
#
# Problematic Thread: prio=5 tid=0xfdc2a30 nid=0x223 runnable
#
LoginID :TPL
All connection are closed properly after each query.