aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Eclispe Classes not created in classses Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclispe Classes not created in classses " Watch "Eclispe Classes not created in classses " New topic
Author

Eclispe Classes not created in classses

Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 391
Hi All,

I am using eclipse and set the build class path to /WEB-INF/classes as default folder.

earlier eclipse was able to generate and save the class files from each packages to classes but currently deleted the all class file from classes and try to re-build the same but class files are not generated to classes path.

what could be the reason on this.

Regards,
Prabhat
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

What is the project setting for the output directory?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 391
springPaa/WEB-INF/classes

but no classes generates over there.

I have attached the screen shot for the same.


[Thumbnail for classes_eclipse.png]

Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 391
this is working now, i did R &D and re-build the project, i can see the files are complied on classes folder.

One more problem , when i hit the action button on submit , it calls servlet and servlet name with URL mapping are configured on web.xml , not sure getting the error 404


http://localhost:8080/WEB-INF/classes/ControllerServlet


HTTP Status 404 -
type Status report
message
description The requested resource is not available.


web.xml servlet are as below -

<servlet>
<servlet-name>s1</servlet-name>
<servlet-class>com.javatpoint.ControllerServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>s1</servlet-name>
<url-pattern>/ControllerServlet</url-pattern>
</servlet-mapping>


what is the problem that web container doesn't find the ControllerServlet.class from classes folder under the package?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

http://localhost:8080/WEB-INF/classes/ControllerServlet

/WEB-INF/classes is wrong. That's where you should have the context path.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 391
I have resolved my problem, action context path was in-correct in form.

thanks Bear.

Regards,
Prabhat
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Eclispe Classes not created in classses