ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

ZK + JBOSS 6.0.0 Problem to deploy

vergereau
26 Aug 2010 08:48:58 GMT
26 Aug 2010 08:48:58 GMT

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 :

at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) [:2.2.0.Alpha6]
....
caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Failed to resolve schema nsURI= location=taglib
	at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:195) [jbossxb.jar:2.0.2.Beta7]
	at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168) [jbossxb.jar:2.0.2.Beta7]
.....
Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to resolve schema nsURI= location=taglib
...	



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

vergereau
26 Aug 2010 11:26:27 GMT
26 Aug 2010 11:26:27 GMT

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

jumperchen
29 Aug 2010 21:05:43 GMT
29 Aug 2010 21:05:43 GMT

Please post it to bug list.

terrytornadoTop Contributor
3 Jul 2011 08:49:32 GMT
3 Jul 2011 08:49:32 GMT

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

dennis
4 Jul 2011 20:12:18 GMT
4 Jul 2011 20:12:18 GMT

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.

terrytornadoTop Contributor
5 Jul 2011 02:56:21 GMT
5 Jul 2011 02:56:21 GMT

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

jumperchen
14 Jul 2011 03:31:36 GMT
14 Jul 2011 03:31:36 GMT

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.

zippy
11 Aug 2011 13:45:40 GMT
11 Aug 2011 13:45:40 GMT

Push!!

Exist any way to a default solution in zk lib? (zk for jboss for example??)

sba
23 Nov 2011 16:00:12 GMT
23 Nov 2011 16:00:12 GMT

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?

jumperchen
25 Nov 2011 09:11:02 GMT
25 Nov 2011 09:11:02 GMT

-> 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.

sba
25 Nov 2011 10:35:43 GMT
25 Nov 2011 10:35:43 GMT

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.

jumperchen
7 Dec 2011 11:06:32 GMT
7 Dec 2011 11:06:32 GMT

If your tld file is put under WEB-INF, you can turn off the scanner from JBoss here