內容 |
|
Is this the proper SourceForge link to the front end default template?
https://sourceforge.net/p/jforum2/code/HEAD/tree/trunk/src/main/resources/templates/default/
There seem to be multiple places where one can find a "default" template, as well as multiple places where which are storing JS. For example, another location for a default template is here:
https://sourceforge.net/p/jforum2/code/HEAD/tree/branches/v2.3.6_csrf/src/main/resources/templates/default/
The discussion continues at JGO as to whether to use JForum or Discourse. A key issue is the front-end and how dynamic it is, how well it handles mobile, how easy it is to modify. A number of people think the default look of JForum is dated (they prefer what they see on Discourse or Flarum), so it would be helpful for the JForum advocates to be able to identify the process of editing the front end. The first step is knowing which code is being use! The first link has files that are more recent, but I may also have overlooked another location.
|
|
|
Would it be possible to see a list of the *.ini files in start.d or a list of the modules enabled in start.ini required by JForum for running on Jetty?
I've been following the Jetty documentation for running as a Unix service (am implementing on Linux). Their tutorial example results in three modules being added (console-capture, http, deploy) and diagnostics alerted me to add "--module=jsp" to the mix. I'm wondering if there are others that you are using when you ran tests to check on questions from my previous posts.
|
|
|
Thanks! I hadn't refreshed my browser and missed your first reply.
I tested JForum-2.6.2 and Hsqldb works great!
As an update: we are now having troubles now with getting Jetty to run as a service. Java is unable to write to the "/logs" directory, is the main error message. When manually starting, the logging works perfectly well. I'm guessing there's some file with the wrong address, as the permissions on the /logs directory do allow our limited "jetty" user to write.
|
|
|
My partner located this Hsqldb bug report. Perhaps it is helpful?
https://sourceforge.net/p/hsqldb/bugs/1100/
His logic is this:
if JForum2 uses FETCH FIRST 0 ROWS, that's JForum2's bug
otherwise if JForum2 is specifying LIMIT 0, that's valid SQL, and it's HSQLDB's bug
|
|
|
I will pass the recommendation on in regards to database choice!
|
|
|
We decided to give HSQLDB a try.
The initial setup went smoothly. But when clicking on the "Test Forum" link in the "Category Test", the following error message appeared.
An error has occurred.
For detailed error information, please see the HTML source code, and contact the forum Administrator.
org.hsqldb.HsqlException: data exception: invalid row count in fetch first clause
Any thoughts on how to investigate further?
I did a search in templates/default for "fetch" and only found a reference to mail in admin_welcome.htm.
The button itself makes use of a FreeMarker tag "href:{$ForumLink}"
I haven't tried to track down the related Java code.
There are no errors or messages in the command shell. The last message was "Started @11583ms"
This error occurred both on the server and when I reinstalled on my laptop for a local test.
The configuration file I used for my local:
Step 2 - Verify Configuration
1) General Configuration
Default board language: en_US
Database Type: hsqldb
2) Database Configuration
Database Server Hostname: localhost
Database name: jforum
Database Username: root
Database Encoding: utf-8
Use Connection Pool: yes
3) Board Configuration
Forum Link: http://localhost:8080/jforum-2.6.1/
Website Link: http://localhost:8080
Administrator Username: Admin
|
|
|
I'm not in my area of expertise, and the installation is going slowly as I have to work very carefully to fill in the gaps in my knowledge.
On my laptop test install, I was able to find and do some editing of /default to customize a couple aspects of JForum2. Again, not that strong with HTML/CSS/JS, so having to read unfamiliar code and get oriented has been slow. I was wondering, though: is there a place where we specify the subdirectory for the html? Or do we just make use of /templates/default? It seems like there would be a place to specify a file folder name other than "default" but I am not seeing it.
For the new server (which will eventually be the live host), I've managed to install Java 12 and PostgreSQL 11 (both available via apt-get) and just set up the required database for JForum2. Next up, installing Jetty and JForum2 (which I assume is a matter of FTP-ing the code and unpacking) will not be too difficult to figure out. Looks like WinSCP will handle the file transfer. Just have to identify the commands for file-folder creation and for unpacking the .war/.tar or whatever.
|
|
|
That both drivers are fine was my assumption as well. The 5.1... driver worked from the test program I wrote in my Java IDE.
Instead of persisting in trying to solve this problem, I installed PostgreSQL 11. I was able to get a working forum.
It occurs to me, the problem could have been something really simple, like having made a too-clever-by-half password for my root user.
It included chars "*" and ")" as well as numbers and caps. But I'm not ready to reinstall MySQL just to test this theory!
|
|
|
Additional testing.
I am able to access the MySQL database in Java using the following:
Class.forName("com.mysql.jdbc.Driver");
String url = "jdbc:mysql://localhost:3306/jgo";
String user = "root";
String password = "password";
Connection con = DriverManager.getConnection(url,
user, password);
Statement statement = con.createStatement();
ResultSet rs = statement.executeQuery("SHOW DATABASES;");
while (rs.next())
{
System.out.println(rs.getString(1));
}
To me, this implies that the following should work (but doesn't):
Hostname: localhost
User: root
Password: password
However, I DID have to first install a driver (external lib jar, from MySQL "Connector/J", because when I first tried to execute this code,
I got a ClassNotFoundException for "com.mysql.jdbc.Driver".
Is the error possibly due to not having this driver available?
JForum's WEB-INF/lib does have an older driver, but this older driver (5.1..., not 8.0...) also works in my Java code.
So that doesn't seem to be the issue, either.
Again, thanks for any assistance!
|
|
|
When entering MySQL via user "philfrei", the grants are as follows:
mysql> SHOW GRANTS;
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Grants for philfrei@% |
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, SHUTDOWN, PROCESS, FILE, REFERENCES, INDEX, ALTER, SHOW DATABASES, SUPER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER, CREATE TABLESPACE ON *.* TO `philfrei`@`%` WITH GRANT OPTION |
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.01 sec)
When entering as root:
c:\>mysql -u root -p password
mysql> SHOW GRANTS;
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Grants for root@localhost |
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, SHUTDOWN, PROCESS, FILE, REFERENCES, INDEX, ALTER, SHOW DATABASES, SUPER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER, CREATE TABLESPACE, CREATE ROLE, DROP ROLE ON *.* TO `root`@`localhost` WITH GRANT OPTION |
| GRANT APPLICATION_PASSWORD_ADMIN,BACKUP_ADMIN,BINLOG_ADMIN,BINLOG_ENCRYPTION_ADMIN,CONNECTION_ADMIN,ENCRYPTION_KEY_ADMIN,GROUP_REPLICATION_ADMIN,PERSIST_RO_VARIABLES_ADMIN,REPLICATION_SLAVE_ADMIN,RESOURCE_GROUP_ADMIN,RESOURCE_GROUP_USER,ROLE_ADMIN,SERVICE_CONNECTION_ADMIN,SESSION_VARIABLES_ADMIN,SET_USER_ID,SYSTEM_USER,SYSTEM_VARIABLES_ADMIN,TABLE_ENCRYPTION_ADMIN,XA_RECOVER_ADMIN ON *.* TO `root`@`localhost` WITH GRANT OPTION |
| GRANT PROXY ON ''@'' TO 'root'@'localhost' WITH GRANT OPTION |
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
3 rows in set (0.13 sec)
I tried the following, all giving the same error:
Database Server Hostname Username Password
------------------------ ----------- -----------
localhost root password
localhost root (no password)
root@localhost root password
root@localhost root (no password)
localhost root@localhost password
localhost root@localhost (no password)
root@localhost root@localhost password
root@localhost root@localhost (no password)
I vaguely recall MySQL being finicky...
Is there something else that could cause this, like using UTF-8 when it is not appropriate? (How do I find out if I am encoding in UTF-8 or not?)
I checked the command prompt and there are no Java errors being displayed.
I'm wondering, is there code for logging into MySQL in JForum that I could inspect and isolate and test? I'm using Eclipse. Maybe I could write a simple GUI to attempt logging in, and see if that is successful or if I can generate more distinct error messages.
|
|
|
I'm having trouble connecting to MySQL. My goal is to make a local test version on my laptop (Windows 10, OpenJDK 11, MySQL 8) before running a more advanced test on a live website.
My login process (Windows 10, from CMD):
c:\>mysql -u philfrei -p password
From here a SHOW DATABASES; command demonstrates that "jgo" exists.
Here is the info from the JForum confirmation page.
1) General Configuration
Default board language: en_US
Database Type: mysql
2) Database Configuration
Database Server Hostname: localhost:3306
Database name: jgo
Database Username: philfrei
Database Password: password
Database Encoding: utf-8
Use Connection Pool: no
3) Board Configuration
Forum Link: http://localhost:8080/jforum-2.6.0-jetty/
Website Link: http://localhost:8080
Administrator Username: Admin
Administrator Password: admin
Here is the error message:
Error while trying to configure the database. Please check if parameters like username, password and host are correct and try again.
Error raised:
net.jforum.exceptions.DatabaseException: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
Any suggestions on how to troubleshoot this?
Thanks!
|
|
|
Thanks! The new file runs without the missing file folder error.
As for the "JSP not found" error, I have a solution.
The line "--module=jsp" appears in a file named "start.ini" at the JETTY_HOME location. But I think that file is NOT being referenced. Instead, .ini parameters are taken from a directory named "start.d". When I added a file "jsp.ini" with that line as contents (copied from \demo-base\start.d\jsp.ini), the JSP not found error went away.
The configuration page now comes up as expected.
|
|
|
I am using Windows 10, with Java 11 (OpenJDK) and MySQL 8.0.
I installed Jetty (9.4.19.v20190610) a couple days ago. AFAIK the installation went smoothly. I am able to run their examples. I was able to configure a "base" directory for .war files, and to drop an example .war file in, and the browser is able to find and run it.
The installation instructions for JForum say the following:
"It is assumed that you have some knowledge on how to install/configure a Java servlet container (or already have one up and running), and the database is properly configured. "
My inexperience with this makes me wonder if there is something I've missed. For example, the MySQL program I installed works fine. But is there some aspect that has to be specifically configured to work with JForum prior to installation?
There is another instruction that gives me pause. After unpacking the .war, we have this:
"The next step you should do is register the JForum application within your Servlet Container, like Tomcat."
I do not see any mention in Jetty about a registration process.
Since I am doing this on my own PC as the owner, and not as part of a network, I am assuming all the required directories will have full write permissions.
When starting Jetty, the following is generated.
C:\Users\Genie\jetty\base>java -jar %JETTY_HOME%/start.jar
2019-07-23 16:07:21.155:INFO::main: Logging initialized @2562ms to org.eclipse.jetty.util.log.StdErrLog
2019-07-23 16:07:21.403:WARN:oejx.XmlConfiguration:main: Deprecated method public void org.eclipse.jetty.server.HttpConfiguration.setBlockingTimeout(long) in file:///C:/Users/Genie/jetty/jetty-distribution-9.4.19.v20190610/etc/jetty.xml
2019-07-23 16:07:21.544:INFO:oejs.Server:main: jetty-9.4.19.v20190610; built: 2019-06-10T16:30:51.723Z; git: afcf563148970e98786327af5e07c261fda175d3; jvm 11.0.1+13
2019-07-23 16:07:21.569:INFO:oejdp.ScanningAppProvider:main: Deployment monitor [file:///C:/Users/Genie/jetty/base/webapps/] at interval 1
2019-07-23 16:07:24.378:INFO:oejw.StandardDescriptorProcessor:main: NO JSP Support for /jforum-2.6.0, did not find org.eclipse.jetty.jsp.JettyJspServlet
2019-07-23 16:07:24.468:INFO:oejs.session:main: DefaultSessionIdManager workerName=node0
2019-07-23 16:07:24.468:INFO:oejs.session:main: No SessionScavenger set, using defaults
2019-07-23 16:07:24.471:INFO:oejs.session:main: node0 Scavenging every 660000ms
JForum: problems initializing the logger: template not found: "C:\Users\Genie\jetty\base\webapps\WEB-INF\log4j_template.xml"
java.lang.Exception: template not found: "C:\Users\Genie\jetty\base\webapps\WEB-INF\log4j_template.xml"
at net.jforum.util.log.LoggerHelper.checkTemplate(LoggerHelper.java:161)
at net.jforum.util.log.LoggerHelper.provideJForumLogConfig(LoggerHelper.java:119)
at net.jforum.util.log.LoggerHelper.checkLoggerInitialization(LoggerHelper.java:94)
at net.jforum.ContextListener.contextInitialized(ContextListener.java:76)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:959)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:553)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:924)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:365)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1497)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1459)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:854)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:278)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:46)
at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:192)
at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:510)
at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:153)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:172)
at org.eclipse.jetty.deploy.providers.WebAppProvider.fileAdded(WebAppProvider.java:430)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:65)
at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:610)
at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:529)
at org.eclipse.jetty.util.Scanner.scan(Scanner.java:392)
at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:313)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:145)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:598)
at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:240)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:167)
at org.eclipse.jetty.server.Server.start(Server.java:418)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:119)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
at org.eclipse.jetty.server.Server.doStart(Server.java:382)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.xml.XmlConfiguration.lambda$main$0(XmlConfiguration.java:1797)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1746)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:220)
at org.eclipse.jetty.start.Main.start(Main.java:490)
at org.eclipse.jetty.start.Main.main(Main.java:77)
log4j:WARN No appenders could be found for logger (net.jforum.util.preferences.SystemGlobals).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
2019-07-23 16:07:24.560:WARN:oejw.WebAppContext:main: Failed startup of context o.e.j.w.WebAppContext@53045c6c{JForum - Powering Communities,/jforum-2.6.0,file:///C:/Users/Genie/jetty/base/webapps/jforum-2.6.0/,UNAVAILABLE}{C:\Users\Genie\jetty\base\webapps\jforum-2.6.0.war}
net.jforum.exceptions.ForumException: java.io.FileNotFoundException: C:\Users\Genie\jetty\base\webapps\WEB-INF\config\SystemGlobals.properties (The system cannot find the path specified)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
at net.jforum.util.preferences.SystemGlobals.loadProps(SystemGlobals.java:448)
at net.jforum.util.preferences.SystemGlobals.loadDefaults(SystemGlobals.java:194)
at net.jforum.util.preferences.SystemGlobals.buildSystem(SystemGlobals.java:131)
at net.jforum.util.preferences.SystemGlobals.initGlobals(SystemGlobals.java:107)
at net.jforum.ConfigLoader.startSystemglobals(ConfigLoader.java:92)
at net.jforum.ContextListener.contextInitialized(ContextListener.java:78)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:959)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:553)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:924)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:365)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1497)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1459)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:854)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:278)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:46)
at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:192)
at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:510)
at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:153)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:172)
at org.eclipse.jetty.deploy.providers.WebAppProvider.fileAdded(WebAppProvider.java:430)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:65)
at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:610)
at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:529)
at org.eclipse.jetty.util.Scanner.scan(Scanner.java:392)
at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:313)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:145)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:598)
at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:240)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:167)
at org.eclipse.jetty.server.Server.start(Server.java:418)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:119)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
at org.eclipse.jetty.server.Server.doStart(Server.java:382)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.xml.XmlConfiguration.lambda$main$0(XmlConfiguration.java:1797)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1746)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:220)
at org.eclipse.jetty.start.Main.start(Main.java:490)
at org.eclipse.jetty.start.Main.main(Main.java:77)
Caused by:
java.io.FileNotFoundException: C:\Users\Genie\jetty\base\webapps\WEB-INF\config\SystemGlobals.properties (The system cannot find the path specified)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
at net.jforum.util.preferences.SystemGlobals.loadProps(SystemGlobals.java:448)
at net.jforum.util.preferences.SystemGlobals.loadDefaults(SystemGlobals.java:194)
at net.jforum.util.preferences.SystemGlobals.buildSystem(SystemGlobals.java:131)
at net.jforum.util.preferences.SystemGlobals.initGlobals(SystemGlobals.java:107)
at net.jforum.ConfigLoader.startSystemglobals(ConfigLoader.java:92)
at net.jforum.ContextListener.contextInitialized(ContextListener.java:78)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:959)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:553)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:924)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:365)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1497)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1459)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:854)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:278)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:46)
at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:192)
at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:510)
at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:153)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:172)
at org.eclipse.jetty.deploy.providers.WebAppProvider.fileAdded(WebAppProvider.java:430)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:65)
at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:610)
at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:529)
at org.eclipse.jetty.util.Scanner.scan(Scanner.java:392)
at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:313)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:145)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:598)
at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:240)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:167)
at org.eclipse.jetty.server.Server.start(Server.java:418)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:119)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
at org.eclipse.jetty.server.Server.doStart(Server.java:382)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.xml.XmlConfiguration.lambda$main$0(XmlConfiguration.java:1797)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1746)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:220)
at org.eclipse.jetty.start.Main.start(Main.java:490)
at org.eclipse.jetty.start.Main.main(Main.java:77)
2019-07-23 16:07:28.094:WARN::main: async-rest webapp is deployed. DO NOT USE IN PRODUCTION!
2019-07-23 16:07:28.101:INFO:oejw.StandardDescriptorProcessor:main: NO JSP Support for /async-rest, did not find org.eclipse.jetty.jsp.JettyJspServlet
2019-07-23 16:07:28.130:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@41709512{Async REST Webservice Example,/async-rest,[file:///C:/Users/Genie/AppData/Local/Temp/jetty-0.0.0.0-8080-async-rest.war-_async-rest-any-11406813050755376179.dir/webapp/, jar:file:///C:/Users/Genie/AppData/Local/Temp/jetty-0.0.0.0-8080-async-rest.war-_async-rest-any-11406813050755376179.dir/webapp/WEB-INF/lib/example-async-rest-jar-9.4.19.v20190610.jar!/META-INF/resources],AVAILABLE}{C:\Users\Genie\jetty\base\webapps\async-rest.war}
2019-07-23 16:07:31.184:INFO:oejs.AbstractConnector:main: Started ServerConnector@df6a84a{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
2019-07-23 16:07:31.188:INFO:oejs.Server:main: Started @12595ms
When viewing localhost:8008, the following shows:
Note that jforum is "not available". Clicking on the link elicits the message "Error 503 Service Unavailable".
The program "async-rest.war" is an example file provided by Jetty and runs as expected.
In the above error printout, two things seem concerning. The first is the following line:
2019-07-23 16:07:24.378:INFO:oejw.StandardDescriptorProcessor:main: NO JSP Support for /jforum-2.6.0, did not find org.eclipse.jetty.jsp.JettyJspServlet
I noticed under "System Requirements" that only Apache Tomcat is mentioned as a server. Previously Jetty was also supported, was it not? Is it no longer supported?
The second thing is an error that shows up repeatedly, a filed is searched for and not found, and the error in the address is always that the folder for the project is not included.
JForum: problems initializing the logger: template not found: "C:\Users\Genie\jetty\base\webapps\WEB-INF\log4j_template.xml"
The file does exist, but it is at the following location: "C:\Users\Genie\jetty\base\webapps\jforum-2.6.0\WEB-INF\log4j_template.xml"
I'm wondering if the missing "jforum-2.6.0" somehow pertains to the project not being "registered" as was specified in the instruction: "The next step you should do is register the JForum application within your Servlet Container, like Tomcat."
Your assistance is much appreciated! The end goal is to provide a new forum for java-gaming.org. As a coder I'm a bit stronger on initiative than skill, and am attempting to put forth JForum as a candidate for consideration. We are currently using SMF.
|
|
|
|
|