glassfish

Help me to take value from Web Service using DOM parser

I have 2 table. Table A has ID (int, auto_increase), Name (Varchar), City_ForeignKey (Int, Reference to ID from table B) Table B ID (int, auto increase) Name City (Varchar) than i make Web Service from table A & B and success. When i make a client, i parse the Web Service XML from table A,it's problem to City_ForeignKey, when i want t...

is it good to catch error in DAO?

public boolean checkInd() { int dis_ind = 2; HashMap parmMap = new HashMap(); //line below can generate errors getSqlMapClientTemplate().queryForList("authentication.checkInd", parmMap); List results = (List) parmMap.get("Result0"); HashMap resultMap; if (result.size()>0) resultMap = (HashMap)resultMap...

Porting app from tomcat to glassfish

My app have this architecture: struts spring dwr hibernate Now we use apache tomcat 5.5.28. We wanna switch to Glassfish for performance. My question are: anyone know if there are problem for porting using this 4 framework? anyone know a guide for porting? or ... there are an official guide for porting from tomcat to glassfish?...

Glassfish hangs when serving multiple blob-images from an imageservlet

In my JSP/HTML files i use the following servlet to get blob-images from the MySQL-database. <img src="/image?id=1" /> Image servlet This is mapped to a imageservlet, who: - gets a stateless session-bean injected - uses the session-bean to lookup a product, based on the id passed in to the servlet - streams this image out as the resp...

Is there an API to GlassFish Admin Console?

Hi, we just inherited the development of a web application that uses GlassFish. The setup instructions we got have all these manual steps to setup connection pool, JDBC resource and JMS. I'm wondering if there is an API that could allow us to do all this work automatically (e.g. with a script)? Thanks! ...

What is the future of GlassFish ESB / Open ESB

With the merger of SUN and Oracle: What is the future of Open ESB a.k.a. GlassFish ESB? Is this a product which will be discontinued as Oracle has Oracle Service Bus (was BEA AquaLogic Service Bus)? ...

Which Maven Glassfish plugin to use?

I've been trying to integrate deploying java .war's in Glassfish V3 through Maven. While I have found a few plugins, none of them look to be very active: Maven Glassfish Plugin Eskato's Wordpress Blog on Maven And I got the most information out of Eskato's Blog, it was written March 2008, so I don't know what the state of Glassfish ...

Geronimo vs Glassfish

For a production environment, is Apache Geronimo better for applications that uses ActiveMQ, Derby, Solr? ...

Force clear EJB3 cache in Glassfish

I have application written in Java that is using EJB3 + Toplink. I'm using Glassfish as my app. server. Sometimes the data that has been cached is old and I need to clear my cache manually. I know that we can set time to clear it, but I would like to make a button that will manually clear it for me. Is is possible to do? ...

Servlet Exception + Class Cast Exception + Glassfish + Netbeans + JPA Entities + Vaadin

Hi all, I get this error: StandardWrapperValve[Vaadin Servlet]: PWC1406: Servlet.service() for servlet Vaadin Servlet threw exception java.lang.ClassCastException: com.delhi.entities.Category cannot be cast to com.delhi.entities.Category when I try to run my webapps on glassfish v2. Category is a JPA entity object the offending code...

Problem with Stripes' submit

Hello, I'm currently experiencing a problem with submit button in Stripes. It completely ignores event, that it should call. Actionbean is working on links with no problems... Im stuck on that for like 3 hours. event in actionbean @HandlesEvent("addc") public Resolution addc() { log.debug("addc() contract={}", contract); contra...

Configuration manager shouldn't be null error

we have a WAR that has S2 code in it and the WAR is deployed on Glassfish. We are noticing the configuration manager shouldn't be null error when we deploy the code and try to bring use the application (in browser). The error does not happen when the Application server is restarted after the deployment. Log: [#|2009-12-04T12:55:47.215...

Trigger function when Undeploying application

How do I automatically trigger Java function to stop Quartz scheduler jobs when I deploy/undeploy/redeploy JEE5 application in Glassfish. ...

How to run jsp netbeans glass fish on local ip 192.168.1.165

Hi all, I am trying to run a jsp app on my machine ip: 192.168.1.165 and want to get it in system with ip 192.168.1.163 but giving the url http://192.168.1.165%3Aport/app is not working ( we are working in intranet. ) Pls, help me... how to make this possible. ...

Access Mbean from sessionbeans on Glassfish

There are few servers runing simple MBean server listening on specified port. These servers are supposed to be monitored by main server running glassfish with an application based on EJB 3. One of the sessionbeans should perform monitoting by connecting to remote MBean. I use this url service:jmx:rmi:///jndi/rmi://${host}:${port}/jmxr...

Pure Java app on Glassfish?

I may be barking up the wrong tree here -- it's relatively easy to wrap a vanilla Java app in a daemon/service -- but it'd be really helpful for deployment if we could push pure Java apps onto a Glassfish server and have them start up automatically. We use JMS to connect this app to several other beans living on the Glassfish server. We...

PELaunch appeared on Mac OS X while using Glassfish v2

Hello I am working with Glassfish v2 on a Mac OS X. Today, I have added to my application some classes of the java.awt package ( Image and Graphics2D ). For some reason, an application icon of a Java cup appears in the Dock, named com.sun.enterprise.server.PELaunch. It never happened before I start to use the awt classes. Is it normal ?...

JSR 330 and Guice interoperability

Does anybody have experience with JSR 330 vs Guice? From what I gather Guice is not an implementation of JSR 330 but if it is anything like Hibernate and JPA the implementation supports a bunch of additional functionality no in the API. Since I am already using GWT-Dispatch, Warp-persist guice-serlvet, etc would there be anything gaine...

Difference between an application client and a stand-alone client

As the title suggests, this is in relation to Java EE and Glassfish in particular. From what i've learned the application client is executed in some application client that has the ability to talk to glassfish. But there seems to be limitations to this regarding annotations. Can someone give me an example of the difference in connecti...

Passing Parameters ins JSF 2.0

Hi, till now i used in JSF 1.2 commandLinks and the setPropertyActionListener to pass for e.g. the selectedItem of a DataTable. <h:commandLink action="#{Result.show}" value="#{foo.name}"> <f:setPropertyActionListener value="#{foo}" target="#{Result.selectedFoo}"/> </h:commandLink> In an example JSF 2.0 and JPA i have seen a solution,...