manish Wafgaonkar

Greenhorn
+ Follow
since Feb 13, 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 manish Wafgaonkar

Hi Their,

I am facing some problem while deploying my web application.

We have developed a web application using struts,and oracle9i as backend.
while development the application is working fine. when i tried to deploy it on diff network, it is still working but
with very slow performance. The execution of one query takes around 15 min and some time it gets timed out.

While development the tomcat server and the oracle server is on the same LAn but on diff machine.
and in the deployment site the tomcat server and the oracle server both are on the different LAN.

can any one help me

thanks in advance
18 years ago
check your validation method. If control is not going beyonf ActionForm it means either setMethod Throwing exception or validation method returning some error. Try to add input attribute in your action in struts config.
and put </html:errors> in that input jsp.
18 years ago
HI there,

I m facing a problem related to the context loading,

I m creating a application (myApp) using struts1.2

when i type http://localhost:8080/myApp/ it is showing this error

exception

org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


root cause

java.lang.NullPointerException
org.apache.struts.taglib.html.JavascriptValidatorTag.renderJavascript(JavascriptValidatorTag.java:353)
org.apache.struts.taglib.html.JavascriptValidatorTag.doStartTag(JavascriptValidatorTag.java:335)
org.apache.jsp.index_jsp._jspx_meth_html_javascript_0(index_jsp.java:192)
org.apache.jsp.index_jsp._jspService(index_jsp.java:99)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)



My jsp is

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--
@author: Mohit Singhal
@Date : 07/04/2006
@updated by :
@updated on :
-->

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-layout.tld" prefix="layout" %>

<html:html>
<head>
<html:form action="/ValidateLogin">

<%System.out.println("STEP 1");
<bean:message key="loginPage.label.userID" />
<%System.out.println("STEP 2");
<html:text property="employeeCode" styleClass="txt_medium" />

</html:form>

</html:html>

when i run the application, the "STEP 1" is get printed on console but not "STEP 2"

when i saw the log file it is giving this error on loding context

/2006-05-08 16:20:22 NamingContextListener[/Catalina/localhost/myApp]: Resource parameters for UserTransaction = null
2006-05-08 16:20:23 StandardContext[/myApp]Marking servlet action as unavailable
2006-05-08 16:20:23 StandardContext[/myApp]Servlet /myApp threw load() exception
javax.servlet.UnavailableException: Parsing error processing resource path /WEB-INF/struts-config.xml
at org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:739)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:715)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:670)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:329)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)

The same application was running yesterday...and when i tried to run it in moring its giving above errors.

Can anyone help me

Thanx in advance

one more thing i want to mention here is that when i tried the url http://java.sun.com/j2ee/dtds/web-app_2_2.dtd (The DocType url in web.xml) its not showing it properly
18 years ago
Hi there,
I dont understand the meaning of loosley coupled
and tightly copuled in terms of java classes and
packages. Can any one tell me the meaning or any link
that describes it in detail.

Thanx in advance
Manish Wafgaonkar
18 years ago