Re: Newbie question about Struts HelloWorld example
--- On Fri, 9/12/08, UseTheFork wrote: > I have no idea why it does not work. Can anybody help? Give > tips? Pointers? Could it be a config issue? ... Sure, it could be a config issue. Is there anything in the logs? Do you have devMode turned on? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question about Struts HelloWorld example
Hi Dave, > Is there anything in the logs? Do you have devMode turned on? i) I don't know what devMode is, can you explain? ii) I have noticed that I did not create my web.xml and struts.xml files properly. I have corrected that problem, compiled, undeployed and redeployed and I still have the same issue. iii) The Glassfish Log contains tons of these kind of messages: Timestamp Sep 12, 2008 14:53:59.984 Log Level INFO Logger javax.enterprise.system.stream.out Name-Value Pairs _ThreadID=590;_ThreadName=HTTP Monitor, sends data to IDE; Record Number 1342 Message ID Complete Message WARNING *** NetBeans HTTP Monitor The request cannot be recorded most likely because the NetBeans HTTP Server is not running. Go to the IDE and start the HTTP Server from within the Runtime window to fix this problem. When I refresh my browser with http://localhost:8080/tutorial/HelloWorld.action, I do not get any WARNING or SEVERE kind of messages in the Glassfish Logs. I only get more of the above. I have also checked for CONFIG, FINE, FINER, FINEST messages, but I don't get any. The Glassfish Admin Console is works fine, which make me think that Glassfish is working fine !!! Thank you for your time, J. -- View this message in context: http://www.nabble.com/Newbie-question-about-Struts-HelloWorld-example-tp19451760p19455428.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question about Struts HelloWorld example
--- On Fri, 9/12/08, UseTheFork wrote: > i) I don't know what devMode is, can you explain? http://struts.apache.org/2.x/docs/devmode.html Without any more information it's essentially impossible to help. You'd be better served by posting your web.xml and struts.xml files here; I'm assuming they're still quite short. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question about Struts HelloWorld example
UseTheFork wrote: When I refresh my browser with http://localhost:8080/tutorial/HelloWorld.action, I do not get any WARNING or SEVERE kind of messages in the Glassfish Logs. I only get more of the above. I have also checked for CONFIG, FINE, FINER, FINEST messages, but I don't get any. The Glassfish Admin Console is works fine, which make me think that Glassfish is working fine !!! The most common initial problem is usually: some of the jars are missing from the lib directory of your web application when ir's deployed; or the configuration is referencing something incorrectly (like an invalid classname) The effect is that the struts filter (in your web.xml) fails to start. If it fails to start, you get the 404 error in the browser and no new messages logged (as struts isn't running). As dave says, it's really imported to either find the logs that show struts failed to start, or started and rejected the config; or double-check the config and deployment. (or post the config here as Dave suggested) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question about Struts HelloWorld example
Here is my struts.xml: http://struts.apache.org/dtds/struts-2.0.dtd";> /HelloWorld.jsp and my web.xml: http://java.sun.com/dtd/web-app_2_3.dtd";> My Application struts2 org.apache.struts2.dispatcher.FilterDispatcher struts2 /* You will notice in my struts.xml that devMode has been set to true. However, I still don't get anything new in my Glassfish Logs. BUT, I have noticed some issues when I start Glassfish: http://www.nabble.com/file/p19457690/Log%2BList.png Thanks, J. -- View this message in context: http://www.nabble.com/Newbie-question-about-Struts-HelloWorld-example-tp19451760p19457690.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question about Struts HelloWorld example
--- On Fri, 9/12/08, UseTheFork wrote: > You will notice in my struts.xml that devMode has been set > to true. However, I still don't get anything new in my > Glassfish Logs.> BUT, I have noticed some issues when > I start Glassfish: > > http://www.nabble.com/file/p19457690/Log%2BList.png Looks like you're missing at least the commons-logging dependency; I'd make sure you're deploying all the appropriate dependencies. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question about Struts HelloWorld example
Hi Dave, I have a library called commons-loggin in my project: http://www.nabble.com/file/p19462329/Commons-loggin.png I had to fiddle with the Web Pages directory structure in the project and create a Classes sub-directory to match the requirements mentioned on http://struts.apache.org/2.x/docs/simple-setup.html. Could this be the source of my issue? Thanks, J. -- View this message in context: http://www.nabble.com/Newbie-question-about-Struts-HelloWorld-example-tp19451760p19462329.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question about Struts HelloWorld example
--- On Fri, 9/12/08, UseTheFork wrote: > I have a library called commons-loggin in my project: Is it being deployed? > I had to fiddle with the Web Pages directory structure in > the project and create a Classes sub-directory to match the > requirements mentioned on > http://struts.apache.org/2.x/docs/simple-setup.html. > > Could this be the source of my issue? Of course it *could* be, but it's almost certainly not related to your deployment issues. Right now it looks like you're missing some basics of JEE web app development, particularly deployment requirements. I'd search the fine web for that information. There may also be IDE-specific information you need to figure out. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question about Struts HelloWorld example
> Is it being deployed? I can't find the common jar in the App server installation directory. I will open a ticket with Netbeans Nabble. Thank you for your help, J. -- View this message in context: http://www.nabble.com/Newbie-question-about-Struts-HelloWorld-example-tp19451760p19463173.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question about Struts HelloWorld example
--- On Fri, 9/12/08, UseTheFork wrote: > I asked: >> Is it being deployed? > I can't find the common jar in the App server installation directory. > I will open a ticket with Netbeans Nabble. This is [most likely] not a NetBeans issue, either, it's a project configuration and/or deployment issue. While I'm not a regular NetBeans user, I'm reasonably certain it's capable of deploying a web application when it's set up to do so. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question about Struts HelloWorld example
Dave, I have managed to deploy another project two days ago without any issue. The JSP pages worked fine. This time, I am trying to use Struts. It could be a project configuration issue, I agree, but I have checked that and I don't know what is wrong... I am in newbie exploration mode here !!! The only main difference is that I need to include some additional jars according to the struts example. I did that the 'usual' way in Netbeans. I have a lot of experience with Java Standard Edition. May be someone from Nabble - Netbeans knows what is happening... Thanks for your help, J. -- View this message in context: http://www.nabble.com/Newbie-question-about-Struts-HelloWorld-example-tp19451760p19463840.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Re: Newbie question about Struts HelloWorld example
--- On Fri, 9/12/08, UseTheFork wrote: > I have managed to deploy another project two days > ago without any issue. The JSP pages worked fine. That doesn't require any additional web app libraries. > It could be a project configuration issue, I agree, > but I have checked that and I don't know what is wrong... A web app requires that its dependencies be deployed to /WEB-INF/lib. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Newbie question about Struts HelloWorld example
Hi Dave, The solution was in fact very simple (http://www.nabble.com/Issue-with-deployment-on-Glassfish-td19463423.html#a19464284). It was stupid from me to search for jars on the app server, because they are packaged in containers. I knew it, but I forgot it in my stress... Thanks for your help anyway, J. -- View this message in context: http://www.nabble.com/Newbie-question-about-Struts-HelloWorld-example-tp19451760p19478209.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]