• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

InstallServlet error

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Evgeny, tell me what do you think of the above: I provide an 'install.htm" file and then I keep the existing index.htm redirecting to the forum, as it was in previous versions.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I got the following error when I press "Begin Installation" button in "JForum 2"


(ForumException.java:85) at net.jforum.InstallServlet.service(InstallServlet.java:133) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:324) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:395) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:595)

What is it?
Thanks
[originally posted on jforum.net by Evgeny]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hm, this stack trace does not tell too much. Can you please give some information about OS, Servlet-container etc? it may help. Also, if you find in the logs the rest of the stack trace ( if any ), please put it here too.

Anyway, you can always use the manual installation, like the "old days".. but it would be great if we can make this wizard work for you.

Thanks.
Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are no errors in Tomcat Log, only error I posted above in web browser.

Fedora Core 2
Java 1.5
Tomcat 4.1.30
MySQL 3.23.58-1
Mysql-connector 3.0.15-ga
--

In addition:

In RC5 I used the next url to go the forum home page (where all forums are displayed)
http://forum.mydomain.com/forum/

Now, after installation of JForum 2, I always forwarded to the Install page
http://forum.mydomain.com/forum/install/install.page?module=install&action=welcome

I can manually enter next url to go to the forum home page (where all forums are displayed)
http://forum.alltelescopes.com/forum/forums/list.page

That's a bit strange. I suppose, when a user reaches the application home
http://forum.mydomain.com/forum/
he/she should be automcatically forwarded to real home page, not to the installation page
http://forum.alltelescopes.com/forum/forums/list.page

I tell about first my impression, not about solution.
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
PS: It's my post above. I loged In, but at the time when I pressed "Submit" button my session was expired and my post appears as Anonymous. IMHO that is not expected behaviour (I pointed to that in the past), better is to prompt to Login again.

In above, forum.mydomain.com and forum.alltelescopes.com should be considered the same (I forgot to change url in second)

Thanks for your hard work!
[originally posted on jforum.net by Evgeny]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So, you are upgrading? Indeed, in the 2.0 package, the index.htm redirects to the install page. This is probably why the installer is not working corretly.. It needs more test, though.

The installer does not support upgrading yet.. so, if running it, you will have all your existing data deleted, since it wil create the tables again.

Well, so far, it is kinda clear that the documentation / warning should be more clear.. At http://www.jforum.net/install_no_wizard.htm#installing is written to rename some files, but I admit that this is not the ideal, since the page talks about installing, and not upgrading..

I'll updade the package at sf.net and write a post here in the forum explaining that a bit.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Evgeny wrote:PS: It's my post above. I loged In, but at the time when I pressed "Submit" button my session was expired and my post appears as Anonymous. IMHO that is not expected behaviour (I pointed to that in the past), better is to prompt to Login again.

In above, forum.mydomain.com and forum.alltelescopes.com should be considered the same (I forgot to change url in second)

Thanks for your hard work!



You're right. I registered an improvement: http://www.jforum.net/jira/browse/JF-181

Also, I created a post with some information about how to upgrade. Take a look:
http://www.jforum.net/posts/list/0/442.page

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Data is not a problem, as forum is not in production, yet.

Just wanted to note, installation procedure should not change too much and not include unnecessary steps.

Detailed: I was able to install RC5 from scratch and without problems, I like it, and I want to use the same installation procedure for each next version of JForum. In addition, why I need to remove index.htm and rename new_rename.htm - that should already be done in the new release.

I will wait for your JForum 2 update. I want to install release 2 as easy as RC5.

Thanks Rafael!
[originally posted on jforum.net by Evgeny]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Evgeny wrote:
I will wait for your JForum 2 update. I want to install release 2 as easy as RC5.

Thanks Rafael!



JForum 2 is easy as rc5. The only difference is the need for renaming these two files.

I did that because I didn't want to run in situations where users will try to access the forum before first configuring it. Indeed, if you use the install wizard, it already makes all necessary steps for you. But you're free to configure it exacly like is done in rc5.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think the index.htm should always return home page.

I suggest the following:
1. Admin installs JForum using a command line procedure (not wizard), which should not chage too much between JForum releases.

2. Admin uses Control Panel -> Configurations to set all necessary parameters. You can add there more parameters, such as database parameters (?). You can specify in "installation instructions" that this is necessary first "to do" after installation of JForum.

3. Optionally you can provide install/configuration wizard via a separate url, which you specify in installation instructions, but really this step can duplicate Configuration screen (step 2 -> the simpler, the better).

For your consideration.
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The previous post is mine :lol: :roll:
[originally posted on jforum.net by Evgeny]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well.. the install wizard does the file renaming for you.. In all cases, the install wizard will be encouraged in place of manual installation, but I'll keep both for sure.

Well, I'll see how this will be done. I'm thinking now in showing the user a message like "Would you like to run the Configuration Wizard now?" and then give him options like "Yes", "No, I will configure it by myself or already have it configured"..

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just installed 2.0.1 and found with the install servlet that it made the database password the same as the database username, so i harded coded in the java class what the db url should be to get it going (had to change it for some issues with mysql 4.1 too)

dan
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Anonymous wrote:I just installed 2.0.1 and found with the install servlet that it made the database password the same as the database username, so i harded coded in the java class what the db url should be to get it going (had to change it for some issues with mysql 4.1 too)

dan



hhmmm.. I'll check.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, I fixed this bug. Please download JForum-2.0.2 at http://www.jforum.net/download.htm. Thanks for the report.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
reply
    Bookmark Topic Watch Topic
  • New Topic