aspose file tools*
The moose likes JSP and the fly likes Can't load JSTL tag library Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Can Watch "Can New topic
Author

Can't load JSTL tag library

Steve Elliser
Greenhorn

Joined: Mar 15, 2006
Posts: 8
I am porting a bunch of jsp code and the original system works perfectly. On the new system, I'm getting the following error when I try to load tag libraries:

500 The path http:/java.sun.com/jstl/core does not start with '/'

This happens for every tag library I try to load: (code below)

<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*,javax.servlet.*,javax.servlet.http.*,javax.servlet.jsp.jstl.sql.Result,javax.servlet.jsp.jstl.sql.ResultSupport,javax.sql.*,utilities.*,security.*,java.util.*,java.io.*" errorPage="" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/sql" prefix="sql" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://jakarta.apache.org/taglibs/string-1.1" prefix="str" %>
...

rest of code
....

Anyone have any suggestions of where to look for a fix?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61226
    
  66

The text in the message you posted

The path http:/java.sun.com/jstl/core does not start with '/'


does not match the code you posted. Which is accurate?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Steve Elliser
Greenhorn

Joined: Mar 15, 2006
Posts: 8
Wow, I just noticed that; Both are correct ;-)

The code is accurate and so is the error message. I'm only guessing that its interpretting the extra slash as an escape character. and therefore losing the valid uri...let me see if adding more slashes for escaping purposes fixes it.

I'm still interested in coming up with a root cause since the code should work fine as listed above.
Steve Elliser
Greenhorn

Joined: Mar 15, 2006
Posts: 8
OK, further excaping the path in the code had no effect.

error:
500 The path http:/java.sun.com/jstl/core does not start with '/'
The path http:/java.sun.com/jstl/core does not start with '/'

code:
<%@ taglib uri="http:////java.sun.com/jstl/core" prefix="c" %>
or
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>

/boggle
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61226
    
  66

Originally posted by Steve Elliser:
OK, further excaping the path in the code had no effect.


Right, no escaping is necessary.

On the new system,


What "new system"? Without some environmental information, there's not really much to go on.

I have never seen this type of problem before.
 
 
subject: Can't load JSTL tag library