[JBoss Getting Started Documentation] - If i move Jboss Folder to 2ÃÂÃÂÃÂú Machine... Will
by Subemontes
Hi.
I have a server, with all env variaables ok and a Jboss with portal running smoth.
I want to check clustering conf, so the fast way, after installing SDK and put the env variables, was copying the entire folder.
Well, It can seem weird, but the 2ÃÂÃÂÃÂú server runs ok EXCEPT for an error that i paste here.
Anyone can tell me what can it be ? Have checked some google and forum and didnt get the answer.
Thanks!
17:09:51,489 INFO [STDOUT] [Server@376cc3]: Initiating startup sequence...
| 17:09:51,535 INFO [STDOUT] [Server@376cc3]: Server socket opened successfully in 15 ms.
| 17:09:51,977 INFO [STDOUT] [Server@376cc3]: Database [index=0, id=1, db=file:C:\jboss-4.2.2.GA\server\default\data\hypersonic\default, alias=] opened sucessfully in 412 ms.
| 17:09:52,038 INFO [STDOUT] [Server@376cc3]: Startup sequence completed in 518 ms.
| 17:09:52,099 INFO [STDOUT] [Server@376cc3]: 2008-07-28 17:09:52.099 HSQLDB server 1.8.0 is online
| 17:09:52,129 INFO [STDOUT] [Server@376cc3]: To close normally, connect and execute SHUTDOWN SQL
| 17:09:52,175 INFO [STDOUT] [Server@376cc3]: From command line, use [Ctrl]+[C] to abort abruptly
| 17:09:52,251 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
| 17:09:52,571 ERROR [GeneralPurposeDatabasePersistencePlugin] Cannot create timer table
| org.jboss.deployment.DeploymentException: Error while checking if table aleady exists TIMERS;
| - nested throwable: (java.sql.SQLException: Table not found: SYSTEM_TABLES in statement [SELECT * FROM INFORMATION_SCHEMA.SYSTEM_TABLES])
| at org.jboss.ejb.plugins.cmp.jdbc.SQLUtil.tableExists(SQLUtil.java:1062)
| at org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin.createTableIfNotExists(GeneralPurposeDatabasePersist
| encePlugin.java:142)
| at org.jboss.ejb.txtimer.DatabasePersistencePolicy.startService(DatabasePersistencePolicy.java:104)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167084#4167084
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167084
17 years, 8 months
can't run Seam TestNG tests unless I'm online
by Scott Shepherd
In my Seam project it seems I can only run my TestNG tests when I'm
online.
If I'm offline I get
ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController]
Error installing to Parse
and
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[java.net.UnknownHostException: www.jboss.org]
(full stack trace below). Why does it need to connect to
www.jboss.org? Does it need the xml dtds?
grep -Rl 'www.jboss.org' yields (besides the error messages in the
output directory)
bin/META-INF/<project>-test-ds.xml
bootstrap/conf/login-config.xml
both of which have dtds at www.jboss.org
Anybody know what I need to download & where I need to put it in
order to be able to run tests when I'm not online?
Thanks,
Scott
____
ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController]
Error installing to Parse: name=vfsfile:/Users/skot/dev/eclipse/
workspace/yci-test/bin/ state=Not Installed mode=Manual
requiredState=Parse
org.jboss.deployers.spi.DeploymentException: Error creating managed
object for vfsfile:/Users/skot/dev/eclipse/workspace/yci-test/bin/
at
org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException
(DeploymentException.java:49)
at
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutp
ut.createMetaData(AbstractParsingDeployerWithOutput.java:232)
at
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutp
ut.createMetaData(AbstractParsingDeployerWithOutput.java:199)
at
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutp
ut.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.BaseSeamTest.startJbossEmbeddedIfNecessary
(BaseSeamTest.java:1041)
at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:935)
at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:923)
at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:580)
at org.testng.internal.Invoker.invokeConfigurationMethod
(Invoker.java:398)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:145)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:82)
at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods
(TestMethodWorker.java:167)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:104)
at org.testng.TestRunner.runWorkers(TestRunner.java:712)
at org.testng.TestRunner.privateRun(TestRunner.java:582)
at org.testng.TestRunner.run(TestRunner.java:477)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:324)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:319)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:292)
at org.testng.SuiteRunner.run(SuiteRunner.java:198)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:823)
at org.testng.TestNG.runSuitesLocally(TestNG.java:790)
at org.testng.TestNG.run(TestNG.java:708)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[java.net.UnknownHostException: www.jboss.org]
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.pars
e(ManagedConnectionFactoryParserDeployer.java:121)
at
org.jboss.resource.deployers.ManagedConnectionFactoryParserDeployer.pars
e(ManagedConnectionFactoryParserDeployer.java:59)
at
org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse
(AbstractVFSParsingDeployer.java:112)
at
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutp
ut.createMetaData(AbstractParsingDeployerWithOutput.java:225)
... 43 more
Caused by: java.net.UnknownHostException: www.jboss.org
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
at java.net.Socket.connect(Socket.java:520)
at java.net.Socket.connect(Socket.java:470)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:387)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:522)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
at sun.net.www.http.HttpClient.New(HttpClient.java:304)
at sun.net.www.http.HttpClient.New(HttpClient.java:321)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient
(HttpURLConnection.java:813)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect
(HttpURLConnection.java:765)
at sun.net.www.protocol.http.HttpURLConnection.connect
(HttpURLConnection.java:690)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream
(HttpURLConnection.java:934)
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)
... 49 more
FAILED CONFIGURATION: @BeforeClass init
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=yci
-> <UNKNOWN>{Described:** UNRESOLVED Demands
'jboss.jca:name=yciDatasource,service=DataSourceBinding **}
*** CONTEXTS IN ERROR: Name -> Error
<UNKNOWN> -> ** UNRESOLVED Demands
'jboss.jca:name=yciDatasource,service=DataSourceBinding **
vfsfile:/Users/skot/dev/eclipse/workspace/yci-test/bin/ ->
java.net.UnknownHostException: www.jboss.org
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.BaseSeamTest.startJbossEmbeddedIfNecessary
(BaseSeamTest.java:1041)
at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:935)
at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:923)
at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
... Removed 22 stack frames
SKIPPED CONFIGURATION: @BeforeMethod begin
SKIPPED CONFIGURATION: @AfterMethod end
SKIPPED CONFIGURATION: @AfterClass cleanup
SKIPPED: loginThenAskForIcon
17 years, 8 months
[JBoss Cache: Core Edition] - Re: Hibernate/Writes but does not loads
by pozzo
Hi Kamil,
I add the hibernate.cache.use_second_level_cache property as you said, but without success (I believe that is true by default)
We are using Hibernate through JPA, so I tried with the find method and createQuery of the EntityManager. In the both executions, the SQL code appears in the console, so, the conclusion is that cache its not working because is going in the database (and the performace do not change too)
The code:
Find by id
| public void findByIdTest() {
| long initTime= System.currentTimeMillis();
| Fund f = em.find(Fund.class, 1718);
| System.out.println(f);
| HomeOnShoreFund h = em.find(HomeOnShoreFund.class, 91);
| System.out.println(h);
| MarketOnShoreFund m = em.find(MarketOnShoreFund.class, "143812");
| System.out.println(m);
| System.out.println("Spent:"+(System.currentTimeMillis()-initTime)+"\n");
| }
|
Find all
| public void findAllTest() {
| long initTime= System.currentTimeMillis();
| List resultList1 = em.createQuery("from " + Fund.class.getName()).getResultList();
| System.out.println("Funds:"+resultList1.size());
| List resultList2 = em.createQuery("from " + MarketOnShoreFund.class.getName()).getResultList();
| List resultList3 = em.createQuery("from " + HomeOnShoreFund.class.getName()).getResultList();
| System.out.println("Spent:"+(System.currentTimeMillis()-initTime)+"\n");
| }
|
persistence.xml
| <?xml version="1.0" encoding="UTF-8"?>
| <persistence xmlns="http://java.sun.com/xml/ns/persistence"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
| http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">
| <persistence-unit name="FrameworkHG_PU">
| <jta-data-source>java:/jca/FrameworkHG-Oracle-DS</jta-data-source>
| <properties>
| <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect" />
| <property name="hibernate.show_sql" value="true" />
| <property name="hibernate.format_sql" value="true" />
| <property name="hibernate.use_sql_comments" value="false" />
| <property name="jboss.entity.manager.jndi.name" value="java:/FrameworkHGEntityManager" />
| <property name="jboss.entity.manager.factory.jndi.name" value="java:/FrameworkHGEntityManagerFactory"/>
| <property name="hibernate.cache.provider_class" value="org.jboss.ejb3.entity.TreeCacheProviderHook"/>
| <property name="hibernate.treecache.mbean.object_name" value="jboss.cache:service=EJB3EntityTreeCache"/>
| <property name="hibernate.cache.use_second_level_cache" value="true" />
| </properties>
| </persistence-unit>
| </persistence>
|
Something is wrong?
thank-you
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167076#4167076
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167076
17 years, 8 months