I am having trouble connecting to an LDAP server in my JSP application. I am running the application on GlassFish v2. The following code works well in a console application but fails when used in the jsp:
java.security.Security.addProvider(
new com.sun.net.ssl.internal.ssl.Provider());
System.setProperty("javax.net.ssl.trustStore"...
How to deploy a webservice in Metro on Glassfish server ? How to configure Metro on glassFish ? A webservice deployed on a glassfish server does automatically deployed on Metro if its configured ? I am using Netbeans 6.7 to develop and deploy the web service
...
Dears,
I used NetBeans to create a Metro Web service and GlassFish to be deployed on.
I get an error when I try to build -but only- if one of the operations in the web service return an Object instead of primitive types or String.
the Error is
Deploying application in domain failed; Deployment Error -- Exception occured in the wsgen ...
Hi
Im trying to deploy netbeans java ee project ( maven + hibernate + JSF ) on glassfish
Im getting error below. My database configuration is ok ( double checked from several apps ), and database itself is ok and online.
SEVERE: WebModule[/web-0.1-SNAPSHOT]PWC1275:
Exception sending context initialized event to listener
instanc...
We've recently upgraded our services technology stack. We opted for the WSIT implementation of JAX-WS.
Currently, we're relying on our Glassfish Application Server to deploy the web service automatically based on the JAX-WS annotations.
We have about two dozen different services and hundreds of operations, so this autodeployment take...
Hello!
I am following this example
. I keep getting this error whenever calling upon find:
java.lang.NullPointerException
at LoginAction.service(LoginAction.java:41)
at Dispatcher.doWork(Dispatcher.java:82)
at Dispatcher.doGet(Dispatcher.java:64)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
at javax...
I'm using Glassfish and Toplink together with an MS-SQL-Server, thus sqljdbc4.jar is used for connecting to the database. When the database is not available (DB server is down), the CPU usage rises to 100% and Glassfish keeps on trying to connect forever. My log fills up rapidly with the following messages:
FINE: TDSChannel (ConnectionI...
Does anyone have experiences with both in the real world? How do they compare in terms of performance (memory usage, speed, etc)? Stability?
Does JBoss Seam work well on Glassfish?
...
I would like to monitor remote glassfish server. I have enabled JMX Connection in domain.xml:
<jmx-connector accept-all="true" address="0.0.0.0" auth-realm-name="admin-realm" enabled="true" name="system" port="8686" protocol="rmi_jrmp" security-enabled="false">
But this didn't help. I still can't connect to server with JConsole. Then ...
Hi all
I'm trying to create an EJB factory class, which works like this: You have a method which takes as argument a class of an EJB, then it checks whether the EJB has a remote interface (if not throw an exception) and if it does, it returns the concerning EJB.
The code below does exactly this. However the object it returns is of the ...
How do I set up multiple entry points in an application client jar?
I am using Glassfish application server. I can grab the client using
asadmin get-client-stubs --appname APPLICATION_NAME .
I currently can run the default mainclass that I have specified in the MANIFEST.MF. However, I want to be able to specify another mainclass a...
Hello,
We are using Glassfish v2 (9.1_02) at work. Our servers are not set up in a clustered environment.
We would like to have one main server as a JNDI server that can serve DataSource objects, and possibly other objects in the future, and link other servers to this one server. This way, if we change the location of a database or cha...
We are having some difficulties connecting our Java SE standalone client with the EJB module deployed on a remote GlassFish server.
Pointers to how we are supposed to connect our client would be appreciated.
The client code we currently has to get the initial context:
props.setProperty("org.omg.CORBA.ORBInitialHost", "*remotehost*");
...
With Sun being taken over by Oracle, Oracle will arguably gain control of Glassfish.
I do understand that Glassfish is community driven but most of the contributions do come out of Sun at this time.
Its a great App Server and perfect for many cost-sensitive customers. However, if Oracle decides to pull the rug from under our feet on th...
Suppose I have a message driven bean (MDB) in a Java application server. The MDB receives a message from a JMS queue and passes it to a message processor. In my case, a message processor is an extremely heavy weight object that requires extensive initialization so I don't want to create a new one to handle each message. Instead I would l...
I'm working through the 'Simple Point-to-Point Example' section of the Sun JMS tutorial (sender source, receiver source), using Glassfish as my JMS provider. I've set up the QueueConnectionFactory and Queue in the Glassfish admin UI, and added the relevant JARs to my classpath and the receiver is receiving the messages sent by the sende...
I am attempting to enable FIPS mode on my windows machine, running glassfish_v21 Enterprise with HADB. I am doing this as a way to test the process on a machine with less collateral damage than on a Development Environment. However I receive an error when attempting to enable FIPS mode, below are the steps that I followed.
I used modut...
I have an EAR that I deploy as production, in context "/".
I'd like to deploy a test version of the application on the server, the same Glassfish instance.
Is it possible to deploy the application under a different context and port in the same instance?
If so, beside changing the context in application.xml, do I need to change anything...
I want to expose a web service on one node that defers onto the same web service contract on another node, basically then, proxy the web service, both nodes running glassfish.
I am using netbeans and jax-ws and I cannot get it to work. I generate the web service server part and the web service client part and use the same dto's. So the ...
I'm creating a facelets template for all my company's internal applications. Its appearance is based on the skin which the user selects (like gmail themes).
It makes sense to store the user's preferred skin in a cookie.
My "user-preferences" WAR can see this cookie. However, my other applications are unable to find the cookie. They a...