glassfish

How to deploy war file to Glassfish?

本秂侑毒 提交于 2020-01-17 05:07:09
问题 I've developed a RESTful web service in netbeans and it made a .war file for me. now i want to deploy it to my host using glassfish . there are lots of tutorials on the net about deploying war file to glass fish(for example) but they all describe how to deploy to local machine(localhost), but as i mentioned i want to deploy to my website host. how to do that? 回答1: You should be able to do that using the admin console. This is an old documentation link, but it is still valid: http://docs

Apache FTP server is not seeing a logging jar package that exists in the class path

筅森魡賤 提交于 2020-01-17 03:27:06
问题 I'm using Apache's FTP server. The FTP server is loaded through a singleton bean in Glassfish. I was previously able to run the FTP server when I was using a PropertiesUserManager, but I wanted to tie in some JPA logic, so I wrote a custom class class that implement's the UserManager interface. However, I'm facing a class loading issue. The slf4j-api-1.6.1.jar file and the slf4j-jdk14-1.6.1.jar file exists in glassfish's lib folder and I have restarted glassfish. Here's the stack trace: javax

ReflectPermission(“suppressAccessChecks”)

好久不见. 提交于 2020-01-16 09:24:29
问题 I'm having problem with ReflectPermission("suppressAccessChecks"). Whenever I login with authenticated user (user name and password) and try to access a .jsp or any other page in my web application I get java.security.AccessControlException: access denied ("java.lang.reflect.ReflectPermission" "suppressAccessChecks") . This happens only when I have " Security Manager " enabled by checking it in GlassFish Security properties . When I uncheck this option the web application works. I would like

IllegalArgumentException: Invalid ejb jar [HelloEJB]: it contains zero ejb.

早过忘川 提交于 2020-01-15 11:25:14
问题 While the previous sample client from the Creating and Running an Application Client on the GlassFish Server tutorial runs correctly, I'm going through the process again to clarify the procedures for better understanding. Specifically, to manually deploy the bean to Glassfish from the CLI rather than from the IDE. The session bean is @stateless and implements @remote . This version of Glassfish shipped with Netbeans. The bean is an "EJB module" with the library API HelloLibrary included as a

IllegalArgumentException: Invalid ejb jar [HelloEJB]: it contains zero ejb.

巧了我就是萌 提交于 2020-01-15 11:25:09
问题 While the previous sample client from the Creating and Running an Application Client on the GlassFish Server tutorial runs correctly, I'm going through the process again to clarify the procedures for better understanding. Specifically, to manually deploy the bean to Glassfish from the CLI rather than from the IDE. The session bean is @stateless and implements @remote . This version of Glassfish shipped with Netbeans. The bean is an "EJB module" with the library API HelloLibrary included as a

JPA - No Persistence provider for EntityManager named {{NAME_HERE}}

你。 提交于 2020-01-15 10:20:47
问题 I was about to create a backend for a new app and I got stuck at configuring JPA . I'm using GlassFish 5.0.0 and Hibernate 5.4.5.Final with MySQL . The error I get is: javax.servlet.ServletException: javax.persistence.PersistenceException: No Persistence provider for EntityManager named applicationDB persistance.xml : <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi

Unable to run app-client that is accessing an EJB on GlassFish v3

时光总嘲笑我的痴心妄想 提交于 2020-01-15 03:53:05
问题 Environment : GlassFish 3.0.1, NetBeans 6.9, JDK 6u21 Problem : Unable to run app-client that is accessing an EJB A bugreport can be found under http://netbeans.org/bugzilla/show_bug.cgi?id=183488 with the corresponding tutorial http://netbeans.org/kb/docs/javaee/entappclient.html . I understand now how the Remote interface has to be in a Java Class Library. I walked through the steps of the tutorial, but still, it does not work. Errors: http://pastebin.com/k8ARGKbX. According to http://docs

Java Persistence Issue

偶尔善良 提交于 2020-01-15 03:42:29
问题 I am trying to get a simple example up and running using JPA in an EJB through GlassFish. I have the following persistence.xml <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"> <persistence-unit name="default" transaction-type="RESOURCE_LOCAL"> <provider>org.eclipse.persistence.jpa

Invalid URL Pattern When Deploying To Glassfish 4.1

…衆ロ難τιáo~ 提交于 2020-01-14 17:01:12
问题 I had a web filter to redirect from the login and index page if the user was already authenticated. Originally I had an invalid URL pattern. I fixed the invalid pattern and attempted to redeploy only to receive this: java.lang.IllegalArgumentException: Invalid URL Pattern: [{0}] at org.glassfish.web.deployment.node.WebResourceCollectionNode.setElementValue(WebResourceCollectionNode.java:136) I checked around in my application to see if I was missing something or had typed something else wrong

“File open failure” compiling java class to glassfish autodeploy

末鹿安然 提交于 2020-01-14 14:31:06
问题 I'm trying to deploy java class as a webservice on GlassFish. javac -d C:\glassfish3\glassfish\domains\mydomain\autodeploy grWrapper/HelloWorld.java No errors during compilation, but i have server_deployFailed file in autodeploy folder and "file open failure" in server.log [#|2011-11-30T00:21:05.616+0400|INFO|glassfish3.1.1|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=41;_ThreadName=Thread-2;|[AutoDeploy] Selecting file C:\glassfish3\glassfish\domains