glassfish

Glassfish web.xml servlet mapping to @WebService gets ClassCastException

柔情痞子 提交于 2020-01-01 15:56:49
问题 Am trying to gain control over the URL endpoints of my web services when deployed to Glassfish (and preferably to TomEE too). I have a class: @Stateless @WebService( targetNamespace = "http://foo.net/doc/2012-08-01", name = "FooService", portName = "FooPort", serviceName = "FooService") public class FooSoapService extends SoapBase { ... } And a web.xml: <servlet> <description>SOAP Endpoint for Foo operations.</description> <servlet-name>Foo</servlet-name> <servlet-class>com.foo.FooSoapService

unable to open web service tester page with jdk8 and netbeans 8

梦想的初衷 提交于 2020-01-01 15:09:09
问题 I wrote a simple web service program but I can not test it on glassfish 4.0 web server . When I Test Web service I see this message : Make sure the service has been deployed successfully, and the server is running. I can see it in list of deployed web services on glassfish web server . and I add this file to \jdk1.8.0\jre\lib to fix the problem. jaxp.properties javax.xml.accessExternalSchema = All But it doesn't work Also I see this error in url of tester page : lineNumber: 52; columnNumber:

unable to open web service tester page with jdk8 and netbeans 8

。_饼干妹妹 提交于 2020-01-01 15:07:33
问题 I wrote a simple web service program but I can not test it on glassfish 4.0 web server . When I Test Web service I see this message : Make sure the service has been deployed successfully, and the server is running. I can see it in list of deployed web services on glassfish web server . and I add this file to \jdk1.8.0\jre\lib to fix the problem. jaxp.properties javax.xml.accessExternalSchema = All But it doesn't work Also I see this error in url of tester page : lineNumber: 52; columnNumber:

Manually Changing Glassfish domain.xml for Debug Error

蹲街弑〆低调 提交于 2020-01-01 09:33:34
问题 I have this line of code at domain.xml: <java-config classpath-suffix="" debug-enabled="false" debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=n,suspend=y,address=9009" env-classpath-ignored="true" java-home="${com.sun.aas.javaRoot}" javac-options="-g" rmic-options="-iiop -poa -alwaysgenerate -keepgenerated -g" system-classpath=""> If I start the domain there is no error. However I want to get debug feature so I changed this part like this: debug-enabled="true" When I want to

404 when calling Jersey 2 REST endpoint on Glassfish

人走茶凉 提交于 2020-01-01 07:22:52
问题 This is my web.xml <servlet> <servlet-name>Simulator HTTP API</servlet-name> <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Simulator HTTP API</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> </web-app> and this is my simple web service: @Path("partner") public class PartnerAPI { @Path("/mt") @GET @Produces(MediaType.TEXT_PLAIN) public String sendMT() { return "Sent"; }

404 when calling Jersey 2 REST endpoint on Glassfish

独自空忆成欢 提交于 2020-01-01 07:22:47
问题 This is my web.xml <servlet> <servlet-name>Simulator HTTP API</servlet-name> <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Simulator HTTP API</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> </web-app> and this is my simple web service: @Path("partner") public class PartnerAPI { @Path("/mt") @GET @Produces(MediaType.TEXT_PLAIN) public String sendMT() { return "Sent"; }

How to change default start page of Glassfish?

巧了我就是萌 提交于 2020-01-01 03:22:30
问题 Currently when I type in the URL of my webapp, say "http://abc.edu/mywebapp/", I am taken to the login page of my webapp. When I type "http://abc.edu/", I am taken to the GlassFish info page. How can I do it such that when I key in "http://abc.edu/", I will be taken to my login page and not the GlassFish info page? 回答1: Option 1: You can set one of your webapps as default. This can be done with the admin console: Configuration --> Virtual Servers --> server Then select your default web

EJB3 - using 2 persistence units within a transaction (Exception: Local transaction already has 1 non-XA Resource)

烂漫一生 提交于 2020-01-01 02:45:28
问题 I am trying to use 2 persistence units within the same transaction in a Java EE application deployed on Glassfish. The 2 persistence units are defined in persistence.xml, as follows: <persistence-unit name="BeachWater"> <jta-data-source>jdbc/BeachWater</jta-data-source> ... <persistence-unit name="LIMS"> <jta-data-source>jdbc/BeachWaterLIMS</jta-data-source> ... These persistence units correspond to JDBC resources and connection pools which I had defined in Glassfish as follows (include one

Android KSOAP2 SSL java.security.cert.CertPathValidatorException

邮差的信 提交于 2020-01-01 00:53:09
问题 I tried connect to my JAX-WS service over SSL. Without SSL all works. Method in AsyncTask: HttpsTransportSE androidHttpTransport = new HttpsTransportSE("10.0.2.2", 8181, "/Server/?wsdl", 10000); ((HttpsServiceConnectionSE) androidHttpTransport.getServiceConnection()).setSSLSocketFactory(trustAllHosts() .getSocketFactory()); //androidHttpTransport.debug=true; androidHttpTransport.call(getSoapAction(method), envelope); Get SSLContext public SSLContext allowAllSSL() { SSLContext context = null;

tomcat or glassfish as comet server?

不打扰是莪最后的温柔 提交于 2020-01-01 00:43:30
问题 they are both free but i think glassfish has some limitation or when you reach up to a certain nr of users (comet) then you have to pay? is that correct? if true, could you use tomcat as a comet server? if not, then which free comet servers are there supporting long polling and iframe? 回答1: They are both free but i think glassfish has some limitation or when you reach up to a certain nr of users (comet) then you have to pay? is that correct? No, GlassFish doesn't have such limitation (where