• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Best tools for developing?

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which are the best tools to develop? Elipse, mysql, apache tomcat?, which plugins to use?.
How do you configure your enviroment to develop and test JForum?

Thanks
[originally posted on jforum.net by rosaisela06]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's pretty much my setup, except I also use the MyEclipse IDE.

The only special tweaks are:

Make sure the source compiles into the WEB-INF\classes directory.

Use the Tomcat deployment descriptors to change your docBase points to the web root in your project. E.g., create a jforum.xml in the <tc>\conf\Catalina\localhost directory like:



You probably don't need crossContext but reloadable is good for a development environment since it will reload the jforum app if the classes change. Beware that occationally, this will cause jForum to do strange things (repository/db issues). If things go strange, just restart TC.

Oh, be patient if you use Tomcat's CVS client to browse the jforum repository. There are a lot of projects there and it can take a LONG time to list all the "head" projects. But it is worth it to check out the code directly into Eclipse. Then you can easily do comparisons between your code and the current code.


[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
works perfectly fine with IDEA too ...

I got to love IDEA by now *sighs*.... well, rather used to using it :p

IDEA allows you to specify the docroot and thus via gui... quite nice what features are provided to integrate application servers
[originally posted on jforum.net by Sid]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Since you mentioned MyEclipse, I'm trying to rebuild a WAR file to test under Eclipse. I also use MyEclipe. I've been able to check out from CVS, etc. But things get all jumbled up when I try to build a WAR. Any hints on setting this up correctly?

When I add the Web Project Capabilities, errors start to show up in the Templates (it automatically adds the J2EE 1.4 libraries, which I believe conflict with what I've checked out from the project).

I've searched the archives and haven't found anything regarding this topic.

Thanks.
Carlos
[originally posted on jforum.net by cszamudio]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kind of problems? JForum's build.xml has a task to build war files.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For example, in order to use the MyEclipse Export to WAR or to use the Deploy capability the project needs to have the Web Project Capabilities added. This brings in the JS2EE libraries and sets up the WebRoot directory, etc. If I do this, then as I mentioned files in the templates directory start to have syntax problems, probably from conflicting libraries. So, I don't thing using the MyEclipse features is the way to go. I'd rather build a WAR exactly the same way you intended from the distribution.

So my question, how does one construct a WAR file from the project checkout from CVS? Would I be correct to assume that you are using ant for your build process and not MyEclipse?

Thanks for your help. My interest is in incorporting some simple web services for administration purposes. I also have a module for indexing the threads stored in ORACLE using Compass (Lucene) but I can see that you already have something like this in a future release. If you haven't check out Compass, it might satisfy some of your architectural requirements and make things easier for your developement.
[originally posted on jforum.net by cszamudio]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use Eclipse for compilation. I just use ant for releases. My Eclipse configuration doesn't have anything of special - it's just a regular Java project.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Running Ant directly vs. using the MyEclipse export did the trick. Thanks for your patience with this. (I am relying too much MyEclipse automation and I'm forgetting how to do things manually).
[originally posted on jforum.net by cszamudio]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you debug?
[originally posted on jforum.net by mrovi]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know who this was directed to, but for debugging of web applications and web services in general, MyEclipse has that covered for remote debugging. I am sure there are other (better?) ways but since I started with MyEclipse (to have a stable Eclipse configuration) rather than plain Eclipse, I find that my general Eclipse knowledge is limited.
[originally posted on jforum.net by cszamudio]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at this presentation: http://www.guj.com.br/content/articles/eclipse/EclipseTomcatServletDebugging.htm

You should be able to understand it by just watching.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your answer, but I was wondering how to debug it in plain Eclipse.
My problem is that when I import the project I downloaded using cvs, it is loaded as a plain Java application (not web application), so there is no deploy, no run, no debug.

Currently I am trying to create an empty Dynamic Web Project and add all the files manually...hopefully it will work.
[originally posted on jforum.net by mrovi]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What the presentation I posted in the previous link and you will understand how to debug in "plain eclipse"

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, that message is out of sync, I was writing it when you were posting yours.
I'm watching the tutorial, thanks!
[originally posted on jforum.net by mrovi]
 
Won't you please? Please won't you be my neighbor? - Fred Rogers. Tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic