MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
brucejbrown
Post subject: broken tomcat server.xml file  PostPosted: Feb 24, 2011 - 02:59 PM



Joined: Feb 24, 2011
Posts: 1

We messed up our tomcat server.xml file. We're running a custom J2EE app using Oracle, but can't get to the login screen.

I've never worked with Tomcat or JBoss before, so I'm going through a big learning curve and would like to know if MyEclipse could help or if you know someone who could help us.

So far, we've got the tomcat server.xml working correctly for everything except the one application I mentioned. Port 8443 is open, which is correct. But, we're not connecting to the custom app.

I've located the war directory. There doesn't appear to be a "ear" file. The jboss-web.xml file, within the war directory, only has comments. So, based on what I've read, I think this means the developers (who aren't available) were using the web-client part of web-client.war as the context root. (In this case, xyz.war.)

Also, the url that should get the user to a login page is https://prod.xyz.com:8443/xyz. I don't see any directories named xyz. However, in the web.xml file, I see:
<security-constraint>
<web-resource-collection>
<web-resource-name>xyzHttpsSecurity</web-resource-name>
<url-pattern>*.jsp</url-pattern>
<url-pattern>*.do</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>


So, I suspect the /xyz part gets rewritten and ends up at the login screen. I found index.jsp mainHome.jsp and main.jsp which appear to be doing some sort of rewrite or redirect for this application.

Can MyEclipse help us rebuild the server.xml file? I feel like we've got most of the pieces of the puzzle but I need either a clue - like an example. Please let me know if any of my assumptions don't make sense. Like I said this is all learning curve for me.

Thanks!
 
 View user's profile Send private message  
Reply with quote Back to top
support-joy
Post subject: RE: broken tomcat server.xml file  PostPosted: Feb 25, 2011 - 11:08 AM
Registered Member
Registered Member


Joined: Feb 03, 2009
Posts: 3442

brucejbrown,

I would recommend you to run your application on the debug mode and step through the code. If you are a newbie, I would recommend you go through the tutorials and white-papers listed here - http://www.myeclipseide.com/module-htmlpages-display-pid-7.html

_________________
Joy
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits