Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » HTTP 404(Deploying an app)
icon5.gif  HTTP 404 [message #1394598] Sat, 05 July 2014 15:16 Go to next message
Santo Mota is currently offline Santo MotaFriend
Messages: 63
Registered: July 2013
Member
When iam trying to load my app in an web content using tomcat, i get the next error.

Estado HTTP 404 - ProxyServlet: /helloworld

type Informe de estado

mensaje ProxyServlet: /helloworld

descripción El recurso requerido no está disponible.

Im facing this error and I dont know what to do now, I was searching any error inside my web.xml file but for me its ok.

may enybody help me with this stuff.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>EquinoxBridge</servlet-name>
<servlet-class>
org.eclipse.equinox.servletbridge.BridgeServlet
</servlet-class>
<init-param>
<param-name>enableFrameworkControls</param-name>
<param-value>false</param-value>
</init-param>
<!--
org.eclipse.equinox.servletbridge and the Servlet API are exported automatically to the underlying OSGi framework.
The extendedFrameworkExports parameter allows the specification of additional java package exports.
The format is a comma separated list of exports as specified by the "Export-Package" bundle manifest header.
For example: com.mycompany.exports; version=1.0.0, com.mycompany.otherexports; version=1.0.0
-->
<init-param>
<param-name>extendedFrameworkExports</param-name>
<param-value></param-value>
</init-param>
<!--
Specify alternate framework launcher here.
The default is: org.eclipse.equinox.servletbridge.FrameworkLauncher
<init-param>
<param-name>frameworkLauncherClass</param-name>
<param-value>org.eclipse.equinox.servletbridge.FrameworkLauncher</param-value>
</init-param>
-->
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>EquinoxBridge</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
Re: HTTP 404 [message #1394768 is a reply to message #1394598] Sat, 05 July 2014 21:55 Go to previous messageGo to next message
Santo Mota is currently offline Santo MotaFriend
Messages: 63
Registered: July 2013
Member
any idea?
any boby has never facing this issue? Sad

[Updated on: Sun, 06 July 2014 01:15]

Report message to a moderator

Re: HTTP 404 [message #1394877 is a reply to message #1394768] Sun, 06 July 2014 02:18 Go to previous messageGo to next message
barust Mising name is currently offline barust Mising nameFriend
Messages: 57
Registered: February 2014
Member
Hi, Santo.
Maybe you first see it: http://wiki.eclipse.org/Scout/Tutorial/4.0/Deploy_to_Tomcat .
Second,"404 Not Found - the most common mistake when using the Internet, the main reason - a mistake in writing the address Web-page. The server understood the request, but did not find corresponding resource with the specified URI."
Re: HTTP 404 [message #1394982 is a reply to message #1394598] Sun, 06 July 2014 06:33 Go to previous messageGo to next message
Santo Mota is currently offline Santo MotaFriend
Messages: 63
Registered: July 2013
Member
No Message Body

[Updated on: Sun, 06 July 2014 13:03]

Report message to a moderator

Re: HTTP 404 [message #1394987 is a reply to message #1394877] Sun, 06 July 2014 06:41 Go to previous messageGo to next message
Santo Mota is currently offline Santo MotaFriend
Messages: 63
Registered: July 2013
Member
thanks to you by your help.
I read everything and i didn't see anything different.
I made my scout test application, then I exported like a project

---------------------------
http://localhost:8080/myfirstapp
http://localhost:8080/myfirstapp_server/

see Image 1 app deploy
see image 2 Error


May be my problem it's inside the environment variable. But i'm not sure about it.

Classpath: .
CATALINA_HOME: C:\apache-tomcat-8.0.9
JAVA_HOME: C:\Program Files\Java\jdk1.7.0

could you tell me if I must focus my issue in the xml file, or in the server name...
Thanks
  • Attachment: 1.PNG
    (Size: 11.24KB, Downloaded 467 times)
  • Attachment: 2.PNG
    (Size: 10.95KB, Downloaded 704 times)
Re: HTTP 404 [message #1394988 is a reply to message #1394877] Sun, 06 July 2014 06:43 Go to previous messageGo to next message
Santo Mota is currently offline Santo MotaFriend
Messages: 63
Registered: July 2013
Member
No Message Body

[Updated on: Sun, 06 July 2014 13:00]

Report message to a moderator

Re: HTTP 404 [message #1394989 is a reply to message #1394877] Sun, 06 July 2014 06:43 Go to previous messageGo to next message
Santo Mota is currently offline Santo MotaFriend
Messages: 63
Registered: July 2013
Member
No Message Body

[Updated on: Sun, 06 July 2014 13:04]

Report message to a moderator

Re: HTTP 404 [message #1395076 is a reply to message #1394989] Sun, 06 July 2014 10:08 Go to previous messageGo to next message
barust Mising name is currently offline barust Mising nameFriend
Messages: 57
Registered: February 2014
Member
Hi, Santo.
By default Tomcat Server uses port 8080. In the case of Scout, Equinox also uses port 8080.
On Scout, try to change the port 8080 to some other port, for example 1967,(Scout Object Properties/Product Launchers):
-on Server group config.ini:
org.eclipse.equinox.http.jetty.http.port=8080 repleсe to 1967
-on RAP group config.ini:
server.url=http\://localhost\:8080/testapp_server/ajax replace to 1967
-on Swing and SWT client groups config.ini:
server.url=http\://localhost\:8080/testapp_server/process replase to 1967
Re: HTTP 404 [message #1395176 is a reply to message #1395076] Sun, 06 July 2014 13:59 Go to previous messageGo to next message
Santo Mota is currently offline Santo MotaFriend
Messages: 63
Registered: July 2013
Member
first of all, my apologies to this forum by the white comment before, it was the browser fault Very Happy.

[b][Bahtiyor Ruzimatov][/b] I appreciate your response, and your advise too.
//i changed the port in scout aplication just like you said.
When I tested in scout, all it is fine, the rap package, and the swing UI.
Then I exported my project and I let the default values.
Start tomcat, and It made the deploy, but unfortunately, i've gotten the same error.
would you mind show me xml file that is working.


see my image 4-5

Update info:
I changed tomcat 8 by tomcat 7, againg same error Sad
  • Attachment: 5.PNG
    (Size: 9.31KB, Downloaded 381 times)
  • Attachment: 4.PNG
    (Size: 10.91KB, Downloaded 385 times)

[Updated on: Sun, 06 July 2014 15:47]

Report message to a moderator

Re: HTTP 404 [message #1395243 is a reply to message #1395176] Sun, 06 July 2014 16:28 Go to previous messageGo to next message
barust Mising name is currently offline barust Mising nameFriend
Messages: 57
Registered: February 2014
Member
1) I use: Linux 12.04 x86, Java:(build: 1.8.0_05-B13), Apache Tomchat: 8.0.9;
2) My web.xml (from testapp folder, in my case) file is same as you, I attach a file to confirm.
3) Path for my deployed application on Tomcat Server: $Catalina_home/webapps/testapp(testapp_server)
4) My browser: Firefox (version 30.0)
5) My Scout and Tomcat located same on my pc

I suggest you do the following:
1) replace localhost to 127.0.0.1
2) reinstall Tomcat to version 7
3) do again deployment for war file same as [url=http://wiki.eclipse.org/Scout/Tutorial/4.0/Deploy_to_Tomcat]. I assure you, if it turned out a lot of people, then it is true.
4) Consult the documentation for errors in Equinox, Jetty and Apache Tomcat

Usually, the error traps us in quite unexpected places.

With respect, and in the hope that you will find a solution!
  • Attachment: web.xml
    (Size: 1.43KB, Downloaded 450 times)
Re: HTTP 404 [message #1395348 is a reply to message #1395243] Sun, 06 July 2014 20:14 Go to previous messageGo to next message
Santo Mota is currently offline Santo MotaFriend
Messages: 63
Registered: July 2013
Member
[Bahtiyor Ruzimatov] I feel glad by your response.
I am doing everything to make a well deploy.

But just now, I've notice that Tomcat isn't correctly running my app.

When I start Tomcat 7 or 8, it show up a several error, when it is trying to make a right deploy.

Those error never appear in eclipse, but TOMCAT said ( Image 1 and Image 2).

Now i am thinking that my problem is inside my own project.

Would you mind check this error?
  • Attachment: problem.PNG
    (Size: 41.90KB, Downloaded 441 times)
  • Attachment: problem2.PNG
    (Size: 18.62KB, Downloaded 587 times)
Re: HTTP 404 [message #1395637 is a reply to message #1395348] Mon, 07 July 2014 07:10 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
It seems to me that you have a Java Version problem.

Are you sure you run tomcat with the java version you prepare your application for?

What is the version indicated as required in the MANIFEST.MF files of your application. I have:
Bundle-RequiredExecutionEnvironment: JavaSE-1.7

How are you building your application?
Re: HTTP 404 [message #1395789 is a reply to message #1395637] Mon, 07 July 2014 11:59 Go to previous messageGo to next message
Santo Mota is currently offline Santo MotaFriend
Messages: 63
Registered: July 2013
Member
Thanks by your response.
I can see that inside the manifest file, its require J2SE-1.4
How can I change this in the eclipse scout app?
But look at my JDK, it say JDK 1.7.

And now that we're talking about the java version, what does mean "java Library 1.8"
if I have running java 1.7 in my laptop pc? [see image]

Manifest-Version: 1.0
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: CDC-1.1/Foundation-1.1,J2SE-1.4
Built-By: e4Build
Bundle-SymbolicName: org.eclipse.equinox.servletbridge;singleton:=true
Eclipse-SourceReferences: scm:git:git://git.eclipse.org/gitroot/equino
x/rt.equinox.bundles.git;path="bundles/org.eclipse.equinox.servletbri
dge";tag="I20140430-2000";commitId=e96c48387b6a307fa2e1168aec69514271
7cb9ae
Export-Package: org.eclipse.equinox.servletbridge;version="1.1.0"
Bundle-Version: 1.3.0.v20140430-1556
Build-Jdk: 1.7.0_51
Bundle-Vendor: %providerName
Bundle-Name: %bundleName
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Bundle-ManifestVersion: 2
Import-Package: javax.servlet;version="2.3.0",javax.servlet.http;versi
on="2.3.0"



  • Attachment: Capture.PNG
    (Size: 17.40KB, Downloaded 634 times)

[Updated on: Mon, 07 July 2014 12:08]

Report message to a moderator

Re: HTTP 404 [message #1395795 is a reply to message #1395789] Mon, 07 July 2014 12:08 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
It looks to me that this is the content of "org.eclipse.equinox.servletbridge/META-INF/MANIFEST.MF"

Your application is constituted of multiple bundles.

Switch to the "Package Explorer" View. Have a look at the Manifest files:
* com.myfirstapp.client/META-INF/MANIFEST.MF
* com.myfirstapp.shared/META-INF/MANIFEST.MF
* com.myfirstapp.server/META-INF/MANIFEST.MF
* ..
Re: HTTP 404 [message #1396037 is a reply to message #1395795] Mon, 07 July 2014 19:55 Go to previous messageGo to next message
Santo Mota is currently offline Santo MotaFriend
Messages: 63
Registered: July 2013
Member
Now its working!!!!!!!!!!!!!!!
yupiiii

now how can I close or mark this thread as done?

Very Happy

-------------------------------------------
What was the answer Evil or Very Mad jejejje
-------------------------------------------

I am not going to let you down.

I made a video with the solution, but I am glad to say that the problem
was the java configuration.
I reset everything from scratch

See this video if you want more details.

http://youtu.be/UykJIA5TQXA
Re: HTTP 404 [message #1396072 is a reply to message #1396037] Mon, 07 July 2014 21:00 Go to previous message
Chris Monty is currently offline Chris MontyFriend
Messages: 26
Registered: July 2013
Junior Member
Santo, good on you for making that video. Someday someone somewhere will really appreciate it.
Previous Topic:Luna technologie RAP Filechooser problem
Next Topic:How can i get the contract in java
Goto Forum:
  


Current Time: Sat Apr 20 04:32:24 GMT 2024

Powered by FUDForum. Page generated in 0.03755 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top