[Microcontainer] - Re: Parsing Error run DZone_1_0 demos
by Gary Marsh
Thanks for the reply alesj;
I tweeked the classpath to include all of the MC's library jars and it compiles and parses past the previous error. Now I am getting the following runtime error:
JBoss-MC-Demo DEBUG [07-01-2009 08:52:59] JBossEntityResolver - Cannot resolve [publicID=urn:jboss:spring-beans:2.0,systemID=beans]
| JBoss-MC-Demo WARN [07-01-2009 08:52:59] JBossEntityResolver - Cannot load systemId from resource: mc-spring-beans_2_0.xsd
| JBoss-MC-Demo DEBUG [07-01-2009 08:52:59] JBossEntityResolver - Cannot resolve [publicID=null,systemID=urn:jboss:spring-beans:2.0]
| JBoss-MC-Demo DEBUG [07-01-2009 08:52:59] BeanDeployer - Error during deploy: vfszip:/C:/JBoss/DZone_1_0/branches/DZone_1_0/sandbox/jboss-demos-models.jar
| org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/C:/JBoss/DZone_1_0/branches/DZone_1_0/sandbox/jboss-demos-models.jar
| at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:337)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:297)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:269)
| at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:230)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
| at org.jboss.demos.bootstrap.MainDeployerHelper.process(MainDeployerHelper.java:86)
| at org.jboss.demos.bootstrap.HDScanner.scan(HDScanner.java:153)
| at org.jboss.demos.bootstrap.HDScanner.run(HDScanner.java:113)
| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
| at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
| at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Failed to resolve schema nsURI=urn:jboss:spring-beans:2.0 location=beans
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
|
| Do I need to update my MC libraries??
|
| Regards;
| GMarsh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200141#4200141
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200141
17 years, 3 months
[Installation, Configuration & DEPLOYMENT] - JB 5.0 error deploying short web application
by mlybarger
I'm working on migrating our web applications from 4.2.2 to JB 5.0. the below error shows up.
It seems that the call to:
File.createTempFile(prefix, "-exp.war", config.getServerTempDeployDir());
cannot create a temp file using a prefix that is shorter than 3 characters.
Not sure if I should create a bug in JBoss for this.
| 11:37:15,471 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/C:/tools/jboss-5.0.0.GA/server/default/deploy/ab.war state=PreReal mode=Manual requiredState=Real
| org.jboss.deployers.spi.DeploymentException: Failed to create web module
| at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:472)
| at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:87)
| at org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer.deploy(AbstractSimpleVFSRealDeployer.java:56)
| at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
| at org.jboss.Main.boot(Main.java:209)
| at org.jboss.Main$1.run(Main.java:547)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: java.lang.IllegalArgumentException: Prefix string too short
| at java.io.File.createTempFile(File.java:1782)
| at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:369)
| ... 23 more
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200136#4200136
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200136
17 years, 3 months
[Installation, Configuration & DEPLOYMENT] - Re: JBoss 5.0 Taking LONG Time to Start Up
by ctf
Hi,
| ===============================================================================
|
| JBoss Bootstrap Environment
|
| JBOSS_HOME: C:\jboss-5.0.0.GA
|
| JAVA: C:\Program Files\Java\jdk1.6.0_02\bin\java
|
| JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
|
| CLASSPATH: C:\jboss-5.0.0.GA\bin\run.jar
|
|
For a completely clean & unmodified instance (no apps) of JBoss 5.0, it takes about 1 minute to start.
In Eclipse, using the JBoss plugin, it takes about 2 minutes to start the app using the "Run" command and 3-4 minutes to start in debug mode.
In other words, starting it in debug mode is taking significantly longer. I guess it should be slower than non-debug mode, but I don't remember the discrepancy ever being this drastic.
Anyway, I guess probably not much I can do about it.. unless you have some ideas. Thanks again for your help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200128#4200128
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200128
17 years, 3 months
[Microcontainer] - Re: New resource adapter deployers (JCA)
by jesper.pedersen
anonymous wrote : This should just plug-in into AnnotationEnvironment.
| See
| (Filtered)AnnotationEnvironmentDeployer in JBossAS's metadata-deployer-jboss-beans.xml.
Do you have an example somewhere ? I'm not running in the AS -- this is for the standalone JCA container directly on the MC.
anonymous wrote : I don't understand what you're trying to do here.
I need somewhere to add one or more dependencies on beans already in the INSTALLED stage. The dependencies are listed in our jboss-ra.xml file. Best practices for that ?
anonymous wrote : It depends. :-)
| Go to deployers project and check the existing Deployer sub-classes hierarchy.
| Most of them have meaningful names and there's a lot of examples/tests behind them.
package.html files would be nice to get an overview... but I'm reading through the -spi directories currently - and with AnnotationEnvironmentDeployer I guess deployers-vfs also.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200126#4200126
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200126
17 years, 3 months