Re: Address already in use:JVM_BIND:8080

2004-11-04 Thread Ravi Mutyala
Harry Douglass, Jr. wrote:
Hello, 
I am trying to install Apache Tomcat to run JSP and servlets for the first
time.  When I type in this URL 'http://localhost:8080/' Windows XP prompts
me for a username and password.  I typed in both the username 'admin' and
blank password and a custom username and password when I installed it and I
get an "Unauthorized" web page returned.
When I try running Tomcat from the DOS prompt by typing 'tomcat start', I
see the SEVERE Error message: Address already in use:JVM_BIND:8080.  I know
I am running IIS, but I want to keep the same port it runs on, and manually
start Tomcat when I need it.
Harry
There is some other service that is binding to 8080. You can either 
identify and stop this service(netstat -a might help).. are change the 
port of the Tomcat that you are using. port can be changed in server.xml 
in the conf folder. server.xml will have configuration similar to the 
folloing.. the port in the below configuration can be changed to some 
unused port.

 
	
port="8080"   minProcessors="5" maxProcessors="75"
   enableLookups="true" redirectPort="8443"
   acceptCount="100" debug="0" connectionTimeout="2"
   useURIValidationHack="false" 
disableUploadTimeout="true" 		/>
	..
	..
	..
	..

/
Ravi.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: tomcat4127 standalone install login problem

2004-06-08 Thread Ravi Mutyala
Paul,
I think some other software is using the port 8080. Try changing the 
port in server.xml to some other one and check.

/
Ravi.
Paul wrote:
just installed a standalone version of "jakarta-tomcat-4.1.27-LE-jdk14.exe" on win2k, 
with jdk 14, and when i type http://localhost:8080 into web browser, get following response:
401 Unauthorized  {up in top line of browser instance}
enter username and password for "XDB" at localhost:8080  {is text in browser dialog 
prompt box}
yet no username/password combination is accepted, including that for admin.
anyone know what is going on here?
-paul
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Error using taglibs - unable to find setter

2004-05-26 Thread Ravi Mutyala
Thanx Larry. It helped!!
/
Ravi
Larry Isaacs wrote:
The following comes from the Tomcat 3.3.x faq file, which I assume
would apply in your situation:
Q. I have a bean with a property whose second letter is capitalized.
  Why won't my JSP page that uses this bean compile?
A. This may not happen often, but can be difficult to determine why.
  The reason is found in the Java Beans specification, where in section
  "8.8 Capitalization of inferred names" it states:
  Thus when we extract a property or event name from the middle of an
  existing Java name, we normally convert the first character to lower
  case. However to support the occasional use of all upper-case names,
  we check if the first two characters of the name are both upper case
  and if so leave it alone.
  This means that if you have a bean with a setter method of "setXLoc",
  then the inferred property is "XLoc", not "xLoc".  If you used this
  bean in a JSP page and you tried to use "xLoc" as the property, it
  would not compile. Using "XLoc" as the property would succeed.
  If you insist on using "xLoc" on the JSP page, you can make this possible
  by creating a BeanInfo class for the bean.  The following is an example
  of such a BeanInfo class for a simple bean called Coordinate.  It
  explicitly defines the properties of the bean to be "xLoc" and "yLoc".
HTH.
Cheers,
Larry
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Error using taglibs - unable to find setter

2004-05-25 Thread Ravi Mutyala
M.Hockings wrote:
Is the settter for dType  setdType(String value) or setDType(String 
value)?  I think that it will need to be the latter.

Mike
Mike,
the setter for dType is this.
public void setDType(String dType) {
  this.dType = dType;
}
Ravi Mutyala wrote:
Hi,
I created a tag which extends from the html:text tag.
I'm using tomcat 4.1.30.
when I use this tag, I get the following error. 
-
org.apache.jasper.JasperException:
/win_002_PMT_Manage_Cstmr_Prtfl.jsp(70,26) Unable to find setter
method for attribute: dType
at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94) 

at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428) 

at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:186) 

at
org.apache.jasper.compiler.Generator$GenerateVisitor.generateSetters(Generator.java:1753) 

at
org.apache.jasper.compiler.Generator$GenerateVisitor.generateCustomStart(Generator.java:1356) 

at
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1179) 

at
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:707)

The line in the jsp uses the tag that i created. the tag has the
setter method for  dType.
The same taglib is working in the application that is presently
deployed in weblogic. We are trying to migrate the same to
tomcat  and I am getting the above error.
Any clues?
Thanks in advance
/
Ravi.
tag code:
tag code.

package com.mycompany.presentation.taglib.html;
import org.apache.struts.taglib.html.TextTag;
import java.lang.reflect.Method;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.BodyContent;
import org.apache.struts.util.ResponseUtils;
import org.apache.struts.Globals;
import java.util.Iterator;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.util.RequestUtils;
import com.mycompany.presentation.constants.*;
import FormatConverter.*;
import javax.servlet.http.HttpSession;
import com.mycompany.utility.domainvalidations.*;
import org.apache.taglibs.display.ColumnTag;
import java.util.*;
import javax.servlet.http.HttpServletRequest;
public class wmText
   extends org.apache.struts.taglib.html.TextTag implements
Cloneable {
 protected String dType;
 protected String functionCall;
 protected String mandatory;
 protected String name = Globals.ERROR_KEY;  protected Iterator iter;
 
 protected String mode;
  DisplaySingleton ds  = DisplaySingleton.getInstance();
String dateInputFormat = ds.getDateInputFormat();
char separator = dateInputFormat.charAt(2);
 String decimalSeparator = ds.getDecimalSeparator();
 String thousandSeparator = ds.getThousandsSeparator();
 
 Class clz;

 public wmText() {
   super();
 }
 public String getDType() {
   return (this.dType);
 }
 public void setDType(String dType) {
   this.dType = dType;
 }
 public void setMandatory(String mandatory)
 {
   this.mandatory = mandatory;
 }
 public String getMandatory()
 {
   return (this.mandatory);
 }
 public String getMaxSize(String dType) {
   String getSize = "getSize";
   Integer intObj = null;
   dType = "com.mycompany.domainvalidations." + dType;
   try {   clz = Class.forName(dType);
 Method method = clz.getMethod(getSize, null);  intObj = 
(Integer) method.invoke(null, null);
   } catch (Exception e) {
 e.printStackTrace();
   }
   return intObj.toString();
 }

 public String getFunctionCall() {
   return (this.functionCall);
 }
 public void setFunctionCall(String functionCall) {
   this.functionCall = functionCall;
 }
 public String resolveFunctionCall(String dType) {
   String fCall = "";
   int decPlaces = 0;  if (dType.equals("D_Price")) {   
decPlaces =
FormatConverter.FormatConverterMngr.getDecimalPlaces(1);
 fCall = "this.value=
validateNumberForStrutsElement(this.value,','"+thousandSeparator+"'"+decimalSeparator+"'," 

+ decPlaces + ",true" +
 ")";
   }
   if (dType.equals("D_Forex")) {   decPlaces =
FormatConverter.FormatConverterMngr.getDecimalPlaces(2);
 fCall = "this.value=
validateNumberForStrutsElement(this.value,','"+thousandSeparator+"'"+decimalSeparator+"'," 

+ decPlaces + ",true" +
 ")";
   }
   if (dType.equals("D_Quantity")) {   decPlaces =
FormatConverter.FormatConverterMngr.getDecimalPlaces(3);
 fCall = "this.value=
validateNumberForStrutsElement(this.value,','"+thousandSeparator+"'"+decimalSeparator+"'," 

+ decPlaces + ",true" +
 ")";
   }
   if (dType.equals("D_Percentage")) {  

Error using taglibs - unable to find setter

2004-05-24 Thread Ravi Mutyala
Hi,
I created a tag which extends from the html:text tag.
I'm using tomcat 4.1.30.
when I use this tag, I get the following error. 
-
org.apache.jasper.JasperException:
/win_002_PMT_Manage_Cstmr_Prtfl.jsp(70,26) Unable to find setter
method for attribute: dType
	at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
	at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428)
	at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:186)
	at
org.apache.jasper.compiler.Generator$GenerateVisitor.generateSetters(Generator.java:1753)
	at
org.apache.jasper.compiler.Generator$GenerateVisitor.generateCustomStart(Generator.java:1356)
	at
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1179)
	at
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:707)


The line in the jsp uses the tag that i created. the tag has the
setter method for  dType.
The same taglib is working in the application that is presently
deployed in weblogic. We are trying to migrate the same to
tomcat  and I am getting the above error.
Any clues?
Thanks in advance
/
Ravi.
tag code:
tag code.

package com.mycompany.presentation.taglib.html;
import org.apache.struts.taglib.html.TextTag;
import java.lang.reflect.Method;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.BodyContent;
import org.apache.struts.util.ResponseUtils;
import org.apache.struts.Globals;
import java.util.Iterator;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.util.RequestUtils;
import com.mycompany.presentation.constants.*;
import FormatConverter.*;
import javax.servlet.http.HttpSession;
import com.mycompany.utility.domainvalidations.*;
import org.apache.taglibs.display.ColumnTag;
import java.util.*;
import javax.servlet.http.HttpServletRequest;
public class wmText
   extends org.apache.struts.taglib.html.TextTag implements
Cloneable {
 protected String dType;
 protected String functionCall;
 protected String mandatory;
 protected String name = Globals.ERROR_KEY; 
 protected Iterator iter;
 
 protected String mode;
  
DisplaySingleton ds  = DisplaySingleton.getInstance();
	String dateInputFormat = ds.getDateInputFormat();
	char separator = dateInputFormat.charAt(2);
 String decimalSeparator = ds.getDecimalSeparator();
 String thousandSeparator = ds.getThousandsSeparator();
 
 Class clz;

 public wmText() {
   super();
 }
 public String getDType() {
   return (this.dType);
 }
 public void setDType(String dType) {
   this.dType = dType;
 }
 public void setMandatory(String mandatory)
 {
   this.mandatory = mandatory;
 }
 public String getMandatory()
 {
   return (this.mandatory);
 }
 public String getMaxSize(String dType) {
   String getSize = "getSize";
   Integer intObj = null;
   dType = "com.mycompany.domainvalidations." + dType;
   try {  
 clz = Class.forName(dType);
 Method method = clz.getMethod(getSize, null); 
 intObj = (Integer) method.invoke(null, null);
   } catch (Exception e) {
 e.printStackTrace();
   }
   return intObj.toString();
 }

 public String getFunctionCall() {
   return (this.functionCall);
 }
 public void setFunctionCall(String functionCall) {
   this.functionCall = functionCall;
 }
 public String resolveFunctionCall(String dType) {
   String fCall = "";
   int decPlaces = 0;	
   if (dType.equals("D_Price")) {  
 decPlaces =
FormatConverter.FormatConverterMngr.getDecimalPlaces(1);
 fCall = "this.value=
validateNumberForStrutsElement(this.value,','"+thousandSeparator+"'"+decimalSeparator+"',"
+ decPlaces + ",true" +
 ")";
   }

   if (dType.equals("D_Forex")) {  
 decPlaces =
FormatConverter.FormatConverterMngr.getDecimalPlaces(2);
 fCall = "this.value=
validateNumberForStrutsElement(this.value,','"+thousandSeparator+"'"+decimalSeparator+"',"
+ decPlaces + ",true" +
 ")";
   }

   if (dType.equals("D_Quantity")) {  
 decPlaces =
FormatConverter.FormatConverterMngr.getDecimalPlaces(3);
 fCall = "this.value=
validateNumberForStrutsElement(this.value,','"+thousandSeparator+"'"+decimalSeparator+"',"
+ decPlaces + ",true" +
 ")";
   }

   if (dType.equals("D_Percentage")) {  
 decPlaces =
FormatConverter.FormatConverterMngr.getDecimalPlaces(4);
 fCall = "this.value=
validateNumberForStrutsElement(this.value,','"+thousandSeparator+"'"+decimalSeparator+"',"
+ decPlaces + ",true" +
 ")";
   }

   if (dType.equals("D_Value")) {  
 decPlaces =
FormatConverter.FormatConverterMngr.getDecimalPlaces(5);
 fCall = "this.value=
validateNumberForStrutsElement(this.value,','"+thousandSeparator+"'"+decimalSeparator+"',"
+ decPlaces + ",true" +
 ")";
   }
   
   if (dType.equals("d_date")) {  
 fCall = "tabDate(this,'" +dateInputFormat+"',