-
1. Re: .jar Files are not downloadable in WildFly 8
wdfink May 23, 2014 12:37 PM (in response to thorstenmueller)Hello Thorsten,
welcome to the forums
I don't understand what you try to achieve.
What you have deployed to the server and why you try to download a jar?
Did you see any server side errors in the logfile?
-
2. Re: .jar Files are not downloadable in WildFly 8
thorstenmueller May 26, 2014 9:30 AM (in response to wdfink)Hello Wolf-Dieter,
thanks for your reply.
I could solve the problem by using a Microsoft IIS for providing the repository files.
This p2 repository is nothing more that a simple file based structure (containing .zip, .gz, .jar) which needs to accessable by the client without interpreting, etc. - Uploading this filestructure to a ftp server would work ether.
Regards
Thorsten Müller
-
3. Re: .jar Files are not downloadable in WildFly 8
ctomc May 26, 2014 12:42 PM (in response to thorstenmueller)I only now saw this thread.
Yeah it is security setting that prevents jar files to be served by default.
you can change that by adding web.xml and allowing it.
or even better if this files are statically on disk so you can serve them via IIS, you can just configure file-handler in undertow subsystem to serve specific paths directly from filesystem bypasing servlet container all together.
example:
under host
<location name="/p2-path" handler="p2-content" />
and under handlers:
<handlers>
<file name="p2-content" path="c:/path/to/p2/repo" directory-listing="true|false"/>
</handlers>
-
4. Re: .jar Files are not downloadable in WildFly 8
thorstenmueller May 27, 2014 3:51 AM (in response to ctomc)Hello Tomaz,
thanks for your feedback. That solved my problem :-).
The next step is to add an additional http socket for my repository, because my wildfly serves already on ports 80 and 443 and our repository has to be served on port 8090 (for compatibility reasons). But i think i will achieve this on my own with some try'n error ;-).
Thanks so far.
Thorsten
-
5. Re: .jar Files are not downloadable in WildFly 8
ctomc May 27, 2014 4:35 AM (in response to thorstenmueller)1 of 1 people found this helpfulThat should be simple enough.
you create another <server> and add new http-listener, add new socket binding and tell newly created http-listener to use it.
something along the lines:
<server name="p2-server" >
<http-listener name="default" socket-binding="http-p2" />
<host name="default-host" >
<location name="/" handler="p2-content" />
</host>
</server>
-
6. Re: .jar Files are not downloadable in WildFly 8
thorstenmueller May 27, 2014 5:19 AM (in response to ctomc)Hello Tomaz,
thanks again - you just made my day :-).