Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to compile it with Java7 or Java8 ? #1

Closed
derjohn opened this issue Apr 7, 2016 · 3 comments
Closed

How to compile it with Java7 or Java8 ? #1

derjohn opened this issue Apr 7, 2016 · 3 comments

Comments

@derjohn
Copy link

derjohn commented Apr 7, 2016

It throws an error when I do "ant", snipsnap.org is down ATM .....

rgds,
j

@janni2
Copy link

janni2 commented Aug 16, 2020

Notes from my side.
Since the code itself can be build with Java and Ant, I gave it a try. Indeed Java is very backward compatible here, I managed to create jar files and war files, but then there were runtime issues:
a) via run.bat -> SnipSnapLauncher.java installs war on embedded Jetty, but the Jetty has trouble to find org/apache/xmlrpc/XmlRpcException
b) via standalone Tomcat (8.5), upload war -> ClassNotFoundException: org.apache.jasper.runtime.JspException - which is
actually true with the delivered jasper runtime of the Tomcat vs the compiled javax.servlet.jar

I see two options to bring it to life again (I'm curios, what the software actually does)
a) Docker or VM with very old Java and Tomcat (guessing by year, we live in the Servlet 2.5 world here with JavaEE5 and Tomcat 6)
b) Start a Gradle JSP project, have a look how it works and migrate the Ant script to Gradle to handle (or better say, upgrade dependencies)

@janni2
Copy link

janni2 commented Aug 22, 2020

Got it running: https://github.com/janni2/snipsnap

Still not knowing, which 'killer-features' there are :D

@thinkberg
Copy link
Owner

Very nice. The strange address is probably the code that tries to detect host name and port behind a proxy (

SnipSnap can be set up behind a proxy server. This hides port numbers and \
)

As for the killer-features, its a wiki that is simple to extend from within the wiki. As an admin you can add wiki pages that are executed as code. I probably even forgot what nuggets there were in the code ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants