Hi,

I've tried to take one of the Merlin tutorials in the
/merlin/tutorial/profiles/
section of the tutorials that I downloaded from the site.

My file structure is such (Windows XP):

/merlin
/merlin/bin
/merlin/tutorial/profiles/src/java/tutorial

The tutorials run fine as described on the Apache Merlin website, but it
didn't show me how to have a jsp file access component information. So
that's what I've tried to do, a real real simple jsp file.

These are the steps that I did:

1) Modified the
/merlin/tutorial/profiles/src/java/tutorial/HelloComponent.java file.
I added a method:

public String textReturn ()
    {
      return("hello");
    }

2) I created an index.jsp file and placed this at the
/merlin/tutorial/profiles/src/java/tutorial/ directory. This is what the
jsp file looks like, its real simple.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
        <title>Untitled</title>
</head>

<body>
<%@ page import="tutorial.HelloComponent"%>

<%! HelloComponent hello = new HelloComponent(); %>

<%=hello.textReturn()%>


</body>
</html>

3) I did a "maven war" in the /merlin/tutorial/profiles/ directory and it
created a target directory which contained the war files.

4) I deployed the war files in Tomcat 5.0

5) I copied the index.jsp file to the apps root for the web app in Tomcat.

This is the current error that I'm receiving when I try to view the file:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 11 in the jsp file: /index.jsp

Generated servlet error:
    [javac] Compiling 1 source file

E:\Tomcat5.0\work\Catalina\localhost\merlin-tutorial-profile\org\apache\jsp\index_jsp.java:11:
cannot access org.apache.avalon.framework.logger.AbstractLogEnabled
file org\apache\avalon\framework\logger\AbstractLogEnabled.class not found
 HelloComponent hello = new HelloComponent();
                        ^
1 error


I'm not sure what is the problem at this point. I didn't change any other
settings so don't know why the Logger wouldn't be found.

Also, this and other files refer to org.apache.avalon.framework.etc...
where exactly is this?

Thanks,

Thai Lam


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to