I work on a 4 person development team using IntelliJ, but for some reason only one the team members can successfully build a WAR file and deploy. All other members will receive the following error:
Aug 17, 2012 2:14:31 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Aug 17, 2012 2:14:31 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/xxx] startup failed due to previous errors
2012-08-17 14:14:40,171 [http-8080-1] ERROR context.ContextLoader - Context initialization failed
java.lang.NoSuchMethodError: org.springframework.web.context.support.XmlWebApplicationContext.getEnvironment()Lorg/springframework/core/env/ConfigurableEnvironm
ent;
From everything I've researched, this is caused by a version conflict in the Spring Framework, but for the life of me I can't seem to resolve the issue.
Has anyone ever run into this issue? And how can I resolve it?
Modify your catalina.sh/catalina.bat such that you launch java using the -verbose:class flag. It will produce a lot of output, but you should be able to see which JAR file you're loading org.springframework.web.context.support.XmlWebApplicationContext from and chances are it's not the same version that your version of Grails is using. Remove the bad version from your classpath and hopefully you'll be good to go.
Related
I have a SonarQube 5.6 installed since a year now, It's integrated with TFS. Installed with few additional plugins, C#, dependency-check, fxcop, java, Checkmarx, scm-cvs, scm-git, scm-svn and scm-tfvc.
everything was working fine. Today it's started failing build with error
2017-06-26T17:54:22.7387533Z Downloading SonarQube.MSBuild.Runner.Implementation.zip from http://xxxxxxx:9000/static/csharp/SonarQube.MSBuild.Runner.Implementation.zip to E:\agnt\_work\41\.sonarqube\bin\SonarQube.MSBuild.Runner.Implementation.zip
2017-06-26T17:54:22.7397520Z ##[error]Could not find a file on the SonarQube server. Url: http://xxxxxxxxxx:9000/static/csharp/SonarQube.MSBuild.Runner.Implementation.zip
2017-06-26T17:54:22.7407523Z ##[error]Failed to update the SonarQube Scanner for MSBuild binaries. Check the server url, verify that the C# plugin is correctly installed on the SonarQube server and that the SonarQube server has been restarted.
2017-06-26T17:54:22.7417526Z ##[error]Pre-processing failed. Exit code: 1
2017-06-26T17:54:22.8678238Z ##[error]System.Exception: Unexpected exit code received from batch file: 1
2017-06-26T17:54:22.8698250Z ##[error] at Microsoft.TeamFoundation.DistributedTask.Task.Internal.PowerShell.InvokeBatchScriptCmdlet.ProcessRecord()
2017-06-26T17:54:22.8708248Z ##[error] at System.Management.Automation.CommandProcessor.ProcessRecord()
From the error, I can it's something related to C# plugin. I checked that plugin under /extensions/plugins and it's there. I thought it can be something compatibility issue, I tried to upgrade it to latest one 6.0
After installing 6.0 tried again and got the same error.
I also tried with old version of same plugins. tried 5.3, 5.0. After manually copied jar file under /plugins. Tried to restart the sonar server and it didn't started successfully. I got the error as below,
2017.06.26 18:31:11 ERROR web[o.s.s.p.Platform] Fail to stop server - ignored
java.lang.IllegalStateException: Cannot stop. Current container state was: CONSTRUCTED at org.picocontainer.lifecycle.DefaultLifecycleState.stopping(DefaultLifecycleState.java:72) ~[picocontainer-2.15.jar:na] at org.picocontainer.DefaultPicoContainer.stop(DefaultPicoContainer.java:794) ~[picocontainer-2.15.jar:na]
2017.06.26 18:31:11 ERROR web[o.a.c.c.C.[.[.[/]] Exception sending context initialized event to listener instance of class org.sonar.server.platform.PlatformServletContextListener
java.lang.IllegalStateException: Fail to load plugin FxCop [fxcop] at org.sonar.server.plugins.ServerExtensionInstaller.installExtensions(ServerExtensionInstaller.java:74) ~[sonar-server-5.6.jar:na] at org.sonar.server.platform.platformlevel.PlatformLevel4.start(PlatformLevel4.java:691) ~[sonar-server-5.6.jar:na] at org.sonar.server.platform.Platform.start(Platform.java:216) ~[sonar-server-5.6.jar:na]
Caused by: java.lang.IllegalStateException: Unable to register extension org.sonar.api.config.PropertyDefinition at org.sonar.core.platform.ComponentContainer.addExtension(ComponentContainer.java:248) ~[sonar-core-5.6.jar:na] at org.sonar.server.plugins.ServerExtensionInstaller.installExtension(ServerExtensionInstaller.java:111) ~[sonar-server-5.6.jar:na] at org.sonar.server.plugins.ServerExtensionInstaller.installExtensions(ServerExtensionInstaller.java:66) ~[sonar-server-5.6.jar:na]
Caused by: org.picocontainer.PicoCompositionException: Duplicate Keys not allowed. Duplicate for 'org.sonar.api.config.PropertyDefinition-sonar.cs.fxcop.timeoutMinutes'at org.picocontainer.DefaultPicoContainer.addAdapterInternal(DefaultPicoContainer.java:438) ~[picocontainer-2.15.jar:na]
2017.06.26 18:31:11 ERROR web[o.a.c.c.StandardContext] One or more listeners failed to start. Full details will be found in the appropriate container log file 2017.06.26 18:31:11 ERROR web[o.a.c.c.StandardContext] Context [] startup failed due to previous errors
2017.06.26 18:31:11 WARN web[o.a.c.l.WebappClassLoaderBase] The web application [ROOT] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread
2017.06.26 18:31:11 WARN web[o.s.p.ProcessEntryPoint] Fail to start web
java.lang.IllegalStateException: Webapp did not start at org.sonar.server.app.EmbeddedTomcat.isUp(EmbeddedTomcat.java:84) ~[sonar-server-5.6.jar:na]at org.sonar.server.app.WebServer.isUp(WebServer.java:47) [sonar-server-5.6.jar:na]at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:105) ~[sonar-process-5.6.jar:na]at org.sonar.server.app.WebServer.main(WebServer.java:68) [sonar-server5.6.jar:na]
can someone please help to fix this issue?
You need to update the Scanner for MsBuild as well. The old versions are not compatible with SonarC# 6+.
I fixed this issue by removing FxCop plugin. Somehow that plugin stopped working. can be the version what i was using that was not compatible with C# plugin. I installed C# plugin version 5.0 (latest is 6.0)
as mentioned above, if i want to use C# latest version, i need to update sonar scanner for MSBuild.
Good morning,
I created a new project with
Grails 2.3.2
Java JDK 1.7.0_45
When I run the command:
grails run-app
see the following errors:
**| Configuring classpath
nov 09, 2013 1:52:27 PM java.util.prefs.WindowsPreferences <init>
| Running Grails application
*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message transform method call failed at ../../../src/share/instrument/JPLISAgent.c line: 844
Exception in thread "main"
| Error Forked Grails VM exited with error**
Can anyone help me?
thanks
Just tried with exact same setup, as you have.
Comment-out lines inside of grails.project.fork=[-----]
Delete .grails in user's home directory
grails clean
grails run-app
Its worked for newly created app but surely there are some problems in asm libraries.
Just comment-out section grails.project.fork of BuildConfig.groovy
That's it.
The error will run away.
For me help adding in BuildConfig.groovy
build "org.fusesource.jansi:jansi:1.11"
More information on http://jira.grails.org/browse/GRAILS-10756?focusedCommentId=78003&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel
Just remove grails.project.fork then clean-app and run-app.
That's all.
Following are the steps which work for me:-
Delete .grails in user's home directory
Right click on icon IntelliJ IDE and run as administrator
Hope your problem will be solved.
I run an app using embedded container using grails run-app -Dgrails.env=myenv and it works fine. I then do grails war -Dgrails.env=myenv deploy it on a Tomcat 6 server and it doesn't work. I get a bunch of log4J errors that go away once I add log4j jars to Tomcat lib's directory. The lo4j errors now go away. I am left with:
INFO: Deploying web application archive qkr2.war
Sep 7, 2013 11:09:54 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Sep 7, 2013 11:09:54 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/mk2] startup failed due to previous errors
But there are no previous errors. So I haven't a clue what could be wrong.
Or what to do next. Any tips?
Thanks
According to http://grails.org/doc/latest/ref/Command%20Line/war.html, the environment comes BEFORE the "war" part of the command, so that could be it. i.e. the command should read:
grails -Dgrails.env=myenv war
Check the logging to see what environment grails thinks it's starting under. Otherwise, I'd try adding the environment variable at Tomcat startup, rather than building different wars for different environments.
This all presumes that the logging config is correct in this myenv environment. If not, then I can't tell you why it's not starting without more of the logging available.
When you see "SEVERE: Error listenerStart" deploying to Tomcat, look at the log files. In general you'll find that the error is in stacktrace.log or localhost.2013-09-07.log (the date part of the file name may be different of course).
While building the war file (Struts2.0) and deploying it on the local tomcat everything is working file and I can able to access the web page but when I am trying to deploy it on the remote server I am getting the below exception. I checked the DTD tiles veriosn in tiles.xml it looks good. Can you please suggest me the way to solve this error?
Sep 15, 2011 7:34:37 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.apache.struts2.tiles.StrutsTilesListener
java.lang.IllegalStateException: Unable to instantiate container.
at org.apache.tiles.listener.TilesListener.contextInitialized(TilesListener.java:60)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4336)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1206)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1307)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1571)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1580)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1560)
at java.lang.Thread.run(Unknown Source)
Hi
My struts version is 2.0.6 and tiles is 2.0 and I don have any other errors. Differences between locan and remote also I couldnt see – veeru 9 mins ago
Got the answer . Problem solved. The mistake wa in web.xml .
The local server is on windows where as remote server is on unix
so there is a mistake in mentioning the relating path in web.xml ( / not required in unix server)
This may be caused by missing dependencies. Doing a search for this error turns up several occurences of people not including:
commons-beanutils-VERSION.jar
commons-collections-VERSION.jar
commons-digest-VERSION.jar
Make sure you have all the requirements listed here: To use Tiles in your application you need
Here is another example of the same error: Struts2 & Tiles: When apache.org is down my webapp fails to start
The last one is a DTD version mismatch.
As you can see it can be due to several reasons, but since it works on your local PC and not the remote, I would lean towards missing dependencies.
I disabled some plugins to upgrade Jira. The upgrade was not carried out as new version of Jira needs 64 bit hardware. Upon stopping and restarting the instance to resume with original application, I get this message:
The following plugins are required by JIRA, but have not been started:
FishEye Plugin (com.atlassian.jirafisheyeplugin)
catalina.out:
***********************************************************************************************************************
The following plugins are required by JIRA, but have not been started: FishEye Plugin (com.atlassian.jirafisheyeplugin)
***********************************************************************************************************************
2011-08-04 16:08:51,896 main FATAL [atlassian.jira.upgrade.UpgradeLauncher] Skipping, JIRA is locked.
2011-08-04 16:08:51,896 main INFO [atlassian.jira.scheduler.JiraSchedulerLauncher] JIRA Scheduler not started: JIR startup checklist failed.
2011-08-04 16:08:52,219 main FATAL [jira.web.dispatcher.JiraWebworkActionDispatcher]
******************************************
JIRA startup failed, JIRA has been locked.
******************************************
Aug 4, 2011 4:08:52 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Aug 4, 2011 4:08:52 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 62989 ms
Does anyone have a clue as to how to re-enable fisheye plugin manually?
Any help greatly appreciated, thanks to all SO`ers.
This also happens when the update is succesfull and you've deactivates FishEye before. Sad.
There's an article in Atlassian's documentation at http://confluence.atlassian.com/display/JIRA/How+to+Enable+the+FishEye+Plugin+from+the+Plugin+Administration+Screen, but this doesn't work for me (note that the plugin name is written wrong there, too).
Any other hints?