B4J Question Creating WAR files as well as JAR files?

G

Grumpy314

Guest
Hi Erel,
Great product and I am really looking forward to making use of it.
Would it be too much to ask if you could generate WAR files as well
as JAR files?
We would then be able to build Apps for use in TomCat etc. I would
be happy to make a donation to get it started if it could be done.
 
G

Grumpy314

Guest
Thank you I am reading the links now.
Thanks, have been messing around with the HelloWorld Server demo.
Same .jar file on both systems using the same instance of the FireFox web broswer.
Under windows I get these error messages but the app works...

Windows 7 Preofessional.

2014-04-20 15:54:48.164:INFO::main: Logging initialized @102ms
2014-04-20 15:54:48.235:INFO:eek:ejs.Server:main: jetty-9.1.z-SNAPSHOT
2014-04-20 15:54:48.249:WARN:eek:ejh.MimeTypes:main: java.util.MissingResourceException: Can't find bundle for base name org/eclipse/jetty/http/mime, locale en_AU
2014-04-20 15:54:48.249:WARN:eek:ejh.MimeTypes:main: java.util.MissingResourceException: Can't find bundle for base name org/eclipse/jetty/http/encoding, locale en_AU
2014-04-20 15:54:48.264:INFO:eek:ejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@4ac68d3e{/,file:/D:/Program%20Files/Anywhere%20Software/B4J/Projects/ServerHelloWorld/Objects/www/,AVAILABLE}
2014-04-20 15:54:48.267:INFO:eek:ejs.AbstractNCSARequestLog:main: Opened D:\Program Files\Anywhere Software\B4J\Projects\ServerHelloWorld\Objects\logs\b4j-2014_04_20.request.log
2014-04-20 15:54:48.383:INFO:eek:ejs.ServerConnector:main: Started ServerConnector@424c0bc4{HTTP/1.1}{0.0.0.0:8888}
2014-04-20 15:54:48.383:INFO:eek:ejs.Server:main: Started @340ms
Server started
<ul><li>firstname: Tony</li><li>email: tony@ycs.com.au</li><li>sex: Male</li><li>lastname: White</li></ul>

Web Browser returns...

This is a static file, loaded from the www folder.

Examples:

-------------------------------------------------------------------------------------------------

Under Linux I get these errors and the App will not run in a web browser.
Under Linux CentOS 6.5 (updated)

[root@apps tony]# java -jar HelloWorld.jar
2014-04-21 03:53:43.732:INFO::main: Logging initialized @72ms
2014-04-21 03:53:43.869:INFO:eek:ejs.Server:main: jetty-9.1.z-SNAPSHOT
2014-04-21 03:53:43.895:WARN:eek:ejh.MimeTypes:main: java.util.MissingResourceException: Can't find bundle for base name
org/eclipse/jetty/http/mime, locale en_US
2014-04-21 03:53:43.896:WARN:eek:ejh.MimeTypes:main: java.util.MissingResourceException: Can't find bundle for base name
org/eclipse/jetty/http/encoding, locale en_US
2014-04-21 03:53:43.923:INFO:eek:ejsh.ContextHandler:main: Started
o.e.j.s.ServletContextHandler@11bccede{/,file:/home/tony/www,AVAILABLE}
2014-04-21 03:53:43.927:INFO:eek:ejs.AbstractNCSARequestLog:main: Opened /home/tony/logs/b4j-2014_04_20.request.log
2014-04-21 03:53:43.946:INFO:eek:ejs.ServerConnector:main: Started ServerConnector@2cc2c69f{HTTP/1.1}{0.0.0.0:8888}
2014-04-21 03:53:43.947:INFO:eek:ejs.Server:main: Started @324ms
Server started

This is the result in the web browser

HTTP ERROR: 404
Problem accessing /. Reason:

Not Found
Powered by Jetty://
 
Upvote 0
G

Grumpy314

Guest
So they do not warrant investigation, yet they are highlighted in RED text!
Anyway, what do you mean "the correct folder"?
 
Upvote 0
G

Grumpy314

Guest
Erel,
I would still prefer to have WAR files produced rather than embedding a Jetty server in every app we build.
As I already have TomCat servers why on earth would I want Jetty?
Can WAR be produced so we can use our current servers which a Linux based not Windows?

thanks in advance.
 
Upvote 0
Top