Quantcast
Channel: GlassFish Related Items on Java.net
Viewing all 1091 articles
Browse latest View live

Can't find my DataSource with InitialContext via JNDI

$
0
0

Hello!

I have wrestled with this issue for a few days, now. I have searched the internet, but I can't find any solution.

I use GlassFish 3.1.2.2 and I have set up a new DataSource and Resource for a Derby database. The database works fine. That is, it is possible to ping it from GlassFish. However, when I try to get the DataSource from code, it can't find it.

I can list the JNDI entries from the command line (the __FoodNutritionDB is displayed)
$ asadmin list-jndi-entries --context jdbc
__default: org.glassfish.javaee.services.ResourceProxy
__FoodNutritionDB: org.glassfish.javaee.services.ResourceProxy
__TimerPool: org.glassfish.javaee.services.ResourceProxy
Command list-jndi-entries executed successfully.

but, when I try to get the DataSource from a simple Servlet:

protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
   response.setContentType("text/html");
   PrintWriter writer = response.getWriter();
   try {
      InitialContext context = new InitialContext();
      Object obj = context.lookup("jdbc/__FoodNutritionDB");
      writer.println(obj.getClass().toString());
   } catch (NamingException e) {
      writer.println("Exception: " + e.toString() );
   }
   finally {
      writer.close();
   }
}

.. it fail with an exception: Exception: javax.naming.NamingException: Lookup failed for 'jdbc/__FoodNutritionDB' in SerialContext [Root exception is javax.naming.NameNotFoundException: __FoodNutritionDB not found]

The JNDI names jdbc/__default and jdbc/__TimerPool are found with the above code.

I have created the data source via GlassFish Web Console. But, a look at the domain.xml (a part of it), is probably helpful in debugging this issue. See the attached picture.

If anyone could help me with this one, I would be so grateful! Thanks!

AttachmentSize
JNDI-problem.png149.16 KB

Need some help and advice on tuning an apache - to - glassfish proxy

$
0
0

I have a java web application running in Glassfish 3.1.1 on port 8080. I have Apache running on the same server on port 80 acting as a reverse proxy (using ajp) to Glassfish. Here is my configuration (and forgive the formatting but the pre tags don't seem to work on this forum):

In glassfish:
network-listener port="8009" protocol="http-listener-1" transport="tcp" name="jk-connector" jk-enabled="true" thread-pool="http-thread-pool"

In apache:
ProxyRequests Off
ProxyPass /client ajp://10.72.8.167:8009/client timeout=1200 ttl=1200

The problem occurs when I have around 10-15 concurrent connections I start seeing server unavailable messages in client browsers and this in the logs:

In glassfish domain log:
[#|2013-03-28T10:02:15.742-0500|SEVERE|glassfish3.1.1|org.apache.tomcat.util.threads.ThreadPool|_ThreadID=22;_ThreadName=Thread-2;|threadpool.busy|#]

In apache error_log:
[Thu Mar 28 10:13:01 2013] [error] (104)Connection reset by peer: ajp_ilink_receive() can't receive header
[Thu Mar 28 10:13:01 2013] [error] ajp_read_header: ajp_ilink_receive failed
[Thu Mar 28 10:13:01 2013] [error] (120006)APR does not understand this error code: proxy: read response failed from (null) (10.72.8.167)
[Thu Mar 28 10:13:13 2013] [error] (104)Connection reset by peer: ajp_ilink_receive() can't receive header
[Thu Mar 28 10:13:13 2013] [error] ajp_read_header: ajp_ilink_receive failed
[Thu Mar 28 10:13:13 2013] [error] (120006)APR does not understand this error code: proxy: read response failed from (null) (10.72.8.167)

[Thu Mar 28 10:13:35 2013] [error] (104)Connection reset by peer: ajp_ilink_receive() can't receive header
[Thu Mar 28 10:13:35 2013] [error] ajp_read_header: ajp_ilink_receive failed
[Thu Mar 28 10:13:35 2013] [error] (120006)APR does not understand this error code: proxy: read response failed from 10.72.8.167:8009 (10.72.8.167)

[Thu Mar 28 10:15:14 2013] [error] ap_proxy_connect_backend disabling worker for (10.72.8.167)
[Thu Mar 28 10:15:14 2013] [error] proxy: AJP: failed to make connection to backend: 10.72.8.167
[Thu Mar 28 10:15:15 2013] [error] (104)Connection reset by peer: ajp_ilink_receive() can't receive header
[Thu Mar 28 10:15:15 2013] [error] ajp_read_header: ajp_ilink_receive failed
[Thu Mar 28 10:15:15 2013] [error] (120006)APR does not understand this error code: proxy: read response failed from (null) (10.72.8.167)
[Thu Mar 28 10:15:17 2013] [error] (104)Connection reset by peer: ajp_ilink_receive() can't receive header
[Thu Mar 28 10:15:17 2013] [error] ajp_read_header: ajp_ilink_receive failed
[Thu Mar 28 10:15:17 2013] [error] (120006)APR does not understand this error code: proxy: read response failed from (null) (10.72.8.167)
[Thu Mar 28 10:15:18 2013] [error] proxy: AJP: disabled connection for (10.72.8.167)
[Thu Mar 28 10:15:18 2013] [error] (104)Connection reset by peer: ajp_ilink_receive() can't receive header
[Thu Mar 28 10:15:18 2013] [error] ajp_read_header: ajp_ilink_receive failed
[Thu Mar 28 10:15:18 2013] [error] (120006)APR does not understand this error code: proxy: read response failed from (null) (10.72.8.167)
[Thu Mar 28 10:15:18 2013] [error] proxy: AJP: disabled connection for (10.72.8.167)
[Thu Mar 28 10:15:19 2013] [error] (104)Connection reset by peer: ajp_ilink_receive() can't receive header
[Thu Mar 28 10:15:19 2013] [error] ajp_read_header: ajp_ilink_receive failed
[Thu Mar 28 10:15:19 2013] [error] (120006)APR does not understand this error code: proxy: read response failed from (null) (10.72.8.167)
[Thu Mar 28 10:15:24 2013] [error] (104)Connection reset by peer: ajp_ilink_receive() can't receive header
[Thu Mar 28 10:15:24 2013] [error] ajp_read_header: ajp_ilink_receive failed
[Thu Mar 28 10:15:24 2013] [error] (120006)APR does not understand this error code: proxy: read response failed from (null) (10.72.8.167)
[Thu Mar 28 10:15:24 2013] [error] proxy: AJP: disabled connection for (10.72.8.167)
[Thu Mar 28 10:15:24 2013] [error] proxy: AJP: disabled connection for (10.72.8.167)
[Thu Mar 28 10:15:24 2013] [error] proxy: AJP: disabled connection for (10.72.8.167)
[Thu Mar 28 10:15:24 2013] [error] proxy: AJP: disabled connection for (10.72.8.167)
[Thu Mar 28 10:15:24 2013] [error] proxy: AJP: disabled connection for (10.72.8.167)
[Thu Mar 28 10:15:24 2013] [error] proxy: AJP: disabled connection for (10.72.8.167)
[Thu Mar 28 10:15:28 2013] [error] (104)Connection reset by peer: ajp_ilink_receive() can't receive header
[Thu Mar 28 10:15:28 2013] [error] ajp_read_header: ajp_ilink_receive failed

Can anyone help me figure this out or where to go from here?

Thanks

One problem as starting trying Glassfish

$
0
0

Hi,

Not sure it is the place to ask this question.

Pick up Glassfish 3.1.2.2, with Eclipse 3.7 and Glassfish bundle to try JSF development.

Why deploy and test on the code, Glassfish always render my JSF request (.html) to JSP (.jsp). The error I got like below,

SEVERE: PWC6117: File "C:\facs\eee\modo\glassfish3122eclipsedefaultdomain\eclipseApps\test\testWeb_war\default.jsp" not found

I manually add this "default.jsp" into the WAR/EAR pacakage, it worked.

But I intent to work on JSF, ANyone has any clue on it? Search internet seems no one has such problem, pretty strange to me.

web.xml is below.

javax.faces.STATE_SAVING_METHODserver


Faces Servlet
javax.faces.webapp.FacesServlet
1


Faces Servlet
/faces/*
*.html


default.html

Thanks,
Start/

HTTP Status 500 exception 'java.lang.IllegalStateException' GlassFish3 & Oracle 11gr2

$
0
0

Hello! I need help urgently :-( I have a virtual machine with Glassfish3 + Oracle11gr2 installed. It worked correctly until last week when power has been unexpectedly disabled. So virtual machine has been stopped incorrectly and I still can't start my server. I'm trying to enter http://192.16.34.228:8080 (this is local IP of my server) and receive error message:

'HTTP Status 500 -
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.IllegalStateException'

So I typed in console:
sudo /home/oracle/glassfish3/bin/asadmin stop-domain domain1
sudo /home/oracle/glassfish3/bin/asadmin start-domain domain1
and checked logs:

cat /home/oracle/glassfish3/glassfish/domains/domain1/logs/server.log
...
[#|2013-03-30T16:19:32.681+0300|INFO|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=10;_ThreadName=Thread-2;|GlassFish Server Open Source Edition 3.1.1 (12) startup time : Felix (1,354ms), startup services(2,819ms), total(4,173ms)|#]

[#|2013-03-30T16:19:32.882+0300|INFO|glassfish3.1.1|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=16;_ThreadName=Thread-2;|JMXStartupService: Started JMXConnector, JMXService URL = service:jmx:rmi://localhost.localdomain:8686/jndi/rmi://localhost.localdomain:8686/jmxrmi|#]

[#|2013-03-30T16:20:54.585+0300|SEVERE|glassfish3.1.1|oracle.dbtools.apex.OWA|_ThreadID=17;_ThreadName=Thread-2;|The log message is null.
java.sql.SQLException: Exception occurred while getting connection: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasource
at oracle.ucp.util.UCPErrorHandler.newSQLException(UCPErrorHandler.java:541)
at oracle.ucp.jdbc.PoolDataSourceImpl.throwSQLException(PoolDataSourceImpl.java:588)
at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.java:669)
at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.java:614)
at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.java:608)
at oracle.dbtools.apex.Connections.getConnection(Connections.java:215)
at oracle.dbtools.apex.ModApexContext.getConnection(ModApexContext.java:288)
at oracle.dbtools.apex.Procedure.getProcedure(Procedure.java:45)
at oracle.dbtools.apex.OWA.validateProcedure(OWA.java:274)
at oracle.dbtools.apex.security.Security.isValidRequest(Security.java:121)
at oracle.dbtools.apex.ModApex.validateRequest(ModApex.java:220)
at oracle.dbtools.apex.ModApex.doGet(ModApex.java:81)
....39 more
Caused by: java.sql.SQLException: ORA-28001: the password has expired

at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:388)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:381)
at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:564)
at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:431)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
...46 more

[#|2013-03-30T16:20:54.618+0300|SEVERE|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=Thread-2;|Exception occurred while getting connection: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasource|#]

[#|2013-03-30T16:20:54.619+0300|WARNING|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=17;_ThreadName=Thread-2;|StandardWrapperValve[ModApex]: PWC1406: Servlet.service() for servlet ModApex threw exception
java.lang.IllegalStateException

I REALLY don't understand why I see error "ORA-28001: the password has expired". What happened with my server after power loss? What password has been expired and why?
By the way I found backup from 12th of January 2013 - same virtual machine. And it works OK. Can you tell me how to resolve my problem, please? :-( Thank you for answers.

AttachmentSize
GlassFish.jpg58.04 KB

第十七届西部国际装备制造业博览会

Add-ons of Glassfish

$
0
0

Hello List,

I am interested of using GlassFish for non-HTTP based protocols.

After some research, I have found that the proper way of implementing a non-HTTP based protocol that would require me to open sockets on the host system is to create a Custom container. This makes perfect sense since the Container is the one providing the Servlet with the messages of the doGet and doPost in the HttpServlet implementation. I found the following document to assist me with this process ( http://docs.oracle.com/cd/E18930_01/html/821-2415/ghpjl.html#scrolltoc ).

I would like to know more from an overview how the Container, Deployer and ApplicationContainer fit together. I have come across glassfish-play on github, sailfin (pre v3 implementation), a jRuby Container ... and I am not seeing the light of day... (very little comments and I do not have a big picture overview hence I can not see where the pieces fit together).

Could someone please just tell me how this fits together :) ... Context seems to elude me at this moment.

Kind Regards,
Etienne Pretorius

营销数据中挖掘出的商业智慧

警惕,薪酬管理的软件依赖症


Cannot install update tool: Not in GZIP format

$
0
0

I am running java 6 on windows. I just installed glassfish 3.1.2.2 using exe and chose not to install a domain during the installation. Then I tried running the pgk tool, and found out I had to install it. At first it didn't work, due to a 404. I found an answer here http://java.net/jira/browse/GLASSFISH-18884) to that problem (have to edit cfg_cache). Then I tried running it again, but now I am seeing this:

Input/output error: Not in GZIP format

Here is the complete output.

C:\opt\glassfish3\bin> .\updatetool

The software needed for this command (updatetool) is not installed.

If you choose to install Update Tool, your system will be automatically
configured to periodically check for software updates. If you would like
to configure the tool to not check for updates, you can override the
default behavior via the tool's Preferences facility.

When this tool interacts with package repositories, some system information
such as your system's IP address and operating system type and version
is sent to the repository server. For more information please see:

http://wikis.oracle.com/display/updatecenter/UsageMetricsUC2

Once installation is complete you may re-run this command.

Would you like to install Update Tool now (y/n): y

C:\opt\glassfish3\bin>"C:\Program Files (x86)\Java\jdk1.6.0_32\bin\java" -Dimage.path="C:\opt\glassfish3\bin\\.." -jar "C:\opt\glassfish3\bin\\..\pkg/lib/pkg-bootstrap.jar""C:\Users\NEUMEI~1\AppData\Local\Temp\pkg-bootstrap5312.props"
Proxy: Using system proxy settings.
Install image: C:\opt\glassfish3
Installing pkg packages.
Downloading 2 packages.
Downloading pkg (514 files, 6,463,109 bytes).
File 514/514
Downloading python2.4-minimal (278 files, 3,828,949 bytes).
File 278/278
Executing 906 install actions.
Input/output error: Not in GZIP format

Could not download application packages. This could be because:
- a proxy server is needed to access the internet. Please ensure that
the system proxy server settings in your Internet Options control panel
(under Connections:LAN Settings) are correct, or set the HTTP_PROXY
environment variable to the full URL of the proxy server.
- the package server or network connection is slow.
If you are getting time out errors you can try setting the
PKG_CLIENT_CONNECT_TIMEOUT and PKG_CLIENT_READ_TIMEOUT
environment variables and try again. For example to increase
the timeouts to 300 seconds set them to 300
- the package server is down or otherwise inaccessible or it is
generating invalid data. Please contact the provider of the package
server.

Access denied ? Server Policy on R1

$
0
0

I have three boxes, PROD(R1) TEST(R2) DEVL(R3)
Each box has the following info:
R1 R2 R3

i)10g app server hosting } Redirects->}
home index.html } links to }

R2 glassfish apps domain1
ii)Apex Listener 1 Apex Listener 1 No listener
rpd_prod, rpd_test,rpd_devl
<-- war files -->

RPD_PROD R2 can do an ODBC thru RPD_DEVL
TNS to R1 & R3
instances

web_logic 10.3.6
Installed on R2

I am getting an error can logon to
when log into admin admin
console on R1 saying console on R2
Access denied ? Server Policy.

R2 has access to RPD_PROD, RPD_TEST, RPD_DEVL instances by means of war files.
R1 is erroring out ? Why ?
The second question, can I install weblogic 10.3.6 on R1 while 10g app server running ?
Means can I run two simultaneously on R1 ? The weblogic 10.3.6 on R2 could be de-installed later depending on answer.
Thanks
Pab Ref

Adding empty beans.xml makes GlassFish say "Cannot load app"

$
0
0

My app is not using CDI so far, and it deploys and runs on GF 2.1.1 rather well. :-)

Now I want to start using CDI, so I add META-INF\beans.xml (zero length file) and redeploy. Now GF rejects to deploy, always says "Exception while loading the app" in server.log (without any stack trace)! ;-(

[#|2013-04-02T17:04:01.282+0200|SEVERE|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=40;_ThreadName=Thread-2;|Exception while loading the app|#]

How can I find out what the problem is, and how I could solve it?

I noticed that it is a known bug in GF 2.x which prevents the stack trace to show up. On the other hand I don't see that I did any fault at all (how could I, as I did not do anything but add a beans.xml file but not using any CDI annotations so far). So what the heck...?

Glassfisch 3.1.2 problem installing SSL-certificate

$
0
0

Hello,

since two weeks i am trying to install a SSL-certificate on glassfish 3.1.2 without success. I followed a lot of slightly different tuts from the net including the one from oracle.

I tried to install several self signed certificates as well as one from commodo and one from start.com. Always the same result:

With the built in certificate alias "s1as" all is working fine. But with new installed certificates the browser don't show anything. Firefox complains the connection is interrupted chrome says "Fehler 107 (net::ERR_SSL_PROTOCOL_ERROR): SSL-Protokollfehler"

In the server log with javax.enterprise.system.ssl.security and javax.enterprise.system.core.security set to FINEST I get about 15 entries in the logfile:

"[#|2013-04-02T17:01:22.739+0200|FINE|glassfish3.1.2|javax.enterprise.system.core.security.com.sun.enterprise.security.ssl|_ThreadID=6456;_ThreadName=Thread-2;ClassName=com.sun.enterprise.security.ssl.J2EEKeyManager;MethodName=getPrivateKey;|Getting private key for alias:websrv-test|#]"

All the same.

Now I hope, anyone can help me with this topic.

Best regards,
Manfred

Access denied ? Server Policy on R1

$
0
0

I have three boxes, PROD(R1) TEST(R2) DEVL(R3)
Each box has the following info:
R1 R2 R3

i)10g app server hosting } Redirects->}
home index.html } links to }

R2 glassfish apps domain1
ii)Apex Listener 1 Apex Listener 1 No listener
rpd_prod, rpd_test,rpd_devl
<-- war files -->

RPD_PROD R2 can do an ODBC thru RPD_DEVL
TNS to R1 & R3
instances

web_logic 10.3.6
Installed on R2

I am getting an error can logon to
when log into admin admin
console on R1 saying console on R2
Access denied ? Server Policy.

R2 has access to RPD_PROD, RPD_TEST, RPD_DEVL instances by means of war files.
R1 is erroring out ? Why ?
The second question, can I install weblogic 10.3.6 on R1 while 10g app server running ?
Means can I run two simultaneously on R1 ? The weblogic 10.3.6 on R2 could be de-installed later depending on answer.
Thanks
Pab Ref

Can't load different libraries on each cluster (Glassfish 3.1.2.2)

$
0
0

Hello,
I'm using GF 3.1.2.2 over Red Hat Enterprise Linux 6.3
I've several clusters and I need to load different libraries on each cluster.
I've read (http://docs.oracle.com/cd/E26576_01/doc.312/e24934/instances.htm) that the directory /config//lib is the folder where place "library files for all applications that are deployed to a specific cluster or standalone instance"

I've copied the jar files in this directory but applications doesn't find the classes.

Do I have to configure anything else?

Thank you

Can not configure SSL on Oracle IPlanet and Oracle Glassfish server through a load balancer

$
0
0

Hi ,

I'm trying to configure a system which includes two web servers (Oracle IPlanet) and two app servers (Oracle Glassfish 3.1.2) and a load balancer. Still I'm not able to configure ssl on load balancer to access these applications deployed on App server. Could you please let us know the procedure to do this configuration.

Thanks,
Regards,
Charith


What happened to --profile option for create-domain asadmin subcommand

$
0
0

I am in the process of upgrading glassfish from 2.1.1 to 3.1.1. I see from
the documentation that --profile option for create-domain doesn't do
anything anymore. We made use of custom templates in 2.1.1. How should we
go about migrating this over? Does it have anything to do with the new
domain initializes?

Simple Glassfish Cluster setup with session replication

$
0
0

I am trying to set up a two instance Glassfish cluster with session replication enabled between the two instances.

The eventual plan is to run Liferay portal on the cluster, but for now even the clusterjsp application does not persist session across the instances.

I have made sure that the application is deployed with availability enabled and confirmed that the option is still set for the application. I have also confirmed that the tag is present in the web.xml file.

I have tested to ensure multicast is working by running asadmin validate-multicast on both instances and they are able to communicate with each other. Both hosts are on the same subnet.

Are there any other steps that I am missing? What else could be preventing the sample application from seeing session data on another instance?

I appreciate any advice. Thanks!

Undeploy on Glassfish causes connection pool to be no more usable

$
0
0

Hi,

I'm working on a grails 2.2.1 project running on glassfish 3.1.2.2, using a jndi pooled datasource connected to a postgres 9.2 database.
When I deploy for the first time the application, I have no issues, everything works fine.

But, everytime I undeploy (or redeploy) my application, my connection pool stops working.
If I try to ping using glassfish admin console, I get this error :

Avertissement: RAR8054: Exception while creating an unpooled [test] connection for pool [ sample ], Connection could not be allocated because: No suitable driver found for jdbc:postgresql://localhost:5432/sample?loginTimeout=0&socketTimeout=0&prepareThreshold=5&unknownLength=2147483647&loglevel=0&tcpkeepalive=false
Grave: RestResponse.getResponse() donne FAILURE. endpoint = http://localhost:4848/management/domain/resources/ping-connection-pool.json ; attrs = {id=sample}'

I repeat : my connection pool works fine when I deploy (I have the postgresql driver in "/glassfish/lib", my connection pool is correctly configured, etc.), it's only when I undeploy that I have troubles.
This bug is highly reproductible, I even did a small grails project that reproduces the problem, you only need to have to configure a jndi datasource connected to a "sample" database (jndi/sample) on your glassfish server.

Here is the github link :
https://github.com/fabier/GlassfishJDBCGrailsPostgresql
And the war :
https://www.dropbox.com/s/cb9hmgc6lfabl5x/GlassfishJDBCGrailsPostgresql-...
and the domains.xml file:
https://www.dropbox.com/s/ljealpfp0zxj2r4/domain.xml

On grails side, my connection to the pool is configured this way:

environments {
    production {
        dataSource {
            dbCreate = "create-drop"
            jndiName = "jdbc/sample"
        }
    }
}

I think this bug is severe, since it kills a connection pool that can be shared amongst other webapps or ears.
For information, I did a bit of research, sensing it might be some sort of class unloader associated with undeployment, I found log4j that could be linked to this problem, so I tryed :
-Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false
but it didn't help.
Last point : in fact, postgresql driver is fully unloaded, so that other connection pools using postgresql driver are not usable after an undeploy.

Link to same issue in Glassfish's Jira:
http://java.net/jira/browse/GLASSFISH-20094

Link to same issue in Grails Mailing List:
http://grails.1312388.n4.nabble.com/Undeploy-on-Glassfish-causes-connect...

Please help.
Thanks.
--
Pierre FABIER
Ingénieur d'Etude
Parc technologique du canal
13, avenue de l'Europe
31520 Ramonville-Saint-Agne (France)
Tel: 09 74 77 14 21 - Fax: 09 59 64 78 74
www.camineo.com

Deploying deprecated EJBs

$
0
0

Would it be possible for the GlassFish deployment mechanism to issue a
warning when someone (I have this friend...) deploys an EJB that is
annotated with @Deprecated?

Best,
Laird

--
http://about.me/lairdnelson

Warning messages when using JMS with transactions

$
0
0

Hi everyone,

I have a small Spring framework based webapp running in Glassfish 3.1.2.2 that makes use of a JMS queue. I have configured the ConnectionFactory to use XA transactions and configured the associated JMS listener in Spring to use the transacted acknowledge mode. The message listener receives the JMS messages just fine, but I keep seeing the following warning messages in the Glassfish logs:

WARNING|glassfish3.1.2|javax.jms.Session.mqjmsra|_ThreadID=537;_ThreadName=Thread-3;|MQJMSRA_DS4001: commit():Illegal for a non-transacted Session:sessionId=7629447213446668801

How can I get rid of these messages?

Thanks

Etienne

Viewing all 1091 articles
Browse latest View live