[Design the new POJO MicroContainer] - Re: how the hell do I build this project?
by bill.burke@jboss.com
i changed jboss-parent from 2-snapshot to 2
I went to the top level directory of microcontainer/
$ mvn install
Got fatal error.
| [INFO] Building jar: C:\jboss\microcontainer\kernel\target\jboss-kernel-tests.jar
| [INFO] [assembly:attached {execution: make-assembly}]
| [INFO] Reading assembly descriptor: C:\jboss\microcontainer\kernel\src\assembly\spi.xml
| [INFO] Reading assembly descriptor: C:\jboss\microcontainer\kernel\src\assembly\plugins.xml
| [INFO] ------------------------------------------------------------------------
| [ERROR] FATAL ERROR
| [INFO] ------------------------------------------------------------------------
| [INFO] null
| [INFO] ------------------------------------------------------------------------
| [INFO] Trace
| java.lang.NullPointerException
| at org.apache.maven.plugin.assembly.archive.ManifestCreationFinalizer.getVirtualFiles(ManifestCreationFinalizer.
| java:99)
| at org.codehaus.plexus.archiver.AbstractArchiver.hasVirtualFiles(AbstractArchiver.java:546)
| at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMain(AbstractZipArchiver.java:258)
| at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.execute(AbstractZipArchiver.java:242)
| at org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractArchiver.java:513)
| at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:1
| 03)
| at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:278)
| at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:47
| 5)
| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
| a:306)
| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
| at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
| at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
| at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
| at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
| 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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
| at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
| at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
| at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
| [INFO] ------------------------------------------------------------------------
| [INFO] Total time: 1 minute 42 seconds
| [INFO] Finished at: Thu Apr 19 15:15:51 EDT 2007
| [INFO] Final Memory: 19M/54M
| [INFO] ------------------------------------------------------------------------
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039009#4039009
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039009
18 years, 11 months
[Design the new POJO MicroContainer] - how the hell do I build this project?
by bill.burke@jboss.com
checked out microcontainer.
$ cd build
$ mvn
|
| [INFO] Scanning for projects...
| Downloading: http://repository.jboss.com/maven2//jboss/jboss-parent/2-SNAPSHOT/jboss-p...
| [WARNING] Unable to get resource from repository jboss (http://repository.jboss.com/maven2/)
| [INFO] ------------------------------------------------------------------------
| [ERROR] FATAL ERROR
| [INFO] ------------------------------------------------------------------------
| [INFO] Failed to resolve artifact.
|
| GroupId: jboss
| ArtifactId: jboss-parent
| Version: 2-SNAPSHOT
|
| Reason: Unable to download the artifact from any repository
|
| jboss:jboss-parent:pom:2-SNAPSHOT
|
| from the specified remote repositories:
| central (http://repo1.maven.org/maven2),
| jboss (http://repository.jboss.com/maven2/)
|
|
| [INFO] ------------------------------------------------------------------------
| [INFO] Trace
| org.apache.maven.reactor.MavenExecutionException: Cannot find parent: jboss:jboss-parent for project: null:jboss-microco
| ntainer:pom:2.0.0-SNAPSHOT
| at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
| at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278)
| at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
| at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
| 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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
| at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
| at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
| at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
| Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: jboss:jboss-parent for project: null:j
| boss-microcontainer:pom:2.0.0-SNAPSHOT
| at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1161)
| at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:674)
| at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.ja
| va:416)
| at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:192)
| at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:515)
| at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:447)
| at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:351)
| ... 11 more
| Caused by: org.apache.maven.project.ProjectBuildingException: POM 'jboss:jboss-parent' not found in repository: Unable t
| o download the artifact from any repository
|
| jboss:jboss-parent:pom:2-SNAPSHOT
|
| from the specified remote repositories:
| central (http://repo1.maven.org/maven2),
| jboss (http://repository.jboss.com/maven2/)
|
| at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:5
| 13)
| at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1157)
| ... 17 more
| Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any reposi
| tory
|
| jboss:jboss-parent:pom:2-SNAPSHOT
|
| from the specified remote repositories:
| central (http://repo1.maven.org/maven2),
| jboss (http://repository.jboss.com/maven2/)
|
| at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:136)
| at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:63)
| at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:4
| 67)
| ... 18 more
| Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository
| at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:260)
| at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:124)
| ... 20 more
| [INFO] ------------------------------------------------------------------------
| [INFO] Total time: < 1 second
| [INFO] Finished at: Thu Apr 19 15:06:00 EDT 2007
| [INFO] Final Memory: 1M/2M
| [INFO] ------------------------------------------------------------------------
|
| C:\jboss\microcontainer\build>xemacs pom.xml
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039003#4039003
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039003
18 years, 11 months
[Design of JBoss ESB] - Groovy Scripted Gateways... Useful for testing... and more p
by tfennelly
I was playing around with some Groovy scripts for doing some Groovy SOAP using the GroovyActionProcessor.
I got fed up redeploying .esbs and restarting the AS, so I wanted a way of updating the Groovy script run by the GroovyActionProcessor without redeploying or restarting.
The answer was a new gateway which can run Groovy scripts. Effectively, the Groovy script becomes the gateway. With this I was able write a really simple Groovy Scripted Gateway that popped up a Swing form through which I could deliver a message payload to the target service - in this case, a Groovy script. So I now had a convenient way of modifying the script, on the fly, with no need for redeploys or restarts. Useful for testing. See the flash.
So the esb config for running this Gateway Script (bundled in the product) is as follows (listeners and actions only):
| <listeners>
| <groovy-listener name="soap-client" script="MessageInjectionConsole" is-gateway="true" />
| <jms-listener name="JMS-Helper-ESBListener" busidref="GroovyService"/>
| </listeners>
| <actions>
| <action name="groovy" class="org.jboss.soa.esb.actions.scripting.GroovyActionProcessor" />
| </actions>
|
Note the groovy-listener listener element.
This particular Groovy Gateway script is here. Note how simple it is. It uses a UncomposedMessageDeliveryAdapter instance (available to all Gateway sctips) to deliver the message to the target service, async or sync.
You could write Groovy scripted Gateways to do all sorts of other stuff too e.g. Groovy and XFire are tightly integrated => you could stand up an XFire Gateway in a few lines of code (in theory - according to the Groovy website).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038994#4038994
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038994
18 years, 11 months