olá pessoal!
eu rodei o projeto de teste do netbeans CalculatorApp, localmente funciona só que qdo quero accesar de outra maq. com o projeto cliente não consigo accessar e aparece um erro (1). Quando quero accesar o teste de fora eu troco o localhost pelo endereço da máq. e aparece o seguinte:
Error generating artifacts for the following WSDL <endereço da máq>/CalculatorApp/CalculatorWSService?WSDL
Possible causes can be invoking https when the application is not configured for security
1- erro:
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: PWC1392: Error instantiating servlet class org.me.calculator.client.ClientServlet
root cause
com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class: class org.me.calculator.client.ClientServlet
root cause
com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Env-Prop: org.me.calculator.client.ClientServlet/service@Field-Injectable Resource. Class name = org.me.calculator.client.ClientServlet Field name=service@javax.jws.WebServiceRef@@@ into class org.me.calculator.client.ClientServlet: Lookup failed for 'java:comp/env/org.me.calculator.client.ClientServlet/service' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming}
root cause
javax.naming.NamingException: Lookup failed for 'java:comp/env/org.me.calculator.client.ClientServlet/service' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NamingException [Root exception is java.lang.reflect.InvocationTargetException]]
root cause
javax.naming.NamingException [Root exception is java.lang.reflect.InvocationTargetException]
root cause
java.lang.reflect.InvocationTargetException
root cause
javax.xml.ws.WebServiceException: Failed to access the WSDL at: <endereço da máq>/CalculatorApp/CalculatorWSService?wsdl. It failed with:
Got Server returned HTTP response code: 407 for URL:<endereço da máq>/CalculatorApp/CalculatorWSService?wsdl while opening stream from <endereço da máq>/CalculatorApp/CalculatorWSService?wsdl.
root cause
java.io.IOException: Got Server returned HTTP response code: 407 for URL: <endereço da máq>/CalculatorApp/CalculatorWSService?wsdl while opening stream from <endereço da máq>/CalculatorApp/CalculatorWSService?wsdl
root cause
java.io.IOException: Server returned HTTP response code: 407 for URL: <endereço da máq>/CalculatorApp/CalculatorWSService?wsdl
note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 3.1.1 logs.
--------------------------------------------------------------------------------
GlassFish Server Open Source Edition 3.1.1
se alguém puder me ajudar agradeço…