Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Exception while deploying the app [WebApp] : Invalid URL Pattern: [{0}].

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi to all, i've centos7.5 standalone. having glasfish server 4.1. and netbeans. Wheni trid to deploy mine web application in glassfish server following error occured. :

 
Saloon Keeper
Posts: 7174
166
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Seems like there was a parameter required to replace the "{0}", but it was not supplied or not available. We can't be sure, since we don't know the code.
 
rahul vishwakarma
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
code is :-

-----------------------
ClassFirstApp.java :-

------------------------
index.html :-
 
Saloon Keeper
Posts: 24553
168
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't see anything wrong there. Might be a bug in NetBeans. You might want to restart NetBeans and re-deploy the app to see if it happens again.
 
rahul vishwakarma
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i restarted netbeans 8.2:- then run but this is error :-

 
Ranch Hand
Posts: 63
1
Android Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I always say url-pattern beginning with a slash or a star for wildcard mapping.

Thus, may be the pattern in your case should be as follows:
 
Marshal
Posts: 3718
533
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Moores wrote:Seems like there was a parameter required to replace the "{0}", but it was not supplied or not available. We can't be sure, since we don't know the code.


Seems like the {0} in the message was a Glassfish 4 bug which has been addressed:
    Message "Invalid Url Pattern" contains placeholder, while it obviously must contain the invalid pattern
 
Ron McLeod
Marshal
Posts: 3718
533
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I wouldn't expect this to be an issue, but maybe try removing the new lines in the welcome-file element:
 
rahul vishwakarma
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks a lot Roland Mueller, you solved my problem i just put a <url-pattern>/webappPackage/ClassFirstApp</url-pattern> and deploy and problem solved.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic