Page 1 of 1

Running BLC Admin (build.xml) throws error

Posted: Wed Aug 28, 2013 7:20 am
by bhavani
Hi,
Currently i have installed the DemoSite-3.0.0-GA-eclipse-workspace , i didn't face any issues on frontend. but while running the build.xml in admin folder, am getting the following

Buildfile: C:\Users\bhavani_r\Desktop\DemoSite-3.0.0-GA-eclipse-workspace\eclipse-workspace\DemoSite\admin\build.xml
build-app:
[artifact:mvn] [INFO] Scanning for projects...
[artifact:mvn] [INFO] Searching repository for plugin with prefix: 'gwt'.
[artifact:mvn] [INFO] ------------------------------------------------------------------------
[artifact:mvn] [INFO] Building admin
[artifact:mvn] [INFO] task-segment: [gwt:compile, install]
[artifact:mvn] [INFO] ------------------------------------------------------------------------
[artifact:mvn] [INFO] [gwt:compile {execution: default-cli}]
[artifact:mvn] [WARNING] GWT plugin is configured to detect modules, but none were found.
[artifact:mvn] [INFO] [build-helper:timestamp-property {execution: timestamp-property}]
[artifact:mvn] [WARNING] Using platform locale (en_US actually) to format date/time, i.e. build is platform dependent!
[artifact:mvn] [INFO] Setting property 'clientBuildDate' to '2013-08-28 11:46:52'.
[artifact:mvn] [INFO] [keytool:clean {execution: clean}]
[artifact:mvn] [INFO] Keystore file 'C:\Users\bhavani_r\Desktop\DemoSite-3.0.0-GA-eclipse-workspace\eclipse-workspace\DemoSite\admin\target\admin\WEB-INF\blc-example.keystore' deleted successfully.
[artifact:mvn] [INFO] [keytool:genkey {execution: genkey}]
[artifact:mvn] [INFO] [resources:resources {execution: default-resources}]
[artifact:mvn] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[artifact:mvn] [INFO] Copying 10 resources
[artifact:mvn] [INFO] [jrebel:generate {execution: generate-rebel-xml}]
[artifact:mvn] [INFO] [compiler:compile {execution: default-compile}]
[artifact:mvn] [INFO] Nothing to compile - all classes are up to date
[artifact:mvn] [INFO] [resources:testResources {execution: default-testResources}]
[artifact:mvn] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[artifact:mvn] [INFO] skip non existing resourceDirectory C:\Users\bhavani_r\Desktop\DemoSite-3.0.0-GA-eclipse-workspace\eclipse-workspace\DemoSite\admin\src\test\resources
[artifact:mvn] [INFO] [compiler:testCompile {execution: default-testCompile}]
[artifact:mvn] [INFO] Not compiling test sources
[artifact:mvn] [INFO] [surefire:test {execution: default-test}]
[artifact:mvn] [INFO] Tests are skipped.
[artifact:mvn] [INFO] [war:war {execution: default-war}]
[artifact:mvn] [INFO] Packaging webapp
[artifact:mvn] [INFO] Assembling webapp [admin] in [C:\Users\bhavani_r\Desktop\DemoSite-3.0.0-GA-eclipse-workspace\eclipse-workspace\DemoSite\admin\target\admin]
[artifact:mvn] [INFO] Processing war project
[artifact:mvn] [INFO] Copying webapp resources [C:\Users\bhavani_r\Desktop\DemoSite-3.0.0-GA-eclipse-workspace\eclipse-workspace\DemoSite\admin\src\main\webapp]
[artifact:mvn] [INFO] Webapp assembled in [3272 msecs]
[artifact:mvn] [INFO] Building war: C:\Users\bhavani_r\Desktop\DemoSite-3.0.0-GA-eclipse-workspace\eclipse-workspace\DemoSite\admin\target\admin.war
[artifact:mvn] [WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored
[artifact:mvn] (webxml attribute is missing from war task, or ignoreWebxml attribute is specified as 'true')
[artifact:mvn] [INFO] [install:install {execution: default-install}]
[artifact:mvn] [INFO] Installing C:\Users\bhavani_r\Desktop\DemoSite-3.0.0-GA-eclipse-workspace\eclipse-workspace\DemoSite\admin\target\admin.war to C:\Users\bhavani_r\.m2\repository\com\mycompany\admin\1.0\admin-1.0.war
[artifact:mvn] [INFO] ------------------------------------------------------------------------
[artifact:mvn] [INFO] BUILD SUCCESSFUL
[artifact:mvn] [INFO] ------------------------------------------------------------------------
[artifact:mvn] [INFO] Total time: 26 seconds
[artifact:mvn] [INFO] Finished at: Wed Aug 28 17:17:12 IST 2013
[artifact:mvn] [INFO] Final Memory: 45M/107M
[artifact:mvn] [INFO] ------------------------------------------------------------------------
BUILD SUCCESSFUL
Total time: 28 seconds



Can anyone help me on this ? what i should do now?

Re: Running BLC Admin (build.xml) throws error

Posted: Wed Aug 28, 2013 4:03 pm
by phillipuniverse
Wait, where is the error? At the end it says "build successful".

Re: Running BLC Admin (build.xml) throws error

Posted: Thu Aug 29, 2013 3:51 am
by bhavani
Sorry, there is no error. But while running the build.xml ant task, am getting the following erros.

Buildfile: C:\Users\bhavani_r\Desktop\DemoSite-3.0.0-GA-eclipse-workspace\eclipse-workspace\DemoSite\admin\build.xml
jetty-demo:
[artifact:mvn] Listening for transport dt_socket at address: 8001
[artifact:mvn] [INFO] Scanning for projects...
[artifact:mvn] [INFO] ------------------------------------------------------------------------
[artifact:mvn] [INFO] Building admin
[artifact:mvn] [INFO] task-segment: [compile, war:exploded, jetty:run]
[artifact:mvn] [INFO] ------------------------------------------------------------------------
[artifact:mvn] [INFO] [build-helper:timestamp-property {execution: timestamp-property}]
[artifact:mvn] [WARNING] Using platform locale (en_US actually) to format date/time, i.e. build is platform dependent!
[artifact:mvn] [INFO] Setting property 'clientBuildDate' to '2013-08-29 08:40:04'.
[artifact:mvn] [INFO] [keytool:clean {execution: clean}]
[artifact:mvn] [INFO] Keystore file 'C:\Users\bhavani_r\Desktop\DemoSite-3.0.0-GA-eclipse-workspace\eclipse-workspace\DemoSite\admin\target\admin\WEB-INF\blc-example.keystore' deleted successfully.
[artifact:mvn] [INFO] [keytool:genkey {execution: genkey}]
[artifact:mvn] [INFO] [resources:resources {execution: default-resources}]
[artifact:mvn] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[artifact:mvn] [INFO] Copying 10 resources
[artifact:mvn] [INFO] [jrebel:generate {execution: generate-rebel-xml}]
[artifact:mvn] [INFO] [compiler:compile {execution: default-compile}]
[artifact:mvn] [INFO] Nothing to compile - all classes are up to date
[artifact:mvn] [INFO] [war:exploded {execution: default-cli}]
[artifact:mvn] [INFO] Exploding webapp
[artifact:mvn] [INFO] Assembling webapp [admin] in [C:\Users\bhavani_r\Desktop\DemoSite-3.0.0-GA-eclipse-workspace\eclipse-workspace\DemoSite\admin\target\admin]
[artifact:mvn] [INFO] Processing war project
[artifact:mvn] [INFO] Copying webapp resources [C:\Users\bhavani_r\Desktop\DemoSite-3.0.0-GA-eclipse-workspace\eclipse-workspace\DemoSite\admin\src\main\webapp]
[artifact:mvn] [INFO] Webapp assembled in [2593 msecs]
[artifact:mvn] [INFO] Preparing jetty:run
[artifact:mvn] [INFO] [build-helper:timestamp-property {execution: timestamp-property}]
[artifact:mvn] [WARNING] Using platform locale (en_US actually) to format date/time, i.e. build is platform dependent!
[artifact:mvn] [INFO] Setting property 'clientBuildDate' to '2013-08-29 08:40:11'.
[artifact:mvn] [INFO] [keytool:clean {execution: clean}]
[artifact:mvn] [INFO] Keystore file 'C:\Users\bhavani_r\Desktop\DemoSite-3.0.0-GA-eclipse-workspace\eclipse-workspace\DemoSite\admin\target\admin\WEB-INF\blc-example.keystore' deleted successfully.
[artifact:mvn] [INFO] [keytool:genkey {execution: genkey}]
[artifact:mvn] [INFO] [resources:resources {execution: default-resources}]
[artifact:mvn] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[artifact:mvn] [INFO] Copying 10 resources
[artifact:mvn] [INFO] [jrebel:generate {execution: generate-rebel-xml}]
[artifact:mvn] [INFO] [compiler:compile {execution: default-compile}]
[artifact:mvn] [INFO] Nothing to compile - all classes are up to date
[artifact:mvn] [INFO] [resources:testResources {execution: default-testResources}]
[artifact:mvn] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[artifact:mvn] [INFO] skip non existing resourceDirectory C:\Users\bhavani_r\Desktop\DemoSite-3.0.0-GA-eclipse-workspace\eclipse-workspace\DemoSite\admin\src\test\resources
[artifact:mvn] [INFO] [compiler:testCompile {execution: default-testCompile}]
[artifact:mvn] [INFO] No sources to compile
[artifact:mvn] 2013-08-29 14:10:19.012:INFO:oejs.Server:jetty-8.1.5.v20120716
[artifact:mvn] [INFO] [jetty:run {execution: default-cli}]
[artifact:mvn] [INFO] Configuring Jetty for project: admin
[artifact:mvn] [INFO] Webapp source directory = C:\Users\bhavani_r\Desktop\DemoSite-3.0.0-GA-eclipse-workspace\eclipse-workspace\DemoSite\admin\target\admin
[artifact:mvn] [INFO] Reload Mechanic: automatic
[artifact:mvn] [INFO] Classes = C:\Users\bhavani_r\Desktop\DemoSite-3.0.0-GA-eclipse-workspace\eclipse-workspace\DemoSite\admin\target\admin\WEB-INF\classes
[artifact:mvn] [INFO] Context path = /admin
[artifact:mvn] [INFO] Tmp directory = C:\Users\bhavani_r\Desktop\DemoSite-3.0.0-GA-eclipse-workspace\eclipse-workspace\DemoSite\admin\target\tmp
[artifact:mvn] [INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
[artifact:mvn] [INFO] Web overrides = none
[artifact:mvn] [INFO] web.xml file = file:/C:/Users/bhavani_r/Desktop/DemoSite-3.0.0-GA-eclipse-workspace/eclipse-workspace/DemoSite/admin/target/admin/WEB-INF/web.xml
[artifact:mvn] [INFO] Webapp directory = C:\Users\bhavani_r\Desktop\DemoSite-3.0.0-GA-eclipse-workspace\eclipse-workspace\DemoSite\admin\target\admin
[artifact:mvn] 2013-08-29 14:10:26.877:WARN:oejw.WebAppContext:Failed startup of context o.m.j.p.JettyWebAppContext{/admin,file:/C:/Users/bhavani_r/Desktop/DemoSite-3.0.0-GA-eclipse-workspace/eclipse-workspace/DemoSite/admin/target/admin/},file:/C:/Users/bhavani_r/Desktop/DemoSite-3.0.0-GA-eclipse-workspace/eclipse-workspace/DemoSite/admin/target/admin/
[artifact:mvn] java.lang.IllegalStateException: Duplicate fragment name: spring_web for jar:file:/C:/Users/bhavani_r/.m2/repository/org/springframework/spring-web/3.2.2.RELEASE/spring-web-3.2.2.RELEASE.jar!/META-INF/web-fragment.xml and jar:file:/C:/Users/bhavani_r/Desktop/DemoSite-3.0.0-GA-eclipse-workspace/eclipse-workspace/DemoSite/admin/target/admin/WEB-INF/lib/spring-web-3.2.2.RELEASE.jar!/META-INF/web-fragment.xml
[artifact:mvn] at org.eclipse.jetty.webapp.MetaData.addFragment(MetaData.java:248)
[artifact:mvn] at org.eclipse.jetty.webapp.FragmentConfiguration.findWebFragments(FragmentConfiguration.java:79)
[artifact:mvn] at org.eclipse.jetty.webapp.FragmentConfiguration.preConfigure(FragmentConfiguration.java:39)
[artifact:mvn] at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:438)
[artifact:mvn] at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:474)
[artifact:mvn] at org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:256)
[artifact:mvn] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
[artifact:mvn] at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224)
[artifact:mvn] at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:167)
[artifact:mvn] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
[artifact:mvn] at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224)
[artifact:mvn] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
[artifact:mvn] at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:90)
[artifact:mvn] at org.eclipse.jetty.server.Server.doStart(Server.java:272)
[artifact:mvn] at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65)
[artifact:mvn] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
[artifact:mvn] at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:511)
[artifact:mvn] at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:364)
[artifact:mvn] at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:516)
[artifact:mvn] at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
[artifact:mvn] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
[artifact:mvn] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
[artifact:mvn] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
[artifact:mvn] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
[artifact:mvn] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
[artifact:mvn] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
[artifact:mvn] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
[artifact:mvn] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
[artifact:mvn] at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
[artifact:mvn] at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
[artifact:mvn] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[artifact:mvn] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[artifact:mvn] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[artifact:mvn] at java.lang.reflect.Method.invoke(Method.java:601)
[artifact:mvn] at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
[artifact:mvn] at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
[artifact:mvn] at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
[artifact:mvn] at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[artifact:mvn] 2013-08-29 14:10:26.951:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8081
[artifact:mvn] 2013-08-29 14:10:27.269:INFO:oejus.SslContextFactory:Enabled Protocols [SSLv2Hello, SSLv3, TLSv1, TLSv1.1, TLSv1.2] of [SSLv2Hello, SSLv3, TLSv1, TLSv1.1, TLSv1.2]
[artifact:mvn] 2013-08-29 14:10:27.273:INFO:oejs.AbstractConnector:Started SslSelectChannelConnector@0.0.0.0:8444
[artifact:mvn] [INFO] Started Jetty Server


I'm not able to access the admin. Even in admin / pom.xml
<webAppConfig>
<allowDuplicateFragmentNames>true</allowDuplicateFragmentNames>
</webAppConfig>

is available. but still it throws the duplicate fragment error.. any idea on this?

Re: Running BLC Admin (build.xml) throws error

Posted: Mon Oct 07, 2013 9:03 am
by m_hassan_aly
Did you find any solution to this problem ,, I face the same

Re: Running BLC Admin (build.xml) throws error

Posted: Mon Oct 07, 2013 9:39 am
by phillipuniverse
http://stackoverflow.com/questions/5802 ... ven-plugin

Basically, put the <allowDuplicateFragmentNames>true</allowDuplicateFragmentNames> in the Jetty plugin configuration.