[
http://jira.jboss.com/jira/browse/JBAS-4130?page=comments#action_12383554 ]
Stan Silvert commented on JBAS-4130:
------------------------------------
I tried creating a simple JSF app with visual web pack and I got this error:
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Failed
to resolve schema
nsURI=http://java.sun.com/JSF/Configuration location=null
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBPars
er.java:203)
Is that the first one you saw? Exactly which file did you put in jboss.jar to get past
the problem?
It is strange that you would have a problem with that schema definition in your
managed-beans.xml. The faces-config.xml in the hellojsf-correted.war at the bottom of
this page uses the exact same definition and it deploys without errors:
http://wiki.jboss.org/wiki/Wiki.jsp?page=HelloJSF
Also, I noticed that visual web pack creates a J2EE 1.4 JSF application. It includes the
jsf-impl.jar, jsf-api.jar, and jstl.jar. You don't want to have these in your WAR on
JBoss 5 because they might interfere with the versions already present in the JBoss 5
distribution.
Stan
Simple HelloWorld JSF 1.2 application does not work
---------------------------------------------------
Key: JBAS-4130
URL:
http://jira.jboss.com/jira/browse/JBAS-4130
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: JSF
Affects Versions: JBossAS-5.0.0.Beta1
Environment: Windows XP, Suse 10.2
Reporter: sedat ciftci
Assigned To: Stan Silvert
I have faced with a problem while deploying my JSF 1.2 web application (sun impl) ( I
build with Netbeans 5.5 Visual Web pack) to JBoss5 Beta. It works with Glassfish. In order
to find the problem, I make a simple Hello world web application and try to deploy it to
JBoss5Beta. However, I get the same exception.
The first exception that I overcome is related with web-facesconfig_1_2.xsd. JBoss says
that it can not resolve this schema. I solve this problem by putting this file into the
jboss.jar/schema.
The second exception that I cannot solve is although my projects managed-beans.xml file
is well formed, JBoss throws such an exception:
org.jboss.deployers.spi.DeploymentException: The xml
JBoss5Ex.war/WEB-INF/managed-beans.xml is not well formed!
at
org.jboss.deployers.plugins.deployers.helpers.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:94)
at
org.jboss.deployers.plugins.deployers.helpers.AbstractParsingDeployer.parse(AbstractParsingDeployer.java:173)
at
org.jboss.deployers.plugins.deployers.helpers.AbstractParsingDeployer.createMetaData(AbstractParsingDeployer.java:114)
at
org.jboss.deployers.plugins.deployers.helpers.AbstractParsingDeployer.createMetaData(AbstractParsingDeployer.java:88)
at
org.jboss.deployers.plugins.deployers.kernel.BeanDeployer.deploy(BeanDeployer.java:59)
at
org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer.commitDeploy(AbstractSimpleDeployer.java:52)
at
org.jboss.deployers.plugins.deployer.DeployerWrapper.commitDeploy(DeployerWrapper.java:145)
at
org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:440)
at
org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:381)
at
org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:366)
at
org.jboss.system.server.profileservice.ProfileServiceBootstrap.bootstrap(ProfileServiceBootstrap.java:246)
at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:89)
at org.jboss.system.server.profileservice.ServerImpl.doStart(ServerImpl.java:401)
at org.jboss.system.server.profileservice.ServerImpl.start(ServerImpl.java:340)
at org.jboss.Main.boot(Main.java:210)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:595)
Note that JBoss5Ex.war is my web application.
Here is the content of my managed-beans.xml file (starting after the #'s line):
######################################
<?xml version="1.0" encoding="UTF-8"?>
<faces-config version="1.2"
xmlns="http://java.sun.com/xml/ns/javaee"
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_1_2.xsd">
<managed-bean>
<managed-bean-name>SessionBean1</managed-bean-name>
<managed-bean-class>jboss5ex.SessionBean1</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>Page1</managed-bean-name>
<managed-bean-class>jboss5ex.Page1</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>ApplicationBean1</managed-bean-name>
<managed-bean-class>jboss5ex.ApplicationBean1</managed-bean-class>
<managed-bean-scope>application</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>RequestBean1</managed-bean-name>
<managed-bean-class>jboss5ex.RequestBean1</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
</faces-config>
#################################################
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira