• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

resin does not recognize modified java classes

 
Florin Gheorghies
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem with resin is that it does not recognize the modified java classes.

I am trying hard for three days to configure wicket 1.2 with either resin 2 or 3 or tomcat 6.

I feel like crying. I cannot believe java web development can be soo terrible.

No matter what I do, tomcat 6 would not do the wicket homepage rediection. So I struggle with resin 2 or 3.

The problem with resin is that it does not recognize the modified java classes. Please help me, ask decent money and I will gladly pay. All I want is a resin or tomcat configured with wicket 1.2 that will see the changed java classes. I cannot have the .html files in the /WEB-INF/classes directory as the stupid IDEA 6 will, on compilation, delete the .html files even if they are declared as resources, such as .properties.

Why, Why, Why does it have to be so hair-pulling to work with java stuff? Why please things don't just work as promised. Why, why ruby and php do at least what they say? Why, why? Three days and one night untill 3 am!

Please somebody help so I can finally start working on my application.

I need resin 2 or 3 to see the changed .class files. Of, I make even my family miserable.

Thank you.

OS: XP
Java: 1.4,1.5,1.6

[ April 27, 2007: Message edited by: Florin Gheorghies ]
[ April 27, 2007: Message edited by: Bear Bibeault ]
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you add:

<classpath id='myclasses' source='/home/work/proj/src' compile='true'/>

To the resin web-app config declaration?

This is not a question specifically about Servlets so I am going to move this to the Other Products and Java Servers forum, for now. We'll see how long you stick with Resin.
 
Florin Gheorghies
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gregg, I'd stick with anything that does not require too much time to figure out. I am a construction contractor during the day and find myself helpless sometimes when it comes to java.

Here is my resin.conf file:

<caucho.com>
<http-server app-dir='C:\Documents and Settings\florin\My Documents\67Contractors' class-update-interval='1'>
<http port='80'/>
<classpath id='WEB-INF/classes'
source='WEB-INF/classes'
compile='true'/>

<error-log id='log/error.log'/>
<servlet-mapping url-pattern='/servlet/*' servlet-name='invoker'/>
<servlet-mapping url-pattern='*.jsp' servlet-name='com.caucho.jsp.JspServlet'/>
</http-server>
</caucho.com>

[ April 27, 2007: Message edited by: Florin Gheorghies ]
[ April 27, 2007: Message edited by: Florin Gheorghies ]
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the source attribute needs to be the full path to your WEB-INF/class, not the relative path. Can you try that?
 
Florin Gheorghies
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not working. Full path to the source does not work.

Neither >httpd.exe -Xdebug

(using resin 2.1)
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, so reading some more documentation (have you done this?) since I don't know much about resin, it looks like the source= is not what you want. It's the classpath id that needs to be the full path to your classes folder, so something like:



Try that...
[ April 27, 2007: Message edited by: Gregg Bolinger ]
 
Florin Gheorghies
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gregg,

It's not working either. If I could get Tomcat work, wou'd be fine. If you do any web stuff, what's the setup that works for you? I don't care what it is, I just need something that works with wicket 1.2.

Thanks.

Why would the 'id' be the full path!? How confusing can that be!
 
Florin Gheorghies
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gregg,

I managed to get jetty4 work with wicket 1.2 inside IDEA running in debug mode. IDEA is aware of class changes and swaps them automatically after recompilation.

Gregg, I am not surprised so many are turned off by working with java for the web. It's like a continual 'experimental' mode environment.

Thanks for the help. Enjoy the weekend. I am off to programming my app. It's about managing a list of quaterly newsletters to my customer list.

Florin
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic