Post new topic   Reply to topic
Author Message
Mork
Veteran Member
Veteran Member


Joined: Dec 09, 2004
Posts: 607

In MyEclipse 4.1 I created a new Webproject called "FirstAjax".

I created a standard index.jsp in the Webapps folder and deployed.

It all looks OK, but when I try to run http://localhost/FirstAjax **OR**
http://localhost/FirstAjax/index.jsp

I'm getting 404 errors.

The requested resource (/FirstAjax/index.jsp) is not available.

No typos (case correct, etc.) that I can see.

I have a Webapps folder under Tomcat 5.5. In that folder there is a FirstAjax folder and inside that folder is index.jsp that I created using the MyEclipse default JSP builder.

My other Web apps are running fine.

I'm forgetting something obvious.

???

Thanks in advance.

-- M
 
 View user's profile Send private message  
Reply with quote Back to top
support-scott
Moderator
Moderator


Joined: May 06, 2003
Posts: 6760

M,

Tomcat runs on port 8080, no 80, by default. The URL should be http://localhost:8080/FirstAjax/index.jsp

_________________
--Scott
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Mork
Veteran Member
Veteran Member


Joined: Dec 09, 2004
Posts: 607

Scott,

I have Tomcat set to run on port 80, so my URL above was correct.

As I said in my posting above, my other sites run fine.

Besides, the error snippet I posted was from Tomcat -- meaning the server was running fine.

I can email you the project directory if that would help.

-- M
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23817

Mork,
Did you try (actually click) the link Scott provided with Tomcat running just incase something strange is going on like you have the SSL connector running on 80 but the standard connector is still running on 8080?

Did you try logging into the Tomcat manager (I think it's a separate download now, and you need to add an admin/manager user ot use it) and see if Tomcat is infact running your app? Maybe it was deployed but stopped for some reason? For example if Tomcat barfed on a taglib, then it's possible it didn't start the web app at all so a 404 makes sense.

Try restarting Tomcat and watching the console closely for failure messages. Sometimes it's as silly as a missing lib, duplicate name, etc.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Mork
Veteran Member
Veteran Member


Joined: Dec 09, 2004
Posts: 607

Yes, I checked the tomcat manager. The one MyEclipse just deployed is the ONLY one not running.

I checked the log and the only errors I saw were below. The test project I created had nothing to do with JSF, but apparently there's still something whacky going on...

Jan 24, 2006 11:57:37 AM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
Jan 24, 2006 11:57:38 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener
java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
at org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.<init>(DigesterFacesConfigUnmarshallerImpl.java:42)
at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:110)
at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:63)
at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:46)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3669)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4104)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:894)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:857)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:475)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Jan 24, 2006 11:57:39 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 24, 2006 11:57:39 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jan 24, 2006 11:57:42 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 24, 2006 11:57:42 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
 
 View user's profile Send private message  
Reply with quote Back to top
Mork
Veteran Member
Veteran Member


Joined: Dec 09, 2004
Posts: 607

Well, it seems that the error I posted above came from just creating a new Web project and adding a simple JSP to it, then deploying.

If I removed the Web project, Tomcat 5 starts without errors.

There seems to be a problem in MyEclipse with just adding a new project. It wants to bring in libraries I'm not even using.

Something appears to be seriously hosed in 4.1 (or in my upgrading, etc.)

-- M
 
 View user's profile Send private message  
Reply with quote Back to top
Mork
Veteran Member
Veteran Member


Joined: Dec 09, 2004
Posts: 607

I don't konw if this will help you (and I'm not sure what the "work" directory is, but when I did a search for "myfaces" *within* files in the entire Tomcat 5 directory, I found these files. Once I deleted them, the problem went away.

As I recall, I may have accidentally created a JSF form the first time I tried and then deleted the project and started over. I do have the myfaces-all.jar in my lib folder, but I'm still not sure why MyEclipse was trying to use it at all -- it may be related to the new JSF support?

So, it still appears to be some kind of bug to me, but I'll leave it up to your developers to figure out.

Now, the simple deployment is working OK.

Strange, eh?

C:\Program Files\Apache Software Foundation\Tomcat 5.5\work\Catalina\localhost\FirstAjax\tldCache.ser
C:\Program Files\Apache Software Foundation\Tomcat 5.5\work\Catalina\localhost\simple\tldCache.ser
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23817

I swear we ran through this identical error in another thread together and it turned out to be some random TestJSF app you had deployed that was barfing?

Regardless of the errors in the logs and such, can you redeploy or restart Tomcat and get the app running atleast?

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Mork
Veteran Member
Veteran Member


Joined: Dec 09, 2004
Posts: 607

Yikes!!!

But, if I go back and create another regular Web Project, add a JSP like before (didn't create a JSF page by mistake this time) and deploy it, I get the familiar errors again:

Jan 24, 2006 12:28:30 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
Jan 24, 2006 12:28:30 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1750 ms
Jan 24, 2006 12:28:30 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 24, 2006 12:28:30 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
Jan 24, 2006 12:28:30 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
- Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd
Jan 24, 2006 12:28:36 PM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
Jan 24, 2006 12:28:36 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener
java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
at org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.<init>(DigesterFacesConfigUnmarshallerImpl.java:42)
at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:110)
at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:63)
at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:46)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3669)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4104)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:894)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:857)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:475)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Jan 24, 2006 12:28:36 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jan 24, 2006 12:28:36 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/DeleteMe] startup failed due to previous errors
Jan 24, 2006 12:28:36 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\GetAuthorInfo\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Jan 24, 2006 12:28:37 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 24, 2006 12:28:37 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jan 24, 2006 12:28:38 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 24, 2006 12:28:38 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jan 24, 2006 12:28:39 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-80
Jan 24, 2006 12:28:40 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jan 24, 2006 12:28:40 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47 config=null
Jan 24, 2006 12:28:40 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 10203 ms
 
 View user's profile Send private message  
Reply with quote Back to top
Mork
Veteran Member
Veteran Member


Joined: Dec 09, 2004
Posts: 607

Yes I deleted all the random projects.

All starts up fine in Tomcat in the Console Window -- as long as I don't add any new projects.

But, the issue remains when I start a new project. It won't start or deploy properly. I get the errors above.

I have another Tomcat installation that does have myfaces installed, but that server isn't even running.

????

-- M
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23817

So the server is complaining about commons-digester which Tomcat needs. That should be in commons/lib. Check your server/lib dir for it.

Also check out this error:
Quote:

- Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd


You said the test project with 1 JSP is the only thing deployed and it's a normal project, but where did server-config.wsdd come from? Seems to me things may not be as vanilla as we thought?

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Mork
Veteran Member
Veteran Member


Joined: Dec 09, 2004
Posts: 607

I'm not sure.

I removed the myfaces-all.jar and things seem to be OK for the moment.

I don't yet understand 4.1's integration with MyFaces, if any, but perhaps having this jar file in common\lib causes problem.

------

BTW, I was just clicking around on the JSP Designer (the tabs like Struts basic, JSF basic, etc.). If I kept clicking the various tabs I was able to get "An error occurred." relatively frequently.

-----

Since there aren't many controls on the JSF page, am I able to add third party controls (calendar, tree, etc.)?

Thanks

-- M
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23817

Quote:

Since there aren't many controls on the JSF page, am I able to add third party controls (calendar, tree, etc.)?

Not yet but that is on our TODO list. Custom components and such, especially the ones from the myfaces extension libs.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Mork
Veteran Member
Veteran Member


Joined: Dec 09, 2004
Posts: 607

I saw that there's still the "refresh" button. IMHO, that button shouldn't exist. Why isn't MyEclipse smart enough to know when it needs to refresh the two design modes? Why is this refreshing forced on me? If MyEclipse can display the little black circle when I mouse over the design pane, then why can't it just refresh the pane? Unless I'm missing something (always possible <s>) this is hard to believe.

Also, I wasn't able to grow a simple HTML table graphically. The "sizing" handles appear, but nothing happens when I try to manipulate them.

There still doesn't seem to be much "G" in GUI -- at least when compared to Sun's tool or .NET.

It really doesn't appear that all that much has changed in 4.1.

-- M
 
 View user's profile Send private message  
Reply with quote Back to top
support-greg
Moderator
Moderator


Joined: Mar 31, 2004
Posts: 1610

Quote:
Why isn't MyEclipse smart enough to know when it needs to refresh the two design modes?

We do know when a refresh is needed. It was decided that because of the speed at which a refresh happens, it is best if the user manually requests a refresh as opposed to have it happen automatically. For very large pages, a full refresh is time consuming. In the future as we improve the speed of the refresh action this may be moved to an automatic process instead of manual as it is now.


Quote:
Also, I wasn't able to grow a simple HTML table graphically. The "sizing" handles appear, but nothing happens when I try to manipulate them.

Getting resize support is one of the features we plan on adding in our next release. Sorry for the delay on this.


Quote:
It really doesn't appear that all that much has changed in 4.1.

In the 4.1 release there are a few enhancements but mostly it was just fixing bugs. We have alot more improvements planned in later releases, and they should put more "G" in our GUI. Thanks for your feedback.

_________________
Greg
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
All times are GMT - 6 Hours
Post new topic   Reply to topic
® 2014 - Genuitec, LLC.