• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Jforum Integration Issue with My Web application

 
Rancher
Posts: 43081
77
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If it's a different web app then it's a different session, so it will not work. But the point right now is to get JForum to work, is it not? If you can't get to that point, then anything else is irrelevant.
 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes Jforum Work individually that why i created database and then try to merge it with my application which create issue for me
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So the issue arises only if this merged web app is run? Then I don't understand your previous question about the session.

Anyway, deploy it on a standalone Tomcat and take it from there.
 
subodh joshi
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes when i starting merging its wont work and i tried this http://www.skill-guru.com/blog/2009/07/31/jforum-integration-with-a-spring-and-jsf-webapplication/

To merge it...
Session issue that i want to use Jforum inside my application not as a standalone application
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Yes when i starting merging its wont work


Well then check the logs. If you don't find anything in catalina.out, check jforum.log (which should be created). And as regards that link in particular, I've already pointed out that it's the wrong approach.
 
subodh joshi
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh My God after Lots of here and there i found this link and compare with my code and i miss this entry in web.xml file


<listener>
<listener-class>net.jforum.ContextListener</listener-class>
</listener>



I added this in web.xml and link worked like charm..

Thanks for your great guidance
 
subodh joshi
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need some more help from you i am using Servlet3.0 so in WebRequestContext.java class i am getting below exception

The return types are incompatible for the inherited methods RequestContext.getParameterNames(), ServletRequestWrapper.getParameterNames()



Can you please let me know how to resolve this
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Glad to hear you found that. Yes, that's what I meant yesterday by "Is the context listener defined properly?"

An exception? You mean a compiler error, right? Exceptions happen at runtime. Looking at WebRequestContext, the only invocation of getParameterNames is on an instance of HttpServletRequest, so I'm not sure where an error involving ServletRequestWrapper (which anyway has the same method) would come from.

Why do you mention "Servlet 3.0"?
 
subodh joshi
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok I solved that issue as well removed all code and added jar file in my pom.xml file Now i have to check the SSO now how it should it willl work its a big question for me i do not want user registered in forum again or login in forum if he/she login in my web application he use same session
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'll repeat what I said it before: if there is only one web app, there is no need for SSO. In fact, it makes no sense.

What you need to do is to unify the session handling of both parts of the web app so that they don't get into one another's way, for example by using session attributes with the same name for different purposes.
 
subodh joshi
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
SSO also worked and when i login in my application it created login automatically in jforum as well but now issue is that, i want to work as admin in jforum so i can create more Jforum topic ,change mail settings and other also access all thing related to admin but i am not able to how can access jforum as a admin any idea?
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JForum creates a user "Admin" automatically upon installation, check the jforum_users table. If you log in as that, you can make any other users you have created admins as well.
 
subodh joshi
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So What if i will make change on this entry with my email entry like right now its showing username as Admin and some password while another entry with email id so if i will change Admin entry with my emailid and also change password it should give me all rights to access admin part?
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's hard to understand your post due to the complete lack of punctuation; please don't do that.

If you log in as "Admin" (the password was mentioned during installation, maybe "admin") you can make any other user an administrator. Does that answer your question?
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi

Did you manage to figure out what was the problem? I want to integrate jforum with my app and not sure it's working. I used the same link you used. Did it worked for you in the end?
 
subodh joshi
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes i am able to integrate it what issue you are getting ? Please ask another question
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic