JSF extensions and JQuery versions

On February 11, 2012, in JSF, PrimeFaces, RichFaces, by lucasterdev

PrimeFaces 3.1 uses JQuery 1.7.1

PrimeFaces 3.0.1 uses JQuery 1.7.1

RichFaces 4.2.0.CR1 uses JQuery 1.7.1

RichFaces 4.1.0.Final uses JQuery 1.6.4

 

 

Resin

On February 11, 2012, in Eclipse, Resin, by lucasterdev

After installing Resin and the Resin Plugin for Eclipse, here’s what I get when I start the server:

/home/luca/Software/eclipse_indigo_32bit/workspace/Servers/Resin 4.0 at localhost-config/resin.xml:38: com.caucho.config.core.ResinImport.init(): Required file '/home/luca/Software/eclipse_indigo_32bit/workspace/Servers/Resin 4.0 at localhost-config/cluster-default.xml' can not be read for resin:import.
 at com.caucho.config.xml.XmlConfigContext.error(XmlConfigContext.java:1239)
 at com.caucho.config.xml.XmlConfigContext.configureChildNode(XmlConfigContext.java:471)
 at com.caucho.config.xml.XmlConfigContext.configureNode(XmlConfigContext.java:371)
 at com.caucho.config.xml.XmlConfigContext.configureBean(XmlConfigContext.java:285)
 at com.caucho.config.xml.XmlConfigContext.configure(XmlConfigContext.java:243)
 at com.caucho.config.Config.configure(Config.java:326)
 at com.caucho.config.Config.configure(Config.java:256)
 at com.caucho.server.resin.BootConfig.configureFile(BootConfig.java:131)
 at com.caucho.server.resin.Resin.configureFile(Resin.java:849)
 at com.caucho.server.resin.Resin.<init>(Resin.java:214)
 at com.caucho.server.resin.Resin.<init>(Resin.java:172)
 at com.caucho.server.resin.Resin.main(Resin.java:1232)
Caused by: com.caucho.config.ConfigException: com.caucho.config.core.ResinImport.init(): Required file '/home/luca/Software/eclipse_indigo_32bit/workspace/Servers/Resin 4.0 at localhost-config/cluster-default.xml' can not be read for resin:import.
 at com.caucho.config.ConfigException.create(ConfigException.java:99)
 at com.caucho.config.ConfigException.create(ConfigException.java:130)
 at com.caucho.config.j2ee.PostConstructProgram.inject(PostConstructProgram.java:142)
 at com.caucho.config.type.InlineBeanType.init(InlineBeanType.java:457)
 at com.caucho.config.xml.XmlConfigContext.configureChildBean(XmlConfigContext.java:704)
 at com.caucho.config.xml.XmlConfigContext.configureBeanProperties(XmlConfigContext.java:685)
 at com.caucho.config.xml.XmlConfigContext.configureChildNode(XmlConfigContext.java:464)
 ... 10 more
Caused by: com.caucho.config.ConfigException: Required file '/home/luca/Software/eclipse_indigo_32bit/workspace/Servers/Resin 4.0 at localhost-config/cluster-default.xml' can not be read for resin:import.
 at com.caucho.config.core.ResinImport.init(ResinImport.java:115)
 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.caucho.config.j2ee.PostConstructProgram.inject(PostConstructProgram.java:140)
 ... 14 more
/home/luca/Software/eclipse_indigo_32bit/workspace/Servers/Resin 4.0 at localhost-config/resin.xml:38: com.caucho.config.core.ResinImport.init(): Required file '/home/luca/Software/eclipse_indigo_32bit/workspace/Servers/Resin 4.0 at localhost-config/cluster-default.xml' can not be read for resin:import.

Copy cluster-default.xml from RESIN_HOME/conf to ECLIPSE_HOME/Workspace/Servers/Resin 4.0 at localhost-config.

Now Resin starts bu I get this:


[12-02-11 15:34:17.373] {http://*:8080-15} Unable to find native library 'resin_os' for com.caucho.loader.ClassEntry. Resin expects to find this library in:
 (Unix) /home/luca/Software/resin-4.0.25/libexec/libresin_os.so
 On Unix, run ./configure --prefix=`pwd`; make; make install.

 The JVM exception was: java.lang.UnsatisfiedLinkError: no resin_os in java.library.path

The server starts though…

 

[Solved] Using TestNG offline fails

On February 5, 2012, in Testing, TestNG, by lucasterdev

When your run TestNG tests and you have no Internet connection, you may get the following exception:

TestNG] Running:
  /tmp/testng-eclipse--29095373/testng-customsuite.xml

ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Parse: name=vfsfile:/home/luca/Software/eclipse_indigo_32bit/workspace/seam423ear-test/bin/ state=Not Installed mode=Manual requiredState=Parse
org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/home/luca/Software/eclipse_indigo_32bit/workspace/seam423ear-test/bin/
	at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
	at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:232)
	at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:199)
	at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:162)
	at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
	at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
	at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
	at org.jboss.embedded.DeploymentGroup.process(DeploymentGroup.java:127)
	at org.jboss.embedded.Bootstrap.deployResourceBases(Bootstrap.java:289)
	at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:15)
	at org.jboss.seam.mock.AbstractSeamTest.startJbossEmbeddedIfNecessary(AbstractSeamTest.java:1034)
	at org.jboss.seam.mock.AbstractSeamTest.startSeam(AbstractSeamTest.java:925)
	at org.jboss.seam.mock.SeamTest.startSeam(SeamTest.java:69)
	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 org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
	at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:543)
	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:212)
	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:277)
	at org.testng.SuiteRunner.run(SuiteRunner.java:240)
	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:87)
	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1142)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:1067)
	at org.testng.TestNG.run(TestNG.java:979)
	at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:109)
	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:202)
	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:173)
Caused by: javax.xml.bind.UnmarshalException
 - with linked exception:
1
	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:213)
	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:190)
	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:241)
	at org.jboss.resource.deployers.ManagedConnectionFactoryParserDeployer.parse(ManagedConnectionFactoryParserDeployer.java:121)
	at org.jboss.resource.deployers.ManagedConnectionFactoryParserDeployer.parse(ManagedConnectionFactoryParserDeployer.java:59)
	at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:112)
	at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:225)
	... 38 more
Caused by: java.net.UnknownHostException: www.jboss.org
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:175)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
	at java.net.Socket.connect(Socket.java:546)
	at java.net.Socket.connect(Socket.java:495)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:178)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:409)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)
	at sun.net.www.http.HttpClient.<init>(HttpClient.java:240)
	at sun.net.www.http.HttpClient.New(HttpClient.java:321)
	at sun.net.www.http.HttpClient.New(HttpClient.java:338)
	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:935)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:876)
	at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:801)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1139)
	at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
	at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
	at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
	at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211)
	... 44 more
FAILED CONFIGURATION: @BeforeSuite startSeam
org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

*** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}

persistence.units:unitName=seam423ear
 -> <UNKNOWN>{Described:** UNRESOLVED Demands 'jboss.jca:name=seam423earDatasource,service=DataSourceBinding **}

*** CONTEXTS IN ERROR: Name -> Error

vfsfile:/home/luca/Software/eclipse_indigo_32bit/workspace/seam423ear-test/bin/ -> java.net.UnknownHostException: www.jboss.org

<UNKNOWN> -> ** UNRESOLVED Demands 'jboss.jca:name=seam423earDatasource,service=DataSourceBinding **

	at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:576)
	at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:559)
	at org.jboss.embedded.DeploymentGroup.process(DeploymentGroup.java:128)
	at org.jboss.embedded.Bootstrap.deployResourceBases(Bootstrap.java:289)
	at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:15)
	at org.jboss.seam.mock.AbstractSeamTest.startJbossEmbeddedIfNecessary(AbstractSeamTest.java:1034)
	at org.jboss.seam.mock.AbstractSeamTest.startSeam(AbstractSeamTest.java:925)
	at org.jboss.seam.mock.SeamTest.startSeam(SeamTest.java:69)
	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 org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
	at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:543)
	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:212)
	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:277)
	at org.testng.SuiteRunner.run(SuiteRunner.java:240)
	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:87)
	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1142)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:1067)
	at org.testng.TestNG.run(TestNG.java:979)
	at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:109)
	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:202)
	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:173)

SKIPPED CONFIGURATION: @BeforeClass setupClass
SKIPPED CONFIGURATION: @BeforeMethod begin
SKIPPED CONFIGURATION: @AfterMethod end
SKIPPED CONFIGURATION: @AfterClass cleanupClass
SKIPPED: someTest

===============================================
    Default test
    Tests run: 1, Failures: 0, Skips: 1
    Configuration Failures: 1, Skips: 4
===============================================

===============================================
Default suite
Total tests run: 1, Failures: 0, Skips: 1
Configuration Failures: 1, Skips: 5
===============================================

[TestNG] Time taken by org.testng.reporters.JUnitReportReporter@13c468a: 4 ms
[TestNG] Time taken by org.testng.reporters.EmailableReporter@1807ca8: 5 ms
[TestNG] Time taken by org.testng.reporters.XMLReporter@12ad19e: 17 ms
[TestNG] Time taken by [TestListenerAdapter] Passed:0 Failed:0 Skipped:0]: 4 ms
[TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@1bd7848: 8 ms

It happens because TestNG tries to validate the *-ds.xml files against their DTDs.

To solve this issue, you have to remove or comment out the DTD declaration from the *-ds.xml files in your project, including the ones in the /bin folder. You can see the /bin folder Eclipse’s Navigator view.