Hello.
I have got a problem using Grizzly's Application Resources Allocation
framework
I have read the article
http://weblogs.java.net/blog/jfarcand/archive/2006/04/resource_consum.html
But when I try to apply policies to my Glassfish server (Sun GlassFish
Enterprise Server v2.1 (9.1.1) (build b60e-fcs)) it fails to start. You
could see exception below.
Could someone clarify if this feature is available in Glassfish 2.1? And if
so what did I do wrong?
I have set those JMS options in domain.xml
<jvm-options>-Dcom.sun.enterprise.web.connector.grizzly.pipelineClass=com.sun.enterprise.web.ara.IsolationPipeline</jvm-options>
<jvm-options>-Dcom.sun.enterprise.web.ara.rules=com.sun.enterprise.web.ara.rules.ThreadRatioRule</jvm-options>
<jvm-options>-Dcom.sun.enterprise.web.ara.policyMethod=ceiling</jvm-options>
<jvm-options>-Dcom.sun.enterprise.web.ara.policyMetric=account-management-service|0.5</jvm-options>
The exception raised on server startup is following:
[#|2009-07-08T15:12:21.952+0400|SEVERE|sun-appserver2.1|GRIZZLY|_ThreadID=1;_ThreadName=main;_RequestID=044932a7-d635-4a
6d-ae07-8395714a48ef;|grizzlyHttpProtocol.endpoint.initerror
java.lang.ClassCastException: com.sun.enterprise.web.ara.IsolationPipeline
cannot be cast to com.sun.enterprise.web.portunif.PortUnificationPipeline
at
com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol.configureProxiedProtocols(GrizzlyHttpProtocol.java:995)
at
com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol.init(GrizzlyHttpProtocol.java:227)
at
org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1627)
at
com.sun.enterprise.web.connector.coyote.PECoyoteConnector.initialize(PECoyoteConnector.java:791)
at org.apache.catalina.startup.Embedded.start(Embedded.java:944)
at com.sun.enterprise.web.WebContainer.start(WebContainer.java:872)
at
com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:791)
at
com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:89)
at
com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:446)
at
com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:134)
at com.sun.enterprise.server.PEMain.run(PEMain.java:409)
at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
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:623)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
|#]
Sincerely ,
Alexey Barsov
--
View this message in context: http://www.nabble.com/problem--using-Grizzly%27s-Application-Resources-Allocation-framework-on-Glassfish-2.1-tp24390351p24390351.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.