[JBoss Tools (users)] - problem with deploy to jboss as 5.0 with new seam project an
by wiggy
I am running nearly current nightly build for JBT
last pull i had was JBossTools-3.0.0.CR2-N200812240610-ALL-win32.zip.
my eclipse is ganymede SR1, and my seam build 2.1.1GA
when i create a new ear project the generator builds a manifest file
in ...web-content/META-INF.
this includes the following
| anifest-Version: 1.0
| Class-Path: will-ejb.jar
| antlr-runtime.jar
| drools-compiler.jar
| drools-core.jar
| jboss-el.jar
| jboss-seam.jar
| jbpm-jpdl.jar
| mvel14.jar
| richfaces-api.jar
|
when i deploy the project it errors on the AS5.0 deploy cycle with the message
[list=]
17:39:53,078 WARN [HDScanner] Scan failed
org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFSDeployment(will-ear.ear)
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:85)
at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:853)
at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:303)
at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:260)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:267)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: Error determining structure: will-ear.ear
at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:293)
at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73)
at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:196)
at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:221)
at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)
... 14 more
Caused by: java.lang.RuntimeException: will.war module listed in application.xml does not exist within .ear vfsfile:/C:/jboss/jboss-5.0.0.GA/server/default/deploy/will-ear.ear/
at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:272)
... 18 more
if i delete the referenced files in the manifest - the code deploys just fine
- I reported this on the forum at the seam forum
|
| http://www.seamframework.org/48708.lace
|
|
|
|
| the last entry in the log says there was a bug and stick with 4.2. until production 5.0AS.
|
| This is still a problem
|
| if i delete the entries from the manifest it all works fine -
|
| Is this still a known problem for the jira ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198601#4198601
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198601
15 years, 6 months
[Beginners Corner] - PoolClass in a descriptor
by babernat
Hi,
I've been using the following annotations on an EJB 3.0 MDB in JBoss 4.2.3GA to limit the number of MDB instances that can be created. I'd like to move the configuration into descriptors so that I don't have to recompile in order to change the configuration. I (think) I understand how to handle maxSession, but how do I move the Pool Class configuration to a descriptor. Does that go in the jboss.xml file inside of the jar?
| @PoolClass (value=org.jboss.ejb3.StrictMaxPool.class, maxSize=5, timeout=10000)
| @MessageDriven(activationConfig =
| {
| @ActivationConfigProperty(propertyName="maxSession",propertyValue="5"),
| @ActivationConfigProperty(propertyName="destinationType",propertyValue="javax.jms.Queue"),
| @ActivationConfigProperty(propertyName="destination",propertyValue="queue/TLEPropagationQueue")
| })
|
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198588#4198588
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198588
15 years, 6 months
[Installation, Configuration & DEPLOYMENT] - Jboss 5, Hot Re-Deployment, display old content, Work Direct
by edill
Hi, I am currently evaluating JBoss 5 to replace a paid Application Server but am having problems with re-deployments of .WAR files. When I drag the .WAR to the deploy directory the first time, the correct content displays in the browser. However, once the content in the war file has changed and is copied over the old .WAR file, the original content is still displayed (much like it is storing it in cache).
Stopping and restarting the server doesn't help, it still showed the old content. This told me that it was writing it to disk. Which led me to the "work" folder. When I delete the corresponding app from the "work" directory, the server creates a new one based on the new content.
This is what I would like to achieve, without the step of deleting the application in "work" since it is recommended not to modify the "work" folder in a production environment.
I have tried:
-According to the standard output, hot deployment is working when the file is overwritten since is says "undeploy...redeploy..." and creates a new directory in TMP. Obviously HOT DEPLOY is working as advertised.
-Changing "reloadable" attribute to "true" in the jmx-console's 'host=localhost,path=/webapp,type=Loader' link. (only in Jboss 4.2.3GA, doesn't exist in Jboss 5.0.0GA
-Added reloadable="true" to the in server/default/deploy/jboss-web.deployer/context.xml
-Modify and/or "Touching" the web.xml within the application I am trying to deploy.
* None of these trigger the refreshing of the "work" directory.
* I have read both the "Installation and Getting Started Guide" and "Administration and Configuration Guide" with no solutions
* I have searched many forums including this one
Any help from the experts would be very much appreciated!
I am using:
-Linux Ubuntu 6.06
-Jboss 5 (Also back-tracked to 4.2.3 with the same problem)
-Running default configuration (./run.sh -c default -b x.x.x.x)
-JDeveloper 10.1.3 on Windows XP SP2 Client for development and deployment (war creation)
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198587#4198587
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198587
15 years, 6 months
[Beginners Corner] - Re: Migrate J2EE Project EJB 2 from Websphere to JBoss
by garfield168
Yes, we try JBoss AS 5 at the moment and we migrate from WebSphere 6.1.
We use a WorkManager in WebSphere to do background work.
WorkManager: javax.resource.spi.work.WorkManager;
In ejb-jar.xml:
| <resource-ref>
| <res-ref-name>wm/MainWorkManager</res-ref-name> <res-type>javax.resource.spi.work.WorkManager</res-type>
| <res-auth>Container</res-auth>
| <res-sharing-scope>Shareable</res-sharing-scope>
| </resource-ref>
|
We can access the WorkManager in the JAVA code via a JNDI lookup. But with JBoss this seems to be not possible. Anyway, we need a way to
implement background working in JBoss. I found this:
http://batrapankaj.wordpress.com/2007/04/27/using-workmanager-in-jboss/
but I think it is only for JBoss AS 4.
Error Message when I try to deploy a project with a WorkManager:
| 00:33:46,265 WARN [StatelessSessionContainer] No resource manager found for wm/MainWorkManager
| 00:33:46,265 ERROR [AbstractKernelController] Error installing to Start: name=jboss.j2ee:jndiName=seaw/ScEntry,service=EJB state=Create mode=Manual requiredState=Installed
| java.lang.NullPointerException
| at org.jboss.ejb.Container.setupEnvironment(Container.java:1325)
| at org.jboss.ejb.Container.startService(Container.java:901)
| at org.jboss.ejb.SessionContainer.startService(SessionContainer.java:396)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
| at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
| at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)
| at $Proxy36.start(Unknown Source)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198585#4198585
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198585
15 years, 6 months
[Installation, Configuration & DEPLOYMENT] - Re: Unable to setup Jboss AS 5 as windows service
by dominicjpaul
Thx for quick reply. And I am using Windows XP 32 - bit. Heres the output after removing the first line from service.bat
| D:\java\JBOSS-~2.GA\bin>service install
|
| D:\java\JBOSS-~2.GA\bin>REM JBoss, the OpenSource webOS
|
| D:\java\JBOSS-~2.GA\bin>REM
|
| D:\java\JBOSS-~2.GA\bin>REM Distributable under LGPL license.
|
| D:\java\JBOSS-~2.GA\bin>REM See terms of license at gnu.org.
|
| D:\java\JBOSS-~2.GA\bin>REM
|
| D:\java\JBOSS-~2.GA\bin>REM ----------------------------------------------------
| ---------------------
|
| D:\java\JBOSS-~2.GA\bin>REM JBoss Service Script for Windows
|
| D:\java\JBOSS-~2.GA\bin>REM ----------------------------------------------------
| ---------------------
|
| D:\java\JBOSS-~2.GA\bin>set DIRNAME=D:\java\JBOSS-~2.GA\bin
|
| D:\java\JBOSS-~2.GA\bin>REM
|
| D:\java\JBOSS-~2.GA\bin>REM VERSION, VERSION_MAJOR and VERSION_MINOR are populat
| ed
|
| D:\java\JBOSS-~2.GA\bin>REM during the build with ant filter.
|
| D:\java\JBOSS-~2.GA\bin>REM
|
| D:\java\JBOSS-~2.GA\bin>set SVCNAME=JBAS50SVC
|
| D:\java\JBOSS-~2.GA\bin>set SVCDISP=JBoss Application Server 5.0
|
| D:\java\JBOSS-~2.GA\bin>set SVCDESC=JBoss Application Server 5.0.0 GA/Platform:
| Windows x86
|
| D:\java\JBOSS-~2.GA\bin>set NOPAUSE=Y
|
| D:\java\JBOSS-~2.GA\bin>REM Suppress killing service on logoff event
|
| D:\java\JBOSS-~2.GA\bin>set JAVA_OPTS=-Xrs
|
| D:\java\JBOSS-~2.GA\bin>REM Figure out the running mode
|
| D:\java\JBOSS-~2.GA\bin>if /I "install" == "install" goto cmdInstall
|
| D:\java\JBOSS-~2.GA\bin>jbosssvc.exe -imwdc JBAS50SVC "D:\java\JBOSS-~2.GA\bin"
| "JBoss Application Server 5.0" "JBoss Application Server 5.0.0 GA/Platform: Wind
| ows x86" service.bat
| The system cannot execute the specified program.
|
| D:\java\JBOSS-~2.GA\bin>if not errorlevel 0 goto errExplain
|
| D:\java\JBOSS-~2.GA\bin>echo Service JBoss Application Server 5.0 installed
| Service JBoss Application Server 5.0 installed
|
| D:\java\JBOSS-~2.GA\bin>goto cmdEnd
|
| D:\java\JBOSS-~2.GA\bin>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198581#4198581
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198581
15 years, 6 months