glassfish

Glassfish - Application name is already in use

让人想犯罪 __ 提交于 2019-12-25 05:32:12
问题 I’ve come to an hold with my programing because I’m getting an error from glassfish. I’m using NetBeans IDE 7.3 for this project. And I’ve built a simple program which runs over the web(jsp file etc). But I keep on getting the weirdest error display from glassfish. I’ve searched the internet for my solution and found people posting similar things, but I never seem actually manage to fix it because I don’t really understand the post which I’ve read. So what is the error that I get at startup?

Glassfish Tools plugin for Eclipse Luna SR2 not working

不想你离开。 提交于 2019-12-25 05:32:07
问题 I always install Glassfish Tools using Eclipse Marketplace or just downloading additional adapters in Eclipse Servers > New > Server . For some reason, when moving from Eclipse Luna SR1 to SR2, the new plugin doesn't install the adapter (the "New Server" window doesn't shows Glassfish as an option), and when trying to manually download the Glassfish adapter, clicking at Download additional server adapters... , the Glassfish adapter is not shown. Is there any bug in this version? Something has

Glassfish built in RESTful EJB interface in addition to SOAP

二次信任 提交于 2019-12-25 05:22:29
问题 I am currently learning Glassfish and I see that it is possible to add the annotation @WebService (javax.jws.WebService) and the container will automatically enable a SOAP web service for the particular bean. Since I am not really interested in using SOAP, I was wondering if the same can be accomplished using the server built-in functionality but for a RESTful service, without explicitly writing my own. Thanks 回答1: JAX-RS (the standard) and Jersey (one implementation of this standard) is what

EJB Injection failure on deploy

爱⌒轻易说出口 提交于 2019-12-25 04:53:15
问题 I've got a problem exxh EJB's. First of all, my setup: I am using GlassFish & JEE6. I got a REST-Service packaged as a WAR and a bean packaged as an EJB-Jar. They are not inside an EAR. The EJB should be used from the REST-WAR via @EJB, but when I try to deploy the WAR, GlassFish shows this error: Error occurred during deployment: Exception while deploying the app [exx-upload-1.0] : Cannot resolve reference Local ejb-ref name=com.ex.exx.model.FileUpload/ocr,Local 3.x interface =com.ex.exx.api

java.lang.IllegalStateException: Not Suspended when AsyncContext#complete()

末鹿安然 提交于 2019-12-25 04:47:51
问题 sometimes my Servlet ends with this exception: WARNING: StandardWrapperValve[HeartBeatServlet]: PWC1406: Servlet.service() for servlet HeartBeatServlet threw exception java.lang.IllegalStateException: Not Suspended at com.sun.grizzly.tcp.Response.resume(Response.java:768) at org.apache.catalina.connector.Request.asyncComplete(Request.java:3993) at org.apache.catalina.connector.AsyncContextImpl.complete(AsyncContextImpl.java:242) at com.northcane.talkeen.HeartBeatServlet.doPost

How to make a war file auto deploy?

狂风中的少年 提交于 2019-12-25 04:24:32
问题 How do you make a war file auto deploy? The server component is glassfish and the database is created in MySQL. Do I need to create an executable file that will extract the war file? and how to do it so? 回答1: It should be sufficient to copy/move your WAR file to the following folder: $GLASSFISH_HOME/glassfish/domains/domain1/autodeploy (You may change the domain name if you are using a different one.) See also: How to to autodeploy war file with GlassFish WAR doesn't get redeployed in

How to find the path to a .txt file in glassfish v3.0

十年热恋 提交于 2019-12-25 03:57:16
问题 In my aplication i want to send a html template to the users email. Everithing works correctly when i programatically create the html, but what i want to do now, is read the html text from within a file in my application and send it. I get a FileNotFoundException, and i dont know how to find that .txt file. See the code: public void sendAccountActivationLinkToBuyer(String destinationEmail, String name) { // Destination of the email String to = destinationEmail; String from = "myEmail@gmail

Invoking https web services from Glassfish 4 returns HTTPS 403 Error

ⅰ亾dé卋堺 提交于 2019-12-25 03:06:11
问题 I am developing a web service client with NetBeans 7.4 in Glassfish 4.0; The host server runs https (secured). I could access the WSDL in NetBeans successfully and generated the required classes. The problem is that I get a error: com.sun.xml.ws.client.ClientTransportException: The server sent HTTP status code 403: Forbidden when I deploy my application into Glassfish 4.0. Interestingly, this problem does not occur when I deploy into Tomcat or when I develop, build and run as a Java Desktop

<c:forEach> treats items property as a string

陌路散爱 提交于 2019-12-25 02:57:59
问题 I am trying to iterate over a collection of elements, which are complex types (another entities) using <c:forEach> : <c:forEach items="#{repcatTree.items}" var="item"> <div style="padding-top:7px; padding-bottom:7px; padding-right:15px;"> <span class="report_item_category_class"> <h:commandLink rendered="#{item.type == 'category'}" action="#{item.onNodeClicked}" styleClass="default_link"> <h:graphicImage url="/views/tree/images/folder_big.gif" /> <h:outputText value="#{item.attributes.FILE

Custom session id generation implement UuidGenerator

旧城冷巷雨未停 提交于 2019-12-25 02:57:38
问题 i want to set cutom class for session id generation(Custom session id generation) in glassfish server , from my search till now i found that custom class should implement "com sun enterprise util uuid.UuidGenerator" class so i tried to create my own class as import com.sun.enterprise.util.uuid; public class Customsessionid implements UuidGenerator { public UuidGeneratorImpl() { } public String generateUuid() { return UuidUtil.generateUuid(); } public String generateUuid(Object obj) { return