This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes URL from java to Google Analytics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "URL from java to Google Analytics" Watch "URL from java to Google Analytics" New topic
Author

URL from java to Google Analytics

Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 331
Hi,

I am asking the server with an Url which I have created with a java method and I get this error:


This is the URL :




And this are the values which I stored in Google



When I created my Redirect URIs, I typed http://www.virtualenvironment.eu but it added the oauth2callback authomatically.

But it doesn´t find http://www.virtualenvironment.eu/oauth2callback, when the petition is authorized and redirected. I breaking my head with this problem


I am very interested in know this.
Any idea, please?

Many Thanks,
harshvardhan ojha
Ranch Hand

Joined: Jul 26, 2007
Posts: 157
    
    1

Angus it seems to be a simple problem
/oauth2callback is it present in your url pattern?? i mean this is 404 error. And it seems client has made request for a resource which server doesn't have.
check your web.xml for
<url-pattern>/oauth2callback</url-pattern>
Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 331
Hi, thank for reply.

In the xml of my app what way shouldl I define that, maybe like this?




Many Thanks,
harshvardhan ojha
Ranch Hand

Joined: Jul 26, 2007
Posts: 157
    
    1

see if you servlet is mapped properly.
 
Consider Paul's rocket mass heater.
 
subject: URL from java to Google Analytics
 
Similar Threads
After logout in JSF relogin withtout credentials possible
How to control redirection: http, https, and trailing slashes
A 404 Error, need help configuring web.xml
Tomcat Realms not working between apps with FORM
Trouble generating web service client