glassfish-3

EclipseLink 2: ANT Task Error

為{幸葍}努か 提交于 2019-12-23 05:06:29
问题 I got this ANT task: <javac verbose="on" srcdir="${src.dir}" destdir="${build.dir}/${context.path}/classes" debug="${compile.debug}" debuglevel="${javac.debuglevel}" optimize="${compile.optimize}" deprecation="${javac.deprecation}" failonerror="true"> <compilerarg value="-Aeclipselink.persistencexml=${web.dir}/META-INF" compiler="javac1.6" /> <compilerarg line=" -processor org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor" /> <compilerarg line=" -proc:only" compiler=

Glassfish 3.0: Exception while deploying ejb module…Invalid ejb j ar: it contains zero ejb

风流意气都作罢 提交于 2019-12-23 01:16:12
问题 I have a very simple ejb 3.0 module with maven, it has only two session beans one stateless and the other is singleton...when I am trying to deploy the project on Glassfish 3.0 server, I got this exception: Error occurred during deployment: Exception while deploying the app : Invalid ejb jar : it contains zero ejb. Note: 1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean. 2. EJB3+ entity beans (@Entity) are POJOs and please package them as library

HTTP method GET is not supported by this URL though it executes doGet [duplicate]

十年热恋 提交于 2019-12-22 18:28:50
问题 This question already has answers here : HTTP Status 405 - HTTP method GET is not supported by this URL (2 answers) Closed 6 years ago . public class RoarHistoryUpdate extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException{ super.doGet(request, response); System.out.println("do Get"); response.setContentType("text/html"); response.getOutputStream().print("Success"); } } This is my Servlet. And it is registerd in

Session replication in Glassfish Cluster on EC2

别说谁变了你拦得住时间么 提交于 2019-12-22 11:37:30
问题 I've built a cluster on Glassfish administred via SSH, where there are 2 instances. I deployed an application that shows the "Session id". This application has in the web.config: <distributable/> And in the sun-web.xml: <session-config> <cookie-properties> <property name="cookieDomain" value="compute.amazonaws.com"/> </cookie-properties> </session-config> I enabled "Availability" in Edit Application. But when I access the 2 web app versions I see different session ids. Can anyone help me?

Glassfish AppServer or JBoss AppServer which is better for Production Environment?

房东的猫 提交于 2019-12-22 10:14:06
问题 I would like to know about pros and cons of glassfish server and jboss (glassfish v3 vs jboss 7.0) in using in production environment, i know more people use jboss as the application server, but glassfish has more features and stability over jboss do you agree with me? 回答1: Ask the question on the GlassFish forums and you'll get GlassFish as an answer. Ask the question on the JBoss forums and you'll get JBoss as an answer. Ask here, and you'll likely get both :-) Stability. I can tell you

Netbeans 7.1.2 - Unable to add glassfish server 3.1.2

。_饼干妹妹 提交于 2019-12-22 09:41:40
问题 I downloaded glassfish server from http://glassfish.java.net/downloads/3.1.2.2-final.html and installed in separately. Now I am trying to add this in Netbeans. But it does not work. I did the below steps Open Netbeans as administrator Open Tools -> Servers Click "Add Server" button Choose GlassFish Server 3+ Specify a name as "GlassFish" Choose the installation folder location - C:\glassfish3 Now it displays the error "Not a valid Glassfish server Installation". I am new to Netbeans &

@Context returns Proxy instead of HttpServletRequest (No thread local value in scope for proxy)

℡╲_俬逩灬. 提交于 2019-12-22 05:08:17
问题 I have a bit of a problem with understanding why @Context dependency injection returns collection of $Proxy(random number) instances instead of HttpServletRequest or HttpServletResponse. I am using Glassfish 3.1.2.2 with it's version of Jersey(Jersey: 1.11.1) and my app is built as EAR application. I have simple @Remote interface where I annotate my methods and REST services work without any problems, but the moment I try to access HttpServletRequest information it just causes problems. I

Glassfish 3 has two configurations

青春壹個敷衍的年華 提交于 2019-12-22 01:35:05
问题 I wanted to setup JDBC realm in Glassfish 3.1 and I am following this blog http://blog.gamatam.com/2009/11/jdbc-realm-setup-with-glassfish-v3.html But I notice in Glassfish 3.1 that there are two configuration namely default-config and server-config I just wanted to try out authentication using glassfish but I dont know where should I configure my realm? Any hints? Thanks 回答1: Put it in server-config . From the Glassfish 3.1.1 doc: The default-config configuration is a special configuration

how to Change glassfish application url

孤人 提交于 2019-12-22 00:29:13
问题 My current glassfish application can be accessed using this url localhost:9595/apex I want to change it to localhost:9595/pls/apex what i need change in this case. 回答1: You can change the context-root for your application by adding a context-root in glassfish-web.xml (If you don't have this file in your project, create it in the WEB-INF folder) like this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3

Logging using Log4j.xml in Glassfish

感情迁移 提交于 2019-12-22 00:12:17
问题 I was using WAS as my application server for deploying ear project.Presently changed to Glassfish . I am using log4j.xml file for logging. Logging is not working in Glassfish. Is there any dependency in using log4j.xml with glassfish. Any suggestions/pointers is appreciated 回答1: If your log4j library is included within your EAR file, then check your app server's JVM properties to ensure the log4j.configuration property is set: Login to the Glassfish Admin Console (http://[hostname]:4848/) For