[JBossWS] - WS client returns null, why?
by Sancheski
Hi all,
I am facing a problem when getting the response from a ws invocation. As far as I see through org.jboss.ws.core.MessageTrace logger, the ws server returns a valid response. I don't know why, this response turns to a null one in my client. Here are the log traces:
| 2008-04-24 12:33:18,838 TRACE [org.jboss.ws.core.MessageTrace] Incoming Request Message
| <soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsd='http://www.w3.
| org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
| <soapenv:Header>
| <ns1:Security ns1:Password='app:1272268494445808129' ns1:UserName='domain_user' soapenv:actor='wsse:P
| asswordToken' soapenv:mustUnderstand='1' xmlns:ns1='http://172.22.191.143:8080/parlayx2/services/Ter
| minalLocation' xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/' xsi:type='soapenc:string'/>
| </soapenv:Header>
| <soapenv:Body>
| <getLocation xmlns='http://www.csapi.org/schema/parlayx/terminal_location/v2_2/local'>
| <address>tel:34609214237</address>
| <requestedAccuracy>2000</requestedAccuracy>
| <acceptableAccuracy>4000</acceptableAccuracy>
| <maximumAge>
| <metric xmlns=''>Hour</metric>
| <units xmlns=''>1</units>
| </maximumAge>
| <responseTime xmlns='http://www.csapi.org/schema/parlayx/terminal_location/v2_2/local'>
| <metric xmlns=''>Minute</metric>
| <units xmlns=''>1</units>
| </responseTime>
| <tolerance xmlns='http://www.csapi.org/schema/parlayx/terminal_location/v2_2/local'>DelayTolerant</tolerance>
| </getLocation>
| </soapenv:Body>
| </soapenv:Envelope>
| 2008-04-24 12:33:18,947 WARN [org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl] Cannot get port meta
| data for: {http://www.csapi.org/wsdl/parlayx/terminal_location/v2_2/service}TerminalLocation
| 2008-04-24 12:33:19,229 TRACE [org.jboss.ws.core.MessageTrace] Outgoing Request Message
| <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
| <env:Header/>
| <env:Body>
| <ns2:getLocation xmlns:ns2='http://www.csapi.org/schema/parlayx/terminal_location/v2_2/local'>
| <ns2:address>609214237</ns2:address>
| <ns2:requestedAccuracy>2000</ns2:requestedAccuracy>
| <ns2:acceptableAccuracy>4000</ns2:acceptableAccuracy>
| <ns2:maximumAge>
| <metric>Hour</metric>
| <units>1</units>
| </ns2:maximumAge>
| <ns2:responseTime>
| <metric>Minute</metric>
| <units>1</units>
| </ns2:responseTime>
| <ns2:tolerance>DelayTolerant</ns2:tolerance>
| </ns2:getLocation>
| </env:Body>
| </env:Envelope>
| 2008-04-24 12:33:19,229 TRACE [org.jboss.ws.core.MessageTrace] Incoming Response Message
| <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
| <env:Header/>
| <env:Body>
| <ns2:getLocationResponse xmlns:ns2='http://www.csapi.org/schema/parlayx/terminal_location/v2_2/local'>
| <return>
| <latitude>0.1</latitude>
| <longitude>0.1</longitude>
| <accuracy>3</accuracy>
| </return>
| </ns2:getLocationResponse>
| </env:Body>
| </env:Envelope>
| 2008-04-24 12:33:19,275 TRACE [org.jboss.ws.core.MessageTrace] Outgoing Response Message
| <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
| <env:Header/>
| <env:Body>
| <ns2:getLocationResponse xmlns:ns2='http://www.csapi.org/schema/parlayx/terminal_location/v2_2/local'
| />
| </env:Body>
| </env:Envelope>
|
My ws client implementation is:
| protected Object callWebService(ExecutionContext ctx) throws Exception {
| QName qname = new QName(
| "http://www.csapi.org/wsdl/parlayx/terminal_location/v2_2/service",
| "TerminalLocationService");
| TerminalLocationService service = new TerminalLocationService(null, qname);
| TerminalLocation stub = (TerminalLocation) service.getTerminalLocation();
| configureStub(ctx, (javax.xml.ws.BindingProvider) stub);
| return stub.getLocation((java.lang.String) getAddress(ctx),
| (int) getRequestedAccuracy(ctx), (int) getAcceptableAccuracy(ctx),
| (TimeMetric) getMaximumAge(ctx), (TimeMetric) getResponseTime(ctx),
| (DelayTolerance) getTolerance(ctx));
| }
|
Does anyone know what is going on behind the scenes? What am I doing wrong?
Thanks a lot!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146467#4146467
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146467
17 years, 12 months
[Performance Tuning] - WS client returns null, why?
by Sancheski
Hi all,
I am facing a problem when getting the response from a ws invocation. As far as I see through org.jboss.ws.core.MessageTrace logger, the ws server returns a valid response. I don't know why, this response turns to a null one in my client. Here are the log traces:
| 2008-04-24 12:33:18,838 TRACE [org.jboss.ws.core.MessageTrace] Incoming Request Message
| <soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
| <soapenv:Header>
| <ns1:Security ns1:Password='app:1272268494445808129' ns1:UserName='domain_user' soapenv:actor='wsse:PasswordToken' soapenv:mustUnderstand='1' xmlns:ns1='http://172.22.191.143:8080/parlayx2/services/TerminalLocation' xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/' xsi:type='soapenc:string'/>
| </soapenv:Header>
| <soapenv:Body>
| <getLocation xmlns='http://www.csapi.org/schema/parlayx/terminal_location/v2_2/local'>
| <address>tel:34609214237</address>
| <requestedAccuracy>2000</requestedAccuracy>
| <acceptableAccuracy>4000</acceptableAccuracy>
| <maximumAge>
| <metric xmlns=''>Hour</metric>
| <units xmlns=''>1</units>
| </maximumAge>
| <responseTime xmlns='http://www.csapi.org/schema/parlayx/terminal_location/v2_2/local'>
| <metric xmlns=''>Minute</metric>
| <units xmlns=''>1</units>
| </responseTime>
| <tolerance xmlns='http://www.csapi.org/schema/parlayx/terminal_location/v2_2/local'>DelayTolerant</tolerance>
| </getLocation>
| </soapenv:Body>
| </soapenv:Envelope>
| 2008-04-24 12:33:18,947 WARN [org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl] Cannot get port meta data for: {http://www.csapi.org/wsdl/parlayx/terminal_location/v2_2/service}TerminalLocation
| 2008-04-24 12:33:19,229 TRACE [org.jboss.ws.core.MessageTrace] Outgoing Request Message
| <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
| <env:Header/>
| <env:Body>
| <ns2:getLocation xmlns:ns2='http://www.csapi.org/schema/parlayx/terminal_location/v2_2/local'>
| <ns2:address>609214237</ns2:address>
| <ns2:requestedAccuracy>2000</ns2:requestedAccuracy>
| <ns2:acceptableAccuracy>4000</ns2:acceptableAccuracy>
| <ns2:maximumAge>
| <metric>Hour</metric>
| <units>1</units>
| </ns2:maximumAge>
| <ns2:responseTime>
| <metric>Minute</metric>
| <units>1</units>
| </ns2:responseTime>
| <ns2:tolerance>DelayTolerant</ns2:tolerance>
| </ns2:getLocation>
| </env:Body>
| </env:Envelope>
| 2008-04-24 12:33:19,229 TRACE [org.jboss.ws.core.MessageTrace] Incoming Response Message
| <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
| <env:Header/>
| <env:Body>
| <ns2:getLocationResponse xmlns:ns2='http://www.csapi.org/schema/parlayx/terminal_location/v2_2/local'>
| <return>
| <latitude>0.1</latitude>
| <longitude>0.1</longitude>
| <accuracy>3</accuracy>
| </return>
| </ns2:getLocationResponse>
| </env:Body>
| </env:Envelope>
| 2008-04-24 12:33:19,275 TRACE [org.jboss.ws.core.MessageTrace] Outgoing Response Message
| <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
| <env:Header/>
| <env:Body>
| <ns2:getLocationResponse xmlns:ns2='http://www.csapi.org/schema/parlayx/terminal_location/v2_2/local'/>
| </env:Body>
| </env:Envelope>
|
My ws client implementation is:
| protected Object callWebService(ExecutionContext ctx) throws Exception {
| QName qname = new QName(
| "http://www.csapi.org/wsdl/parlayx/terminal_location/v2_2/service",
| "TerminalLocationService");
| TerminalLocationService service = new TerminalLocationService(null, qname);
| TerminalLocation stub = (TerminalLocation) service.getTerminalLocation();
| configureStub(ctx, (javax.xml.ws.BindingProvider) stub);
| return stub.getLocation((java.lang.String) getAddress(ctx),
| (int) getRequestedAccuracy(ctx), (int) getAcceptableAccuracy(ctx),
| (TimeMetric) getMaximumAge(ctx), (TimeMetric) getResponseTime(ctx),
| (DelayTolerance) getTolerance(ctx));
| }
|
Does anyone know what is going on behind the scenes? What am I doing wrong?
Thanks a lot!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146464#4146464
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146464
17 years, 12 months
[JNDI/Naming/Network] - Accessing Applet behind NAT firewall [EJB application]
by SandeepDJboss
Hi Everyone,
I need to know the details of using applet based application in JBOSS - the clients are connecting from NAT enviornments.
I have implementd RMI over HTTP protocol for EJB communication.
But the Client Connect address configuration which is used in Nat'ed IP scenario is to be done at startup.
Even the configuration in HTTP-invoker.sar file where we can form the URL has to be done at the start up; if I provide the NAT IP which client uses here then it binds the domain to that particular client only.
And the same domain can not be used by any other client as they might NAT to diffrent IP.
I need a solution which will allow me to form the URL's from the client end using NAT IP at the runtime; if this can be done the same JBOSS instance can be used by all clients - thos who NAT and those who do not NAT as well.
Please suggest a way out if you have come across similar issue where you need to support many clients out of the same domain and some of them NAT the IP's on client side.
Any help on this will be very much appreciated !!
Thank you
Sandeep
The JBOSS remoting document says that the ClientConnectAddress can not be changed at the runtime.
5.4.2. Configurations affecting the invoker client
There are some configurations which will impact the invoker client. These will be communicated to the client invoker
via parameters in the Locator URI. These configurations can not be changed during runtime, so can only be
set up upon initial configuration of the server invoker on the server side. The following is a list of these and their
effects.
clientConnectPort - the port the client will use to connect to the remoting server. This would be needed in the case
that the client will be going through a router that forwards requests made externally to a different port internally.
clientConnectAddress - the ip or hostname the client will use to connect to the remoting server. This would be
needed in the case that the client will be going through a router that forwards requests made externally to a different
ip or host internally.
If no client connect address or server bind address specified, will use the local host's address (via InetAddress.
getLocalHost().getHostAddress() ).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146463#4146463
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146463
17 years, 12 months
[JBossWS] - Binding custom Exception field fails
by rhcp_1415
Hi there,
I'm trying to make a simple hallo World with a parameter and a custom exception that has its own field. Without the extra field in the exception it works fine. Server start up fine but when I call my webservice with the field "naam" filled in with "kaboom" (with this value the exception is thrown) this is what I get:
| 08:48:41,921 ERROR [RequestHandlerImpl] Error processing web service request
|
| org.jboss.ws.WSException: org.jboss.xb.binding.JBossXBRuntimeException: Failed to find read method or field for property 'typeFout' in class nl.havermans.rhcp.boodschappen.webservice.EWebserviceException
|
| at org.jboss.ws.WSException.rethrow(WSException.java:68)
|
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:310)
|
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189)
|
| at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122)
|
| at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
|
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
|
|
The problem is that the property really is in the class nl.havermans.rhcp.boodschappen.webservice.EWebserviceException, I even tried to make the field itself public but it does not help. Does anyone know why this is happening?
Can anyone have a look at this?
| /**
| *
| */
| package nl.havermans.rhcp.boodschappen.webservice;
|
| import java.rmi.RemoteException;
|
| /**
| * @author RHCP
| *
| */
| public interface IHalloWereldService extends java.rmi.Remote {
| public String zegMijHallo(String naam) throws EWebserviceException, RemoteException;
| }
|
| /**
| *
| */
| package nl.havermans.rhcp.boodschappen.webservice;
|
| import java.rmi.RemoteException;
|
| import org.apache.log4j.Logger;
|
| /**
| * @author RHCP
| *
| */
| public class HalloWereldService implements IHalloWereldService {
| Logger _log = Logger.getLogger(HalloWereldService.class);
|
| /**
| * @throws EWebserviceException
| * @see nl.havermans.rhcp.boodschappen.webservice.IHalloWereldService#zegMijHallo(java.lang.String)
| */
| public String zegMijHallo(String naam) throws RemoteException, EWebserviceException {
| _log.info("Start zegMijHallo: " + naam);
| String antwoord = "Welkom bij mijn webservice";
| if (naam != null) {
| if (naam.equals("kaboom")) {
| throw new EWebserviceException("Exceptie test", "functioneel");
| }
| antwoord = antwoord + ": " + naam;
| }
|
| _log.info("Einde zegMijHallo");
| return antwoord;
| }
| }
|
| /**
| *
| */
| package nl.havermans.rhcp.boodschappen.webservice;
|
| /**
| * @author RHCP
| *
| */
| public class EWebserviceException extends Exception {
| /**
| *
| */
| private static final long serialVersionUID = -4539401858795964596L;
| public String typeFout = "onbekend";
|
| /**
| *
| */
| public EWebserviceException() {
| super();
| }
|
| /**
| * @param p_message
| * @param p_cause
| */
| public EWebserviceException(String p_message, Throwable p_cause) {
| super(p_message, p_cause);
| }
|
| /**
| * @param p_message
| */
| public EWebserviceException(String p_message) {
| super(p_message);
| }
|
| /**
| * @param p_message boodschap
| * @param p_typeFout type fout
| */
| public EWebserviceException(String message, String typeFout) {
| super(message);
| this.typeFout = typeFout;
| }
|
|
| /**
| * @param p_cause
| */
| public EWebserviceException(Throwable p_cause) {
| super(p_cause);
| }
|
| /**
| * @return the typeFout
| */
| public String getTypeFout() {
| return typeFout;
| }
|
| /**
| * @param p_typeFout the typeFout to set
| */
| public void setTypeFout(String typeFout) {
| this.typeFout = typeFout;
| }
|
| }
|
| <?xml version="1.0" encoding="UTF-8"?>
| <definitions
| name="HalloWereldWS"
| targetNamespace="http://webservice.boodschappen.rhcp.havermans.nl/HalloWereldService"
| xmlns:hllwrld="http://webservice.boodschappen.rhcp.havermans.nl/HalloWereldService"
| xmlns:soapbind="http://schemas.xmlsoap.org/wsdl/soap/"
| xmlns:xsd="http://www.w3.org/2001/XMLSchema"
| xmlns="http://schemas.xmlsoap.org/wsdl/"
| >
| <types>
| <xsd:schema
| targetNamespace="http://webservice.boodschappen.rhcp.havermans.nl/HalloWereldService">
|
| <xsd:complexType name="EWebserviceException">
| <xsd:sequence>
| <xsd:element name="typeFout" nillable="true" type="xsd:string"/>
| </xsd:sequence>
| </xsd:complexType>
| <xsd:element name="EWebserviceException" type="hllwrld:EWebserviceException"/>
| </xsd:schema>
| </types>
| <message name="GetHalloWereldRequest">
| <part name="naam" type="xsd:string"/>
| </message>
| <message name="GetHalloWereldResponse">
| <part name="antwoord" type="xsd:string"/>
| </message>
| <message name="EWebserviceException">
| <part name="EWebserviceException" element="hllwrld:EWebserviceException"></part>
| </message>
|
| <portType name="HalloWereld">
| <operation name="zegMijHallo">
| <input message="hllwrld:GetHalloWereldRequest"/>
| <output message="hllwrld:GetHalloWereldResponse"/>
| <fault name="EWebserviceException" message="hllwrld:EWebserviceException"></fault>
| </operation>
| </portType>
|
| <binding name="HalloWereld_binding" type="hllwrld:HalloWereld">
| <soapbind:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
| <operation name="zegMijHallo">
| <soapbind:operation style="rpc" soapAction="http://webservice.boodschappen.rhcp.havermans.nl/HalloWereldService/ZegMi..."/>
| <input>
| <soapbind:body use="literal" namespace="http://webservice.boodschappen.rhcp.havermans.nl/HalloWereldService"/>
| </input>
| <output>
| <soapbind:body use="literal" namespace="http://webservice.boodschappen.rhcp.havermans.nl/HalloWereldService"/>
| </output>
| <fault name="EWebserviceException">
| <soapbind:fault name="EWebserviceException" use="literal"/>
| </fault>
| </operation>
| </binding>
|
| <service name="HalloWereldService">
| <port name="HalloWereld_Port" binding="hllwrld:HalloWereld_binding">
| <soapbind:address location="http://localhost:8080/BoodschappenServiceWeb/myJSE/HalloWereld"/>
| </port>
| </service>
| </definitions>
|
| <?xml version="1.0" encoding="UTF-8"?>
| <java-wsdl-mapping
| xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xmlns:hllwrld="http://webservice.boodschappen.rhcp.havermans.nl/HalloWereldService"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
| http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd" version="1.1"
| >
| <package-mapping>
| <package-type>nl.havermans.rhcp.boodschappen.webservice</package-type>
| <namespaceURI>http://webservice.boodschappen.rhcp.havermans.nl/HalloWereldService</namespaceURI>
| </package-mapping>
| <java-xml-type-mapping>
| <java-type>nl.havermans.rhcp.boodschappen.webservice.EWebserviceException</java-type>
| <root-type-qname>hllwrld:EWebserviceException</root-type-qname>
| <qname-scope>complexType</qname-scope>
| </java-xml-type-mapping>
| <exception-mapping>
| <exception-type>nl.havermans.rhcp.boodschappen.webservice.EWebserviceException</exception-type>
| <wsdl-message>hllwrld:EWebserviceException</wsdl-message>
| </exception-mapping>
| <service-interface-mapping>
| <service-interface>nl.havermans.rhcp.boodschappen.webservice.HalloWereldService</service-interface>
| <wsdl-service-name>hllwrld:HalloWereldService</wsdl-service-name>
| <port-mapping>
| <port-name>hllwrld:HalloWereld_Port</port-name>
| <java-port-name>hllwrld:HalloWereld_Port</java-port-name>
| </port-mapping>
| </service-interface-mapping>
| <service-endpoint-interface-mapping>
| <service-endpoint-interface>nl.havermans.rhcp.boodschappen.webservice.IHalloWereldService</service-endpoint-interface>
| <wsdl-port-type>hllwrld:HalloWereld</wsdl-port-type>
| <wsdl-binding>hllwrld:HalloWereld_binding</wsdl-binding>
| <service-endpoint-method-mapping>
| <java-method-name>zegMijHallo</java-method-name>
| <wsdl-operation>zegMijHallo</wsdl-operation>
| <method-param-parts-mapping>
| <param-position>0</param-position>
| <param-type>java.lang.String</param-type>
| <wsdl-message-mapping>
| <wsdl-message>hllwrld:GetHalloWereldRequest</wsdl-message>
| <wsdl-message-part-name>naam</wsdl-message-part-name>
| <parameter-mode>IN</parameter-mode>
| </wsdl-message-mapping>
| </method-param-parts-mapping>
| <wsdl-return-value-mapping>
| <method-return-value>java.lang.String</method-return-value>
| <wsdl-message>hllwrld:GetHalloWereldResponse</wsdl-message>
| <wsdl-message-part-name>antwoord</wsdl-message-part-name>
| </wsdl-return-value-mapping>
| </service-endpoint-method-mapping>
| </service-endpoint-interface-mapping>
| </java-wsdl-mapping>
|
| <?xml version="1.0" encoding="UTF-8"?>
| <webservices xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xmlns:hllwrld="http://webservice.boodschappen.rhcp.havermans.nl/HalloWereldService"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
| http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd" version="1.1">
| <webservice-description>
| <webservice-description-name>HalloWereld</webservice-description-name>
| <wsdl-file>WEB-INF/wsdl/HalloWereld.wsdl</wsdl-file>
| <jaxrpc-mapping-file>WEB-INF/HalloWereld-rpc-mapping.xml</jaxrpc-mapping-file>
| <port-component>
| <port-component-name>HalloWereldJSE</port-component-name>
| <wsdl-port>hllwrld:HalloWereld_Port</wsdl-port>
| <service-endpoint-interface>nl.havermans.rhcp.boodschappen.webservice.IHalloWereldService</service-endpoint-interface>
| <service-impl-bean>
| <servlet-link>HalloWereldJSE</servlet-link>
| </service-impl-bean>
| </port-component>
| </webservice-description>
| </webservices>
|
| <?xml version="1.0" encoding="UTF-8"?>
| <web-app id="WebApp_ID" version="2.4"
| xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
| <display-name>BoodschappenServiceWeb</display-name>
| <servlet>
| <display-name>Apache-Axis Servlet</display-name>
| <servlet-name>AxisServlet</servlet-name>
| <servlet-class>
| org.apache.axis.transport.http.AxisServlet
| </servlet-class>
| </servlet>
| <servlet>
| <display-name>Axis Admin Servlet</display-name>
| <servlet-name>AdminServlet</servlet-name>
| <servlet-class>
| org.apache.axis.transport.http.AdminServlet
| </servlet-class>
| <load-on-startup>100</load-on-startup>
| </servlet>
| <servlet>
| <display-name>Hallo Wereld webservice oefening</display-name>
| <servlet-name>HalloWereldJSE</servlet-name>
| <servlet-class>nl.havermans.rhcp.boodschappen.webservice.HalloWereldService</servlet-class>
| <load-on-startup>101</load-on-startup>
| </servlet>
| <servlet-mapping>
| <servlet-name>AxisServlet</servlet-name>
| <url-pattern>/servlet/AxisServlet</url-pattern>
| </servlet-mapping>
| <servlet-mapping>
| <servlet-name>AxisServlet</servlet-name>
| <url-pattern>*.jws</url-pattern>
| </servlet-mapping>
| <servlet-mapping>
| <servlet-name>AxisServlet</servlet-name>
| <url-pattern>/services/*</url-pattern>
| </servlet-mapping>
| <servlet-mapping>
| <servlet-name>AdminServlet</servlet-name>
| <url-pattern>/servlet/AdminServlet</url-pattern>
| </servlet-mapping>
| <servlet-mapping>
| <servlet-name>HalloWereldJSE</servlet-name>
| <url-pattern>/myJSE/HalloWereld</url-pattern>
| </servlet-mapping>
| <welcome-file-list>
| <welcome-file>index.html</welcome-file>
| <welcome-file>index.htm</welcome-file>
| <welcome-file>index.jsp</welcome-file>
| <welcome-file>default.html</welcome-file>
| <welcome-file>default.htm</welcome-file>
| <welcome-file>default.jsp</welcome-file>
| </welcome-file-list>
| </web-app>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146457#4146457
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146457
17 years, 12 months
[Tomcat, HTTPD, Servlets & JSP] - Re: Web pages are not running on mozilla
by xps2nini2000
HII
This is my html page
| <SCRIPT language=JavaScript>
|
|
|
| </SCRIPT>
|
| <html>
|
|
|
| <head>
|
| <TITLE>MANTR</TITLE>
|
| </head>
|
| <frameset rows="130px,67%,12px" noresize framespacing="0" border="5" frameborder="0">
|
| <frame name="top" scrolling="no" target="middle" border="5" noresize src="Heading.html" marginwidth="0" marginheight="0" noresize>
|
| <frame name="middle" target="bottom" noresize src="middle.html" border="5" marginwidth="0" marginheight="0" scrolling="auto" noresize>
|
| <frame name="bottom" noresize src="Footer.html" target="_self" scrolling="no" border="5" marginwidth="0" marginheight="0" noresize>
|
| <noframes>
|
| <body topmargin="0" leftmargin="0" bgcolor="#E2EDFE" >
|
| <p>This page uses frames, but your browser doesn't support them.</p>
|
| </body>
|
| </noframes>
|
| </frameset>
|
|
|
| </html>
|
this is my middle.html
|
|
|
|
| <HTML>
|
| <HEAD>
|
|
|
| <TITLE>EILMT
|
| </TITLE>
|
|
|
|
|
|
|
| </HEAD>
|
|
|
|
|
| <BODY bgcolor="#FEFCE2" >
|
| <form name="Input_Form1" method="post">
|
|
|
|
|
| <CENTER>
|
| <TABLE BORDER="0" WIDTH="100%" Height="100%" >
|
|
|
| <TR>
|
|
|
| <TD >
|
|
|
| <CENTER>
|
| <TABLE BORDER= "0" WIDTH= "480" HEIGHT="80%" bordercolor="#800000" >
|
| <TR><TD width="470">
|
| <CENTER><TABLE BORDER= "0" WIDTH= "50%"HEIGHT="40%">
|
|
|
| <TR>
|
| <TD> <strong>LoginName</strong></TD>
|
| <TD> <CENTER><input type="text" Id="userid" name="userid" maxlength="20" value="" size="16" onKeypress="if (event.keyCode==13)event.returnValue =Submit();" tabindex="1" ></CENTER></TD>
|
| </TR>
|
| <TR>
|
| <TD><strong>Password</strong></TD>
|
| <TD><CENTER><input type="Password" Id="password" name="password" size="16" maxlength="20" value="" tabindex="2" onKeypress="if (event.keyCode==13)event.returnValue =Submit();"></CENTER></TD>
|
| </TR>
|
| <tr>
|
| <td width="28%"><strong> Language </strong> </td>
|
| <td width="38%">
|
| <select name="Lang">
|
| <option value="Hindi" selected> Hindi
|
| <option value="Bengali"> Bengali
|
| <option value="Marathi" > Marathi
|
| <option value="Oriya"> Oriya
|
| <option value="Tamil"> Tamil
|
| <option value="Urdu"> Urdu
|
| </select></td>
|
| </tr>
|
| <tr>
|
| <td width="500%"><strong>Domain </strong> </td>
|
| <td width="560%">
|
| <select name="Domain">
|
| <option value="General" selected>General
|
| <option value="Tourism">Tourism
|
| <option value="Health"> Health
|
| </select></td>
|
| </tr>
|
| </TABLE></CENTER>
|
|
|
| <CENTER><TABLE BORDER= "0" WIDTH= "60%">
|
| <TR><TD></TD></TR>
|
| <TR><TD></TD></TR>
|
| <TR><TD></TD></TR>
|
|
|
| <TR>
|
| <TD><CENTER><INPUT TYPE="submit" style="background-color:#efeff7" VALUE=" OK " NAME="Submit_Button" OnClick="return Submit();"></CENTER></TD>
|
| <TD><CENTER><INPUT TYPE="button" style="background-color: #efeff7" VALUE="CANCEL" NAME="cancel" OnClick="return login();"></CENTER></TD>
|
| </TR>
|
| </TABLE></CENTER>
|
|
|
| <CENTER><TABLE BORDER= "0" WIDTH= "63%">
|
| <TR><TD></TD></TR>
|
| <TR><TD></TD></TR>
|
| <TR><TD></TD></TR>
|
| <TR><TD></TD></TR>
|
|
|
|
|
| <TR>
|
|
|
| <TD><CENTER> <A HREF="NewUser.jsp"><strong> NewUser</strong></A></CENTER></TD>
|
|
|
|
|
| <TD><CENTER><!--<A HREF="forgotpassword.html"><strong>Forgot Password</strong></A> --></CENTER></TD>
|
| </TR>
|
| </TABLE></CENTER>
|
|
|
|
|
| </TD>
|
| </TR>
|
| </TABLE></CENTER>
|
| </form>
|
|
|
| </center>
|
| <p align="right"><font color="#08088A" ><h1 align="right">English to Indian
|
| Languages Machine Translation System<h1></font>
|
|
|
| </BODY>
|
|
|
| <script language="JavaScript">
|
| function login()
|
| {
|
| var str1 = document.Input_Form1.userid.value
|
| var str2= document.Input_Form1.password.value
|
| document.Input_Form1.userid.value="";
|
| document.Input_Form1.password.value="";
|
| }
|
| function Submit()
|
| {
|
|
|
| var str1 = document.Input_Form1.userid.value
|
| var str2= document.Input_Form1.password.value
|
|
|
| if(str1 == "")
|
| {
|
| alert ("Login Name should not be blank")
|
| document.Input_Form1.userid.focus()
|
| return false
|
| }
|
| if (str2=="")
|
| {
|
| alert ("Password should not be blank")
|
| document.Input_Form1.password.focus()
|
| return false
|
| }
|
| if (str1!="" && str2!="")
|
| {
|
| var button = document.getElementById("Submit_Button");
|
| button.disabled = "true";
|
| document.Input_Form1.action="LoginServlet";
|
| document.Input_Form1.submit();
|
| return true
|
|
|
|
|
| }
|
| }
|
|
|
| </script>
|
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146450#4146450
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146450
17 years, 12 months