Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can't load JSTL tag library

 
Steve Elliser
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Steve Elliser
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic