glassfish-3

GlassFish v3 Domain Server cannot start. Port is occupied

Deadly 提交于 2019-12-03 06:29:23
I imagine this is a pretty generic error. I cant seem to find any documentation on it. I am simply attempting to run a java web project with jsp's and beans... using netbeans 6.8 on windows xp. Thoughts? apologies for such a newb question. -Kirb you need to know who occupied the port. run in cmd netstat -aon | find ":80" | find "LISTENING" you will see process id. go to Task Manager and drop it. In Linux you get this error if the servername is not in the hosts file check /etc/hostname and make sure there is an entry in /etc/hosts with 127.0.0.1 [your_hostname] If you get errors from glassfish

A fatal error has been detected by the Java Runtime Environment: SIGSEGV (0xb) at pc=0x00002b2f7e9b2744, pid=28778, tid=1138739520

拟墨画扇 提交于 2019-12-03 06:00:57
I am getting the following error while executing the program. And this is not always happening. The code contains some complex calculations with a large volume of data. Could somebody help to identify the error # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00002b2f7e9b2744, pid=28778, tid=1138739520 # # JRE version: 7.0-b147 # Java VM: Java HotSpot(TM) 64-Bit Server VM (21.0-b17 mixed mode linux-amd64 compressed oops) # Problematic frame: # V [libjvm.so+0x64e744] PhaseIdealLoop::clone_loop(IdealLoopTree*, Node_List&, int, Node*)+0xe34 # # Failed

How to create custom 404 messages in JSF 2.0?

我的梦境 提交于 2019-12-03 05:49:26
Currently in my app when a user types some illegal destination in the URL bar, sees this: I would like to make it more beautiful and customize it with my own markup and a bit of css. -Do i need to program that on my app or i have to configure that in the application server? -Where should i start from if i want to do that? BalusC You can declare custom <error-page> s in web.xml depending on <error-code> (the HTTP status code ) or <exception-type> (the full qualified exception class name which was been thrown, e.g. javax.faces.application.ViewExpiredException ). <error-page> <error-code>404<

GlassFish 3 + Maven + remote deploy

旧巷老猫 提交于 2019-12-03 04:02:37
I couldn't find any clear answer about how to deploy simple Maven based project to remote GlassFish server via maven like mvn package xxx:deploy I think only cargo plugin supports GlassFish 3. Right? I've problems at configuration side. Any sample remote GlassFish deployment will be great. Cargo is not a must, if others are support remote GlassFish then we can also use it too. In case you want to only use maven-glassfish-plugin (let say version 2.1), you can do a remote deploy by specifying the "host" parameter. Below is an example where configurations are setup in maven settings.xml and an

Glassfish @RolesAllowed with custom SecurityContext

天大地大妈咪最大 提交于 2019-12-03 03:48:00
The question i'm about to ask is a bit tricky and I haven't found any answer yet. Maybe because i'm looking for the wrong thing. But i hope you will help me on this. I used the following tutorial to implement a custom SecurityContext that uses tokens instead of basic user/password authentication. Basically it initializes and injects a ResourceFilterFactory that will itself inject a ResourceFilter at every HTTP request sent to the application. This ResourceFilter searches for the "Authentication" header in the request, take its content and then authenticates the user. If the user is

Steps to deploy Guvnor in Glassfish

人走茶凉 提交于 2019-12-03 03:47:09
When I had tried deploying Guvnor onto Glassfish, I hit the same problem as here . If anyone has performed a successful deployment, what are the steps to deploy a recent version of Guvnor (e.g. 5.4) to a recent version of Glassfish (e.g. 3.1)? The steps for deploying Guvnor 5.4 are: Take the guvnor-5.4.0.Final-jboss-as-7.0.war binary war file Remove WEB-INF/lib/javassist-3.14.0-GA.jar from the binary war file Add the a glassfish-web.xml file to WEB-INF see here Replace WEB-INF/web.xml with this Repackage the binary war file and deploy to glassfish I have a project on git hub that automates

PermGen space issue with Glassfish/Hibernate

大兔子大兔子 提交于 2019-12-03 03:26:48
I'm running a GWT+Hibernate app on Glassfish 3.1. After a few hours, I run out of Permgen space. This is without any webapp reloads. I'm running with –XX:MaxPermSize=256m –XmX1024m . I took the advice from this page , and found that I'm leaking tons of classes- all of my Hibernate models and all of my GWT RequestFactory proxies. The guide referenced above says to "inspect the chains, locate the accidental reference, and fix the code". Easier said than done. The classloader always points back to an instance of org.glassfish.web.loader.WebappClassLoader . Digging further, I find lots of

client for remote JMS queue

会有一股神秘感。 提交于 2019-12-03 03:09:00
I have a JMS queue configured on remote glassfish server. I'm trying to connect this queue from my local machine. Is it possible to connect directly to this server or I need to connect via some broker/agent? How does it work? (I'm fresh in jms area) Many thanks If your client application is running outside Glassfish here is a simple code example for an open mq client. To get it to work you will need to reference 2 openmq jars from the glassfishInstall/mq/lib directory - imq.jar and jms.jar import com.sun.messaging.ConnectionConfiguration; import com.sun.messaging.ConnectionFactory; import com

Glassfish v3 / JNDI entry cannot be found problems!

左心房为你撑大大i 提交于 2019-12-03 03:06:53
I've been having problems trying to call an EJB's method from a Java Application Client. Here is the code. EJB Remote Interface package com.test; import javax.ejb.Remote; @Remote public interface HelloBeanRemote { public String sayHello(); } EJB package com.test; import javax.ejb.Stateless; @Stateless (name="HelloBeanExample" , mappedName="ejb/HelloBean") public class HelloBean implements HelloBeanRemote { @Override public String sayHello(){ return "hola"; } } Main class (another project) import com.test.HelloBeanRemote; import javax.naming.Context; import javax.naming.InitialContext; public

Java EE 6 - Embedded container EJB tests

穿精又带淫゛_ 提交于 2019-12-03 00:46:50
This questiong is regarding Java EE 6 , using glassfish v3 embedded-all . I have a unit test that uses EJBContainer to test my stateless EJB. Problem is I'm having trouble looking up the EJB (remote) using JNDI: setup() { ctx = EJBContainer.createEJBContainer().getContext(); } ... test() { BookService bookService = (BookService)ctx.lookup("java:global/BookServiceEJB!com.something.service.BookService"); ... } @Stateless public class BookServiceEJB implements BookService { ... } @Remote public interface BookService { ... } gives the exception: javax.naming.NamingException: Lookup failed for