-1

i have pdf generator

<h:outputLink value="printpdf?id=#{assetDetailData.id}" includeViewParams="true" target="_blank" >PDF öffnen</h:outputLink>

EXAMPLE

i am using wkhtmltopdf

localhost:8080/suess/printpdf/?id=3457 (works fine)

on server

148.251.123.83:8080/suess/printpdf/?id=3457 (works fine)

works fine

BUT WITH DOMAIN

www.mydomain.at/printpdf/?id=280 (IT DOES NOT WORK)

Any help is appreciated :)

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
star95
  • 111
  • 3
  • 16

1 Answers1

0

By default, the context root of the web application (also called the context path) is set to the root name (the name without the .war extension) of the Web Application Archive (WAR).

So you have to change the root context. In your case the root context is "www.mydomain.at/suess", but you need "www.mydomain.at". You can change your root context in your application server configurations.
Instructions for JBoss
Here a similar SO question

Community
  • 1
  • 1
haisi
  • 1,035
  • 1
  • 10
  • 30
  • @haisi So you mean I have to remove suess from web.xml file ?? – star95 Sep 09 '14 at 12:27
  • @star95 I don't think so, because the [documentation](http://docs.oracle.com/cd/E13222_01/wls/docs81/webapp/web_xml.html#1043408) specifies it as "The optional display-name element specifies the Web application display name, a short name that can be displayed by GUI tools.". What application server are you using? Just search for the specific instruction on how to change the context root path of said application server. – haisi Sep 09 '14 at 14:28