kieker-monitoring / kieker

Kieker's main repository
Apache License 2.0
70 stars 41 forks source link

[KIEKER-915] WebGUI .sh start script can only be executed from within bin/ #973

Open rju opened 2 weeks ago

rju commented 2 weeks ago

JIRA Issue: KIEKER-915 WebGUI .sh start script can only be executed from within bin/ Original Reporter: Andre van Hoorn


avh@avh-ThinkPad-RSS:0:/tmp/kieker-webgui-1.8-SNAPSHOT_binaries $ bin/Kieker.WebGUI.sh 
Unable to access jarfile ../lib/jetty-runner-8.1.9.v20130131.jar

Should be able to start it from anywhere (not requiring to cd to bin/ before)

Needs to be fixed according to the .sh in Kieker's bin/ dir. For the .bat files, this is probably not needed.

Checklist:

rju commented 1 week ago

author nils-christian -- Sat, 20 Apr 2013 19:41:24 +0200

Replying to KIEKER-915 Done :
> Needs to be fixed according to the .sh in Kieker's bin/ dir. For the .bat files, this is probably not needed.

Nope. Windows doesn't like this either. I'll look into it.

rju commented 1 week ago

author André van Hoorn -- Sat, 20 Apr 2013 19:44:17 +0200

Replying to [nie|comment:1]:
> Replying to KIEKER-915 Done :
> > Needs to be fixed according to the .sh in Kieker's bin/ dir. For the .bat files, this is probably not needed.
>
> Nope. Windows doesn't like this either. I'll look into it.

Sure, if you use the CMD. However, starting it by double-click should work. A fix under Windows probably requires the "para-" file fix again ...

rju commented 1 week ago

author nils-christian -- Sat, 20 Apr 2013 20:02:47 +0200

Hm, I could solve it without the para-fix
- just by using the path to the shell script (%~dp0) and some relativ paths. But in this case jetty doesn't like it, if there is still the "Kieker.WebGUI-1.8-SNAPSHOT" directory from the build in the target directory...

Also there is still the problem that the data- and user directory are created in the working directory (from which the script is being called).

rju commented 1 week ago

author nils-christian -- Tue, 30 Apr 2013 15:41:04 +0200

Current approach (for both the Windows and Unix version of the script): Change the working directory to the position of the script.

rju commented 1 week ago

author nils-christian -- Tue, 30 Apr 2013 20:26:00 +0200

Corrected in changeset:72beb5dd48f58f178038ad6291b06b66adfc72f2/kieker.webgui.

Andrè van Hoorn: Could you please take a look and confirm that this solved the problem for unix?

rju commented 1 week ago

author André van Hoorn -- Thu, 2 May 2013 11:43:01 +0200

In principle, it works. However, there is still a problem if the WebGUI is located in a path including whitespaces:

avhAndrè van Hoorn-ThinkPad-RSS:0:~ $ mv kieker-webgui-1.8-SNAPSHOT_binaries "kieker webgui 1.8 SNAPSHOT binaries"
avhAndrè van Hoorn-ThinkPad-RSS:0:~ $ cd kieker\ webgui\ 1.8\ SNAPSHOT\ binaries/
avhAndrè van Hoorn-ThinkPad-RSS:0:~/kieker webgui 1.8 SNAPSHOT binaries $ bin/Kieker.WebGUI.sh 
bin/Kieker.WebGUI.sh: line 7: cd: /home/avh/kieker: No such file or directory
Unable to access jarfile ../lib/jetty-runner-8.1.9.v20130131.jar

The shell script is easy to fix (simply add quotes around the path variable):

avhAndrè van Hoorn-ThinkPad-RSS:130:~/kieker webgui 1.8 SNAPSHOT binaries $ diff bin/Kieker.WebGUI.sh bin/Kieker.WebGUI.sh~
7c7
< cd "${BINDIR}"
---
> cd ${BINDIR}
rju commented 1 week ago

author nils-christian -- Thu, 2 May 2013 20:14:30 +0200

Added in changeset:076c9df7aafc5d0afeb094a67e14f1afcf71e125/kieker.webgui. Andrè van Hoorn: Can you confirm that it works now?

rju commented 1 week ago

author André van Hoorn -- Fri, 3 May 2013 08:37:21 +0200

Replying to [nie|comment:7]:
> Added in changeset:076c9df7aafc5d0afeb094a67e14f1afcf71e125/kieker.webgui. Andrè van Hoorn: Can you confirm that it works now?

Looks good:

avhAndrè van Hoorn-ThinkPad-RSS:0:/tmp $ wget http://kieker.uni-kiel.de/jenkins/job/kieker-webgui-nightly-release/lastSuccessfulBuild/artifact/Kieker.WebGUI/target/kieker-webgui-1.8-SNAPSHOT_binaries.tar.gz
--2013-05-03 08:34:08--  http://kieker.uni-kiel.de/jenkins/job/kieker-webgui-nightly-release/lastSuccessfulBuild/artifact/Kieker.WebGUI/target/kieker-webgui-1.8-SNAPSHOT_binaries.tar.gz
Resolving kieker.uni-kiel.de (kieker.uni-kiel.de)... 134.245.253.142
Connecting to kieker.uni-kiel.de (kieker.uni-kiel.de)|134.245.253.142|:80... connected.
HTTP request sent, awaiting response... 200 OK                                                                                                                                     
Length: 34885036 (33M) [application/x-gzip]                                                                                                                                        
Saving to: `kieker-webgui-1.8-SNAPSHOT_binaries.tar.gz'                                                                                                                            

100%[=========================================================================================================================================>] 34,885,036  53.2M/s   in 0.6s     

2013-05-03 08:34:09 (53.2 MB/s) - `kieker-webgui-1.8-SNAPSHOT_binaries.tar.gz' saved [34885036/34885036]

avhAndrè van Hoorn-ThinkPad-RSS:0:/tmp $ tar -xzf kieker-webgui-1.8-SNAPSHOT_binaries.tar.gz 

avhAndrè van Hoorn-ThinkPad-RSS:0:/tmp $ mv "kieker-webgui-1.8-SNAPSHOT_binaries" "kieker webgui 1.8 SNAPSHOT binaries"

avhAndrè van Hoorn-ThinkPad-RSS:0:/tmp $ cd kieker\ webgui\ 1.8\ SNAPSHOT\ binaries/

avhAndrè van Hoorn-ThinkPad-RSS:0:/tmp/kieker webgui 1.8 SNAPSHOT binaries $ bin/Kieker.WebGUI.sh 
2013-05-03 08:34:56.353:INFO:omjr.Runner:Runner
2013-05-03 08:34:56.354:WARN:omjr.Runner:No tx manager found
2013-05-03 08:34:56.393:INFO:omjr.Runner:Deploying file:/tmp/kieker%20webgui%201.8%20SNAPSHOT%20binaries/target/Kieker.WebGUI-1.8-SNAPSHOT.war  /Kieker.WebGUI
2013-05-03 08:34:56.409:INFO:oejs.Server:jetty-8.y.z-SNAPSHOT
2013-05-03 08:34:56.446:INFO:oejw.WebInfConfiguration:Extract jar:file:/tmp/kieker%20webgui%201.8%20SNAPSHOT%20binaries/target/Kieker.WebGUI-1.8-SNAPSHOT.war!/ to /tmp/jetty-0.0.0.0-8080-Kieker.WebGUI-1.8-SNAPSHOT.war-_Kieker.WebGUI-any-/webapp
2013-05-03 08:34:57.812:INFO:oejpw.PlusConfiguration:No Transaction manager found - if your webapp requires one, please configure one.
May 3, 2013 8:35:02 AM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra 2.1.7 (SNAPSHOT 20120206) for context '/Kieker.WebGUI'
May 3, 2013 8:35:02 AM com.sun.faces.spi.InjectionProviderFactory createInstance
INFO: JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.
May 3, 2013 8:35:03 AM org.primefaces.webapp.PostConstructApplicationEventListener processEvent
INFO: Running on PrimeFaces 3.5
May 3, 2013 8:35:03 AM com.sun.faces.config.ConfigureListener$WebConfigResourceMonitor$Monitor <init>
INFO: Monitoring file:/tmp/jetty-0.0.0.0-8080-Kieker.WebGUI-1.8-SNAPSHOT.war-_Kieker.WebGUI-any-/webapp/WEB-INF/faces-config.xml for modifications
May 3, 2013 8:35:03 AM com.sun.faces.lifecycle.ELResolverInitPhaseListener populateFacesELResolverForJsp
INFO: JSF1027: [null] The ELResolvers for JSF were not registered with the JSP container.
2013-05-03 08:35:03.980:INFO:/.WebGUI:No Spring WebApplicationInitializer types detected on classpath
2013-05-03 08:35:03.983:INFO:/.WebGUI:Initializing Spring root WebApplicationContext
2013-05-03 08:35:10.857:INFO:oejs.AbstractConnector:Started SelectChannelConnector0.0.0.0:8080
May 3, 2013 8:35:17 AM javax.faces.component.UIViewRoot$ViewMap put
WARNING: Setting non-serializable attribute value into ViewMap: (key: currentProjectOverviewBean, value class: kieker.webgui.web.beans.view.CurrentProjectOverviewBean)
May 3, 2013 8:35:31 AM javax.faces.component.UIViewRoot$ViewMap put
WARNING: Setting non-serializable attribute value into ViewMap: (key: currentAnalysisEditorGraphBean, value class: kieker.webgui.web.beans.view.CurrentAnalysisEditorGraphBean)
May 3, 2013 8:35:31 AM javax.faces.component.UIViewRoot$ViewMap put
WARNING: Setting non-serializable attribute value into ViewMap: (key: currentAnalysisEditorBean, value class: kieker.webgui.web.beans.view.CurrentAnalysisEditorBean)
May 3, 2013 8:35:36 AM javax.faces.component.UIViewRoot$ViewMap put
WARNING: Setting non-serializable attribute value into ViewMap: (key: currentControllerBean, value class: kieker.webgui.web.beans.view.CurrentControllerBean)
[Valid] 1343837591866228299: mySimpleKiekerExample.bookstoreTracing.Catalog, getBook(..), 1386243
[Invalid] 1343837591869371962: mySimpleKiekerExample.bookstoreTracing.Catalog, getBook(..), 2830431
[Valid] 1343837591870666221: mySimpleKiekerExample.bookstoreTracing.Catalog, getBook(..), 1218889
[Invalid] 1343837591872661097: mySimpleKiekerExample.bookstoreTracing.Catalog, getBook(..), 1958812
[Invalid] 1343837591874666509: mySimpleKiekerExample.bookstoreTracing.Catalog, getBook(..), 1936931
[Invalid] 1343837591876674758: mySimpleKiekerExample.bookstoreTracing.Catalog, getBook(..), 1971373
[Invalid] 1343837591878649778: mySimpleKiekerExample.bookstoreTracing.Catalog, getBook(..), 1901271
[Invalid] 1343837591880656811: mySimpleKiekerExample.bookstoreTracing.Catalog, getBook(..), 1981505
[Invalid] 1343837591882672354: mySimpleKiekerExample.bookstoreTracing.Catalog, getBook(..), 1956786
[Invalid] 1343837591885871936: mySimpleKiekerExample.bookstoreTracing.Catalog, getBook(..), 3152983
^C2013-05-03 08:35:53.532:INFO:/.WebGUI:Closing Spring root WebApplicationContext
2013-05-03 08:35:53.558:INFO:oejsl.ELContextCleaner:Clazz: class kieker.webgui.web.beans.request.StringBean loaded by WebAppClassLoader=20567914337a982589
2013-05-03 08:35:53.558:INFO:oejsl.ELContextCleaner:removed
2013-05-03 08:35:53.558:INFO:oejsl.ELContextCleaner:Clazz: class com.ocpsoft.pretty.faces.servlet.PrettyFacesWrappedRequest loaded by WebAppClassLoader=20567914337a982589
2013-05-03 08:35:53.558:INFO:oejsl.ELContextCleaner:removed
2013-05-03 08:35:53.558:INFO:oejsl.ELContextCleaner:Clazz: class kieker.webgui.web.beans.view.CurrentProjectOverviewBean loaded by WebAppClassLoader=20567914337a982589
2013-05-03 08:35:53.558:INFO:oejsl.ELContextCleaner:removed
2013-05-03 08:35:53.558:INFO:oejsl.ELContextCleaner:Clazz: class kieker.webgui.web.beans.view.CurrentAnalysisEditorBean loaded by WebAppClassLoader=20567914337a982589
2013-05-03 08:35:53.558:INFO:oejsl.ELContextCleaner:removed
2013-05-03 08:35:53.558:INFO:oejsl.ELContextCleaner:Clazz: class com.sun.faces.el.ELContextImpl loaded by WebAppClassLoader=20567914337a982589
2013-05-03 08:35:53.558:INFO:oejsl.ELContextCleaner:removed
2013-05-03 08:35:53.558:INFO:oejsl.ELContextCleaner:Clazz: class kieker.webgui.web.beans.application.ThemeSwitcherBean loaded by WebAppClassLoader=20567914337a982589
2013-05-03 08:35:53.558:INFO:oejsl.ELContextCleaner:removed
2013-05-03 08:35:53.558:INFO:oejsl.ELContextCleaner:Clazz: class kieker.webgui.web.beans.view.CurrentAnalysisEditorGraphBean loaded by WebAppClassLoader=20567914337a982589
2013-05-03 08:35:53.558:INFO:oejsl.ELContextCleaner:removed
2013-05-03 08:35:53.558:INFO:oejsl.ELContextCleaner:Clazz: class com.sun.faces.context.FacesContextImpl loaded by WebAppClassLoader=20567914337a982589
2013-05-03 08:35:53.558:INFO:oejsl.ELContextCleaner:removed
2013-05-03 08:35:53.558:INFO:oejsl.ELContextCleaner:Clazz: class kieker.analysis.model.analysisMetaModel.impl.MOutputPort loaded by WebAppClassLoader=20567914337a982589
2013-05-03 08:35:53.559:INFO:oejsl.ELContextCleaner:removed
2013-05-03 08:35:53.559:INFO:oejsl.ELContextCleaner:Clazz: class kieker.webgui.domain.pluginDecorators.RepositoryDecorator loaded by WebAppClassLoader=20567914337a982589
2013-05-03 08:35:53.559:INFO:oejsl.ELContextCleaner:removed
2013-05-03 08:35:53.559:INFO:oejsl.ELContextCleaner:Clazz: class kieker.analysis.model.analysisMetaModel.impl.MProperty loaded by WebAppClassLoader=20567914337a982589
2013-05-03 08:35:53.559:INFO:oejsl.ELContextCleaner:removed
2013-05-03 08:35:53.559:INFO:oejsl.ELContextCleaner:Clazz: class kieker.webgui.domain.pluginDecorators.ReaderDecorator loaded by WebAppClassLoader=20567914337a982589
2013-05-03 08:35:53.559:INFO:oejsl.ELContextCleaner:removed
2013-05-03 08:35:53.559:INFO:oejsl.ELContextCleaner:Clazz: class kieker.analysis.model.analysisMetaModel.impl.MInputPort loaded by WebAppClassLoader=20567914337a982589
2013-05-03 08:35:53.559:INFO:oejsl.ELContextCleaner:removed
2013-05-03 08:35:53.559:INFO:oejsl.ELContextCleaner:Clazz: class kieker.webgui.domain.pluginDecorators.FilterDecorator loaded by WebAppClassLoader=20567914337a982589
2013-05-03 08:35:53.559:INFO:oejsl.ELContextCleaner:removed
2013-05-03 08:35:53.559:INFO:oejsl.ELContextCleaner:Clazz: class com.sun.faces.facelets.tag.IterationStatus loaded by WebAppClassLoader=20567914337a982589
2013-05-03 08:35:53.559:INFO:oejsl.ELContextCleaner:removed
2013-05-03 08:35:53.559:INFO:oejsl.ELContextCleaner:Clazz: class kieker.webgui.domain.ComponentListContainer loaded by WebAppClassLoader=20567914337a982589
2013-05-03 08:35:53.559:INFO:oejsl.ELContextCleaner:removed
2013-05-03 08:35:53.559:INFO:oejsl.ELContextCleaner:Clazz: class kieker.webgui.web.beans.session.UserBean loaded by WebAppClassLoader=20567914337a982589
2013-05-03 08:35:53.559:INFO:oejsl.ELContextCleaner:removed
2013-05-03 08:35:53.559:INFO:oejsl.ELContextCleaner:Clazz: class kieker.webgui.web.beans.view.CurrentControllerBean loaded by WebAppClassLoader=20567914337a982589
2013-05-03 08:35:53.559:INFO:oejsl.ELContextCleaner:removed
2013-05-03 08:35:53.559:INFO:oejsl.ELContextCleaner:javax.el.BeanELResolver purged
2013-05-03 08:35:53.561:INFO:oejsh.ContextHandler:stopped o.e.j.w.WebAppContext{/Kieker.WebGUI,[file:/tmp/jetty-0.0.0.0-8080-Kieker.WebGUI-1.8-SNAPSHOT.war-_Kieker.WebGUI-any-/webapp/, jar:file:/tmp/jetty-0.0.0.0-8080-Kieker.WebGUI-1.8-SNAPSHOT.war-_Kieker.WebGUI-any-/webapp/WEB-INF/lib/primefaces-3.5.jar!/META-INF/resources/, jar:file:/tmp/jetty-0.0.0.0-8080-Kieker.WebGUI-1.8-SNAPSHOT.war-_Kieker.WebGUI-any-/webapp/WEB-INF/lib/jsf-impl-2.1.7.jar!/META-INF/resources/, jar:file:/tmp/jetty-0.0.0.0-8080-Kieker.WebGUI-1.8-SNAPSHOT.war-_Kieker.WebGUI-any-/webapp/WEB-INF/lib/all-themes-1.0.9.jar!/META-INF/resources/]},file:/tmp/kieker%20webgui%201.8%20SNAPSHOT%20binaries/target/Kieker.WebGUI-1.8-SNAPSHOT.war
2013-05-03 08:35:53.625:INFO:oejut.ShutdownThread:shutdown already commenced
avhAndrè van Hoorn-ThinkPad-RSS:130:/tmp/kieker webgui 1.8 SNAPSHOT binaries $