[
https://issues.jboss.org/browse/WFLY-2533?page=com.atlassian.jira.plugin....
]
Norbert Kozłowski commented on WFLY-2533:
-----------------------------------------
{code:title=jboss-web.xml}
<jboss-web version="8.0"
xmlns="http://www.jboss.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.org/j2ee/schema/jboss-web_8_0.x... >
<security-domain>java:jboss/jaas/business_alerts</security-domain>
<default-encoding>UTF-8</default-encoding>
</jboss-web>
{code}
Stack trace
{code}
15:54:38,366 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876:
Starting deployment of "business_alerts.war" (runtime-name:
"business_alerts.war")
15:54:38,865 INFO [org.jboss.as.jpa] (MSC service thread 1-3) JBAS011401: Read
persistence.xml for MySQL
15:54:38,955 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 90) JBAS011409:
Starting Persistence Unit (phase 1 of 2) Service 'business_alerts.war#MySQL'
15:54:38,955 INFO [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool
-- 90) HHH000204: Processing PersistenceUnitInfo [
name: MySQL
...]
15:54:38,997 INFO [org.jboss.weld.deployer] (MSC service thread 1-8) JBAS016002:
Processing weld deployment business_alerts.war
15:54:39,003 INFO
[org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC
service thread 1-8) JNDI bindings for session bean named AuthService in deployment unit
deployment "business_alerts.war" are as follows:
[...]
15:54:39,096 INFO [org.jboss.weld.deployer] (MSC service thread 1-7) JBAS016005: Starting
Services for CDI deployment: business_alerts.war
15:54:39,100 INFO [org.jboss.ws.cxf.metadata] (MSC service thread 1-7) JBWS024061: Adding
service endpoint metadata: id=com.intenso.carlos.crawler.web.wsserver.CarlaWSItfImpl
address=http://localhost:8080/business_alerts/CarlosWebService
implementor=com.intenso.carlos.crawler.web.wsserver.CarlaWSItfImpl
serviceName={http://carlos.intenso.com.pl}CarlosWebService
portName={http://carlos.intenso.com.pl}CarlosWebServicePort
annotationWsdlLocation=classpath:wsdl/CarlosCrawlerService.wsdl
wsdlLocationOverride=null
mtomEnabled=false
15:54:39,153 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC
service thread 1-7) Creating Service {http://carlos.intenso.com.pl}CarlosWebService from
WSDL: classpath:wsdl/CarlosCrawlerService.wsdl
15:54:39,219 INFO [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-7) Setting
the server's publish address to be
http://localhost:8080/business_alerts/CarlosWebService
15:54:39,227 INFO [org.jboss.ws.cxf.deployment] (MSC service thread 1-7) JBWS024074: WSDL
published to:
file:/home/nkozlowski/wildfly-8.0.0.Beta2-SNAPSHOT/standalone/data/wsdl/business_alerts.war/CarlosWebService.wsdl
15:54:39,231 INFO [org.jboss.as.webservices] (MSC service thread 1-6) JBAS015539:
Starting service
jboss.ws.endpoint."business_alerts.war"."com.intenso.carlos.crawler.web.wsserver.CarlaWSItfImpl"
15:54:39,234 INFO [org.jboss.weld.deployer] (MSC service thread 1-6) JBAS016008: Starting
weld service for deployment business_alerts.war
15:54:39,242 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 90) JBAS011409:
Starting Persistence Unit (phase 2 of 2) Service 'business_alerts.war#MySQL'
15:54:39,248 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 90)
HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
15:54:39,268 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory]
(ServerService Thread Pool -- 90) HHH000397: Using ASTQueryTranslatorFactory
15:54:39,346 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 90)
HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
15:54:43,473 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000001: Failed
to start service
jboss.undertow.deployment.default-server.default-host./business_alerts.UndertowDeploymentInfoService:
org.jboss.msc.service.StartException in service
jboss.undertow.deployment.default-server.default-host./business_alerts.UndertowDeploymentInfoService:
Failed to start service
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)
[jboss-msc-1.2.0.CR1.jar:1.2.0.CR1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[rt.jar:1.7.0_40]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_40]
at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]
Caused by: java.lang.NullPointerException
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.createServletConfig(UndertowDeploymentInfoService.java:765)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.start(UndertowDeploymentInfoService.java:217)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
[jboss-msc-1.2.0.CR1.jar:1.2.0.CR1]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
[jboss-msc-1.2.0.CR1.jar:1.2.0.CR1]
... 3 more
15:54:43,479 ERROR [org.jboss.as.controller.management-operation] (XNIO-1 task-11)
JBAS014613: Operation ("deploy") failed - address: ([("deployment"
=> "business_alerts.war")]) - failure description: {"JBAS014671: Failed
services" =>
{"jboss.undertow.deployment.default-server.default-host./business_alerts.UndertowDeploymentInfoService"
=> "org.jboss.msc.service.StartException in service
jboss.undertow.deployment.default-server.default-host./business_alerts.UndertowDeploymentInfoService:
Failed to start service
Caused by: java.lang.NullPointerException"}}
15:54:43,480 ERROR [org.jboss.as.server] (XNIO-1 task-11) JBAS015870: Deploy of deployment
"business_alerts.war" was rolled back with the following failure message:
{"JBAS014671: Failed services" =>
{"jboss.undertow.deployment.default-server.default-host./business_alerts.UndertowDeploymentInfoService"
=> "org.jboss.msc.service.StartException in service
jboss.undertow.deployment.default-server.default-host./business_alerts.UndertowDeploymentInfoService:
Failed to start service
Caused by: java.lang.NullPointerException"}}
15:54:43,483 INFO [org.jboss.as.webservices] (MSC service thread 1-5) JBAS015540:
Stopping service
jboss.ws.endpoint."business_alerts.war"."com.intenso.carlos.crawler.web.wsserver.CarlaWSItfImpl"
[...]
JBAS014777: Services which failed to start: service
jboss.undertow.deployment.default-server.default-host./business_alerts.UndertowDeploymentInfoService
{code}
Without encoding attribute it works fine.
Add ability to set default character encoding on a subsystem level
------------------------------------------------------------------
Key: WFLY-2533
URL:
https://issues.jboss.org/browse/WFLY-2533
Project: WildFly
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Web (Undertow)
Reporter: Stuart Douglas
Assignee: Tomaz Cerar
Fix For: 8.0.0.CR1
Stuart: the charset one should be pretty simple, just an attribute on
<servlet-container?
Stuart: ideally we would also have it in jboss-web.xml as well
Stuart: I should also add an option to use the connector encoding
Stuart: as connectors have their own encoding set
Stuart: that is used to decode the URL
Stuart: we should have an option to use the connector encoding as the default encoding
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira