This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 222109 - Unable to run an apache wicket (maven) project in glassfish with parameters - parameters got executed
Summary: Unable to run an apache wicket (maven) project in glassfish with parameters -...
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Wicket (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-14 13:07 UTC by karamba84
Modified: 2016-07-07 08:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description karamba84 2012-11-14 13:07:59 UTC
I created an apache wicket application (with maven) and opened it in netbeans. I then installed glassfish and set this application to be run in glassfish. Now i want to pass some parameters to that application like, when i press run, the browser should open:

http://localhost/MyApplication/?param1=a&param2=b...

So i went to project properties - run - and in "Relative URL" i put in:
?token=asdf+&param2=a

When i want to execute this now (debug or run) i get:

cd E:\Code Projekte\Maven\asdf\asdf_UI; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.7.0_09" "\"C:\\Program Files\\NetBeans 7.3 Beta 2\\java\\maven\\bin\\mvn.bat\"" -Dnetbeans.deploy.debugmode=true -Dnetbeans.deploy=true -Dnetbeans.deploy.clientUrlPart=?token=asdf+&param2=a package

Scanning for projects...
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 0.099s
Finished at: Wed Nov 14 13:37:42 CET 2012
Final Memory: 4M/183M
------------------------------------------------------------------------
No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-site, site, post-site, site-deploy, pre-clean, clean, post-clean. -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
Der Befehl "param2" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

which means "the command(!) "param2" is either wrong written or it could not be found".

So i tested it and passed instead of param2 "calc.exe" and ... it opened the calculator.
Comment 1 Martin Balin 2016-07-07 08:56:18 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss