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

GlassFish4 will not start / Oracle Linux 6 / JDK 1.7_025

$
0
0

Hello there,

I'm getting the following Error message after having installed Glassfish4 on Oracle Linux 6, with JDK = 1.7_025.

I unzipped the installation ZIP-File under the $ORACLE_HOME

Then I executed glassfish4/bin/asadmin start-domain

here is the last portition of the Logfile ... any clues what might be happening here?

Thanks!

========================================================

Registered Module: [OSGiModuleImpl:: Bundle = [com.sun.xml.bind.extra [40]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.persistence.cmp.utility [171]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.admingui.connector.gf-admingui-connector [258]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.jersey.containers.jersey-container-grizzly2-http [151]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.connectors.gf-connectors-connector [263]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [javax.servlet.jsp-api [139]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.web.weld-integration [231]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.glassfish.main.deployment.admin [110]], State = [NEW]]
Registered Module: [OSGiModuleImpl:: Bundle = [org.eclipse.persistence.jpa.jpql [227]], State = [NEW]]

Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime@5e517550 in service registry.
Completed shutdown of GlassFish runtime
We are in non-embedded mode, so org.glassfish.main.core.glassfish [265] has nothing to do.
Jul 10, 2013 2:06:11 AM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner
INFO: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner.
Jul 10, 2013 2:06:11 AM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Jul 10, 2013 2:06:11 AM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry because it is not an absolute URI.
Exception in thread "main" java.lang.reflect.InvocationTargetException
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.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:54)
Caused by: A MultiException has 8 exceptions. They are:
1. java.lang.ExceptionInInitializerError
2. java.lang.IllegalStateException: Unable to perform operation: post construct on org.glassfish.server.ServerEnvironmentImpl
3. java.lang.IllegalArgumentException: While attempting to resolve the dependencies of com.sun.enterprise.v3.server.DomainXmlPersistence errors were found
4. java.lang.IllegalStateException: Unable to perform operation: resolve on com.sun.enterprise.v3.server.DomainXmlPersistence
5. java.lang.NoClassDefFoundError: Could not initialize class com.sun.enterprise.util.net.NetUtils
6. java.lang.IllegalStateException: Unable to perform operation: post construct on org.glassfish.server.ServerEnvironmentImpl
7. java.lang.IllegalArgumentException: While attempting to resolve the dependencies of com.sun.enterprise.v3.server.GFDomainXml errors were found
8. java.lang.IllegalStateException: Unable to perform operation: resolve on com.sun.enterprise.v3.server.GFDomainXml

at org.jvnet.hk2.internal.Collector.throwIfErrors(Collector.java:84)
at org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:229)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:311)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:448)
at org.jvnet.hk2.internal.SingletonContext.findOrCreate(SingletonContext.java:118)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2204)
at org.jvnet.hk2.internal.ServiceLocatorImpl.internalGetAllServiceHandles(ServiceLocatorImpl.java:1149)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getAllServices(ServiceLocatorImpl.java:651)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getAllServices(ServiceLocatorImpl.java:639)
at org.jvnet.hk2.config.ConfigurationPopulator.populateConfig(ConfigurationPopulator.java:56)
at org.glassfish.hk2.bootstrap.HK2Populator.populateConfig(HK2Populator.java:158)
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.populateConfig(AbstractModulesRegistryImpl.java:211)
at com.sun.enterprise.module.bootstrap.Main.createServiceLocator(Main.java:273)
at org.jvnet.hk2.osgiadapter.HK2Main.createServiceLocator(HK2Main.java:120)
at com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime.newGlassFish(EmbeddedOSGiGlassFishRuntime.java:95)
at com.sun.enterprise.glassfish.bootstrap.GlassFishRuntimeDecorator.newGlassFish(GlassFishRuntimeDecorator.java:68)
at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntime.newGlassFish(OSGiGlassFishRuntime.java:91)
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:113)
... 6 more
Caused by: java.lang.ExceptionInInitializerError
at com.sun.enterprise.util.net.NetUtils.(NetUtils.java:55)
at com.sun.enterprise.universal.glassfish.ASenvPropertyReader$ASenvMap.getHostname(ASenvPropertyReader.java:310)
at com.sun.enterprise.universal.glassfish.ASenvPropertyReader$ASenvMap.get(ASenvPropertyReader.java:153)
at com.sun.enterprise.universal.glassfish.ASenvPropertyReader$ASenvMap.completeMap(ASenvPropertyReader.java:191)
at com.sun.enterprise.universal.glassfish.ASenvPropertyReader$ASenvMap.entrySet(ASenvPropertyReader.java:171)
at org.glassfish.server.ServerEnvironmentImpl.postConstruct(ServerEnvironmentImpl.java:165)
at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:281)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:328)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:448)
at org.jvnet.hk2.internal.SingletonContext.findOrCreate(SingletonContext.java:118)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2204)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:549)
at org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:77)
at org.jvnet.hk2.internal.ClazzCreator.resolve(ClazzCreator.java:191)
at org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:214)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:311)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:448)
at org.jvnet.hk2.internal.SingletonContext.findOrCreate(SingletonContext.java:118)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2204)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:549)
at org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:77)
at org.jvnet.hk2.internal.ClazzCreator.resolve(ClazzCreator.java:191)
at org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:214)
... 22 more
Caused by: java.util.MissingResourceException: Can't find com.sun.enterprise.util.LogMessages bundle
at java.util.logging.Logger.setupResourceInfo(Logger.java:1400)
at java.util.logging.Logger.(Logger.java:256)
at java.util.logging.LogManager.demandLogger(LogManager.java:399)
at java.util.logging.Logger.demandLogger(Logger.java:315)
at java.util.logging.Logger.getLogger(Logger.java:408)
at com.sun.enterprise.util.CULoggerInfo.(CULoggerInfo.java:61)
... 45 more

Command start-domain failed.


JTS5022: Unexpected exception (com.sun.jts.CosTransactions.LogException: LOG007)

$
0
0

Hi there,
I'm writing here because we have in our production environment the issue highlighted in this post subject.
These are our system specifications:
- Server 1
- ActiveMQ 5.6.0
- Glassfish 3.1.2
- Windows 2008 R2

- Server 2
- Oracle 11gR2
- Windows 2008 R2

We have a stand-alone java application that receives a huge amount of messages by tcp/serial connections and puts them into a JMS queue hosted by ActiveMQ.
Then inside our Glassfish we have a "core" MDB that gets messages from the JMS queue, reads them, does some stuff with the DB, and starts an internal workflow that activates other MDBs hosted by the same Glassfish.

Yesterday and today morning we found the system freezed, meaning that the "core" MDB wasn't able to activate the internal workflow and inside the Glassfish server.log file we found the following message:

[#|2013-07-10T03:02:01.167 0000|SEVERE|oracle-glassfish3.1.2|javax.enterprise.system.core.transaction.com.sun.jts.CosTransactions|_ThreadID=444;_ThreadName=Thread-2;|JTS5022: Unexpected exception [com.sun.jts.CosTransactions.LogException: LOG007: Write failure. Log exception at point 9. ] from log. |#]

Two seconds later (2013-07-10T03:02:03), our applications hosted by Glassfish started to write the following logs:
Error in allocating a connection. Cause: In-use connections equal max-pool-size and expired max-wait-time. Cannot allocate more connections

To fix that situation we had to stop/start Glassfish.

I've searched over the internet for any solution/suggestion but didn't find anything.

May someone help me ?

Thanks in advanced and excuse me for my bad english.

Eclipselink CanonicalModelProcessor - generating meta model

$
0
0

Hello,
I am trying to generate the meta-model but have been stumped on the exception below. This is a Maven based project targeting Java EE 7/GlassFish 4. I am using the Eclipselink that ships with GlassFish 4. I was able to get this to work with one of the GlassFish 4.0 betas.
I am able to retrieve the persistence_2_1.xsd using curl no problem - also NetBeans 7.3.1 is able to validate (which I assume means it reached out and checked the schema) the file successfully.

Thanks,
-Ryan

Here's what I have for dependencies:
...

org.eclipse.persistence
eclipselink
2.5.0-M5

javax
javaee-api
7.0

...

Note: GlassFish appears to be using EclipseLink 2.5.0-M5 for the 4.0 release.

Here's what I have in the persistence.xml file:
<?xml version="1.0" encoding="UTF-8"?>

...

When I do a compile, it fails on the step to generate the meta-model:

[INFO] javac option: -proc:only
[INFO] javac option: -Aeclipselink.persistencexml=/Users/rcuprak/Projects/action-bazaar/chapter10b7/src/main/resources/META-INF/persistence.xml
[INFO] javac option: -processor
[INFO] javac option: org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor
[INFO] javac option: -d
[INFO] javac option: /Users/rcuprak/Projects/action-bazaar/chapter10b7/target/classes
[INFO] javac option: -s
[INFO] javac option: /Users/rcuprak/Projects/action-bazaar/chapter10b7/target/generated-sources/metamodel
[ERROR] execute error
java.lang.RuntimeException: java.lang.RuntimeException: Exception [EclipseLink-25008] (Eclipse Persistence Services - 2.5.0.v20121120-ec51fcc): org.eclipse.persistence.exceptions.XMLMarshalException
Exception Description: A descriptor with default root element {http://xmlns.jcp.org/xml/ns/persistence}persistence was not found in the project
at com.sun.tools.javac.main.Main.compile(Main.java:469)
at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:132)
at org.bsc.maven.plugin.processor.AbstractAnnotationProcessorMojo.executeWithExceptionsHandled(AbstractAnnotationProcessorMojo.java:231)
at org.bsc.maven.plugin.processor.AbstractAnnotationProcessorMojo.execute(AbstractAnnotationProcessorMojo.java:124)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

CDI only happening in struts actions

$
0
0

I have one Front-End project that uses Struts calling a Service layer which initially relied on hand made DAO's.
I swapped my DAO for Stateless EJB's
The "debug" pages where some struts actions were directly calling the EJB worked perfectly with @Inject tags.

public class ShowSPAction extends ActionSupport {

private static final long serialVersionUID = 3182718664721840375L;

private static final Logger LOG = Logger.getLogger(ShowSPAction.class);

private List<SP> sps;

@Inject
private ServiceProviderDao dao;

public ShowServiceProviderAction()
{
//dao = new ServiceProviderDaoBean();
}

public String execute() throws NamingException
{
sps = dao.getAll();
LOG.fatal("List contains : " + sps.size());

return ActionSupport.SUCCESS;
}
public List<SP> getSps() {
return sps;
}
public void setSps(List<SP> sps) {
this.sps = sps;
}
}

But similar code (@Inject) does NOT work in the Service Layer which is usually called by Struts.
I was wondering why ... ???
I tried @EJB annotation but NO CAN DO :(

Do I have to make a Separate project for my EJB's ... ?

Tx,

\T,

GlassFish 4: Features for High Availability

Glassfish 4 freezing.

$
0
0

Hello Guys,

I am starting a new project using the new Glassfish 4 and i am getting a problem.

Our software uses 2 EJB Project. to receive a XML file, store in the hard disk and send to Amazon S3 and process it to put into a Mysql database.

To test, i am starting 4 process to send XML files in my computer, each one sending 100000 xml files. after at least 3 process ended, the Glassfish freeze and i get a message (Java.net.socketException; Connection Refused).

I am using Glassfish in Amazon EC2 with a double core machine and 7.5GB of RAM. Glassfish is using 4GB of memory.

In the server.log, nothing is displayed.

To solve i have to make the asadmin stop-domain and asadmin start-domain.

Thanks a lot for any tip.

http://www.java.net/sites/default/files/GF.png

AttachmentSize
GF.png272.5 KB

Glassfish 4.0 only uses jdbc/__default

$
0
0

I have a JSF project on Win7 using NetBeans 7.3 and Glassfish 3.1.2.2 in which I use a PostgreSQL database through a JDBC resource. Works fine. When I created a dev environment for this project on another Win7 machine and a Mac (both using NetBeans 7.3 and Glassfish 4.0) the project ignores my datasource and uses jdbc/__default. The source code on all three machines is the same and I have set up Glassfish on the two "new" machines the same as the original as far as I can tell.

Apparently I am not the only one with this problem (see: https://www.java.net//forum/topic/glassfish/glassfish-webtier/glassfish-...) so I suspect either a bug or default configuration change in Glassfish 4.0. Anyone else encounter this and have a solution, or any ideas on what to try?

Thanks,
Doug

Install glassfish V4.0 or V 3.1 problem on windows8


Glassfish 4 - Performance Tuning, Monitoring and Troubleshooting

Glassfish on WINDOW SERVER 2012

$
0
0

Hello all of you,

Can anyone tell me if I can install the open source version of glassfish v3 on Window server 2012.

If yes, could you please give me some help for the server side installation.

Thanks

Starting the server with a jk-enabled listener logs SEVERE Error adding HttpProbes.

$
0
0

Running Glassfish 4.0 on JDK 1.7.0_13 on Windows 8

I added a jk listener through the admin console. Everything looks ok within the domain.xml, but whenever I start the server up I am getting this error

2013-07-17 11:58:13,384 SEVERE glassfish 4.0 javax.enterprise.web _ThreadID=13;_ThreadName=WrapperSimpleAppMain;_MessageID=AS-WEB-GLUE-00151; Error adding HttpProbes. NetworkListener http-listener-3s HttpCodecFilter is {1}

Is this a bug in Glassfish 4?

GlassFish 4 and JVM Agent Classloader Visibility

$
0
0

Hello,
I have a web-application (WAR) application that makes use of a JVM agent (my implementation). While porting the web-application to GlassFish 4 I bumped into a problem with the web-application not seeing the JVM agent classes on its classpath. When starting the web-application I keep getting a ClassNotFoundException for a class that is bundled in the JVM agent.

In the logs I can see the JVM agent being successfully initialized so no problem here.

This is the classloader hierarchy as logged by my JVM agent. You can see that the JVM agent is loaded by a classloader that also loads the glassfish.jar. I need this classloader to be available in the web-application classloader chain.

[2013-07-17 12:05:38,385] I [main] [MyAgent] - Agent class-loader info:
sun.misc.Launcher$AppClassLoader@3d637d45
file:/D:/Java/glassfish4/glassfish/modules/glassfish.jar
file:/D:/Java/glassfish4/glassfish/lib/monitor/flashlight-agent.jar
file:/D:/var/my-agent.jar !!! THIS IS MY AGENT JAR !!!
sun.misc.Launcher$ExtClassLoader@4eb55c7f (parent classloader of the above classloader)
file:/D:/Java/Jdk1.7/jre/lib/ext/access-bridge-64.jar
file:/D:/Java/Jdk1.7/jre/lib/ext/dnsns.jar
file:/D:/Java/Jdk1.7/jre/lib/ext/jaccess.jar
file:/D:/Java/Jdk1.7/jre/lib/ext/localedata.jar
file:/D:/Java/Jdk1.7/jre/lib/ext/sunec.jar
file:/D:/Java/Jdk1.7/jre/lib/ext/sunjce_provider.jar
file:/D:/Java/Jdk1.7/jre/lib/ext/sunmscapi.jar
file:/D:/Java/Jdk1.7/jre/lib/ext/zipfs.jar
file:/D:/Java/glassfish4/glassfish/domains/domain1/lib/ext/db2jcc4.jar
file:/D:/Java/glassfish4/glassfish/domains/domain1/lib/ext/db2jcc_license_cu.jar
file:/D:/Java/glassfish4/glassfish/domains/domain1/lib/ext/mysql-connector-java-5.1.23-bin.jar
file:/D:/Java/glassfish4/glassfish/domains/domain1/lib/ext/ojdbc6.jar
file:/D:/Java/glassfish4/glassfish/domains/domain1/lib/ext/postgresql-9.2-1002.jdbc4.jar
file:/D:/Java/glassfish4/glassfish/domains/domain1/lib/ext/sqljdbc4.jar

I searched in the GlassFish Admin Console for applicable classloading settings, but did not find anything.

BTW: This problem does not occur on Tomcat, nor on IBM WebSphere where web-applications can normally see classes in the entire classloader hierarchy up to the JVM bootstrap classloader.

Thanks for any hints,
Jan

Oracle GlassFish Server 3.1 Embedded throws many ClassCast Exceptions

$
0
0

Based on the page : http://docs.oracle.com/cd/E18930_01/html/821-2424/giijw.html#scrolltoc
I wrote this :

	public static void main(String[] args) throws Exception {

    System.out.println("Starting");
    File configFile = new File ("/Applications/servers/glassfish3.1/glassfishv3/glassfish/glassfishv3/glassfish/domains/mydomain/config/domain.xml");
        File war = new File("./target/MyApp.war");
        GlassFishRuntime glassfishRuntime = GlassFishRuntime.bootstrap();
       
        GlassFishProperties glassfishProperties = new GlassFishProperties();
        System.out.println("URI : '" + configFile.toURI().toString() + "'");
        glassfishProperties.setConfigFileURI(configFile.toURI().toString());    //setConfigFileURI(configFile.toURI());
       
        glassfishProperties.setConfigFileReadOnly(true);  // was false
       
        GlassFish gf = glassfishRuntime.newGlassFish(glassfishProperties);
        gf.start();
       
        Deployer deployer = gf.getDeployer();
        deployer.deploy(war, "--force=true");
       
        Thread.sleep(2000);
       
        System.out.println("Press Enter to stop server");
        // wait for Enter
        new BufferedReader(new java.io.InputStreamReader(System.in)).readLine();
       
        gf.dispose();
        glassfishRuntime.shutdown();
}

The application seems to start OK but generates many many ClassCastExceptions.

SEVERE: PWC3989: An exception or error occurred in the container during the request processing
java.lang.ClassCastException: org.glassfish.grizzly.config.ContextRootInfo cannot be cast to org.apache.catalina.Context
at org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:538)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:286)

This error occurs many many time ... hopefully with apparently the EJB / Datasources being deployed

Any idea what's the root cause of those ClassCastException ?

Also, there is this message that worries me a bit :

SEVERE: Exception while loading the app : org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;
Ljava/lang/Throwable;)VPlainTextActionReporterFAILUREDescription: deploy AdminCommandError occurred during deployment:
Exception while loading the app : org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V.
Please see server.log for more details.
    [name=MyApp
Jul 17, 2013 1:10:19 PM org.apache.catalina.connector.CoyoteAdapter service
SEVERE: PWC3989: An exception or error occurred in the container during the request processing
java.lang.ClassCastException: org.glassfish.grizzly.config.ContextRootInfo cannot be cast to org.apache.catalina.Context
at org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:538)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:286)

but the real annoying part is that when I do a call :
I get the following stacktrace :

javax.ejb.EJBException: Attempt to invoke when container is in Initializing
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1996)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1991)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:222)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
at sun.proxy.$Proxy156.getParameter(Unknown Source)
at myApp.services.__EJB31_Generated__ParametersService__Intf____Bean__.getParameter(Unknown Source)
at myApp.actions.InitAction.prepare(InitAction.java:118)
at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:167)
...

Any Idea ... ?

\T,

Can't install SSL certificate with Glassfish 4

$
0
0

Hi,
what I did:

1. import CA into {instance}/config/cacerts.jks
2. import certificate signed with previous CA into {instance}/config/keystore.jks
3. change cert alias in administration console for http-listener-2
4. restart server

It works in glassfish 3.2.1 and it doesn't work in glassfish 4

thanks

EJB call takes 5-10 seconds on GlassFish 3, ~1 sec on GlassFish 2

$
0
0

I am trying to understand why our standalone application making an EJB call takes about 5-10 seconds longer to start when running agains GlassFish 3.1 compared to GlassFish 2. See below.
Anyone having an idea about what the problem could be?
Could it be the error about the findDerbyClient or javadb client jar file that is the problem?

GlassFish 2:
$ time bin/signserver getstatus brief all
CP: /opt/glassfish3.1/glassfish/lib/gf-client.jar:./conf:./lib/SignServer-AdminCLI.jar:./res/cesecore::./conf/glassfish:/opt/glassfish3.1/glassfish/lib/appserv-rt.jar
Current version of server is : SignServer 3.5.0alpha0

real 0m1.743s
user 0m1.580s
sys 0m0.136s

GlassFish 3.1.2:
$ time bin/signserver getstatus brief all
CP: /opt/glassfish3.1/glassfish/lib/gf-client.jar:./conf:./lib/SignServer-AdminCLI.jar:./res/cesecore::./conf/glassfish:/opt/glassfish3.1/glassfish/lib/appserv-rt.jar
Jul 17, 2013 8:26:07 PM com.sun.enterprise.v3.server.CommonClassLoaderServiceImpl findDerbyClient
INFO: Cannot find javadb client jar file, derby jdbc driver will not be available by default.
Current version of server is : SignServer 3.5.0alpha0

real 0m12.764s
user 0m13.237s
sys 0m0.396s

Valid JSR-196 ServerAuthModule not called when activating alternative JACC Policy

$
0
0

Hello,

I want to use my own ServerAuthModule as well my own JACC Policy implementation in glassfish 3.1.2.2.

The ServerAuthModule is working perfectly when the JACC setting is default.

But when I activate my own JACC policy via server-config > Security > JACC Providers, the ServerAuthModule is not called any more.

Not even the constructor of the ServerAuthModule is called.

The implementations follow the Oracle tutorial for implementing a custom SAM, the JSR-196 spec and the JSR-115 spec.

The SAM is configured in glassfish via server-config > Security > Message Security > HttpServlet.
The provider id is then used in sun-web.xml and glassfish-web.xml to activate it for the war.

The deployment is an ear with many ejb-modules inside and a war containing rest-services.

What piece am I missing to get it working correctly?

Glassfish 3.1.2 - Application Secure Authentication

$
0
0

Hi,

I am using restful web services in my application and I want to authenticate user before web service call.

I want to generate some security token after user authentication and pass same token to my web service to validate user.

How can we achieve this in glassfish ?

Thanks in advance.

Fwd: Fwd: Session Replication (Possibly CNF error in web container?)

$
0
0

Reposting to users@glassfish.java.net. (e-mail to the issues list, might
be lost in the bug e-mail)

Anthony
If you have opened a JIRA on this (GlassFish, or Shoal), please let us
know the issue ID. If you haven't you might want to use that as a place
to coordinate all this information -- as well as the responses.
-- Ed Bratt

OSGi WAB and High Availability session replication

$
0
0

Hi,

I am currently trying to enable High Availability session replication for one of my OSGi Web Application Bundles. The Bundle is a copy of a WAR file which successfully uses session replication. However session replication does not work in my WAB.

The only difference between the two applications is the "availabilityenabled" property which I set when I deploy the WAR. The WAB is deployed using the Felix GoGo shell, where I have no chance to set the "availabilityenabled" property. I assume this to be the reason why session replication works perfectly in my WAR but not in my WAB.

Is there any chance to set the "availabilityenabled" property for WABs deployed with the Felix GoGo shell?

I am using GlassFish 3.1.2.2.

Thanks,
Jochen

Log file settings

$
0
0

I need to move my log files to a different drive in glassfish. Under server-config/logger settings/log file so far I have tried:

D:/glassfish_logs/${com.sun.aas.domain}/logs/server.log
D:/glassfish_logs/${com.sun.aas.domainName}/logs/server.log
D:/glassfish_logs/${domainName}/logs/server.log

The logs are relocated but the name of the domain is not substituted. What is the system property that grabs the name of domain and sticks it in there?

Also,

How do you tell glassfish to only keep the last x number of log files. I see no setting for this anywhere.

Thanks.

Viewing all 1091 articles
Browse latest View live