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

Glassfish 3 service not shutting down cleanly on Windows shutdown

$
0
0

Glassfish 3.1.2 on a Windows 7 with JDK7 latest, configured as a Windows service.

-Xrs flag is set in domain.xml.

When I stop GF service from Services tool I can see a clean shutdown in server.log

[#|2014-07-09T10:09:19.878+0200|INFO|oracle-glassfish3.1.2|javax.enterprise.system.tools.admin.com.sun.enterprise.v3.admin|_ThreadID=195;_ThreadName=Thread-2;|Chiusura del server iniziata|#]
[#|2014-07-09T10:09:22.109+0200|INFO|oracle-glassfish3.1.2|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=195;_ThreadName=Thread-2;|[TimerBeanContainer] Shutdown() called....|#]
[#|2014-07-09T10:09:22.109+0200|INFO|oracle-glassfish3.1.2|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=195;_ThreadName=Thread-2;|EJB5122:EJB Timer Service shutdown at [2014/07/09 10:09:22]|#]
[#|2014-07-09T10:09:22.109+0200|INFO|oracle-glassfish3.1.2|org.eclipse.persistence.session.file:.../applications/ejb-timer-service-app/WEB-INF/classes/___EJB__Timer__App|_ThreadID=195;_ThreadName=Thread-2;|file:/.../applications/ejb-timer-service-app/WEB-INF/classes/___EJB__Timer__App logout successful|#]
[#|2014-07-09T10:09:22.156+0200|INFO|oracle-glassfish3.1.2|javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.service|_ThreadID=247;_ThreadName=Thread-2;|RAR7094: __cp_jdbc_ra shutdown successful.|#]
[#|2014-07-09T10:09:22.156+0200|INFO|oracle-glassfish3.1.2|javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.service|_ThreadID=249;_ThreadName=Thread-2;|RAR7094: __xa_jdbc_ra shutdown successful.|#]
[#|2014-07-09T10:09:22.156+0200|INFO|oracle-glassfish3.1.2|javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=250;_ThreadName=Thread-2;|MQJMSRA_RA1101: GlassFish MQ JMS Resource Adapter stopping...|#]
[#|2014-07-09T10:09:25.775+0200|INFO|oracle-glassfish3.1.2|javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=250;_ThreadName=Thread-2;|MQJMSRA_RA1101: GlassFish MQ JMS Resource Adapter stopped.|#]
[#|2014-07-09T10:09:25.775+0200|INFO|oracle-glassfish3.1.2|javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.service|_ThreadID=248;_ThreadName=Thread-2;|RAR7094: jmsra shutdown successful.|#]
[#|2014-07-09T10:09:30.549+0200|INFO|oracle-glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=195;_ThreadName=Thread-2;|Procedura di chiusura completata|#]

When the PC shuts down, however, I see none of the above and the event viewer shows a Warning for an abrupt termination

Child process [6300 - C:/Programs/GlassfishV3/glassfish/bin/asadmin.bat start-domain --verbose --domaindir C:\\Programs\\GlassfishV3\\glassfish\\domains trunk ] terminated with 143

Is Windows not calling stop on each active service on shutdown ?
Is it a bug of the GlassfishSvc tool used to create the service ?


Updated SSL certificate but browser still shows as invalid

$
0
0

Running GlassFish 3.1.1 (build 12) on Amazon Linux.

The app has been running for 3 years without an issue, but now I need to update the SSL certificate.

My research included the following web sites:

http://aliok.wordpress.com/2011/06/04/using-your-ssl-certificate-on-glas...

http://www.denizoguz.com/2011/01/02/installing-godaddy-ssl-certificates-...

In my existing keystore I have:

$ /usr/java/jdk1.7.0_01/bin/keytool -list -keystore keystore.jks
Enter keystore password: changeit

Keystore type: JKS
Keystore provider: SUN

Your keystore contains 6 entries

root, Mar 15, 2012, trustedCertEntry,
Certificate fingerprint (SHA1): 27:96:BA........:20:EE:E4
glassfish-instance, Aug 5, 2011, PrivateKeyEntry,
Certificate fingerprint (SHA1): CD:ED:ED.......:F2:52:99
app, Mar 15, 2012, PrivateKeyEntry,
Certificate fingerprint (SHA1): D2:91:C9........:54:03:0A
intermed, Mar 15, 2012, trustedCertEntry,
Certificate fingerprint (SHA1): 7C:46:56..........:11:FC:44
s1as, Aug 5, 2011, PrivateKeyEntry,
Certificate fingerprint (SHA1): 93:89:A1........:E0:22:3E
cross, Mar 15, 2012, trustedCertEntry,
Certificate fingerprint (SHA1): DE:70:F4:........:3B:2C:62

In the Glassfish "server-config" listerner-2 section the SSL tab shows alias "app" and keystore is "keystore.jks".

I applied to GoDaddy for the replacement certificate, and after going through the verification process received a zip file containing:

71.......8c4.crt gd_bundle.crt

I deleted the existimg "app" alias from the keystore:

/usr/java/jdk1.7.0_01/bin/keytool -delete -alias app -keystore keystore.jks.test

Then added the new certificate to teh same alias:

/usr/java/jdk1.7.0_01/bin/keytool -import -alias app -keystore keystore.jks.test -trustcacerts -file 71.......8c4.crt

I then restarted GlassFish.

Then I navigated to the SSL site on my browser but got the same Invalid Certificate warning.

When I use the browsers "View Certificate" option and look at the "Thumbprint" the hex key matches the old "app" key from the keystore, i.e. GlassFish doesn't seem to be picking up the new keystore.

Any ideas?

Glassfish 3 sessions not reclaimed

$
0
0

We are seeing a problem in our production environment with sessions not being reclaimed after the expiration. We are running Glassfish 3.1.2.2 with Jdk 1.7u51 on x86_64 servers.

I have looked at a heap dump and I see that most of the leaked sessions have a lastAccessedTime equal to creationTime. There are sessions that have lastAccessedTime over 2 weeks ago(last server restart) and the sessionTimeout is set to 90.

Is anyone aware of anything that could cause this behaviour?

Also I should mention we are running httpd with mod_jk from end.

Glassfish does not deploy ear-file correctly

$
0
0

Hello,

I´m using Glassfish in version 3.1.2.2 build 5 (Open source edition) and want to deploy my ear-file. This is how I do this by using command line:
${GF_HOME}/bin/asadmin --user admin --passwordfile ${MY_BIN}/password.txt --host 127.0.0.1 --port 4848 deploy --name my_ear --target domain my_ear.ear

I´m getting a 'build successfull' but when I want to deactive it via GF-Webadmin-tool, I'm getting an error. If I open this deployed ear via Webadmin-tool (it shows me the content of the ear) and deactivate it afterwards, everything is fine.

No problems will occur, if I deploy via GF-Webadmin-tool and not by command line.

Can anybody tell me, what´s the difference between the command line and deploying with GF-Webadmin-tool?

Thanks in advance!

Best regards,
Stefan

Admin Console for GlassFish 4.0 does not start on Windows 7

$
0
0

Hi guys,

I have downloaded Glassfish 4.0 from classic location first on a Windows 7 machine

https://glassfish.java.net/download.html

unzipped the content and executed asadmin start-domain (for the predefined domain1). Then I try to access http://localhost:4848 in Firefox or Chrome.
Admin Console comes up and shows continuous loading widget, and if one tries to reload it fails in browser with 404 for

http://localhost:4848/common/index.jsf

and in the logs last entries are

INFO: Loading application [__admingui] at [/]
INFO: Loading application __admingui done in 5,028 ms
WARNING: Context path from ServletContext: differs from path from bundle: /
SEVERE: PWC6117: File "D:\Program Files\glassfish-4.0\glassfish\lib\install\applications\__admingui\common\index.jsp" not found

However, if I access the following link http://locahost:4848/login.jsf then I can access and login into admin console.This link is not documented anywhere in Glassfish, I found on it on a forum, so I'm not sure how reliable it is. I'm also not sure, if the server is installed and running properly.

Exactly same package downloaded, unzipped and executing same steps as above but on Ubuntu 1.3.10 works out of the box without any problems.
Any ideas why glassfish won't work on some Windows 7 machines with official links? Thanks,

Cristian

Dynamic alternatedocroot for different operating systems

$
0
0

Hello!

I got a huge problem and didn't find a solution till now.

The user should be able to upload pictures to the webserver which should get stored outside the application- or domain directory, because if you redeploy the application the pictures will be deleted. Filename references are stored in a database. I thought of defining a data storage path as JNDI-resource which works fine. But the pictures have to be shown in a Servlet with an "

Any suggestions cause I already switched to Base64-Encoding to transfer files to the webserver which can't be the soulition!

glassfish4, javacompiler

$
0
0

using glassfish4, jdk1.7,
errors in task.call() method,

>compiler.err.cant.resolve.location.args
>padm.exforms.MemoryFileManager$JavaSourceFromString[mfm:///CM.java]]]
>cannot find symbol
symbol: method getVal(int,int)
location: class padm.exforms.CM]
and etc...

in j2se that code works ok, in glassfish server get errors

example code;

JavaCompiler compiler =
ToolProvider.getSystemJavaCompiler();DiagnosticCollector
diagnostics = new DiagnosticCollector();String className = "CM";
Class<?>_class = getClassFromString(compiler, diagnostics,
Arrays.asList("-g:none", "-classpath",
System.getProperty("java.class.path")), className,
getClassCode(className));

private Class<?> getClassFromString(JavaCompiler compiler,
DiagnosticListener listener, List flags,
String className, String classCode) {
MemoryFileManager mfm = new
MemoryFileManager(compiler.getStandardFileManager(listener, null,
null));

JavaFileObject fileObject =
MemoryFileManager.makeSource(className, classCode);

CompilationTask task = compiler.getTask(null, mfm, listener,
flags, null, Arrays.asList(fileObject));
if (task.call()) { //error in this call

ClassLoader cl = mfm.getClassLoader(StandardLocation.CLASS_OUTPUT);

try {
return cl.loadClass(className);
} catch (ClassNotFoundException e) {
Logger.getLogger(getClass().getName()).log(Level.SEVERE, "err:" + e);
return null;
}
} else
return null;
}

private String getClassCode(String className) {
StringBuilder sb = new StringBuilder();
sb.append("package padm.exforms;"); //also tried without this line
sb.append("import java.math.*; import java.sql.*; public class ");
sb.append(className);
sb.append(" extends ");
sb.append(ConditionManager.class.getCanonicalName());
sb.append("{public ");
sb.append(className);
sb.append("(){}");}

how to use javacompiler in glassfish4 ? i also tried set class-loader
delegate=false in sun-web.xml, but after that ejb beans don`t work

thanks

p.s MemoryFileManager class;

import java.io.*;import java.net.*;import java.util.*;import
java.util.logging.Level;import java.util.logging.Logger;
import javax.tools.*;import javax.tools.JavaFileObject.Kind;
/**
* A file manager for compiling strings to byte arrays. This file manager
* delegates to another file manager to lookup classes on boot class path.
*

*

* This is NOT part of any supported API. If you write code that depends on
* this, you do so at your own risk. This code and its internal interfaces are
* subject to change or deletion without notice.

*

*
* @author Peter von der Ahé
*/public final class MemoryFileManager extends
ForwardingJavaFileManager {
/**
* Maps binary class names to class files stored as byte arrays.
*/
private Map classes;

/**
* Creates a JavaFileObject representing the given compilation unit.
*
* @param name a NAME representing this source code, for example, the NAME
* of a class
* @param code a compilation unit (source code for a Java program)
* @return a JavaFileObject represtenting the given compilation unit
*/
public static JavaFileObject makeSource(String name, String code) {
return new JavaSourceFromString(name, code);
}

/**
* Construct a memory file manager which delegates to the specified file
* manager for unknown sources.
*
* @param fileManager a file manager used to look up class files on class
* path, etc.
*/
public MemoryFileManager(JavaFileManager fileManager) {
super(fileManager);
classes = new HashMap();
}

/**
* Get a class loader which first search the classes stored by this file
* mananger.
*
* @return a class loader for compiled files
*/
@Override
public ClassLoader getClassLoader(Location location) {
Enumeration e = null;
try {
e = MemoryFileManager.class.getClassLoader().getResources("");
} catch (IOException e1) {
Logger.getLogger(getClass().getName()).log(Level.SEVERE, "error:" + e1);
}
assert e != null;
while (e.hasMoreElements()) {
System.out.println("ClassLoader Resource: " + e.nextElement());
}
System.out.println("Class Resource: " +
MemoryFileManager.class.getResource("/"));
return new ByteArrayClassLoader(classes);
}

@Override
public JavaFileObject getJavaFileForOutput(Location location, String
name, Kind kind, FileObject originatingSource) throws
UnsupportedOperationException {
if (originatingSource instanceof JavaSourceFromString)
return new JavaClassInArray(name);
else
throw new UnsupportedOperationException();
}

protected static URI uriFromString(String uri) {
try {
return new URI(uri);
} catch (URISyntaxException e) {
throw new IllegalArgumentException(e);
}
}

/**
* A file object representing a Java class file stored in a byte array.
*/
private class JavaClassInArray extends SimpleJavaFileObject {

private String name;

/**
* Constructs a JavaClassInArray object.
*
* @param name binary NAME of the class to be stored in this file object
*/
JavaClassInArray(String name) {
super(uriFromString("mfm:///" + name.replace('.', '/') +
Kind.CLASS.extension), Kind.CLASS);
this.name = name;
}

@Override
public OutputStream openOutputStream() {
return new FilterOutputStream(new ByteArrayOutputStream()) {
@Override
public void close() throws IOException {
out.close();
ByteArrayOutputStream bos = (ByteArrayOutputStream) out;
classes.put(name, bos.toByteArray());
}
};
}
}

/**
* A file object used to represent source coming from a string.
*/
private static class JavaSourceFromString extends SimpleJavaFileObject {
/**
* The source code of this "file".
*/
final String code;

/**
* Constructs a new JavaSourceFromString.
*
* @param name the NAME of the compilation unit represented by this file
* object
* @param code the source code for the compilation unit represented by
* this file object
*/
JavaSourceFromString(String name, String code) {
super(uriFromString("mfm:///" + name.replace('.', '/') +
Kind.SOURCE.extension), Kind.SOURCE);
this.code = code;
}

@Override
public CharSequence getCharContent(boolean ignoreEncodingErrors) {
return code;
}
}}

[ GlassFish 4 ] How to create a connection pool for MS SQL Server?

$
0
0

Hallo,

in JDeveloper I developed a Web ADF application and I would like to deploy it to GlassFish 4, on a server different from the development-PC.

On the development-PC the application uses a database connection configured in the IDE, this connection uses the C:\Program Files\Microsoft JDBC Driver 4.0 for SQL Server\sqljdbc_4.0\sqljdbc4.jar library.

Could you kindly tell me which are the values to insert in the fields when in GlassFish I create the connection pool?

Have I to copy (in which folder?) sqljdbc4.jar also on the server where GlassFish resides?

In GlassFish, after having created the connection pool I will have to create the JDBC resource. How have I to do to make my application to use this JDBC resource? As I said above the application uses a connection configured in the IDE...

Thanks,
Federico


Embedded Glassfish auto discovery of Servlet 3.0

$
0
0

I'm running an embedded glassfish (v4) instance and deploying code within a ScatteredArchive. Unfortunately, upon deployment, the server instance isn't finding any of my annotated servlets or context listeners. Is there some specific I need to do in order for these to be discovered?

best regards!

Number of deployed applications

$
0
0

Hi,

what is the limit of the deployed applications count? Is there a limit at all or it depends on the available server resources?

Thanks in advance!

Br, Miklos

Migrating webapp from Glassfish 3.1 to Glassfish 4.0

$
0
0

Hi, my name is Jeff and I'm new to the forums.

Here is our problem. We currently have a JEE5 application using JSF 1.2, Seam 2.2.1.GA and HIbernate deployed on a Glassfish 3.1 server. We are using maven 2.2.1 to build the business .ear and presentation .war. We also have ant tasks fhat call asadmin to create/setup the two specific domains for the two packages.

What I did is I changed the JDK from 1.6 to 1.7, changed the Glassfish environment variables to Glassfish 4.0, and ran all the scripts to build and deploy. Everything went smoothly and the two packages appeared to deploy correctly. However, when I try to access the localhost:3280/moxxi URL (the presentation layer is on port 3280), it shows me our error page when we find an exception instead of showing me the login page. When I click the "bring me back to the homepage/login page", I get this weird HTTP error 500 from Glassfish 4.0 :

org.jboss.weld.context.NonexistentConversationException: WELD-000321 No conversation found to restore for id 2

Note here that the id is not always the same. My guess is that the conversation doesn't exist because it never accesses the homepage in the first page, so there's nothing to restore? I'm not sure... Anway, here is the log on the business domain :

[2014-07-16T11:35:26.256-0400] [glassfish 4.0] [SEVERE] [] [org.mcgill.moxxi.interceptor.EJBCallInterceptor] [tid: _ThreadID=68 _ThreadName=p: thread-pool-1; w: 5] [timeMillis: 1405524926256] [levelValue: 1000] [[
Error
javax.ejb.EJBTransactionRolledbackException
at com.sun.ejb.containers.BaseContainer.mapLocal3xException(BaseContainer.java:2279)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2060)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1979)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:220)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
at com.sun.proxy.$Proxy620.createLogicalSession(Unknown Source)
at org.mcgill.moxxi.service.session.session001.Session001ServiceBean.createSessionWithAnonymousAuthentication(Session001ServiceBean.java:23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1081)
at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1153)
at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:4695)
at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:630)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:582)
at org.mcgill.moxxi.interceptor.EJBCallInterceptor.interceptEJBCall(EJBCallInterceptor.java:234)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:582)
at org.mcgill.phire.dao.interceptor.PhireDaoEjbInterceptor.doAroundInvoke(PhireDaoEjbInterceptor.java:37)
at sun.reflect.GeneratedMethodAccessor99.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:582)
at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:55)
at sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:582)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doCall(SystemInterceptorProxy.java:163)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:140)
at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:369)
at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:4667)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4655)
at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:205)
at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:79)
at com.sun.proxy.$Proxy293.createSessionWithAnonymousAuthentication(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie.dispatchToMethod(ReflectiveTie.java:143)
at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:173)
at com.sun.corba.ee.impl.protocol.ServerRequestDispatcherImpl.dispatchToServant(ServerRequestDispatcherImpl.java:528)
at com.sun.corba.ee.impl.protocol.ServerRequestDispatcherImpl.dispatch(ServerRequestDispatcherImpl.java:199)
at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequestRequest(MessageMediatorImpl.java:1549)
at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequest(MessageMediatorImpl.java:1425)
at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleInput(MessageMediatorImpl.java:930)
at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:213)
at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequest(MessageMediatorImpl.java:694)
at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.dispatch(MessageMediatorImpl.java:496)
at com.sun.corba.ee.impl.protocol.MessageMediatorImpl.doWork(MessageMediatorImpl.java:2222)
at com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497)
at com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540)
Caused by: javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean
at com.sun.ejb.containers.EJBContainerTransactionManager.checkExceptionClientTx(EJBContainerTransactionManager.java:662)
at com.sun.ejb.containers.EJBContainerTransactionManager.postInvokeTx(EJBContainerTransactionManager.java:507)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4475)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2009)
... 67 more
Caused by: javax.ejb.EJBTransactionRolledbackException
at com.sun.ejb.containers.BaseContainer.mapLocal3xException(BaseContainer.java:2279)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2060)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1979)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:220)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
at com.sun.proxy.$Proxy659.persist(Unknown Source)
at org.mcgill.phire.logic.session.session001.Session001LogicBean.createLogicalSession(Session001LogicBean.java:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1081)
at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1153)
at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:4695)
at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:630)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:582)
at org.mcgill.phire.dao.interceptor.PhireDaoEjbInterceptor.doAroundInvoke(PhireDaoEjbInterceptor.java:37)
at sun.reflect.GeneratedMethodAccessor99.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:582)
at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:46)
at sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:582)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doCall(SystemInterceptorProxy.java:163)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:140)
at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:369)
at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:4667)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4655)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:212)
... 65 more
Caused by: javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean: java.lang.AbstractMethodError
at com.sun.ejb.containers.EJBContainerTransactionManager.checkExceptionClientTx(EJBContainerTransactionManager.java:665)
at com.sun.ejb.containers.EJBContainerTransactionManager.postInvokeTx(EJBContainerTransactionManager.java:507)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4475)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2009)
... 105 more
Caused by: java.lang.AbstractMethodError
at com.sun.enterprise.container.common.impl.EntityManagerWrapper._getDelegate(EntityManagerWrapper.java:197)
at com.sun.enterprise.container.common.impl.EntityManagerWrapper.persist(EntityManagerWrapper.java:287)
at org.mcgill.phire.dao.GenericHibernateDao.persist(GenericHibernateDao.java:44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1081)
at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1153)
at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:4695)
at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:630)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:582)
at org.mcgill.phire.dao.interceptor.PhireDaoEjbInterceptor.doAroundInvoke(PhireDaoEjbInterceptor.java:55)
at sun.reflect.GeneratedMethodAccessor99.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:582)
at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:46)
at sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:582)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doCall(SystemInterceptorProxy.java:163)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:140)
at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:369)
at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:4667)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4655)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:212)
... 103 more
]]

I don't know where to start for this, is it a JBoss Weld/Seam error, is this related to Glassfish 4.0? What is the difference between Glassfish 3.1 and 4.0 that makes it impossible for our app to work?

Any inputs on this?

Thank you very much!.

No asupgrade command in glassfish 4.0

$
0
0

Hello all,

I've installed a glassfish 4.0 and I'm following the side by side upgrade from a glassfish 2.1, but I cannot fing the asupgrade command.

The glassfish 4.0 as-install directory is /usr/local/glassfishext/glassfish4/glassfish/, but in the bin directory I have only the following:

[glassfishext@swdevext ~]$ ls /usr/local/glassfishext/glassfish4/glassfish/bin -1
appclient
appclient.bat
appclient.js
asadmin
asadmin.bat
capture-schema
capture-schema.bat
jspc
jspc.bat
package-appclient
package-appclient.bat
schemagen
schemagen.bat
startserv
startserv.bat
stopserv
stopserv.bat
wscompile
wscompile.bat
wsdeploy
wsdeploy.bat
wsgen
wsgen.bat
wsimport
wsimport.bat
xjc
xjc.bat

Is this command missing for anyone else or is it just my install that is not complete?

Thanks in advance,
José

How to configure IMQ broker on GF4.0.1-SNAPSHOT and clustering?

$
0
0

Hi,

I need to configure a cluster with two instances with embedded IMQ broker and EAR application. This domain is used only for testing, I don't know how it will work on target configuration on multiple servers.
This domain is running on Kubuntu Linux on Dell with Intel i5 CPU.

Problem one:
I don't understand why IMQ broker refuses using loopback IP adress. It would be the simplest solution for me.
ERROR [B3168]: Invalid broker address for this broker to run in cluster: Loopback IP address is not allowed in broker address mq://127.0.0.1:7679/?instName=ciswebclustercisweb1&brokerSessionUID=7687722948933731840&ha=false for cluster

Problem two:
Replacing localhost in domain.xml with hostname or computer's IP adress causes that sometimes cluster instances have no IMQ at all!!! Instance folder does not even contain the folder imq and starting the instance causes these messages in the server.log:
I think that Nullpointer without any message is always a bug ... :-(

[2014-07-18T19:23:01.483+0200] [glassfish 4.0] [SEVERE] [rardeployment.start_failed] [javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors] [tid: _ThreadID=88 _ThreadName=Recovery Helper Thread] [timeMillis: 1405704181483] [levelValue: 1000] [[
RAR6035 : Resource adapter start failed.
com.sun.appserv.connectors.internal.api.ConnectorRuntimeException
at com.sun.enterprise.connectors.jms.system.ActiveJmsResourceAdapter.setClusterRABeanProperties(ActiveJmsResourceAdapter.java:1341)
at com.sun.enterprise.connectors.jms.system.ActiveJmsResourceAdapter.loadRAConfiguration(ActiveJmsResourceAdapter.java:392)
at com.sun.enterprise.connectors.ActiveOutboundResourceAdapter.init(ActiveOutboundResourceAdapter.java:115)
at com.sun.enterprise.connectors.inbound.ActiveInboundResourceAdapterImpl.init(ActiveInboundResourceAdapterImpl.java:90)
at com.sun.enterprise.connectors.ActiveRAFactory.instantiateActiveResourceAdapter(ActiveRAFactory.java:141)
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:108)
at com.sun.enterprise.connectors.service.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:210)
at com.sun.enterprise.connectors.service.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:346)
at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:405)
at com.sun.enterprise.resource.recovery.ConnectorsRecoveryResourceHandler.createActiveResourceAdapter(ConnectorsRecoveryResourceHandler.java:477)
at com.sun.enterprise.resource.recovery.ConnectorsRecoveryResourceHandler.loadAllConnectorResources(ConnectorsRecoveryResourceHandler.java:168)
at com.sun.enterprise.resource.recovery.ConnectorsRecoveryResourceHandler.loadXAResourcesAndItsConnections(ConnectorsRecoveryResourceHandler.java:245)
at com.sun.enterprise.transaction.jts.ResourceRecoveryManagerImpl.getAllRecoverableResources(ResourceRecoveryManagerImpl.java:212)
at com.sun.enterprise.transaction.jts.ResourceRecoveryManagerImpl.recoverXAResources(ResourceRecoveryManagerImpl.java:240)
at com.sun.enterprise.transaction.jts.ResourceRecoveryManagerImpl.recoverXAResources(ResourceRecoveryManagerImpl.java:337)
at com.sun.enterprise.transaction.jts.ResourceRecoveryManagerImpl.postConstruct(ResourceRecoveryManagerImpl.java:108)
at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:329)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:377)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:460)
at org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.java:114)
at org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.java:102)
at org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture$1.call(Cache.java:97)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture.run(Cache.java:154)
at org.glassfish.hk2.utilities.cache.Cache.compute(Cache.java:199)
at org.jvnet.hk2.internal.SingletonContext.findOrCreate(SingletonContext.java:153)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2258)
at org.jvnet.hk2.internal.ServiceLocatorImpl.internalGetService(ServiceLocatorImpl.java:661)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:626)
at com.sun.jts.jta.TransactionServiceProperties$RecoveryHelperThread.run(TransactionServiceProperties.java:361)
Caused by: java.lang.NullPointerException
at com.sun.enterprise.connectors.jms.system.ActiveJmsResourceAdapter.isDBEnabled(ActiveJmsResourceAdapter.java:1355)
at com.sun.enterprise.connectors.jms.system.ActiveJmsResourceAdapter.setClusterRABeanProperties(ActiveJmsResourceAdapter.java:1325)
... 29 more
]]

Before that there is one more message, I don't know what does it mean:
[2014-07-18T20:23:31.624+0200] [glassfish 4.0] [SEVERE] [] [] [tid: _ThreadID=112 _ThreadName=Thread-9] [timeMillis: 1405707811624] [levelValue: 1000] [[
java.io.FileNotFoundException: /home/dmatej/work/app/appservers/glassfish4.0.1-b09-140716/glassfish/nodes/localhost-domain-mvn/cis-web1/config/noop=true (Adresář nebo soubor neexistuje)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:131)
at java.io.FileInputStream.(FileInputStream.java:87)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
at org.apache.felix.gogo.shell.Shell.readScript(Shell.java:218)
at org.apache.felix.gogo.shell.Shell.gosh(Shell.java:161)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.felix.gogo.runtime.Reflective.method(Reflective.java:136)
at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:469)
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:395)
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
at org.apache.felix.gogo.shell.Activator.run(Activator.java:75)
at java.lang.Thread.run(Thread.java:744)]]

If anyone can give me hint how to configure the domain/instance/... without editing /etc/hosts or other system files, ideally only with the asadmin command, I would be very happy ;)

Latest 4.0.1-SNAPSHOT build from source fails to start

$
0
0

Is anybody working on or know of the problem.

I have the latest code checked out from trunk. Everything builds with mvn install, but when I try to start it I get:

Exception in thread "main" java.lang.ExceptionInInitializerError
at com.sun.enterprise.glassfish.bootstrap.MainHelper.(MainHelper.java:65)
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:64)
at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:54)
Caused by: java.util.MissingResourceException: Can't find com.sun.enterprise.glassfish.bootstrap.LogMessages bundle
at java.util.logging.Logger.setupResourceInfo(Logger.java:1942)
at java.util.logging.Logger.(Logger.java:380)
at java.util.logging.LogManager.demandLogger(LogManager.java:554)
at java.util.logging.Logger.demandLogger(Logger.java:455)
at java.util.logging.Logger.getLogger(Logger.java:553)
at com.sun.enterprise.glassfish.bootstrap.LogFacade.(LogFacade.java:60)
... 3 more

JDK examples throw exceptions when logging set to FINE

$
0
0

I am absolutely fresh to Java EE and GlassFish. Therefore I am testing many simple things, currently with JAX-RS Jersey. I have already formulated the question on StackOverflow, but as there was no answer yet, I try it here:
http://stackoverflow.com/questions/24775815/jax-rs-resource-error-couldn...

The problem is, as most components from the enterprise edition are new to me, I have no idea where to start looking for the problem... if there is a problem at all.

Thank you

Edit:
Ok, I am one step further. The exceptions are created by a OPTIONS call (I thought it was the GET call) from the java-script created by Netbeans 'test-resbeans.js'. So the question is now, why does the OPTIONS call raise these exceptions.


GF4, 502 Bad Gateway, OutOfMemoryError: Direct buffer memory

$
0
0

We recently upgraded from Glassfish 3.1 to Glassfish 4.0 (89) running on Java build 1.7.0_55-b13 on our live 64 bit centos 6.2 servers. We run around 30 small web applications ranging in age from 0-10 yrs old.

We are now experiencing an issue (on both of our servers upgraded) that repeats on a roughly once a fortnight basis.
Without any warning in the telemetry, the server will start responding to all requests with a 502 Bad Gateway, and start spewing exceptions into the server.log. This problems persists for 20-30 minutes and then resolves itself without any explanation.

Only other clues are a small bump in memory usage during the period of unavailability.

We tried adding the JVM config -XX:MaxDirectMemorySize=1024m but this didn't appear to alter the frequency of the error

If anyone has any idea of what might be causing this or how we might resolve it, let me know.
The exception and the JVM config are below

[2014-07-20T15:58:50.495+0100] [glassfish 4.0] [WARNING] [] [org.glassfish.grizzly.filterchain.DefaultFilterChain] [tid: _ThreadID=621 _ThreadName=jk-connector(190)] [timeMillis: 1405868330495] [levelValue: 900] [[
Exception during FilterChain execution
java.lang.OutOfMemoryError: Direct buffer memory
at java.nio.Bits.reserveMemory(Bits.java:658)
at java.nio.DirectByteBuffer.(DirectByteBuffer.java:123)
at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:306)
at org.glassfish.grizzly.memory.ByteBufferManager.allocateByteBuffer0(ByteBufferManager.java:356)
at org.glassfish.grizzly.memory.ByteBufferManager.allocateByteBufferAtLeast(ByteBufferManager.java:282)
at org.glassfish.grizzly.memory.ByteBufferManager.allocateAtLeast(ByteBufferManager.java:126)
at org.glassfish.grizzly.memory.ByteBufferManager.allocateAtLeast(ByteBufferManager.java:63)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.read(TCPNIOTransport.java:909)
at org.glassfish.grizzly.nio.transport.TCPNIOTransportFilter.handleRead(TCPNIOTransportFilter.java:75)
at org.glassfish.grizzly.filterchain.TransportFilter.handleRead(TransportFilter.java:173)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
at java.lang.Thread.run(Thread.java:745)
]]


-Djava.awt.headless=true
-Djava.security.policy=${com.sun.aas.instanceRoot}/config/server.policy
-Dfelix.fileinstall.disableConfigSave=false
-Dosgi.shell.telnet.maxconn=1
-Dfelix.fileinstall.poll=5000
-Djava.endorsed.dirs=${com.sun.aas.installRoot}/modules/endorsed${path.separator}${com.sun.aas.installRoot}/lib/endorsed
-XX:+UseCompressedOops
-Dosgi.shell.telnet.port=6666
-XX:+UnlockDiagnosticVMOptions
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Djava.ext.dirs=${com.sun.aas.javaRoot}/lib/ext${path.separator}${com.sun.aas.javaRoot}/jre/lib/ext${path.separator}${com.sun.aas.instanceRoot}/lib/ext
-XX:ParallelGCThreads=2
-Dgosh.args=--nointeractive
-XX:MaxPermSize=1g
-Djavax.management.builder.initial=com.sun.enterprise.v3.admin.AppServerMBeanServerBuilder
-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
-XX:+DisableExplicitGC
-Dfelix.fileinstall.bundles.startTransient=true
-Xmx10g
-XX:+UseParallelOldGC
-Dfelix.fileinstall.dir=${com.sun.aas.installRoot}/modules/autostart/
-Dfelix.fileinstall.bundles.new.start=true
-Xms10g
-Djava.security.auth.login.config=${com.sun.aas.instanceRoot}/config/login.conf
-Dosgi.shell.telnet.ip=127.0.0.1
-Dfelix.fileinstall.log.level=2
-XX:NewRatio=2
-Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.shell.remote,org.apache.felix.fileinstall
-XX:+AggressiveHeap
-Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/config/keystore.jks
-server
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Xss1m
-Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/config/cacerts.jks
-DANTLR_USE_DIRECT_CLASS_LOADING=true
-XX:MaxDirectMemorySize=1024m

GlassFish Web Profile - What's in it?

Transaction commited when shutting down

$
0
0

When shutting down with "asadmin stop-domain" currently all transactions in progress are commited. While this as a default behaviour is more than strange I am also not able to configure it in a different way.

I already tried this one
asadmin> create-jvm-options -Dcom.sun.enterprise.in-progress-local-transaction.completion-mode=rollback

Also I tried to use an XA connection pool instead of the oracle.jdbc.pool.OracleConnectionPoolDataSource I normally use.

I am using GlassFish Server Open Source Edition 3.1.2.2 (build 5)

Any ideas welcome...

jBatch [cvc-elt.1: Cannot find the declaration of element 'job'.]

$
0
0

Hi all, I'm Ayumu.

I have a problem.

I'm using jBatch on Glassfish.

This error appears when I operate the batch.
[cvc-elt.1: Cannot find the declaration of element 'job'.]

Do you know the cause?

<<Below is friendsAutoAdd.xml.>>
*jobname is "friendsAutoAdd"
-------------------------------------------------------------------------
<job id="friendsAutoAdd"
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
version="1.0">

<step id="friendsAutoAdd-chunk">
<chunk item-count="5">
<reader ref="friendsAutoAddItemReader" />
<processor ref="friendsAutoAddItemProcessor" />
<writer ref="friendsAutoAddItemWriter" />
</chunk>
</step>
</job>
-------------------------------------------------------------------------

<<Below is stacktrace.>>
-------------------------------------------------------------------------
JSL invalid per XSD, details:
MESSAGE: cvc-elt.1: Cannot find the declaration of element 'job'.
SEVERITY: 2
LINKED EXC: org.xml.sax.SAXParseException; lineNumber: 3; columnNumber: 20; cvc-elt.1: Cannot find the declaration of element 'job'.
LOCATOR INFO:
------------
COLUMN NUMBER: 20
LINE NUMBER: 3
OFFSET: -1
CLASS: class javax.xml.bind.helpers.ValidationEventLocatorImpl
NODE: null
OBJECT: null
URL: null]]

StandardWrapperValve[forty-batch]: Servlet.service() for servlet forty-batch threw exception
java.lang.IllegalArgumentException: xJCL invalid per schema
at com.ibm.jbatch.container.jsl.impl.JobModelResolverImpl.unmarshalJobXML(JobModelResolverImpl.java:73)
at com.ibm.jbatch.container.jsl.impl.JobModelResolverImpl.access$000(JobModelResolverImpl.java:45)
at com.ibm.jbatch.container.jsl.impl.JobModelResolverImpl$1.run(JobModelResolverImpl.java:127)
at com.ibm.jbatch.container.jsl.impl.JobModelResolverImpl$1.run(JobModelResolverImpl.java:125)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.jbatch.container.jsl.impl.JobModelResolverImpl.resolveModel(JobModelResolverImpl.java:123)
at com.ibm.jbatch.container.jsl.impl.JobModelResolverImpl.resolveModel(JobModelResolverImpl.java:45)
at com.ibm.jbatch.container.jobinstance.JobExecutionHelper.startJob(JobExecutionHelper.java:114)
at com.ibm.jbatch.container.impl.BatchKernelImpl.startJob(BatchKernelImpl.java:123)
at com.ibm.jbatch.container.api.impl.JobOperatorImpl.startInternal(JobOperatorImpl.java:121)
at com.ibm.jbatch.container.api.impl.JobOperatorImpl.start(JobOperatorImpl.java:86)
at com.cotegg.forty.batch.service.BatchService.start(BatchService.java:46)
at com.cotegg.forty.batch.service.BatchService$Proxy$_$$_WeldSubclass.start(Unknown Source)
at sun.reflect.GeneratedMethodAccessor450.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.weld.interceptor.proxy.SimpleInterceptionChain.interceptorChainCompleted(SimpleInterceptionChain.java:47)
at org.jboss.weld.interceptor.chain.AbstractInterceptionChain.invokeNextInterceptor(AbstractInterceptionChain.java:80)
at org.jboss.weld.interceptor.proxy.InterceptorInvocationContext.proceed(InterceptorInvocationContext.java:146)
at org.mybatis.cdi.LocalTransactionInterceptor.invoke(LocalTransactionInterceptor.java:58)
at sun.reflect.GeneratedMethodAccessor446.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.weld.interceptor.proxy.SimpleMethodInvocation.invoke(SimpleMethodInvocation.java:30)
at org.jboss.weld.interceptor.chain.AbstractInterceptionChain.invokeNext(AbstractInterceptionChain.java:93)
at org.jboss.weld.interceptor.chain.AbstractInterceptionChain.invokeNextInterceptor(AbstractInterceptionChain.java:78)
at org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.executeInterception(InterceptorMethodHandler.java:48)
at org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.invoke(InterceptorMethodHandler.java:41)
at org.jboss.weld.bean.proxy.CombinedInterceptorAndDecoratorStackMethodHandler.invoke(CombinedInterceptorAndDecoratorStackMethodHandler.java:53)
at com.cotegg.forty.batch.service.BatchService$Proxy$_$$_WeldSubclass.start(Unknown Source)
at com.cotegg.forty.batch.service.BatchService$Proxy$_$$_WeldClientProxy.start(Unknown Source)
at sun.reflect.GeneratedMethodAccessor445.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:151)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:171)
at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:195)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:104)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:402)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:349)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:106)
at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:259)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:318)
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:236)
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1010)
at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:373)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:382)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:345)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:220)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:415)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:282)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:215)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:291)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:209)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:137)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:115)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:550)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
at java.lang.Thread.run(Thread.java:744)
]]
-------------------------------------------------------------------------

Thanks.

jBatch [DTDDVFactoryImpl does not extend from DTDDVFactory]

$
0
0

Hi all, I'm Ayumu.
I have a problem.

I'm using jBatch on Glassfish.
There are two maven projects "batch" and "common".

What's wrong..

version:
Glassfish.4.0.1

<<Below is a stack trace.>>
-------------------------------------------------------------------------
org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.
at org.apache.xerces.impl.dv.DTDDVFactory.getInstance(Unknown Source)
at org.apache.xerces.impl.dv.DTDDVFactory.getInstance(Unknown Source)
at org.apache.xerces.impl.xs.opti.SchemaParsingConfig.<init>(Unknown Source)
at org.apache.xerces.impl.xs.opti.SchemaParsingConfig.<init>(Unknown Source)
at org.apache.xerces.impl.xs.traversers.XSDHandler.<init>(Unknown Source)
at org.apache.xerces.impl.xs.traversers.XSDHandler.<init>(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.<init>(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.<init>(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.<init>(Unknown Source)
at org.apache.xerces.jaxp.validation.XMLSchemaValidatorComponentManager.<init>(Unknown Source)
at org.apache.xerces.jaxp.validation.ValidatorHandlerImpl.<init>(Unknown Source)
at org.apache.xerces.jaxp.validation.AbstractXMLSchema.newValidatorHandler(Unknown Source)
at com.sun.xml.bind.v2.runtime.unmarshaller.ValidatingUnmarshaller.<init>(ValidatingUnmarshaller.java:73)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshallerHandler(UnmarshallerImpl.java:197)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.getUnmarshallerHandler(UnmarshallerImpl.java:170)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:241)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:229)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:172)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:140)
at com.ibm.jbatch.container.jsl.impl.JobModelResolverImpl.unmarshalJobXML(JobModelResolverImpl.java:66)
at com.ibm.jbatch.container.jsl.impl.JobModelResolverImpl.access$000(JobModelResolverImpl.java:45)
at com.ibm.jbatch.container.jsl.impl.JobModelResolverImpl$1.run(JobModelResolverImpl.java:127)
at com.ibm.jbatch.container.jsl.impl.JobModelResolverImpl$1.run(JobModelResolverImpl.java:125)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.jbatch.container.jsl.impl.JobModelResolverImpl.resolveModel(JobModelResolverImpl.java:123)
at com.ibm.jbatch.container.jsl.impl.JobModelResolverImpl.resolveModel(JobModelResolverImpl.java:45)
at com.ibm.jbatch.container.jobinstance.JobExecutionHelper.startJob(JobExecutionHelper.java:114)
at com.ibm.jbatch.container.impl.BatchKernelImpl.startJob(BatchKernelImpl.java:123)
at com.ibm.jbatch.container.api.impl.JobOperatorImpl.startInternal(JobOperatorImpl.java:121)
at com.ibm.jbatch.container.api.impl.JobOperatorImpl.start(JobOperatorImpl.java:86)
at com.cotegg.forty.batch.service.BatchService.start(BatchService.java:46)
at com.cotegg.forty.batch.service.BatchService$Proxy$_$$_WeldSubclass.start(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.weld.interceptor.proxy.SimpleInterceptionChain.interceptorChainCompleted(SimpleInterceptionChain.java:47)
at org.jboss.weld.interceptor.chain.AbstractInterceptionChain.invokeNextInterceptor(AbstractInterceptionChain.java:80)
at org.jboss.weld.interceptor.proxy.InterceptorInvocationContext.proceed(InterceptorInvocationContext.java:146)
at org.mybatis.cdi.LocalTransactionInterceptor.invoke(LocalTransactionInterceptor.java:58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.weld.interceptor.proxy.SimpleMethodInvocation.invoke(SimpleMethodInvocation.java:30)
at org.jboss.weld.interceptor.chain.AbstractInterceptionChain.invokeNext(AbstractInterceptionChain.java:93)
at org.jboss.weld.interceptor.chain.AbstractInterceptionChain.invokeNextInterceptor(AbstractInterceptionChain.java:78)
at org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.executeInterception(InterceptorMethodHandler.java:48)
at org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.invoke(InterceptorMethodHandler.java:41)
at org.jboss.weld.bean.proxy.CombinedInterceptorAndDecoratorStackMethodHandler.invoke(CombinedInterceptorAndDecoratorStackMethodHandler.java:53)
at com.cotegg.forty.batch.service.BatchService$Proxy$_$$_WeldSubclass.start(Unknown Source)
at com.cotegg.forty.batch.service.BatchService$Proxy$_$$_WeldClientProxy.start(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:151)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:171)
at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:195)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:104)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:402)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:349)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:106)
at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:259)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:318)
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:236)
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1010)
at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:373)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:382)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:345)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:220)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:415)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:282)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:215)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:291)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:209)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:137)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:115)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:550)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
at java.lang.Thread.run(Thread.java:745)
-------------------------------------------------------------------------

<<Below is a pom.xml.[batch project]>>
*only dependencies
-------------------------------------------------------------------------
<dependencies>
<!-- **common** -->
<dependency>
<groupId>com.test</groupId>
<artifactId>common</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>

<!-- **jee7** -->
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>1</version>
</dependency>
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>javax.batch</groupId>
<artifactId>javax.batch-api</artifactId>
<version>1.0</version>
</dependency>
<!-- **mybatis** -->
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.2.4</version>
</dependency>
<!-- **mybatis-cdi** -->
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-cdi</artifactId>
<version>1.0.0-beta1</version>
</dependency>
<!-- **GSON** -->
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.2.4</version>
</dependency>
<!-- **log4j** -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1.3</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.5.6</version>
</dependency>
</dependencies>
-------------------------------------------------------------------------

<<Below is a pom.xml.[common project]>>
*only dependencies
-------------------------------------------------------------------------
<dependencies>
<!-- **commons-lang -->
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>20030203.000129</version>
</dependency>
<!-- **jax-rs** -->
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<version>2.0</version>
</dependency>
<!-- **java-mail** -->
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.5.0-b01</version>
</dependency>
<!-- **jersey** -->
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-client</artifactId>
<version>1.18</version>
</dependency>
<!-- **GSON** -->
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.2.4</version>
</dependency>
<!-- **thumbnailator** -->
<dependency>
<groupId>net.coobird</groupId>
<artifactId>thumbnailator</artifactId>
<version>0.4.7</version>
</dependency>
<!-- **APNS** -->
<dependency>
<groupId>com.notnoop.apns</groupId>
<artifactId>apns</artifactId>
<version>0.2.3</version>
</dependency>
<!-- **Google GCM** -->
<dependency>
<groupId>com.ganyo</groupId>
<artifactId>gcm-server</artifactId>
<version>1.0.2</version>
</dependency>
<!-- **metadata** -->
<dependency>
<groupId>com.drewnoakes</groupId>
<artifactId>metadata-extractor</artifactId>
<version>2.6.2</version>
</dependency>
<!-- **scalr** -->
<dependency>
<groupId>org.imgscalr</groupId>
<artifactId>imgscalr-lib</artifactId>
<version>4.2</version>
</dependency>
</dependencies>
-------------------------------------------------------------------------

Thanks.

Viewing all 1091 articles
Browse latest View live