mvc web site publishing - asp.net-mvc-2

i want to create a mvc web site not mvc application. I read somethink about diffrence between Web Site And Web Application. And convert it to mvc web site from web application. But i read that web site does not create dll's at bin folder when publish it to IIS. But when a publish my web site it creates dll at bin folder. I have Added my models and controllers to App_code folder. But when i publish it to IIS i can not see App_Code folder on it. It creates only dll. Advise me please.

You can't have a .NET MVC Web Site. All .NET MVC Applications are Web Applications.

Related

make a standalone independent application out of a dynamic web project in eclipse

So, I've made a dynamic web project in Eclipse.It uses Jsp and servlets. Now I am told to make a standalone independent application for the same. I tried to google as to how it can be done. Most of them pointed me to use Export->Runnable jar file. But on doing so I can't find my dynamic web project in the Launch Configuration. Now how to make the standalone independent application ?
I've done a similar thing using embedded Jetty which means the application jar provides the web service without having to rely on a web server.

JAX-WS Web Service and environment entitys

Fist off all I'm quit new to this stuff, so sorry if I don't describe my problem properly.
I've built a simple Jax-WS Web Service for Tomcat 6 by using the Eclipse Juno wizard (dynamic web project --> add class --> new Web Service --> create WAR) and AXIS 2.
Everything works fine, but now i want to store some environment entities in the web.xml file and make them accessible from the service.
If I were using a servlet, I would call ServletConfigurator.getinitparam("name"), but how do i do it with a web service?
you might want to take a look at this website for RESTful Web Services API using Java and MySQL.It's pretty informative.

difficulty in deploying struts 2 application

I am a beginner with struts2 and I have few struts2 projects downloaded from a website, but they all are created as simple java projects and not as web-projects, so I am unable to deploy them on my Tomcat or JBoss AS server through Eclipse.
How can simple java projects be deployed on a Java EE server?
Your best bet is download sample applications from Struts2 official sites and deploy them on any of the server of your choice.
Those sample application comes with all required dependencies as well will give you idea about structuring of S2 application as well flow and configurations
I created a structure similar to the one shown on website and manually added all the files required and it worked.

How to point defferent domains to web modules in ONE ear project in glassfish?

I am working on an SNS program which I plan to develop with JavaEE technology with eclipse IDE, Glassfish server. To do this, I have a eclipse EAR project with structure of this:
xyz, Enterprise Application Project, which packs up other modules bellow
xyz.jpa, JPA project, the model layer
xyz.ejb, EJB project, the data control layer
xyz.api, Dynamic Web Project, the APIs used by mobile clients
xyz.www, Dynamic Web Project, as a website
xyz.admin, Dynamic Web Project, a web console for administration
These modules distribute as a deployable archive file xyz.ear. Each of the 3 web modules in this EAR should have its own domain(http://api.xyz.com -> *xyz.ap*i, http://www.xyz.com -> xyz.www, https://admin.xyz.com -> xyz.admin).
How do i do that? Or what will you do with this program?
I figured it out, Glassfish's virtual server feature just fit my needs. I've not been developing Java Web programs so long that I forgot this, now it's all good.
I'd still like to see how do you design it.

Is there a tutorial out there to demonstrate developing web services using metro and tomcat

I've been given an assignment on working with web services using metro and tomcat. I'm aware that other JAX-WS implementations and containers exists, but I'm required to use those technologies.
I'm trying to find a straightforward tutorial on developing web services with metro and tomcat using eclipse. I found this, http://metro.java.net/guide/Developing_with_Eclipse.html. I changed the glassfish steps to use Tomcat instead, but when I run it, I get a 404. I'm guessing my issue has to do with Step 2. I create a new class, but is there something different I should be doing? Thanks!
This requires you to
copy webservices-api.jar from the metro lib to the endorsed folder in your jre/lib
copy webservices-api.jar from the metro lib to the endorsed folder in your tomcat directory
modify catalina properties' shared.loader=%METRO_HOME%/lib/*.jar
This should take care of your issue.
Thanks
Ramesh