Deploy my project to the jelestic cloud - jar

Being quite new to the web technologies in general, I have been trying to deploy a project to the free Cloud named "jelestic". I am required to upload a .war.
The problem is that I have a folder containing a working applet, some web pages explaining its functionalities., and some library .jar that is necessary to make the applet work. I don't see how to wrap the whole folder into a .war file.
Most tutorials tell me how to deploy an applet through localhost:8080. But here I would like to make a bundle of all the files in the folder and upload it as a .war file.
Could you tell me how to do this task?

If you place your applet in some directory under war directory it will be publicly accessible. So if you place your applet and lib jar in let us say: app.war/applet/applet.jar app.war/applet/lib.jar all you will need is a page with applet tag poiting to http://appserver/app/applet/applet.jar :)

Related

Application Insights added ConnectedService.json file to my project, Do I have to deploy it to the production server?

Follow up to this question:
Application Insights added ConnectedService.json file to my project, what does this do?
When I create a deployment package, via "Publish..." option, the package also include the following folder and files:
Service References\Application Insights\ConnectedService.json
I do not want to deploy something that is not required at runtime. Do I have to include the folder and file in my production server deployment?
No. Those files are only used by visual studio for its information, to know what services have been added and give you links back to them inside VS. None of that needs to be deployed. those files can all be set to do not copy/etc.

Not all files are showing up in ftp session with Azure Web App

I lost my ASP.NET project when reinstalling Windows. So I opened up an ftp session to recover the files from my webapp on Azure. I can see most of my project in my wwwroot folder, but not everything. The folder Controllers is almost empty. And that's kinda the files I were most interested in.
You have only deployed the executables with you publish action, not the code in you controllers or other folders. You need to find a backup of your code somewhere else. Normally you would have checked it into some kind of code repository.
You might try and running a decompiler on the project DLL that exists in your Azure Web App folder structure.
It might not get everything, but maybe you can save enough. Try dotnetPeek.

Eclipse Indigo and Maven : Unable to find src/main/java in dynamic web project

I've been using Eclipse indigo with m2e and m2e-wtp installed.
I created a dynamic web project using m2e by selecting maven-archetype-webapp. Now the problem is, I could not see src/main/java, src/test/java and src/test/resources in the created structure. Here is a snap of the project.
I stumble around and found this link. I created required directories on file system. Now the question is ideally where should I add "Source Folder" for each directories(src/main/java, src/test/java and src/test/resources)? Should I add them under "Java Resources" or somewhere else?
Thanks
That's exactly how we do it.
src/main/java, src/test/java and src/test/resources
under java resources -> new source folder
Don't forget to add your src/main/java path and the maven dependencies to the deployment assembly of your project if you want to run the web app from eclipse via tomcat.
EDIT
Concerning Eclipse Deployment:
If the project is already facetted as a Dynamic Web Project like yours, you'll need to add a Server in the Server view (We use Tomcat 7 and reference a local tomcat copy in the server setup)
Then you add the web projeect to the server (add/remove on the server)
In the project properties you'll need to add the src/main/resources and src/main/java folders to your deployment assembly as well as the maven dependencies.
We also use a src/main/webapp folder instead of the webcontent folder that is automatically created. This holds the web resources, WEB-INF and views and will be added to the deployment assembly as well and mapped to the root path '/'
Now you'll run an install on your app and then select 'run on server'
Just after the creation of a web application based on the archetype 'maven-archetype-webapp', it is perfectly possible to run the wep application in making usage of 'run as' on Tomcat (by example). You have right to a jsp page, index.jsp.
But if you want like many others create a servlet then you have a problem. The build path of the projects references 'src/main/java' and 'src/test/java' but the directories do net exist yet. I don't know why they forgot to create the directories (within the archetype)...
To correct the problem, you 'simply' have to create the missing directories (from the explorer) and then from Eclipse do a right-click on the project name and then click on 'Maven' and then 'Update Project'. If you create the directories this way you will see that the source directories (src/main/java and src/test/java will appear again).
Then create a new servlet (by example) in src/main/java and deploy the application again. Everyting will work this time.

What is relationship between App_Licenses.dll and licx?

I am trying to understand how the licensing works in ASP.NET.
There is licx file, App_Licenses.dll file. And then there is a difference between how the licensing works for a WebSite and a WebApp project.
Any insight into these would be of great help.
Links, explanation are most welcome.
Thanks.
I'm not sure of any differences between WebSite and WebApp, but with a licx file, it is compiled into the app_Licenses.dll file. If its not generating for you - you can right click on your licx file and regenerate the dll.
As per MS -
http://connect.microsoft.com/VisualStudio/feedback/details/499908/app-license-dll-can-not-be-generated-automatically-in-asp-net-website
In a web application project, manually copy the .lic file to /bin folder. In a Website, this is done automatically.
At this pointm refresh the designer or rerun the project and the licensed control should work as expected.
Note: App_LICENSES.dll isn't required in a WAP. In Websites, App_LICENSES.dll is generated to contain the LICX as an embedded resource. In WAP, there is a project assembly which contains the embedded LICX resource, so a separate DLL is not necessary

Class Library project for Asp.Net deploying other files than dll

i've made a Class Library project for Asp.Net applications, consisting in some classes plus some support js, css, and image files that need to be deployed in the hosting web application.
The problem is that the support files are copied in the bin\ directory of application, so they becomes unavailable on the iis (HTTP 403 errors), infact the bin folder is only for dll files.
Any idea on how to publish these support files to make them available to main app?
Thanks.
You need to embed your resources into your class library. Your js, css and image files will then be contained within your dll and accessible to your other projects.
Here is a walkthrough.
you should use visual studio's publish feature when deploying web applications.
Right click on the web application project and you should see the 'publish' option which enables you to publish the content files and assemblies without a hassle.
Take the js, css and image files out of the class library. The class library is just that - a project that compiles into a DLL.

Resources