ZK + JBOSS 6.0.0 Problem to deploy
I found the problem.
JBoss 6 make a check on tld file and if the schema location is not specified you have an exception ...
So since I have in my WEB-INF folder the tld->web and tld->zk whose contains 3 tld.file with no definition of schema location.
This file are generated when you create a project with zk studio.
Since I remove them I can launch my application under JBOSS 6.0.0 but I think an update of this file in ZKstudio should be done in order to avoid this kind of problem.
So if anybody can give me the file core.dsp.tld html.dsp.tld and core.dsp.tld with the schemalocation set up, I take :)
thread on tld jboss 6.0.0
Regards, V
Please post it to bug list.
PUSH!
I have the same problem with zk 5.0.7.1 Zksample2 demo app. with the following error on Jboss AS 6.0.0 final.
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: vfs://D:jboss/jboss....../zksample2.war/WEB-INF/tld/web/core.dsp.tld@14,9 ... Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to resolve schema binding for QName taglib with schemaLocation=taglib ...
First lines of the core.dsp.tld
<?xml version="1.0" encoding="UTF-8" ?> <!-- Purpose: Defines methods and actions for DSP Description: Histroy: Mon Jun 20 20:57:56 2005, Created by tomyeh Copyright (C) 2005 Potix Corporation. All Rights Reserved. --> <taglib> <uri>http://www.zkoss.org/dsp/web/core</uri> <description> Core methods and tags for zweb in DSP </description> . .
thanks
Stephan
Looks like JBoss enforces its validation. I encountered this kind of issues in my application when change jboss from 4 to 5 year ago.
from the message, I guess it is because the lost of definition of schemaLocation in tlds.
Hi Dennis,
is there a solution or workaround?
EDIT: I found this on the jboss forum.
EDIT II: No problem with latest Glassfish
thanks
Stephan
Hi Stephan,
By default ZK's taglib is put inside a jar file, which is not scanned by JBoss. But as long as you put under WEB-INF, it will be scanned.
So you may refer to this document to put the taglib in a classpath with config.xml, rather than WEB-INF.
Push!!
Exist any way to a default solution in zk lib? (zk for jboss for example??)
Hi,
i've got the same problem here... is there any other way to solve it?
Why isn't there a XSD-definition for the .tld-Files?
-> By default ZK's taglib is put inside a jar file, which is not scanned by JBoss
Did you encounter the same issue? ZK's taglib should work with JBoss.
Thanks for your answer.
I get the following exception:
11:37:45,170 ERROR Error installing to Parse: name=vfs:///C:/Apps/Server/jboss/server/default/deploy/foo.war state=PreParse mode=Manual requiredState=Parse: org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfs:///C:/Apps/Server/jboss/server/default/deploy/foo.war at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) [:2.2.2.GA] at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:383) [:2.2.2.GA] at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:343) [:2.2.2.GA] ... Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: vfs:///C:/Apps/Server/jboss/server/default/deploy/foo.war/WEB-INF/tld/web/core.dsp.tld@14,9 at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:224) [jbossxb.jar:2.0.3.GA] at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:178) [jbossxb.jar:2.0.3.GA] at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:257) [jbossxb.jar:2.0.3.GA] at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:231) [jbossxb.jar:2.0.3.GA] at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:137) [:2.2.2.GA] at org.jboss.deployment.TldParsingDeployer.parse(TldParsingDeployer.java:64) [:6.1.0.Final] at org.jboss.deployment.TldParsingDeployer.parse(TldParsingDeployer.java:38) [:6.1.0.Final] at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:121) [:2.2.2.GA] ... Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to resolve schema binding for QName taglib with schemaLocation=taglib at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:180) [jbossxb.jar:2.0.3.GA] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.startElement(SaxJBossXBParser.java:401) [jbossxb.jar:2.0.3.GA] at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) [xercesImpl.jar:6.1.0.Final] ...
My "core.dsp.tld" isn't inside a jar file - in the in the dist/-Folder of ZK 5.0.9 this isn't the case either.
If your tld file is put under WEB-INF, you can turn off the scanner from JBoss here
ZK - Open Source Ajax Java Framework
Hello,
I would like to know if anyobody try to use ZK with JBOSS AS 6.0.0
I have ZK application and when I deploy under JBOSS 5.x I have no problem but If I use JBOSS 6 I have a stack trace and it's seems to be due to .tld of ZK who doesn't define xsd declaration.
Stack :
thread who talk about tld problem .
If anyone have an idea to solve the problem (for example give me zk *.tld with xsd ) Welcome :)
Regards, V