Trying to run a HTML application but server could not find right bundle - html

I tried to run a HTML file that I coded on netbeans in eclipse. I downloaded the web tools platform in the eclipse marketplace. Then I configured the server but when I tried to run the file, I got a popup box with an error saying:
'Starting J2EE Preview at localhost' has encountered a problem. Could not find the required bundle org.eclipse.jetty.webapp. Does anyone know where I could get this bundle. I have eclipse luna.

Related

I cannot install Blazorise in my Blazor server side app. I get the Error that "Microsoft.AspNetCore.Blazor" package could not be find

I have a blazor server side app that is working without problem. (Net Core 3.1). I tried to install Blazorise according the quick start page in https://blazorise.com/docs/start. As my server has no internet access I have downloaded the packages "Blazorise.Bootstrap 0.7.2" and "Blazorise.Icons.FontAwesome 0.9.2.5".
I can install the "Blazorise.Icons.FontAwesome" without Error. But if I try to install "Blazorise.Bootstrap" I get the Error
"NU1101: Unable to find package Microsoft.AspNetCore.Blazor. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Package source"
I cannot find any package like "Microsoft.AspNetCore.Blazor". What should I do now?
Update1:
I have found a package like "Microsoft.AspNetCore.Blazor.Templates 3.1.0-preview4.19579.2" but if I try to install I get Error
"Package 'Microsoft.AspNetCore.Blazor.Templates 3.1.0-preview4.19579.2' has a package type 'Template' that is not supported by project 'WebApplication7'"
I had some problmes at the beginning with updateing NetCore3.1 to Net6.0 But at the end I fixed them. So I could install Blazorise's last version without problem.
Thanks for the comments, suggesting that.

migration from .net5 to .net6, view does not found

I have upgrade project to .net 6. On my localhost everything is fine, but on server doesn't work. Razor compiler no longer produces a Views assembly, it pruduces one dll file with .net6. I already install .net6 hosting bundle from here. But still not working.
InvalidOperationException: The view 'Login' was not found. The following locations were searched:
/Views/User/Login.cshtml
/Views/Shared/Login.cshtml
Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult.EnsureSuccessful(IEnumerable<string> originalLocations)
EDIT: I updated all of microsoft and system packages to latest version from nuget then publish is successful.

Chrome dev editor can't get packages, and can't run the basic app

I have installed a Chrome dev editor tool, created a dart web app, and I unable to run it I get this error when I try to run it image
Then I tried to get the packages "Pub Get" and get this error image
I installed the dart via brew still the same.
I don't know what exactly causes your first error message but the 2nd is caused by an old Dart SDK version. Dart before about 1.8.0 isn't able to parse version constraints using the shorthand notation ^

Visual Studio 2013 native cordova app build error

I just installed and repaired my VS2013 to build Native Cordova App. I have also installed the latest version of NodeJS but whenever I am trying to build the Application It gives me an error. I am uploading an image for more details on error as I believe image provide more info than text.
Posting error details if error is not clear in an image
Cannot find module 'q'.
The command ""C:\Users\nnnc\AppData\Roaming\npm\node_modules\vs-mda\vs-cli" prepare --platform Android --configuration Debug --projectDir . --projectName "BlankCordovaApp1" --language "en-US"" exited with code 8. C:\Users\nnnc\AppData\Roaming\npm\node_modules\vs-mda-targets\Microsoft.MDA.targets
I have advanced a little bit more but having hard time to run the application I have to manually installed all the required module. but now whenever I am running my project I get an error of web page is not available. please look at the attached image again.
I found that running npm install from within /vs-mda/ solved all my problems.
found the fix and that Involved manually loading packages like q via node js and in the end the fix for web page is not available was that ripple has changed and now we should not add it as an extension via chrome. it should be done via node js as well as below
npm install ripple -g
but before doing that delete it from chrome if you have got it otherwise just run the command.
Regards

JavaFx 2 applicaton does not run when i run it through HTML page

I have downloaded the javafx 2 samples and want to run in from its HMTL. For example there is one javafx application called BrickBreaker. For the specific sample the following files exist : BrickBreaker.jar, BrickBreaker.jnlp and BrickBreaker.html
When double clicking on jar or jnlp the application runs as expected but when i click on the html the application does not run. Instead i get the message "View the conectes of the page. Please install javaFX"
Why is that happening ? ( i have the javafx installed as the application runs when choosing the jar and jnlp files). My guess is that the html should be called from within the context of a webserver meaning that i should deploy my application first to a server and call the url from my explorer. For example if using glassfish i should call the url http://localhost:8080/Brickbraker
The problem is that i don't know how to deploy the javafx application in the server.
i tried to copy paste all the above three files in the autodeploy folder but it didnt worked...
Could you please help me?
Thanks in advance
EDIT: some more info - I have installed JDK 7 and JavaFX SDK 2.0.2
No, JavaFX is client technology, you don't need Glassfish to run it. JavaFX should run in browser the same way as Java plugins do.
If you can't run an application directly from html file it means your browser doesn't recognize you have runtime installed.
There can be next reasons for that:
JavaFX runtime is actually not installed (check in Windows Control Panel)
pure java plugin is not installed (you can check on java.com)
javafx runtime is 32bit and you are using 64bit browser (or vice versa)
you are using not supported browser (e.g. Safari)
you are using not supported system (at this moment, January 2012, only Windows supports runtime)