glassfish-3

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

烂漫一生 提交于 2019-12-03 15:41:45
问题 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

Unable to start Glassfish 3.1 even though port not occupied

徘徊边缘 提交于 2019-12-03 15:03:33
问题 I'm having trouble starting Glassfish 3.1 on a newly setup Debian "Squeeze" server. This is a testing server that has been setup and the Glassfish installation was copied from a working server to this other server. I tried running: # ./asadmin start-domain There is a process already using the admin port 4848 -- it probably is another instance of a GlassFish server. Command start-domain failed. I also tried restarting the domain because I thought maybe it was running: # ./asadmin restart

Steps to deploy Guvnor in Glassfish

北战南征 提交于 2019-12-03 13:51:23
问题 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)? 回答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

GlassFish 3 + Maven + remote deploy

女生的网名这么多〃 提交于 2019-12-03 12:57:39
问题 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. 回答1: In case you want to only use maven-glassfish-plugin (let say version 2.1), you can do a remote deploy by

Glassfish 3.1.2's JDBCRealm has a new Password Encryption Algorithm field. What is it for?

╄→尐↘猪︶ㄣ 提交于 2019-12-03 12:21:46
问题 The Glassfish JDBC realm features several different properties you can set. I am interested in the Digest Algorithm and Password Encryption Algorithm properties (that's how they show up in the admin console). The second one is new as of Glassfish 3.1.2 as near as I can tell. I have consulted the official Glassfish 3.1.1 documentation but it does not address the new property, and does not really explain what the first property is used for. There is a documentation bug that references a bug

Where does glassfish save your class/project after deployment on Windows?

假如想象 提交于 2019-12-03 12:17:11
I am using Glassfish3.1 on Windows XP. After deploy a web service project using Netbeans, it works fine. But when i go to install-path\glassfish-3.1\glassfish\domains\domain1\applications I don't see my application. under install\glassfish-3.1\glassfish\domains\domain1\applications\__internal , there's a folder with the same name as my project. But that folder is empty. But if i deploy a project on linux, i can find my application and classes under application folder. So where are they on windows? When you use netbeans, the default deployment dir is the build/web subdir of your netbeans

Java EE 6 embedded glassfish embedded derby EJB unit test

六月ゝ 毕业季﹏ 提交于 2019-12-03 09:13:23
questing is about javaee6 with embedded glassfish and embedded derby jndi lookup for data source at the time of deployment before unit test is executed.... Please find the persistence.xml here... <?xml version="1.0" encoding="UTF-8"?> <persistence 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_2_0.xsd" version="2.0"> <persistence-unit name="mymodulePU" transaction-type="JTA"> <provider>org.eclipse.persistence.jpa.PersistenceProvider

Programmatically add roles after authentication

百般思念 提交于 2019-12-03 07:52:38
问题 I have the following JSF 2.1 login form, running in Glassfish 3.1 <h:form id="loginForm"> <h:panelGrid columns="2" cellspacing="5"> <h:outputText value="Username" /> <h:inputText value="#{loginHandler.username}" /> <h:outputText value="Password:" /> <h:inputText value="#{loginHandler.password}" /> <h:outputLabel value="" /> <h:commandButton value="Login" action="#{loginHandler.login}" /> </h:panelGrid> </h:form> And the following backing bean. public String login() throws IOException,

TypedQuery instead of normal Query in JPA

核能气质少年 提交于 2019-12-03 07:26:05
Is it possible to write this Query as a TypedQuery and let the two Long's run into a Object with two public Long fields inside. Query q = em.createQuery( "SELECT c.id, COUNT(t.id) " + "FROM PubText t " + "JOIN t.comm c " + "WHERE c.element = ?1 " + "GROUP BY c.id"); q.setParameter(1, e); List<?> rl = q.getResultList(); Iterator<?> it = rl.iterator(); HashMap<Long, Long> res = new HashMap<Long, Long>(); while (it.hasNext()) { Object[] n = (Object[]) it.next(); res.put((Long)n[0], (Long)n[1]); } return res; JPA has a feature just for this - constructor expressions: Query q = entityManager

Customizing an Elastic Beanstalk AMI

≯℡__Kan透↙ 提交于 2019-12-03 06:49:18
I need to use on Elastic Beanstalk a Java application written for Glassfish server. Beacuse of Amazon doesn't let me choose an AMI with Glassfish, I choosed one with Tomcat and i modified my application to work properly on Tomcat. Now, I've seen I also needed to use a Sun JDK, while by default Elastic Beanstalk AMI comes with openjdk. I googled a lot, finding some (not so many resources) interesting posts like this answer on StackOverflow What I can't understand is this part of the answer: Create your custom AMI from a running instance of Amazon's beanstalk AMI that you manually launch from