Web services intellij idea (HelloWorld example is not working) - web-services

I'm trying to create simple WebServices project using Intellij Idea 12 IDE (Glassfish 4.0.0 server, JDK 1.7.0_45)
And have a couple of troubles.
First of all, I cannot expose or unexpose my default class HelloWorld. I just do not have this button (Expose Class as Web Service) in menu 'Web Services' or even in the tab 'tools'.
Somewhere I've found that ALT+ENTER could help me, but it did not. There were no signs of that functionality too.
However, as you probably know, it is not extremely important in this test (HelloWorld) example to expose the class (it is exposed by default) and I still tried to launch my simple solution. But it does not work.
It shows just blank window in browser (path: localhost:8080/jax_ws_server or smth like this). When I intentionally tried to change this path to string (I've changed it not only in browser url-string, but also in Artifacts settings) 'localhost:8080/services/HelloWorld', which I have found in the configuration file 'sun-jaxws.xml', It just shows 404 error in a browser.
I use this tutorial:
http://wiki.jetbrains.net/intellij/Developing_a_simple_JaxWS_WebService
What can I do to solve this problems? Thank you for every answer!

Related

Using Django web application to be submitted as a project

I have my main project created in Django as a web application, I have completed my coding. So now that I have to submit the project and have to present it. Is there any way I can render it as an application so that my tutor could just click on an icon or link and just directly open the application instead of starting a server and multiple other things before using the app. Any advice that would help the application to dodge this complicated process would be much appreciated.
I even tried looking up information on this but couldn't find anything ueful.
There are websites that provide free web hosting, you could upload your code there and upload the database and once you have that set up just get the url link to it and give it to the person you want.
I remember using https://www.awardspace.com/ for my school web projects. it could help you.
Theres is no way I know of that you could just render and get an .exe file to just click and install and run.

CFClient Error invoking CFC http://domain/cfc/users.cfc: Not found

Good Day all.
I have wriiten a cfclient app. The app was working perfectly until almost a year ago. then with Adobe phonegap removeing support for cli 3xxx
Then the app stoped working.
On the server the app works perfectly but when i try build and run the app on android i get gthe following error.
Error invoking CFC http://fqadmin.atstech.co.za/cfc/users.cfc: Not found [Enable debugging by adding 'cfdebug' to your url paramaters to see more information]
Now the CFC is there going to http://fqadmin.atstech.co.za/cfc/users.cfc?method=getUsersList
I get the users list in JSON format -> the above is for test purpose only.
So i know the server cfc is not only there, but it is working with no errors.
Please find attached zip file of source code / including the server CFC,
Also please see screen shots of the setting on my cfbuilder project.
Latest Build from phonegap - You can see error using apk below
http://fqadmin.atstech.co.za/apptemp/ATS-FQ_3321208.apk
CFbuilder Application
http://fqadmin.atstech.co.za/apptemp/ATS-FQ.zip
Server Side CFC Folder
http://fqadmin.atstech.co.za/apptemp/cfc.zip
Please see below screenshots of settings. Please let me know what im doing wrong.
PLEASE Help

Webstorm How do I set the context root for my application?

I'm having a heck of a time figuring this out (and I assume it is a basic problem and I'm just searching for the wrong terms). I have a plain html site that I'm trying to debug locally and when I open it in a browser or debug it I get this url:
http://localhost:63342/DeleteMe/root/index.html
If I set my resource root to the root folder I end up with:
http://localhost:63342/DeleteMe/index.html
The problem is I use "absolutely" pathed resources such as /js/utility.js because the context shifts based on what AJAX content is pulled in (Hijax-ish application).
What I'd like to see is->
http://localhost:63342/index.html
http://localhost:63342/js/utility.js
for a project like:
[DeleteMe] <--project root
- root
- js
utility.js
- index.html
I'm interested in a solution that deals directly with this problem inside the IDE. I already have a host of tools for web development and I'm evaluating JetBrains at the moment and these little details are what make the difference for me. I can easily set up IIS or Apache to preview the site, I'm looking for a complete solution in a single IDE.
(For reference the project was developed using Eclipse)
Why don't you use your deployed test version to run the application? When I started using Webstorm I had those problems. Then I figured out that Webstorm can debug your source anywhere your are running it.
So, I have my appache set, with any root I want, and I point the sources (using symlinks) to the real source in the project.
Then, I create a configuration for each of the servers I want to use, like this:
I also use that approach, together with hosts, to have multiple different debug environments (for different users, for instance). This is a stretch of my windows hosts file (in C:\Windows\System32\drivers\etc):
...
127.0.0.1 crewhu-admin
127.0.0.1 crewhu-company
127.0.0.1 crewhu-manager
127.0.0.1 crewhu-employee
...
And the debug process for javascript works like a charm for all environments.
Hope this helps...

Dojo DOH, unit tests with robot actions wont run

When try to run dijit tests from 1.7 version, popup window shows up and test will not progress any further.
Popup says:
DOH has detected that the current web page is attempting to access DOH, but belongs to a different domain than the one you agreed to let DOH automate. If you did not intend to start a new DOH test by visiting this Web page, press Cancel now and leave the Web page
Clicking OK or Cancel doesn't do anything.
Whats going on a how to fix this?
Browser is Firefox 9, java is working (at least test page say so).
It's slightly hard to tell what the problem is, as you've not said whether you're running this from a local filesystem or under a web server, or which URL you're using.
I've had various problems trying to get DOH Robot running from the local filesystem, but good success running them under a web server.
Try it under a web server (any type will do), and try visiting the URL
http://server:port/ROOTDIR/util/doh/runner.html?testModule=dijit.tests.form.module
(where http://server:port/ROOTDIR/ points to the top of your Dojo SDK directory)
That works fine for me with Dojo SDK 1.7.2; sometimes I then get the same prompt you get, but OK enables the test to continue happily.
If that doesn't work, see if you can run a test page directly without the DOH browser runner wrapped around it, e.g.
http://server:port/ROOTDIR/dijit/tests/form/robot/Button_mouse.html
That might prove easier to diagnose.

Coldfusion 9 issue

Just downloaded Coldfusion 9 developer for review purposes. I am at the administrator page 127.0.0.1:8300 and I think everything has worked fine. I want to do a simple "Hello World" example. One tutorial gave me a simple 6 line script to do this and it looks pretty simple and understandable. I went to notepad and created the following:
<html>
<head><title>Hello World</title></head>
<body>
<cfoutput>#ucase("hello world")#</cfoutput>
</body>
</html>
It told me to save it as helloworld.cfm in inetpub/wwwroot directory. I could not find such a directory on my system. So I saved it to C:\helloworld.cfm. Then it told me to go to my browser and type http://localhost/helloworld.cfm. I got something to the effect of a page not found error. Any help you can spare here.
Secondly, and more importantly, exactly where do I really need to be to be to create and run the above helloworld.cfm script above? Is there another tool I must have to create the above script to do this? I also understand that there is very little tutorial documentation on Coldfusion 9, why is that the case. Can you offer me any suggestions. I would really like to use this development tool. Adobe says it is the easiest development tool out there. You will have a tough time convincing me of that at this stage, however, I just might be missing a procedural/processing step thats real simple. I hope this is the case. Thanks for you valuable time.
When you installed ColdFusion did you hook it up to a webserver or did you install it in standalone mode?
Did you install it as standard ColdFusion or Multiserver?
The reason I ask is that depending on how you installed it will determine where you will find the web root.
For example, ColdFusion standard in stand alone mode will have the web root under something like C:\ColdFusion9\wwwroot
Multiserver standalone will be something like C:\Jrun4\servers\cfusion\cfusion-ear\cfusion-war\
Installation with a connection to a web server will have asked you where you server's web root is and so on
To create scripts; notepad, but there are two eclipse based IDEs you might like to try. CFEclipse is free and ColdFusion Builder is adode's commercial product.
First of all, Welcome to the ColdFusion community!
I believe Jerry has done a default ColdFusion install. The CFAdmin URL as mentioned is 8300, so i guess it is a multi server installation.
As pointed out by stephen, your web root would be something like \Jrun4\servers\cfusion\cfusion-ear\cfusion-war\
You need to place your helloworld.cfm in the above path.
I recommend ColdFusion builder/ CFEclipse to start with.
CF is a easy language, you will realize that soon :)
http://localhost/ will point to where your web server is configured. So obvious question is did you configure a web server such as IIS or Apache? Which OS are you using and which install of ColdFusion did you pick (standard, multiserver, other...)?
If you don't want to use an external web server you can use the built-in one, I have never really used it much but here is a link that should get you going: http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=webservmgmt_3.html
To create CFM files you can use pretty much any editor, the most popular one is Eclipse (http://www.eclipse.org/) coupled with the CFEclipse plugin (http://www.cfeclipse.org/). Adobe now has a IDE based on Eclipse called CFBuilder (http://www.adobe.com/products/coldfusion/cfbuilder/features/) which is gaining speed quickly, but it is not free.