Ikonne, Ike | 2 Jan 04:54 2004

JspC compiler error


Hi all,

I am getting the following errors when I invoke the JspC compiler,
here is the command that I issued:

java -classpath
javax.servlet.jar:jasper-compiler.jar:jasper-runtime.jar:commons-logging.jar
org.apache.jasper.JspC -v8 newAccount.jsp

Here is the result that I got:

2004-01-01 09:21:43 - uriRoot implicitly set to
"/home/nis02/iikon1/ceu2200/ceunix/src/ceuadmin"
2004-01-01 09:21:43 - ERROR-the file '/jsp/newAccount.jsp' generated the
following general exception: java.lang.NullPointerException
error:null

What am I doing wrong?

Thanks,

Ike

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
(Continue reading)

Nurb | 4 Jan 12:29 2004
Picon
Picon

Missing resource at Jetty-JBoss with Struts-Layout

Hi all,

I'm trying to use my Web-Application with Jetty-JBoss
(jboss-3.2.3RC1-jetty-4.2.14) - and i'm still running into the
following error.

This application uses the Struts-Layout.properties files, which
are located in he web-inf/classes/ directory. This error
did not occur, when i run the same web-application on JBoss-Tomcat
(different versions) or JBoss-Jetty (JBoss_3_2_1 date=20031020).

Does somebody has an idea and could help me?
Thanks in forward!

Nurb

Error message:
java.util.MissingResourceException: Can't find bundle for base name Struts-Layout, locale default
        at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:804)
        at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:773)
        at java.util.ResourceBundle.getBundle(ResourceBundle.java:538)
        at fr.improve.struts.taglib.layout.skin.Skin.<init>(Unknown Source)
        at fr.improve.struts.taglib.layout.skin.Skin.getSkin(Unknown Source)
        at fr.improve.struts.taglib.layout.util.LayoutUtils.getSkin(Unknown Source)
        at fr.improve.struts.taglib.layout.LabelledTag.setPageContext(Unknown Source)
        at org.apache.jsp.index_jsp._jspx_meth_layout_html_0(index_jsp.java:93)
        at org.apache.jsp.index_jsp._jspService(index_jsp.java:75)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
(Continue reading)

Nurb | 4 Jan 16:07 2004
Picon
Picon

Re: Missing resource at Jetty-JBoss with Struts-Layout

Hello, Problem solved:

i switched from Struts 1.0 to Struts 1.1, so I've forgotten to change
the DTD-entry in struts-config.xml to 1.1:

<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">

Also, i had to install the  struts-layout plugin to use a different
default configuration file. In struts-config.xml i had to add:

 <plug-in className="fr.improve.struts.taglib.layout.workflow.LayoutPlugin">
 <set-property property="skinResources" value="MyDefaultSkin"/>
 </plug-in>

Now, it works fine also.

N> Hi all,

N> I'm trying to use my Web-Application with Jetty-JBoss
N> (jboss-3.2.3RC1-jetty-4.2.14) - and i'm still running into the
N> following error.

N> This application uses the Struts-Layout.properties files, which
N> are located in he web-inf/classes/ directory. This error
N> did not occur, when i run the same web-application on JBoss-Tomcat
N> (different versions) or JBoss-Jetty (JBoss_3_2_1 date=20031020).

N> Does somebody has an idea and could help me?
N> Thanks in forward!
(Continue reading)

matt baldree | 5 Jan 01:18 2004
Picon

virutal host jboss/jetty

I'm trying to do the following:
 
www.virtualhost1.com map to context /host1 without doing www.virtualhost1.com/host1
www.virtualhost2.com map to context /host2 without doing www.virtualhost2.com/host2
 
The server IP should still map to the app deployed to the root /
 
How do I do this? I can make it work by appending the context.
Ikonne, Ike | 5 Jan 04:08 2004

jasper-compiler errors -- help

Hi all, 

I am getting the following errors when I invoke the JspC compiler, 
here is the command that I issued: 

java -classpath 
javax.servlet.jar:jasper-compiler.jar:jasper-runtime.jar:commons-logging.jar

org.apache.jasper.JspC -v8 newAccount.jsp 

Here is the result that I got: 

2004-01-01 09:21:43 - uriRoot implicitly set to 
"/home/nis02/iikon1/ceu2200/ceunix/src/ceuadmin" 
2004-01-01 09:21:43 - ERROR-the file '/jsp/newAccount.jsp' generated the 
following general exception: java.lang.NullPointerException 
error:null 

What am I doing wrong? 

Thanks, 

Ike 

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support

Ikonne, Ike | 6 Jan 00:30 2004

RE: How can I tell Jetty to put compiled JSP classes in a specifi c Di rectory

Hi Greg,

I have tried your suggestion for resolving tempdir issue for jsp, but I am
still have some problem with it.

In my WAR file, I have added additonal directory WEB-INF/work, and when it
is deployed,
I can see that it created ../WEB-INF/work, but Jetty won't use
it, instead it still uses "java.io.tempdir".  So, my question is, what am I
doing 
wrong?

Ike

-----Original Message-----
From: Greg Wilkins [mailto:gregw <at> mortbay.com]
Sent: Tuesday, December 16, 2003 12:01 AM
To: jetty-support <at> lists.sourceforge.net
Subject: Re: How can I tell Jetty to put compiled JSP classes in a
specific Di rectory

I've been working on the on-line FAQ and I really hope that it answers
this question for you now.  If not please say so....

   http://jetty.mortbay.org/jetty/faq/

regards

Ikonne, Ike wrote:
> Hi all,
> 
> 
> I have posted this question before but did not receive any response yet,
> so I thought I might try again.  Here is my question:
> 
> 
> I have an embedded Jetty in my application, I would like to tell Jetty
> where to put compiled JSP classes, is there a method that would enable
> me to accomplsih that?
> 
> Thanks,
> 
> Ike
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> Jetty-support mailing list
> Jetty-support <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jetty-support
> 

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support

Ludde | 6 Jan 00:50 2004
Picon

Re: RE: How can I tell Jetty to put compiled JSP classes in a specifi c Di rectory

I've suceeded to instruct "Jetty/jasper" 5.x to output its generated 
servlets to a specific catalog by changing the  webdefault.xml , I 
guess you can either change it in the Jetty Jar or place a local copy 
that is read first (overriding the resource in the jar file).

/Rickard Lundin
----------webdefault.xml--------------------

<servlet>
  <servlet-name>jsp</servlet-name> 
  <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class> 

.... Some Init params ...

 <init-param>
  <param-name>scratchdir</param-name> 
  <param-value>/ludde/generated</param-value> 
 </init-param>

  <load-on-startup>0</load-on-startup> 

</servlet>

> Hi Greg,
> 
> I have tried your suggestion for resolving tempdir issue for jsp, but 
I am
> still have some problem with it.
> 
> In my WAR file, I have added additonal directory WEB-INF/work, and 
when it
> is deployed,
> I can see that it created ../WEB-INF/work, but Jetty won't use
> it, instead it still uses "java.io.tempdir".  So, my question is, 
what am I
> doing 
> wrong?
> 
> Ike
> 
> -----Original Message-----
> From: Greg Wilkins [mailto:gregw <at> mortbay.com]
> Sent: Tuesday, December 16, 2003 12:01 AM
> To: jetty-support <at> lists.sourceforge.net
> Subject: Re: How can I tell Jetty to put compiled JSP classes in a
> specific Di rectory
> 
> 
> 
> 
> I've been working on the on-line FAQ and I really hope that it answers
> this question for you now.  If not please say so....
> 
>    http://jetty.mortbay.org/jetty/faq/
> 
> regards
> 
> 
> Ikonne, Ike wrote:
> > Hi all,
> > 
> > 
> > I have posted this question before but did not receive any response 
yet,
> > so I thought I might try again.  Here is my question:
> > 
> > 
> > I have an embedded Jetty in my application, I would like to tell 
Jetty
> > where to put compiled JSP classes, is there a method that would 
enable
> > me to accomplsih that?
> > 
> > Thanks,
> > 
> > Ike
> > 
> > 
> > -------------------------------------------------------
> > This SF.net email is sponsored by: IBM Linux Tutorials.
> > Become an expert in LINUX or just sharpen your skills.  Sign up for 
IBM's
> > Free Linux Tutorials.  Learn everything from the bash shell to sys 
admin.
> > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> > _______________________________________________
> > Jetty-support mailing list
> > Jetty-support <at> lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jetty-support
> > 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for 
IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys 
admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> Jetty-support mailing list
> Jetty-support <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jetty-support
> 
> 

--

-- 

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support

Greg Wilkins | 6 Jan 00:50 2004

Re: How can I tell Jetty to put compiled JSP classes in a specifi c Di rectory


Ike,

firstly there is a mistake in the doco and my emails.  It is java.io.tmpdir
not java.io.tempdir.

Which version of Jetty are you using?

Have you tried creating a work direction in jetty.home an seeing if that
is used?

Are you running your WAR files packed or unpacked?  If you run your webapp
packed, then the WEB-INF/work file cannot be used.  If you let jetty do
the unpacking, it needs to workout the temp directory first, so it can
unpack to it, so it is too late for the WEB-INF/work directory.
So try deploying your webapp already unpacked.

cheers

Ikonne, Ike wrote:
> Hi Greg,
> 
> I have tried your suggestion for resolving tempdir issue for jsp, but I am
> still have some problem with it.
> 
> In my WAR file, I have added additonal directory WEB-INF/work, and when it
> is deployed,
> I can see that it created ../WEB-INF/work, but Jetty won't use
> it, instead it still uses "java.io.tempdir".  So, my question is, what am I
> doing 
> wrong?
> 
> Ike
> 
> -----Original Message-----
> From: Greg Wilkins [mailto:gregw <at> mortbay.com]
> Sent: Tuesday, December 16, 2003 12:01 AM
> To: jetty-support <at> lists.sourceforge.net
> Subject: Re: How can I tell Jetty to put compiled JSP classes in a
> specific Di rectory
> 
> 
> 
> 
> I've been working on the on-line FAQ and I really hope that it answers
> this question for you now.  If not please say so....
> 
>    http://jetty.mortbay.org/jetty/faq/
> 
> regards
> 
> 
> Ikonne, Ike wrote:
> 
>>Hi all,
>>
>>
>>I have posted this question before but did not receive any response yet,
>>so I thought I might try again.  Here is my question:
>>
>>
>>I have an embedded Jetty in my application, I would like to tell Jetty
>>where to put compiled JSP classes, is there a method that would enable
>>me to accomplsih that?
>>
>>Thanks,
>>
>>Ike
>>
>>
>>-------------------------------------------------------
>>This SF.net email is sponsored by: IBM Linux Tutorials.
>>Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
>>Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
>>Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
>>_______________________________________________
>>Jetty-support mailing list
>>Jetty-support <at> lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/jetty-support
>>
> 
> 

--

-- 
Greg Wilkins<gregw <at> mortbay.com>             Phone/fax: +44 7092063462
Mort Bay Consulting Australia and UK.          http://www.mortbay.com

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support

Ikonne, Ike | 6 Jan 01:54 2004

RE: How can I tell Jetty to put compiled JSP classes in a specifi c Di rectory

Hi Greg,

Firstly, thanks for your quick response.  Anyway, I am running Jetty in an
embedded
fashion and I am using JarResource to deployed my war file dynamically.

So, are you saying that it would be already too late for Jetty to use the
../WEB-INF/work 
associated with my WAR File?

Also, could I use System.SetProperty("java.io.tmpdir", myTempdir) just
before I start
to deploy my WAR so that Jetty might be forced to use ../WEB-INF/work
associated with the
WAR file?  

By the way, I am using Jetty 4.2.12

Thanks,

Ike

-----Original Message-----
From: Greg Wilkins [mailto:gregw <at> mortbay.com]
Sent: Monday, January 05, 2004 5:51 PM
To: Ikonne, Ike
Cc: jetty-support <at> lists.sourceforge.net
Subject: Re: How can I tell Jetty to put compiled JSP classes in a
specifi c Di rectory

Ike,

firstly there is a mistake in the doco and my emails.  It is java.io.tmpdir
not java.io.tempdir.

Which version of Jetty are you using?

Have you tried creating a work direction in jetty.home an seeing if that
is used?

Are you running your WAR files packed or unpacked?  If you run your webapp
packed, then the WEB-INF/work file cannot be used.  If you let jetty do
the unpacking, it needs to workout the temp directory first, so it can
unpack to it, so it is too late for the WEB-INF/work directory.
So try deploying your webapp already unpacked.

cheers

Ikonne, Ike wrote:
> Hi Greg,
> 
> I have tried your suggestion for resolving tempdir issue for jsp, but I am
> still have some problem with it.
> 
> In my WAR file, I have added additonal directory WEB-INF/work, and when it
> is deployed,
> I can see that it created ../WEB-INF/work, but Jetty won't use
> it, instead it still uses "java.io.tempdir".  So, my question is, what am
I
> doing 
> wrong?
> 
> Ike
> 
> -----Original Message-----
> From: Greg Wilkins [mailto:gregw <at> mortbay.com]
> Sent: Tuesday, December 16, 2003 12:01 AM
> To: jetty-support <at> lists.sourceforge.net
> Subject: Re: How can I tell Jetty to put compiled JSP classes in a
> specific Di rectory
> 
> 
> 
> 
> I've been working on the on-line FAQ and I really hope that it answers
> this question for you now.  If not please say so....
> 
>    http://jetty.mortbay.org/jetty/faq/
> 
> regards
> 
> 
> Ikonne, Ike wrote:
> 
>>Hi all,
>>
>>
>>I have posted this question before but did not receive any response yet,
>>so I thought I might try again.  Here is my question:
>>
>>
>>I have an embedded Jetty in my application, I would like to tell Jetty
>>where to put compiled JSP classes, is there a method that would enable
>>me to accomplsih that?
>>
>>Thanks,
>>
>>Ike
>>
>>
>>-------------------------------------------------------
>>This SF.net email is sponsored by: IBM Linux Tutorials.
>>Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
>>Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
>>Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
>>_______________________________________________
>>Jetty-support mailing list
>>Jetty-support <at> lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/jetty-support
>>
> 
> 

--

-- 
Greg Wilkins<gregw <at> mortbay.com>             Phone/fax: +44 7092063462
Mort Bay Consulting Australia and UK.          http://www.mortbay.com

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support

Ikonne, Ike | 6 Jan 01:57 2004

RE: RE: How can I tell Jetty to put compiled JSP classes in a specifi c Di rectory

Hi,

Thanks for your prompt response.  I am running Jetty in an embedded fashion,
so
I would not have access to webdefault.xml.  How can I do this dynamically?

Thanks,

Ike

-----Original Message-----
From: jetty-support-admin <at> lists.sourceforge.net
[mailto:jetty-support-admin <at> lists.sourceforge.net]On Behalf Of Ludde
Sent: Monday, January 05, 2004 5:51 PM
To: jetty-support <at> lists.sourceforge.net
Subject: Re: [Jetty-support] RE: How can I tell Jetty to put compiled
JSP classes in a specifi c Di rectory

I've suceeded to instruct "Jetty/jasper" 5.x to output its generated 
servlets to a specific catalog by changing the  webdefault.xml , I 
guess you can either change it in the Jetty Jar or place a local copy 
that is read first (overriding the resource in the jar file).

/Rickard Lundin
----------webdefault.xml--------------------

<servlet>
  <servlet-name>jsp</servlet-name> 
  <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class> 

.... Some Init params ...

 <init-param>
  <param-name>scratchdir</param-name> 
  <param-value>/ludde/generated</param-value> 
 </init-param>

  <load-on-startup>0</load-on-startup> 

</servlet>

> Hi Greg,
> 
> I have tried your suggestion for resolving tempdir issue for jsp, but 
I am
> still have some problem with it.
> 
> In my WAR file, I have added additonal directory WEB-INF/work, and 
when it
> is deployed,
> I can see that it created ../WEB-INF/work, but Jetty won't use
> it, instead it still uses "java.io.tempdir".  So, my question is, 
what am I
> doing 
> wrong?
> 
> Ike
> 
> -----Original Message-----
> From: Greg Wilkins [mailto:gregw <at> mortbay.com]
> Sent: Tuesday, December 16, 2003 12:01 AM
> To: jetty-support <at> lists.sourceforge.net
> Subject: Re: How can I tell Jetty to put compiled JSP classes in a
> specific Di rectory
> 
> 
> 
> 
> I've been working on the on-line FAQ and I really hope that it answers
> this question for you now.  If not please say so....
> 
>    http://jetty.mortbay.org/jetty/faq/
> 
> regards
> 
> 
> Ikonne, Ike wrote:
> > Hi all,
> > 
> > 
> > I have posted this question before but did not receive any response 
yet,
> > so I thought I might try again.  Here is my question:
> > 
> > 
> > I have an embedded Jetty in my application, I would like to tell 
Jetty
> > where to put compiled JSP classes, is there a method that would 
enable
> > me to accomplsih that?
> > 
> > Thanks,
> > 
> > Ike
> > 
> > 
> > -------------------------------------------------------
> > This SF.net email is sponsored by: IBM Linux Tutorials.
> > Become an expert in LINUX or just sharpen your skills.  Sign up for 
IBM's
> > Free Linux Tutorials.  Learn everything from the bash shell to sys 
admin.
> > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> > _______________________________________________
> > Jetty-support mailing list
> > Jetty-support <at> lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jetty-support
> > 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for 
IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys 
admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> Jetty-support mailing list
> Jetty-support <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jetty-support
> 
> 

-- 

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support


Gmane