[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2

2008-02-12 Thread doballve
I got it to work with WTP, meaning you can run tests from Eclipse,  "at some 
point", I could not easily get it working again and gave up. I used 
eclipse:eclipse goal from maven-eclipse-plugin to setup the projects, but then 
you have to play around with classpaths manually, as well as prepare resources 
and so on..

As for the wiki page, I did not start one because there were already 2 there - 
though they are old already. I support the idea of a dedicated wiki page and 
will try to contribute to it, but right now I'm short on time for that. If you 
can start it, please go ahead, and place the link here. Thanks!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128659#4128659

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128659
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2

2008-02-08 Thread svadu
"doballve" wrote : I've placed it as attachment to Seam main page. Enjoy it: 
http://wiki.jboss.org/wiki/attach?page=JBossSeam%2FBookingExample-2.0.1.GA-mavenized.zip
  | 
  | I could not use hibernate-all-beta3 jar, tests fail with that.. using 
expanded hibernate dependencies instead. Btw, dependencies can still be cleaned 
up, but it very much depends on what you are building and where..
  | 
  | Other improvement are to use dbunit for tests (seam supports it) and 
separate war related tests and ejb tests.. ejb tests shoud happen in the ejb 
project.

This is excellent work! Could you create a small wiki page with description 
there?
Now if we could make it work with wtp it would be great!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128025#4128025

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128025
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2

2008-02-07 Thread doballve
I've placed it as attachment to Seam main page. Enjoy it: 
http://wiki.jboss.org/wiki/attach?page=JBossSeam%2FBookingExample-2.0.1.GA-mavenized.zip

I could not use hibernate-all-beta3 jar, tests fail with that.. using expanded 
hibernate dependencies instead. Btw, dependencies can still be cleaned up, but 
it very much depends on what you are building and where..

Other improvement are to use dbunit for tests (seam supports it) and separate 
war related tests and ejb tests.. ejb tests shoud happen in the ejb project.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127408#4127408

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127408
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2

2008-02-06 Thread lucdew
Yes i vote for it also.

I'll soon have to start a new project on JBoss 4.2.X and so far i have been 
reluctant to use Seam because it has to integrate fully to our build system 
(maven + continuum). I really don't and won't have time to spend on figuring 
out how to build with maven a fully functional (with working tests) seam web 
app. So please could you upload an example, it would really encourage a broader 
adoption of seam.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127212#4127212

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127212
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2

2008-02-06 Thread cory_prowse
Yes there is definitely a need for an example application on the Wiki, 
uploading your example would be very helpful.

I haven't completed the test coverage I want in my example yet, all I have 
proved is that Embedded JBoss works within Maven.

Now I need tests covering the Seam functionality for it to be specific for Seam.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127200#4127200

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127200
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2

2008-02-06 Thread doballve
Cory, thanks for your effort and perseverance on this matter. I started from 
Michael Yuan's example 
(http://www.michaelyuan.com/blog/2007/10/09/jboss-seam-project-setup-with-maven-%e2%80%94-part-2-ear-deployment/),
 added dependencies from Seam 2.0.1.GA but got stuck on the way.

Thanks to your insistence, the -all fisrt classpath trick and merged 
classes/test-classes I now have tests running on war (using surefire 2.4.1 
preview and testng 5.7) and deployable ear (on Jboss AS 4.2.2.GA). 

Probably a zip with the project structure should be posted somewhere - I see 
your example is not available anymore. I wonder if I should cleanup my project 
and post it to seam wiki. Thoughts?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127034#4127034

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127034
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2

2008-01-28 Thread svadu
We've come to similar conclusion (regarding source of the problem): 
http://jira.jboss.com/jira/browse/JBSEAM-2371

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123950#4123950

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123950
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2

2008-01-26 Thread cory_prowse
I have continued to try and track down the issue and it turns out the problem 
is with JBoss Embedded.

I've ruled out Maven being the problem by providing a command line that shows 
how JBoss Embedded fails to load the persistence.xml file when multiple 
_directories_ are given on the classpath.
(this may not actually be a bug in Embedded JBoss but how it interprets the 
EJB3 spec)

For those interested the current frontline of effort is here:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=125266

(my post starts halfway down the first page of the thread)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123792#4123792

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123792
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2

2008-01-07 Thread anewton
Sure enough, when I tested this on Linux, it worked.

I think the classpath ordering, as shown in one of my posts above is a Maven 
issue.  However, Mac OS X isn't the only platform this does not work on.  I 
tried this on WinXP, JDK 1.5, Maven 2.0.8, and got this:


  | WARN  07-01 11:32:35,838 (UnifiedLoaderRepository3.java:addClassLoader:675) 
 -Tried to add non-URLClassLoader.  Ignored
  | WARN  07-01 11:32:37,416 (TxControl.java::266)  
-[com.arjuna.ats.arjuna.coordinator.TxControl_1] - Name of XA node not defined. 
Using -3fb9:121f:47825425:0
  | ERROR 07-01 11:32:38,822 (DeployerWrapper.java:commitDeploy:177)  -Error 
during deployment: 
vfsfile:/c:/Documents%20and%20Settings/andy/projects/seamtest/seamMavenExample/seamMavenExampleEjb/target/test-classes/deploy/jboss-local-jdbc.rar
  | org.jboss.deployers.spi.DeploymentException: Error parsing meta data 
jboss-local-jdbc.rar/META-INF/ra.xml
  | at 
org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
  | at 
org.jboss.deployers.plugins.deployers.helpers.ObjectModelFactoryDeployer.parse(ObjectModelFactoryDeployer.java:114)
  | at 
org.jboss.deployers.plugins.deployers.helpers.AbstractParsingDeployer.parse(AbstractParsingDeployer.java:148)
  | at 
org.jboss.resource.deployers.RARParserDeployer.parse(RARParserDeployer.java:69)
  | at 
org.jboss.resource.deployers.RARParserDeployer.parse(RARParserDeployer.java:39)
  | at 
org.jboss.deployers.plugins.deployers.helpers.AbstractParsingDeployer.createMetaData(AbstractParsingDeployer.java:112)
  | at 
org.jboss.deployers.plugins.deployers.helpers.AbstractParsingDeployer.createMetaData(AbstractParsingDeployer.java:88)
  | at 
org.jboss.resource.deployers.RARParserDeployer.deploy(RARParserDeployer.java:82)
  | at 
org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer.commitDeploy(AbstractSimpleDeployer.java:52)
  | at 
org.jboss.deployers.plugins.deployer.DeployerWrapper.commitDeploy(DeployerWrapper.java:170)
  | at 
org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:592)
  | at 
org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:476)
  | at 
org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:406)
  | at 
org.jboss.embedded.DeploymentScanner.start(DeploymentScanner.java:109)
  | 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.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55)
  | at 
org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:108)
  | at 
org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
  | at 
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:103)
  | at 
org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:145)
  | at 
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:197)
  | at 
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:136)
  | at 
org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
  | at 
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:233)
  | at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:724)
  | at 
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:445)
  | at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:555)
  | at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:489)
  | at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:289)
  | at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:192)
  | at 
org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:302)
  | at 
org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:272)
  | at 
org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:119)
  | at 
org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:

[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2

2008-01-05 Thread anewton
I'll find a Linux box to give this a whirl on.

Version of what from the 4th?  If Maven 2.0.8, then yes.  I would assume 
everything else is being pulled from the Maven repositories, but I'll try with 
a -U anyway.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117300#4117300

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117300
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2

2008-01-04 Thread cory_prowse
Hmm... that's weird.

Maybe on MacOSX Maven isn't honoring the order of jars as specified in the POM?

I hate to say it but here on Linux it's working fine.  I haven't tested this on 
any other platform but have had it working without any changes on multiple 
Linux environments, some of which started with a fresh install of Maven.

Are you running the absolute latest version from the 4th?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117253#4117253

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117253
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2

2008-01-04 Thread anewton
Cory,

I checked out your updated example and the test fails for me.



  | Running TestSuite
  | [Parser] Running:
  |   Command line suite
  | 
  | WARN  04-01 14:39:46,978 (UnifiedLoaderRepository3.java:addClassLoader:675) 
 -Tried to add non-URLClassLoader.  Ignored
  | ERROR 04-01 14:39:47,335 (AbstractController.java:incrementState:456)  
-Error installing to Start: name=ResourcesToDeploy state=Create
  | java.lang.NoSuchMethodError: 
javassist.scopedpool.ScopedClassPool.(Ljava/lang/ClassLoader;Ljavassist/ClassPool;Ljavassist/scopedpool/ScopedClassPoolRepository;Z)V
  | at org.jboss.aop.classpool.AOPClassPool.(AOPClassPool.java:66)
  | at org.jboss.aop.classpool.AOPClassPool.(AOPClassPool.java:56)
  | at 
org.jboss.aop.classpool.AOPClassPoolFactory.create(AOPClassPoolFactory.java:40)
  | at 
javassist.scopedpool.ScopedClassPoolRepositoryImpl.createScopedClassPool(ScopedClassPoolRepositoryImpl.java:99)
  | at 
javassist.scopedpool.ScopedClassPoolRepositoryImpl.registerClassLoader(ScopedClassPoolRepositoryImpl.java:125)
  | at 
org.jboss.aop.classpool.AOPClassPoolRepository.registerClassLoader(AOPClassPoolRepository.java:154)
  | at 
org.jboss.aop.AspectManager.registerClassLoader(AspectManager.java:671)
  | at org.jboss.aop.AspectManager.findClassPool(AspectManager.java:659)
  | at 
org.jboss.aop.proxy.container.ContainerProxyFactory.createProxyCtClass(ContainerProxyFactory.java:182)
  | at 
org.jboss.aop.proxy.container.ContainerProxyFactory.createProxyCtClass(ContainerProxyFactory.java:166)
  | at 
org.jboss.aop.proxy.container.ContainerProxyFactory.generateProxy(ContainerProxyFactory.java:138)
  | at 
org.jboss.aop.proxy.container.ContainerProxyFactory.getProxyClass(ContainerProxyFactory.java:128)
  | at 
org.jboss.aop.proxy.container.GeneratedAOPProxyFactory.generateProxy(GeneratedAOPProxyFactory.java:127)
  | at 
org.jboss.aop.proxy.container.GeneratedAOPProxyFactory.getProxy(GeneratedAOPProxyFactory.java:113)
  | at 
org.jboss.aop.proxy.container.GeneratedAOPProxyFactory.createAdvisedProxy(GeneratedAOPProxyFactory.java:82)
  | at 
org.jboss.aop.proxy.container.GeneratedAOPProxyFactory.createProxy(GeneratedAOPProxyFactory.java:55)
  | at 
org.jboss.deployers.plugins.structure.AbstractDeploymentContext.(AbstractDeploymentContext.java:113)
  | at 
org.jboss.deployers.plugins.structure.AbstractDeploymentContext.(AbstractDeploymentContext.java:202)
  | at org.jboss.embedded.DeploymentGroup.add(DeploymentGroup.java:163)
  | at org.jboss.embedded.DeploymentGroup.add(DeploymentGroup.java:177)
  | at 
org.jboss.embedded.DeploymentGroup.addResource(DeploymentGroup.java:329)
  | at org.jboss.embedded.DeploymentScanner.start(DeploymentScanner.java:85)
  | 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.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55)
  | at 
org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:108)
  | at 
org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
  | at 
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:103)
  | at 
org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:145)
  | at 
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:197)
  | at 
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:136)
  | at 
org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
  | at 
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:233)
  | at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:724)
  | at 
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:445)
  | at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:555)
  | at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:489)
  | at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:289)
  | at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:192)
  | at 
org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:302)
  | at 
org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:272)
  |

[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2

2008-01-03 Thread cory_prowse
"[EMAIL PROTECTED]" wrote : I don't know how to order the classpath with Maven 
(it's easy with ant) but you need to make sure the -all jars come before 
everything else when running tests.

Pete you are a legend (and not the Will Smith variety, I haven't seen that 
movie yet).

Maven orders the classpath in the same order as specified in the pom, and with 
Maven 2.0.8 they have ensured that the test classpath is first as well (the 
reason I enforce Maven version 2.08+ in the pom).

So I reordered the classpath and voila!
The error I get is now back to the "NoInitialContextException" which I can now 
work on.

Are there any other classpath ordering things that I should be aware of?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116895#4116895

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116895
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2

2008-01-03 Thread [EMAIL PROTECTED]
Yes, I don't like the -all.jar s particularly, however I don't see a nice way 
around it (Seam's deps are different than those in the -all.jar)

However, this will all go away when we can target JBoss AS 5 with Seam (as this 
is what Embedded is based on, and so we can sync jar versions easily). This 
should be soon.

I don't know how to order the classpath with Maven (it's easy with ant) but you 
need to make sure the -all jars come before everything else when running tests.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116885#4116885

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116885
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2

2008-01-03 Thread cory_prowse
Yup you are correct, and I have enabled the option to create Java5 bytecode in 
the parent pom.


  | org.apache.maven.plugins
  | maven-compiler-plugin
  | 
  | 
  | 1.5
  | 1.5
  | 1024m
  | true
  | 
  | 

It still seems to be at the moment that the problem is those uberjars of "all" 
dependencies.  Having the same class in more than one jar annoys the 
classloaders (cos they are not the same class then).

I could go through and create exclusions for all jars in those uberjars but 
then the final EAR for a production (or integration test) deployment would be 
without them as well.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116883#4116883

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116883
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2

2008-01-03 Thread Marx3
Java6 can compile bytecode Java5 compatible, so I see no point in 
discriminating Java6. There should be an option to force that  - I do that in 
Ant with 

  | 
  | 
  | ...
  | 
  | ...
  | 

Anyway with tests skipped your project has been built ok

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116711#4116711

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116711
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2

2008-01-03 Thread cory_prowse
This is just a cut down version of a much larger project of which I use 
Postgres with Glassfish for deployment testing (as Derby database doesn't work 
with jBPM).  So I deliberately force that check that Java 1.6 is not run, 
meaning the right bracket is correct for a less than and not equal to condition.

Also cos this currently doesn't work, I wanted to ensure people were running 
Java5 which is more widely supported than Java6 to rule out any issues there.
I could be wrong there though  :)

Checkout this link for more info:
http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution#DependencyMediationandConflictResolution-DependencyVersionRanges


As for your depenendency error, it's cos the project has not successfully 
compiled that project and so has not produced that artifact.
You need to first run it without tests:

mvn -Dmaven.test.skip=true clean install

That will ensure all projects are built and their artifacts available in your 
local repository.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116677#4116677

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116677
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2

2008-01-03 Thread Marx3
everything compiled ok (1.6 is backwards compatible), i think you have mistake 
in right parenthese:
is: [1.5,1.6)
probably should be:[1.5,1.6] 

There seems to be problem with local repository. I think I need to create one, 
but don't know how.


  | Downloading: 
http://repository.jboss.org/maven2/org/richfaces/ui/richfaces-ui/3.1.2.SP1/richfaces-ui-3.1.2.SP1.jar
  | 1485K downloaded
  | Downloading: 
http://repository.jboss.org/maven2/concurrent/concurrent/1.3.4/concurrent-1.3.4.jar
  | Downloading: 
http://snapshots.jboss.org/maven2/concurrent/concurrent/1.3.4/concurrent-1.3.4.jar
  | Downloading: 
http://repo1.maven.org/maven2/concurrent/concurrent/1.3.4/concurrent-1.3.4.jar
  | 184K downloaded
  | Downloading: 
http://repository.jboss.org/maven2/javax/servlet/jsp/jsp-api/2.1/jsp-api-2.1.jar
  | 98K downloaded
  | [INFO] 

  | [ERROR] BUILD ERROR
  | [INFO] 

  | [INFO] Failed to resolve artifact.
  | 
  | Missing:
  | --
  | 1) 
au.prowse.cory.seammavenexample:seamMavenExampleEjbs:ejb-client:client:1.0-SNAPSHOT
  | 
  |   Try downloading the file manually from the project website.
  | 
  |   Then, install it using the command:
  |   mvn install:install-file -DgroupId=au.prowse.cory.seammavenexample 
-DartifactId=seamMavenExampleEjbs -Dversion=1.0-SNAPSHOT -Dclassifier=client 
-Dpackaging=ejb-client -Dfile=/path/to/file
  | 
  |   Alternatively, if you host your own repository you can deploy the file 
there:
  |   mvn deploy:deploy-file -DgroupId=au.prowse.cory.seammavenexample 
-DartifactId=seamMavenExampleEjbs -Dversion=1.0-SNAPSHOT -Dclassifier=client 
-Dpackaging=ejb-client -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
  | 
  |   Path to dependency:
  | 1) 
au.prowse.cory.seammavenexample:seamMavenExampleWar:war:1.0-SNAPSHOT
  | 2) 
au.prowse.cory.seammavenexample:seamMavenExampleEjbs:ejb-client:client:1.0-SNAPSHOT
  | 
  | --
  | 1 required artifact is missing.
  | 
  | for artifact:
  |   au.prowse.cory.seammavenexample:seamMavenExampleWar:war:1.0-SNAPSHOT
  | 
  | from the specified remote repositories:
  |   snapshots.jboss.org (http://snapshots.jboss.org/maven2),
  |   central (http://repo1.maven.org/maven2),
  |   repository.jboss.org (http://repository.jboss.org/maven2)
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116667#4116667

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116667
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2

2008-01-03 Thread [EMAIL PROTECTED]
http://in.relation.to/Bloggers/EmbeddedJBossUpdate tells you how to run 
Embedded on Java 1.6

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=411#411

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=411
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2

2008-01-03 Thread cory_prowse
I don't believe Embedded JBoss supports Java6?

Also Postgres JDBC doesn't support Java6 so I have that enforcement in place 
for both of these reasons (the 1st one should apply to everyone)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116664#4116664

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116664
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2

2008-01-03 Thread Marx3
i've change 
[1.5,1.6)
to 
[1.5,1.6.0-3]
and it went ahead


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116659#4116659

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116659
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2

2008-01-03 Thread Marx3
I've tied to build your example but no luck:

  | [INFO] [enforcer:enforce {execution: enforce-java}]
  | [WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireJavaVersion 
failed with message:
  | Detected JDK Version: 1.6.0-3 is not in the allowed range [1.5,1.6).
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116658#4116658

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116658
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2

2008-01-02 Thread cory_prowse
"[EMAIL PROTECTED]" wrote : there is nothing wrong with Seam or Embedded here, 
just the way Maven sets up the classpath when running tests.

Aha!

The problem then appears to be with the thirdparty-all-beta*.jar file as it 
contains a separate copy of javassist.

Adding an exclusion for javassist to jboss-seam and hibernate-entitymanager in 
the Ejb's POM as follows:

  | org.jboss.seam
  | jboss-seam
  | 
  | 
  | jboss
  | javassist
  | 
  | 
  | 
  | ...
  | 
  | org.hibernate
  | hibernate-entitymanager
  | 
  | 
  | jboss
  | javassist
  | 
  | 
  | 

causes the tests to now fail with:

ERROR [AbstractKernelController] Error installing to Start: name=java:comp 
state=Create
  | javax.naming.NoInitialContextException: Need to specify class name in 
environment or system property, or as an applet parameter, or in an application 
resource file:  java.naming.factory.initial
  | at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
  | at 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
  | at 
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284)
  | at javax.naming.InitialContext.lookup(InitialContext.java:351)
  | at 
org.jboss.naming.JavaCompInitializer.start(JavaCompInitializer.java:83)

So it appears the dependencies need to be properly and fully speced out in the 
appropriate poms.

The use of these "*-all-*.jar" files appear the be the culprit.

Namely:
hibernate-all-*.jar
  | jboss-embedded-all-*.jar
  | thirdparty-all-*.jar
  | 
  | These are not very useful in their current form for Maven.
  | 
  | Unless someone knows of a way to exclude certain dependencies in the test 
scope within maven?  (I can't see a way)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116610#4116610

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116610
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2

2008-01-02 Thread [EMAIL PROTECTED]
anonymous wrote : Would it require the new version of JBoss Embedded to be 
released first?

Highly unlikely, there is nothing wrong with Seam or Embedded here, just the 
way Maven sets up the classpath when running tests.

anonymous wrote : Hopefully those working on Seam and/or JBossEmbedded can 
review this before their respective projects make their next releases.

Its not likely to happen for the next release, but perhaps 2.0.2

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116334#4116334

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116334
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Maven2 example application for Seam2

2008-01-02 Thread Marx3
Very good idea! We need something which works. Unfortunatelly I can't help 
because i'm not good with Maven

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116321#4116321

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116321
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user