Skip to main content

[webtier] Re: Glassfish International characters

9 replies [Last post]
Anonymous

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Jan Luehe

On 01/27/09 12:51, glassfish@javadesktop.org wrote:
> I have a PHP client applications that talks to the java web layer code(servlet) deployed on Glassfish. Whenever a user enters some data in say chinese and submits the form, the data shows up as garbled characters in the servlet. The PHP layer is encoding the data in UTF-8, so I'm suspecting that some setting has to be changed on Glassfish for it to understand UTF-8 characters. I'm not sure what to do. I would be grateful to any suggestions.
>

Since you already know that the request is encoded in UTF-8, you need to
pass UTF-8
to ServletRequest#setCharacterEncoding before you start reading any
request data.
Otherwise, the default encoding ("ISO-8859-1") would be used.

GlassFish also allows you to configure the request encoding in your
sun-web.xml, and
to declare the name of a hidden FORM field whose value will specify the
request encoding.
Let me know if you need more info about these options.

Thanks,

Jan

> [Message sent by forum member 'srinisub' (srinisub)]
>
> http://forums.java.net/jive/thread.jspa?messageID=328476
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>
webtier@glassfish.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net

Lincoln Baxter, III

I'm getting this exception when attempting to deploy a JSF2.0 app onto
my GlassfishV3 server. Looks like it's trying to validate XML, but I
don't know where it's getting this from. My faces-config.xml has:

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
version="2.0">

Here's the stack trace: what am I doing wrong? Thanks!

com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! cvc-enumeration-valid: Value '2.0' is not facet-valid with respect to enumeration '[1.2]'. It must be a value from the enumeration.
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:213)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:196)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4623)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5323)
at com.sun.enterprise.web.WebModule.start(WebModule.java:456)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:922)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:906)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:696)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2205)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1890)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:85)
at com.sun.enterprise.v3.server.ApplicationLifecycle.start(ApplicationLifecycle.java:560)
at com.sun.enterprise.v3.server.ApplicationLifecycle.start(ApplicationLifecycle.java:547)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:189)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:329)
at com.sun.enterprise.v3.admin.CommandRunner$2.execute(CommandRunner.java:297)
at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:312)
at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:119)
at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:99)
at org.glassfish.admingui.common.util.LocalDeploymentFacility$LocalDFCommandRunner.run(LocalDeploymentFacility.java:140)
at org.glassfish.deployment.client.AbstractDeploymentFacility.deploy(AbstractDeploymentFacility.java:243)
at org.glassfish.admingui.common.util.DeployUtil.invokeDeploymentFacility(DeployUtil.java:93)
at org.glassfish.admingui.common.util.DeployUtil.deploy(DeployUtil.java:70)
at org.glassfish.admingui.handlers.DeploymentHandler.deploy(DeploymentHandler.java:152)
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:616)
at com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:422)
at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)
at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)
at com.sun.jsftemplating.layout.event.CommandActionListener.invokeCommandHandlers(CommandActionListener.java:132)
at com.sun.jsftemplating.layout.event.CommandActionListener.processAction(CommandActionListener.java:80)
at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:771)
at javax.faces.component.UICommand.broadcast(UICommand.java:372)
at com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:160)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:80)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:337)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:370)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:460)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
Caused by: org.xml.sax.SAXParseException: cvc-enumeration-valid: Value '2.0' is not facet-valid with respect to enumeration '[1.2]'. It must be a value from the enumeration.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:387)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:321)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:413)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3168)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processOneAttribute(XMLSchemaValidator.java:2751)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processAttributes(XMLSchemaValidator.java:2688)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2040)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:688)
at com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.beginNode(DOMValidatorHelper.java:276)
at com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.validate(DOMValidatorHelper.java:243)
at com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.validate(DOMValidatorHelper.java:189)
at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:103)
at javax.xml.validation.Validator.validate(Validator.java:124)
at com.sun.faces.config.ConfigManager$ParseTask.getDocument(ConfigManager.java:434)
at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:394)
at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:351)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)

[att1.html]

Ryan Lubke

Lincoln Baxter, III wrote:
> I'm getting this exception when attempting to deploy a JSF2.0 app onto
> my GlassfishV3 server. Looks like it's trying to validate XML, but I
> don't know where it's getting this from. My faces-config.xml has:
>
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
> version="2.0">
>
> Here's the stack trace: what am I doing wrong? Thanks!
>
>
Mojarra will display the version string of the implementation when it
starts up.
What's the version being displayed in the log for this application?
> com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! cvc-enumeration-valid: Value '2.0' is not facet-valid with respect to enumeration '[1.2]'. It must be a value from the enumeration.
> at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:213)
> at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:196)
> at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4623)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:5323)
> at com.sun.enterprise.web.WebModule.start(WebModule.java:456)
> at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:922)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:906)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:696)
> at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2205)
> at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1890)
> at com.sun.enterprise.web.WebApplication.start(WebApplication.java:85)
> at com.sun.enterprise.v3.server.ApplicationLifecycle.start(ApplicationLifecycle.java:560)
> at com.sun.enterprise.v3.server.ApplicationLifecycle.start(ApplicationLifecycle.java:547)
> at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:189)
> at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:329)
> at com.sun.enterprise.v3.admin.CommandRunner$2.execute(CommandRunner.java:297)
> at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:312)
> at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:119)
> at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:99)
> at org.glassfish.admingui.common.util.LocalDeploymentFacility$LocalDFCommandRunner.run(LocalDeploymentFacility.java:140)
> at org.glassfish.deployment.client.AbstractDeploymentFacility.deploy(AbstractDeploymentFacility.java:243)
> at org.glassfish.admingui.common.util.DeployUtil.invokeDeploymentFacility(DeployUtil.java:93)
> at org.glassfish.admingui.common.util.DeployUtil.deploy(DeployUtil.java:70)
> at org.glassfish.admingui.handlers.DeploymentHandler.deploy(DeploymentHandler.java:152)
> 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:616)
> at com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:422)
> at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)
> at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)
> at com.sun.jsftemplating.layout.event.CommandActionListener.invokeCommandHandlers(CommandActionListener.java:132)
> at com.sun.jsftemplating.layout.event.CommandActionListener.processAction(CommandActionListener.java:80)
> at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
> at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:771)
> at javax.faces.component.UICommand.broadcast(UICommand.java:372)
> at com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:160)
> at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
> at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
> at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
> at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
> at com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:80)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
> at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:337)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
> at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:370)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
> at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:460)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
> at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
> at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
> at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
> at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
> at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
> at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
> at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
> at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
> at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
> at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
> at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
> at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
> at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
> at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
> at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
> Caused by: org.xml.sax.SAXParseException: cvc-enumeration-valid: Value '2.0' is not facet-valid with respect to enumeration '[1.2]'. It must be a value from the enumeration.
> at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)
> at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)
> at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:387)
> at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:321)
> at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:413)
> at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3168)
> at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processOneAttribute(XMLSchemaValidator.java:2751)
> at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processAttributes(XMLSchemaValidator.java:2688)
> at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2040)
> at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:688)
> at com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.beginNode(DOMValidatorHelper.java:276)
> at com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.validate(DOMValidatorHelper.java:243)
> at com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.validate(DOMValidatorHelper.java:189)
> at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:103)
> at javax.xml.validation.Validator.validate(Validator.java:124)
> at com.sun.faces.config.ConfigManager$ParseTask.getDocument(ConfigManager.java:434)
> at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:394)
> at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:351)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> at java.lang.Thread.run(Thread.java:636)
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net

Lincoln Baxter, III

> Mojarra will display the version string of the implementation when it
> starts up.
> What's the version being displayed in the log for this application?

[#|2009-01-28T18:42:36.060-0500|INFO|sun-appserver9.1|
javax.enterprise.resource.webcontainer.jsf.config|
_ThreadID=20;_ThreadName=RMI TCP
Connection(9)-127.0.0.1;/ocpsoft-social-pm;|Initializing Sun's
JavaServer Faces implementation (1.2_04-b20-p03) for context
'/ocpsoft-social-pm'|#]

Looks like it's loading JSF1.2, even though JSF2.0 is included in the
WEB-INF/lib directory. How can I override this? (Both glassfishv2 and
glassfishv3)

Thanks,
[att1.html]

Ryan Lubke

Lincoln Baxter, III wrote:
>
>> Mojarra will display the version string of the implementation when it
>> starts up.
>> What's the version being displayed in the log for this application?
>>
> [#|2009-01-28T18:42:36.060-0500|INFO|sun-appserver9.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=20;_ThreadName=RMI
> TCP Connection(9)-127.0.0.1;/ocpsoft-social-pm;|Initializing Sun's
> JavaServer Faces implementation (1.2_04-b20-p03) for context
> '/ocpsoft-social-pm'|#]
>
> Looks like it's loading JSF1.2, even though JSF2.0 is included in the
> WEB-INF/lib directory. How can I override this? (Both glassfishv2 and
> glassfishv3)
>
> Thanks,
See:
https://javaserverfaces.dev.java.net/nonav/rlnotes/2.0.0/releasenotes.html

There are installation steps for both versions.

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net

Ryan Lubke

Ryan Lubke wrote:
> Lincoln Baxter, III wrote:
>>
>>> Mojarra will display the version string of the implementation when
>>> it starts up.
>>> What's the version being displayed in the log for this application?
>>>
>> [#|2009-01-28T18:42:36.060-0500|INFO|sun-appserver9.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=20;_ThreadName=RMI
>> TCP Connection(9)-127.0.0.1;/ocpsoft-social-pm;|Initializing Sun's
>> JavaServer Faces implementation (1.2_04-b20-p03) for context
>> '/ocpsoft-social-pm'|#]
>>
>> Looks like it's loading JSF1.2, even though JSF2.0 is included in the
>> WEB-INF/lib directory. How can I override this? (Both glassfishv2 and
>> glassfishv3)
>>
>> Thanks,
> See:
> https://javaserverfaces.dev.java.net/nonav/rlnotes/2.0.0/releasenotes.html
>
>
> There are installation steps for both versions.
One other point, if you're using 2.0 nightly builds on v3, then I'd
recommend
backing up modules/jsf-api.jar and modules/web/jsf-impl.jar and then copy
the JARs from the nightly bundle into the locations described above.

>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: webtier-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net

Lincoln Baxter, III

Thanks Ryan, I'll follow these steps.

Doesn't it seem weird, though, that my war file's own implementation is
being overridden by the servers, even though I have it first on the
classpath?

--Lincoln

On Thu, 2009-01-29 at 09:35 -0800, Ryan Lubke wrote:

> Ryan Lubke wrote:
> > Lincoln Baxter, III wrote:
> >>
> >>> Mojarra will display the version string of the implementation when
> >>> it starts up.
> >>> What's the version being displayed in the log for this application?
> >>>
> >> [#|2009-01-28T18:42:36.060-0500|INFO|sun-appserver9.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=20;_ThreadName=RMI
> >> TCP Connection(9)-127.0.0.1;/ocpsoft-social-pm;|Initializing Sun's
> >> JavaServer Faces implementation (1.2_04-b20-p03) for context
> >> '/ocpsoft-social-pm'|#]
> >>
> >> Looks like it's loading JSF1.2, even though JSF2.0 is included in the
> >> WEB-INF/lib directory. How can I override this? (Both glassfishv2 and
> >> glassfishv3)
> >>
> >> Thanks,
> > See:
> > https://javaserverfaces.dev.java.net/nonav/rlnotes/2.0.0/releasenotes.html
> >
> >
> > There are installation steps for both versions.
> One other point, if you're using 2.0 nightly builds on v3, then I'd
> recommend
> backing up modules/jsf-api.jar and modules/web/jsf-impl.jar and then copy
> the JARs from the nightly bundle into the locations described above.
>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
> > For additional commands, e-mail: webtier-help@glassfish.dev.java.net
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: webtier-help@glassfish.dev.java.net
>
[att1.html]

Ryan Lubke

Lincoln Baxter, III wrote:
> Thanks Ryan, I'll follow these steps.
>
> Doesn't it seem weird, though, that my war file's own implementation
> is being overridden by the servers, even though I have it first on the
> classpath?
Since you're deploying to an EE container, no. The EE spec doesn't
allow standard classes provided by the container to be overridden by
those included with the webapp.
>
> --Lincoln
>
> On Thu, 2009-01-29 at 09:35 -0800, Ryan Lubke wrote:
>> Ryan Lubke wrote:
>> > Lincoln Baxter, III wrote:
>> >>
>> >>> Mojarra will display the version string of the implementation when
>> >>> it starts up.
>> >>> What's the version being displayed in the log for this application?
>> >>>
>> >> [#|2009-01-28T18:42:36.060-0500|INFO|sun-appserver9.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=20;_ThreadName=RMI
>> >> TCP Connection(9)-127.0.0.1;/ocpsoft-social-pm;|Initializing Sun's
>> >> JavaServer Faces implementation (1.2_04-b20-p03) for context
>> >> '/ocpsoft-social-pm'|#]
>> >>
>> >> Looks like it's loading JSF1.2, even though JSF2.0 is included in the
>> >> WEB-INF/lib directory. How can I override this? (Both glassfishv2 and
>> >> glassfishv3)
>> >>
>> >> Thanks,
>> > See:
>> > https://javaserverfaces.dev.java.net/nonav/rlnotes/2.0.0/releasenotes.html
>> >
>> >
>> > There are installation steps for both versions.
>> One other point, if you're using 2.0 nightly builds on v3, then I'd
>> recommend
>> backing up modules/jsf-api.jar and modules/web/jsf-impl.jar and then copy
>> the JARs from the nightly bundle into the locations described above.
>>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
>> > For additional commands, e-mail: webtier-help@glassfish.dev.java.net
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
>> For additional commands, e-mail: webtier-help@glassfish.dev.java.net
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net

Lincoln Baxter, III

> Since you're deploying to an EE container, no. The EE spec doesn't
> allow standard classes provided by the container to be overridden by
> those included with the webapp.

Good to know. Got it working, thanks a bunch.
[att1.html]