Am struggling with moving from v3-prelude embedded to the v3 embedded. My application currently uses the domain.xml listed below just fine in v3-prelude by generates a plethora of errors (listed below the domain.xml) depending on however I try to tweak it to get it to work.
What is the minimum I can get away with?
I cannot use the built-in domain.xml file since it is way overkill with too many ports involved (that we are not using)
<?xml version="1.0" encoding="UTF-8" standalone="no"?><domain application-root="${com.sun.aas.instanceRoot}" log-root="${com.sun.aas.instanceRoot}/../logs" version="10.0">
<system-applications/>
<applications/>
<resources/>
<servers>
<server config-ref="server-config" name="server"/>
</servers>
<configs>
<config name="server-config">
<http-service>
<http-listener address="0.0.0.0" default-virtual-server="vserver-secure" id="http-listener-1" port="${com.cadence.ccps.http_listener_port}" server-name=""/>
<http-listener address="0.0.0.0" default-virtual-server="vserver-secure" id="http-listener-2" port="${com.cadence.ccps.http_ssl_listener_port}" security-enabled="true" server-name="">
<ssl cert-nickname="cadence" ssl3-enabled="true"/>
</http-listener>
<virtual-server http-listeners="http-listener-1,http-listener-2" id="vserver-secure">
<property name="docroot" value="${com.sun.aas.instanceRoot}/docroot"/>
<property name="accesslog" value="${com.sun.aas.instanceRoot}/../logs/access"/>
<property name="sso-enabled" value="false"/>
</virtual-server>
<request-processing initial-thread-count="5" thread-count="40" thread-increment="5"/>
<keep-alive max-connections="0"/>
<connection-pool/>
<http-protocol default-response-type="text/plain; charset=iso-8859-1" forced-response-type="text/plain; charset=iso-8859-1"/>
<http-file-cache file-caching-enabled="true" globally-enabled="true"/>
<property name="use-nio-direct-buffer" value="false"/>
<property name="accessLoggingEnabled" value="true"/>
<access-log rotation-interval-in-minutes="1440" rotation-suffix="yyyy-MM-dd"/>
</http-service>
<!--
The transaction-service element exists simply to avoid an exception in a piece of
functionality that we do not use. See issue #106 in the Embedded project for more details.
-->
<transaction-service tx-log-dir="${com.sun.aas.instanceRoot}/../logs"/>
<java-config>
<jvm-options>-Djava.security.policy=${com.sun.aas.instanceRoot}/../etc/server.policy</jvm-options>
<jvm-options>-Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/../etc/keystore.jks</jvm-options>
<jvm-options>-Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/../etc/cacerts.jks</jvm-options>
<jvm-options>-Djava.ext.dirs=${com.sun.aas.javaRoot}/lib/ext${path.separator}${com.sun.aas.javaRoot}/jre/lib/ext${path.separator}</jvm-options>
</java-config>
</config>
</configs>
</domain>
debug:
Jan 7, 2010 3:51:24 PM org.jvnet.hk2.component.InjectionManager inject
INFO: Cannot inject com.sun.enterprise.config.serverbeans.MonitoringService org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory.monitoringServiceConfig in componentClass Modifiers Field Value
FlashlightProbeProviderFactory (package) monitoringServiceConfig <null>
FlashlightProbeProviderFactory (package) ppem <null>
FlashlightProbeProviderFactory (package) habitat <null>
FlashlightProbeProviderFactory private listeners []
FlashlightProbeProviderFactory private static final allProbeProviders []
FlashlightProbeProviderFactory private static final logger com.sun.logging.LogDomains$1_at_adae91
FlashlightProbeProviderFactory private static final rb java.util.PropertyResourceBundle_at_9fe84e
FlashlightProbeProviderFactory private final primTypes {short=short, char=char, byte=byte, int=int, void=void, boolean=boolean, double=double, long=long, float=float}
org.jvnet.hk2.component.UnsatisfiedDepedencyException: Unsatisfied dependency exception : protected org.glassfish.flashlight.provider.ProbeProviderFactory org.glassfish.admin.monitor.MonitoringBootstrap.probeProviderFactory
at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:102)
at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:170)
at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:87)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:84)
at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:212)
at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:128)
at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:457)
at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:401)
at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:310)
at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:303)
at com.sun.enterprise.glassfish.bootstrap.ASEmbedded.run(ASEmbedded.java:101)
at com.sun.enterprise.glassfish.bootstrap.AbstractMain.start(AbstractMain.java:78)
at org.glassfish.api.embedded.Server.<init>(Server.java:288)
at org.glassfish.api.embedded.Server.<init>(Server.java:61)
at org.glassfish.api.embedded.Server$Builder.build(Server.java:158)
at org.glassfish.api.embedded.Server$Builder.build(Server.java:140)
at GFTest.run(GFTest.java:51)
at GFTest.main(GFTest.java:90)
Caused by: org.jvnet.hk2.component.UnsatisfiedDepedencyException: Unsatisfied dependency exception : com.sun.enterprise.config.serverbeans.MonitoringService org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory.monitoringServiceConfig
at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:102)
at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:170)
at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:87)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:84)
at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
at org.jvnet.hk2.component.Habitat.getComponent(Habitat.java:359)
at com.sun.hk2.component.AbstractWombImpl$1.getValue(AbstractWombImpl.java:144)
at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:81)
... 22 more
Caused by: org.jvnet.hk2.component.UnsatisfiedDepedencyException: Unsatisfied dependency exception : com.sun.enterprise.config.serverbeans.MonitoringService org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory.monitoringServiceConfig
at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:97)
... 33 more
Jan 7, 2010 3:51:24 PM org.jvnet.hk2.component.InjectionManager inject
INFO: Cannot inject com.sun.enterprise.config.serverbeans.DasConfig org.glassfish.kernel.embedded.EmbeddedDeployerImpl.config in componentorg.glassfish.kernel.embedded.EmbeddedDeployerImpl_at_1c794cc
Unsatisfied dependency exception : com.sun.enterprise.config.serverbeans.DasConfig org.glassfish.kernel.embedded.EmbeddedDeployerImpl.config
org.jvnet.hk2.component.UnsatisfiedDepedencyException: Unsatisfied dependency exception : com.sun.enterprise.config.serverbeans.DasConfig org.glassfish.kernel.embedded.EmbeddedDeployerImpl.config
at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:102)
at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:170)
at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:87)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:84)
at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
Press Enter to stop server
at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
at org.jvnet.hk2.component.Habitat.getByContract(Habitat.java:594)
at org.glassfish.api.embedded.Server.getDeployer(Server.java:631)
at GFTest.run(GFTest.java:66)
at GFTest.main(GFTest.java:90)
Caused by: org.jvnet.hk2.component.UnsatisfiedDepedencyException: Unsatisfied dependency exception : com.sun.enterprise.config.serverbeans.DasConfig org.glassfish.kernel.embedded.EmbeddedDeployerImpl.config
at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:97)
... 12 more
--------------------------------------------
Joey Jarosz
Senior Architect
Chip Planning Solutions
Cadence Design Systems, Inc.
(408) 914-6269
Need some IP? Check out www.chipestimate.com<
http://www.chipestimate.com>