porscheinformatik / cucumber-report-db

Stores results of BDD tests with Cucumber-JVM in a database and provides reporting capabilities
18 stars 21 forks source link

Application not starting #20

Open maxtar opened 9 years ago

maxtar commented 9 years ago

After last updates I can't start application. When I do "java -jar cucumber-report-web/target/cucumber-report-web.jar", I've got error: "Error: Unable to access jarfile cucumber-report-web/target/cucumber-report-web.jar" P.S.: application was runned when I do: "java -jar cucumber-report-web/target/cucumber-report-web-1.1.0.RC16-SNAPSHOT.jar"

klausbayrhammer commented 9 years ago

With replacing the maven-dependency-plugin with the spring-boot-maven-plugin in ee37e4949d019c9d3d0c7658aa44ea6d2f29d8f7 the name of the created jar-file changed from cucumber-report-web.jar to cucumber-report-web-${version}.jar. A version-independent launch command would be java -jar cucumber-report-web/target/ccucumber-report-web*.jar. I thought about adding a release-changelog (history.md) to track all the changes. And in addition I want to remove the jar profile for building a bootified version of the cucumber-report-db, which may change the name of the created jar file again.

klausbayrhammer commented 9 years ago

changed finalname of bootified-jar to cucumber-report-db-${version}-bootable.jar. You can use java -jar cucumber-report-web/target/cucumber-report-web*-bootable.jar in order to run the application.

maxtar commented 9 years ago

Thanx, Klaus.

maxtar commented 9 years ago

Klaus, doesn't works. ">java -jar cucumber-report-web/target/cucumber-report-web-bootable.jar Error: Unable to access jarfile cucumber-report-web/target/cucumber-report-web-bootable.jar"

klausbayrhammer commented 9 years ago

you are missing a * because the version number is a part of the jar-name Try java -jar cucumber-report-web/target/cucumber-report-web*-bootable.jar.

HTH Klaus

maxtar commented 9 years ago

Klaus. The asterisk was. But copy/paste have removed them. :) Maybe markdown feature?!

maxtar commented 9 years ago

Sorry, Klaus, I didn't understand, is it fixed?

maxtar commented 9 years ago

Still doesn't start.

klausbayrhammer commented 9 years ago

It still doesn't start? Even with the adapted launch string java -jar cucumber-report-web/target/cucumber-report-web*-bootable.jar? Could you share your error message?

maxtar commented 9 years ago

The same: C:\usr\Java\cucumber-report-db-master>java -jar cucumber-report-web/target/cucumber-report-web*-bootable.jar Error: Unable to access jarfile cucumber-report-web/target/cucumber-report-web*-bootable.jar

klausbayrhammer commented 9 years ago

What jar- and war-files are in the target folder of the cucumber-report-web module? There should be four files

cucumber-report-web/target/cucumber-report-web-1.1.0.RC16-SNAPSHOT-bootable.jar
cucumber-report-web/target/cucumber-report-web-1.1.0.RC16-SNAPSHOT-classes.jar
cucumber-report-web/target/cucumber-report-web-1.1.0.RC16-SNAPSHOT.jar
cucumber-report-web/target/cucumber-report-web-1.1.0.RC16-SNAPSHOT.war
maxtar commented 9 years ago

Yeah, all correct:

classes
cucumber-report-web-1.1.0.RC16-SNAPSHOT
cucumber-report-web-1.1.0.RC16-SNAPSHOT-bootable.jar
cucumber-report-web-1.1.0.RC16-SNAPSHOT-classes.jar
cucumber-report-web-1.1.0.RC16-SNAPSHOT.jar
cucumber-report-web-1.1.0.RC16-SNAPSHOT.war
generated-sources
maven-archiver
maven-status
klausbayrhammer commented 9 years ago

But it does work when you start with java -jar cucumber-report-web/target/cucumber-report-web-1.1.0.RC16-SNAPSHOT-bootable.jar?

maxtar commented 9 years ago

Yes, you are right.

klausbayrhammer commented 9 years ago

Hm but it does not start when you try java -jar cucumber-report-web/target/cucumber-report-web-*-bootable.jar? That's strange... What OS are you using?

maxtar commented 9 years ago

I'm trying on Windows 7.

maxtar commented 9 years ago

Hi, Klaus. On UNIX it's OK. Starting with java -jar cucumber-report-web/target/cucumber-report-web-*-bootable.jar So... It's Windows "feature"...

klausbayrhammer commented 9 years ago

But I've tried it on Windows7. That's what puzzles me. Maybe it has something todo with charsets? Or are there multiple files matching the regex cucumber-report-web/target/cucumber-report-web-*-bootable.jar?

maxtar commented 9 years ago

It's confused me. All directory content I pasted above.

klausbayrhammer commented 9 years ago

What's the output when you try dir cucumber-report-web/target/cucumber-report-web*-bootable.jar

klausbayrhammer commented 9 years ago

Please be aware that the final name of the bootable web-application has been changed from cucumber-report-web*-bootable.jar to cucumber-report-web*-bootable.war. Maybe this helps?

maxtar commented 9 years ago

Ok, will try. Will write after check. :)

maxtar commented 9 years ago

Hi. Klaus, Doesn't works.

cucumber-report-db-master\cucumber-report-web\target>java -jar cucumber-report-web*-bootable.war
Error: Unable to access jarfile cucumber-report-web*-bootable.war
klausbayrhammer commented 9 years ago

hum that's tricky.. is it a permission problem? What's the output of ls -la cucumber-report-web/target/cucumber-report-web*-bootable.jar (or Get-Acl .\cucumber-report-web\target\cucumber-report-web*-bootable.jar using power-shell on windows?)

maxtar commented 9 years ago

Why jar?

cucumber-report-db-master>ls -la cucumber-report-web/target/cucumber-report-web*-bootable.jar
ls: cucumber-report-web/target/cucumber-report-web*-bootable.jar: Invalid argument

If war:

cucumber-report-db-master>ls -la cucumber-report-web/target/cucumber-report-web*-bootable.war
-rw-rw-rw-  1 user 0 19652434 2015-08-10 16:39 cucumber-report-web/target/cucumber-report-web-1.1.0.RC22-SNAPSHOT-bootable.war