glassfish

Glassfish 3 + ear + logback.xml

有些话、适合烂在心里 提交于 2019-12-23 10:03:04
问题 I'm using logback in an EAR-File which contains a JAR (ejb) and a WAR. This should run on a Glassfish v3 Server. Everything works, except the loading of the logback.xml. This can't be found. I build the Project with Netbeans. The used external libs are in the lib-Directory of the EAR (Which shouldn't make a difference where they are...). I've planed to put the logback.xml-File in the root-Directory or another Subdirectory in the EAR. The Classpath is set in the Manifest-Files of the JAR and

Problem with NetBeans Web Service Client when xercesImpl.jar is on classpath

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-23 09:55:03
问题 I am unable to create a Web Service Client in my NetBeans Web Application when xercesImpl.jar is included as a library. Using NetBeans 6.9 and GlassFish 3.0.1: 1.) Create new Web Application 2.) Create a new Web Service 3.) Add a new operation to the created web service (just let it return null - the implementation isn't important) 4.) Deploy web service to GlassFish (works fine) 5.) Add xercesImpl.jar (I'm using version 2.9.1) as a library to the web service (I need xerces for a third-party

JAX-RS resource error: Couldn't find JAX-B element for class java.lang.String and some more exceptions

℡╲_俬逩灬. 提交于 2019-12-23 09:35:06
问题 When I do an OPTIONS call on the rest resource 'queue' from the Java EE 7 SDK example 'async-chat', I get many exceptions, when the log level for jersey is set to FINE (org.glassfish.jersey.level=FINE). The same exceptions happen in my code, given below. Both applications run correctly. Are these exceptions irrelevant (just thrown when the logging level is on FINE)? If not, why are they thrown? I tested several GlassFish 4 installations and also GlassFish 4.0.1. They all show the same

Warning when deploying Apache Camel application

▼魔方 西西 提交于 2019-12-23 08:02:10
问题 I'm seeing the following warning when I deploy my application to GlassFish: WARN AnnotationTypeConverterLoader - Ignoring converter type: org.apache.activemq.camel.converter.ActiveMQMessageConverter as a dependent class could not be found: java.lang.NoClassDefFoundError: org/apache/camel/Processor java.lang.NoClassDefFoundError: org/apache/camel/Processor The application seems to work as expected but this warning is annoying me. I have the following in my POM: <properties> <camel-version>2.13

Warning when deploying Apache Camel application

大兔子大兔子 提交于 2019-12-23 08:01:17
问题 I'm seeing the following warning when I deploy my application to GlassFish: WARN AnnotationTypeConverterLoader - Ignoring converter type: org.apache.activemq.camel.converter.ActiveMQMessageConverter as a dependent class could not be found: java.lang.NoClassDefFoundError: org/apache/camel/Processor java.lang.NoClassDefFoundError: org/apache/camel/Processor The application seems to work as expected but this warning is annoying me. I have the following in my POM: <properties> <camel-version>2.13

meaning of this glassfish warning: context path differs from bundle

我是研究僧i 提交于 2019-12-23 07:17:01
问题 I'm not quite sure what this error message is indicating: INFO: visiting unvisited references INFO: visiting unvisited references INFO: visiting unvisited references INFO: visiting unvisited references INFO: EJB5181:Portable JNDI names for EJB Hello: [java:global/SalutationApp/SalutationApp-ejb/Hello, java:global/SalutationApp/SalutationApp-ejb/Hello!ejb.Hello] INFO: Loading application [SalutationApp#SalutationApp-war.war] at [SalutationApp-war] INFO: SalutationApp was successfully deployed

meaning of this glassfish warning: context path differs from bundle

回眸只為那壹抹淺笑 提交于 2019-12-23 07:16:10
问题 I'm not quite sure what this error message is indicating: INFO: visiting unvisited references INFO: visiting unvisited references INFO: visiting unvisited references INFO: visiting unvisited references INFO: EJB5181:Portable JNDI names for EJB Hello: [java:global/SalutationApp/SalutationApp-ejb/Hello, java:global/SalutationApp/SalutationApp-ejb/Hello!ejb.Hello] INFO: Loading application [SalutationApp#SalutationApp-war.war] at [SalutationApp-war] INFO: SalutationApp was successfully deployed

Servlet init() method equivalent in JAX-RS

℡╲_俬逩灬. 提交于 2019-12-23 07:00:59
问题 I am working on an application which is running on Glassfish. I am supposed to convert the servlets to proper restful stuff, by using jax-rs and jersey. I have been trying to find a workaround for init() method, but till now i failed. Here is the original part, using servlets: import javax.servlet.* public void init(ServletConfig config) throws ServletException { super.init(config); if (!isRunning() == true)) { /* Do some stuff here*/ } logger.info("Deamon has started"); } and this one which

Error on client side while calling a business method on server side returning managed entity

北慕城南 提交于 2019-12-23 05:15:58
问题 My client application is a standalone java application using Netbeans RCP. The client application connect to a remote EJB mounted on a Glassfish server. On the server side, i have a business method (i made for testing) that's supposed to take an instance of an entity (this entity is not persisted or managed yet), persist it (using the persit of the EntityManager ). Here is how this method looks like: @Override public TestLinkEntity test(TestLinkEntity c) { em.persist(c); return c; } Called

Spring 3 JNDI look up in glassfish3

守給你的承諾、 提交于 2019-12-23 03:47:06
问题 I want to look up some properties from JNDI configured in glassfish v3 server. I want to do it using spring. Here is my spring configuration: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:jee="http://www.springframework.org/schema/jee" xmlns:jaxws="http://cxf.apache.org/jaxws" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework