You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Sanjay Choudhary <ch...@gmail.com> on 2006/03/10 20:59:48 UTC

maven 2 with jdk 1.3

Hi All,

I have an application that run's on  JDK 1.3.

In the POM's I have the following setting


<plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-compiler-plugin</artifactId>

<configuration>

<compilerVersion>1.3</compilerVersion>

<target>1.3</target>

<showDeprecation>true</showDeprecation>

<showWarnings>true</showWarnings>

</configuration>

<inherited>true</inherited>

</plugin>

Is there anything else I need to do to make it work with JDK 1.3?  If not,
why will I get an error,

[3/10/06 11:24:10:538 PST] 65795dd9 WebGroup      E SRVE0026E: [Servlet
Error]-[java.lang.StringBuffer: method append&#40;
Ljava/lang/StringBuffer&#59;&#41;Ljava/lang/StringBuffer&#59; not found]:
javax.servlet.jsp.JspException: java.lang.String
Buffer: method append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not
found
        at org.apache.struts.taglib.template.InsertTag.doEndTag(
InsertTag.java:164)
        at org.apache.jsp._index._jspService(_index.java:344)
        at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(
HttpJspBase.java:89)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

StringBuffer.append(StringBuffer) is JDK 1.4.

Please advice,

Sanjay

Re: maven 2 with jdk 1.3

Posted by Sanjay Choudhary <ch...@gmail.com>.
It worked fine until y'day. It broke when I changed the dependency version
of some other home build artifacts.

Not sure what would have caused it. Definitly it looks like JDK issue. BTW,
we use struts 1.1.

-Sanjay


On 3/10/06, Wayne Fay <wa...@gmail.com> wrote:
>
> OK then perhaps your Struts library was compiled with JDK 1.4. That's
> probably it, take a look at the stack trace again:
>
> javax.servlet.jsp.JspException: java.lang.StringBuffer:
> method append (Ljava/lang/StringBuffer;) Ljava/lang/StringBuffer; not
> found
>        at org.apache.struts.taglib.template.InsertTag.doEndTag(
> InsertTag.java:164)
>
> Wayne
>
>
> On 3/10/06, Sanjay Choudhary <ch...@gmail.com> wrote:
> > No, I am sure that javax.servlet library is JDK 1.3. It is provided by
> ibm
> > was 5 and we used it to compile it.
> >
> > -Sanjay
> >
> >
> > On 3/10/06, Wayne Fay <wa...@gmail.com> wrote:
> > >
> > > I suspect that you are using javax.servlet library which was compiled
> > > with JDK 1.4.
> > >
> > > Download the code and recompile with JDK 1.3 if you must use it along
> > > with code that targets 1.3.
> > >
> > > Wayne
> > >
> > >
> > > On 3/10/06, Sanjay Choudhary <ch...@gmail.com> wrote:
> > > > Hi All,
> > > >
> > > > I have an application that run's on  JDK 1.3.
> > > >
> > > > In the POM's I have the following setting
> > > >
> > > >
> > > > <plugin>
> > > >
> > > > <groupId>org.apache.maven.plugins</groupId>
> > > >
> > > > <artifactId>maven-compiler-plugin</artifactId>
> > > >
> > > > <configuration>
> > > >
> > > > <compilerVersion>1.3</compilerVersion>
> > > >
> > > > <target>1.3</target>
> > > >
> > > > <showDeprecation>true</showDeprecation>
> > > >
> > > > <showWarnings>true</showWarnings>
> > > >
> > > > </configuration>
> > > >
> > > > <inherited>true</inherited>
> > > >
> > > > </plugin>
> > > >
> > > > Is there anything else I need to do to make it work with JDK 1.3
> ?  If
> > > not,
> > > > why will I get an error,
> > > >
> > > > [3/10/06 11:24:10:538 PST] 65795dd9 WebGroup      E SRVE0026E:
> [Servlet
> > > > Error]-[java.lang.StringBuffer: method append&#40;
> > > > Ljava/lang/StringBuffer&#59;&#41;Ljava/lang/StringBuffer&#59; not
> > > found]:
> > > > javax.servlet.jsp.JspException: java.lang.String
> > > > Buffer: method
> append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer;
> > > not
> > > > found
> > > >        at org.apache.struts.taglib.template.InsertTag.doEndTag(
> > > > InsertTag.java:164)
> > > >        at org.apache.jsp._index._jspService(_index.java:344)
> > > >        at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(
> > > > HttpJspBase.java:89)
> > > >        at javax.servlet.http.HttpServlet.service(HttpServlet.java
> :853)
> > > >
> > > > StringBuffer.append(StringBuffer) is JDK 1.4.
> > > >
> > > > Please advice,
> > > >
> > > > Sanjay
> > > >
> > > >
> > >
> >
> >
>

Re: maven 2 with jdk 1.3

Posted by Wayne Fay <wa...@gmail.com>.
OK then perhaps your Struts library was compiled with JDK 1.4. That's
probably it, take a look at the stack trace again:

javax.servlet.jsp.JspException: java.lang.StringBuffer:
method append (Ljava/lang/StringBuffer;) Ljava/lang/StringBuffer; not found
        at org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:164)

Wayne


On 3/10/06, Sanjay Choudhary <ch...@gmail.com> wrote:
> No, I am sure that javax.servlet library is JDK 1.3. It is provided by ibm
> was 5 and we used it to compile it.
>
> -Sanjay
>
>
> On 3/10/06, Wayne Fay <wa...@gmail.com> wrote:
> >
> > I suspect that you are using javax.servlet library which was compiled
> > with JDK 1.4.
> >
> > Download the code and recompile with JDK 1.3 if you must use it along
> > with code that targets 1.3.
> >
> > Wayne
> >
> >
> > On 3/10/06, Sanjay Choudhary <ch...@gmail.com> wrote:
> > > Hi All,
> > >
> > > I have an application that run's on  JDK 1.3.
> > >
> > > In the POM's I have the following setting
> > >
> > >
> > > <plugin>
> > >
> > > <groupId>org.apache.maven.plugins</groupId>
> > >
> > > <artifactId>maven-compiler-plugin</artifactId>
> > >
> > > <configuration>
> > >
> > > <compilerVersion>1.3</compilerVersion>
> > >
> > > <target>1.3</target>
> > >
> > > <showDeprecation>true</showDeprecation>
> > >
> > > <showWarnings>true</showWarnings>
> > >
> > > </configuration>
> > >
> > > <inherited>true</inherited>
> > >
> > > </plugin>
> > >
> > > Is there anything else I need to do to make it work with JDK 1.3?  If
> > not,
> > > why will I get an error,
> > >
> > > [3/10/06 11:24:10:538 PST] 65795dd9 WebGroup      E SRVE0026E: [Servlet
> > > Error]-[java.lang.StringBuffer: method append&#40;
> > > Ljava/lang/StringBuffer&#59;&#41;Ljava/lang/StringBuffer&#59; not
> > found]:
> > > javax.servlet.jsp.JspException: java.lang.String
> > > Buffer: method append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer;
> > not
> > > found
> > >        at org.apache.struts.taglib.template.InsertTag.doEndTag(
> > > InsertTag.java:164)
> > >        at org.apache.jsp._index._jspService(_index.java:344)
> > >        at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(
> > > HttpJspBase.java:89)
> > >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > >
> > > StringBuffer.append(StringBuffer) is JDK 1.4.
> > >
> > > Please advice,
> > >
> > > Sanjay
> > >
> > >
> >
>
>

Re: maven 2 with jdk 1.3

Posted by Sanjay Choudhary <ch...@gmail.com>.
No, I am sure that javax.servlet library is JDK 1.3. It is provided by ibm
was 5 and we used it to compile it.

-Sanjay


On 3/10/06, Wayne Fay <wa...@gmail.com> wrote:
>
> I suspect that you are using javax.servlet library which was compiled
> with JDK 1.4.
>
> Download the code and recompile with JDK 1.3 if you must use it along
> with code that targets 1.3.
>
> Wayne
>
>
> On 3/10/06, Sanjay Choudhary <ch...@gmail.com> wrote:
> > Hi All,
> >
> > I have an application that run's on  JDK 1.3.
> >
> > In the POM's I have the following setting
> >
> >
> > <plugin>
> >
> > <groupId>org.apache.maven.plugins</groupId>
> >
> > <artifactId>maven-compiler-plugin</artifactId>
> >
> > <configuration>
> >
> > <compilerVersion>1.3</compilerVersion>
> >
> > <target>1.3</target>
> >
> > <showDeprecation>true</showDeprecation>
> >
> > <showWarnings>true</showWarnings>
> >
> > </configuration>
> >
> > <inherited>true</inherited>
> >
> > </plugin>
> >
> > Is there anything else I need to do to make it work with JDK 1.3?  If
> not,
> > why will I get an error,
> >
> > [3/10/06 11:24:10:538 PST] 65795dd9 WebGroup      E SRVE0026E: [Servlet
> > Error]-[java.lang.StringBuffer: method append&#40;
> > Ljava/lang/StringBuffer&#59;&#41;Ljava/lang/StringBuffer&#59; not
> found]:
> > javax.servlet.jsp.JspException: java.lang.String
> > Buffer: method append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer;
> not
> > found
> >        at org.apache.struts.taglib.template.InsertTag.doEndTag(
> > InsertTag.java:164)
> >        at org.apache.jsp._index._jspService(_index.java:344)
> >        at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(
> > HttpJspBase.java:89)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >
> > StringBuffer.append(StringBuffer) is JDK 1.4.
> >
> > Please advice,
> >
> > Sanjay
> >
> >
>

Re: maven 2 with jdk 1.3

Posted by Mario Ivankovits <ma...@ops.co.at>.
Hi!
>> PS Sanjay, you can find out what version a given class was compiled if
>> you look at the unsigned short integers starting at byte offset 4,
>> right after 0xCAFEBABE in every class file. See this Javaworld article
>> for more details, page 2:
>> http://www.javaworld.com/javaqa/2003-05/02-qa-0523-version.html
>>     
>
> An easier way to find the classfile version is to run 
>
>   javap -classpath {jarfile} -verbose {classname}
>
> eg
>   javap -verbose java.lang.String
>   
If you are luck and work on an linux box you can also try "file"

eg
# file UserRoleAware.class
UserRoleAware.class: compiled Java class data, version 45.3

:-)

Ciao,
Mario


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven 2 with jdk 1.3

Posted by Sanjay Choudhary <ch...@gmail.com>.
I discovered that there was a filter which had a method that was like
StringBuffer.append(StringBuffer) (API only available in 1.4 and above) .  I
looked at the generated bytecode and confirmed it. Same code when I compiled
using JDK 1.3 it used StringBuffer.append(Object).

I used the setting suggested by SIMON as below

<plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-compiler-plugin</artifactId>

<configuration>

<fork>true</fork>

<source>1.3</source>

<target>1.3</target>

<compilerArguments>

<bootclasspath>C:/Program
Files/IBM/Rational/SDP/6.0/runtimes/base_v5/java/jre/lib/rt.jar</
bootclasspath>

</compilerArguments>

<verbose>true</verbose>

</configuration>

<inherited>true</inherited>

</plugin>
Now when I run mvn -X clean install, I get the following error


Compiling 110 source files to
c:\rad6\security\kpusersecurityutil\target\classes
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
----------------------------------------------------------------------------
[INFO] Compilation failure

Failure executing javac,  but could not parse the error:


[INFO]
----------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.BuildFailureException: Compilation failure
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java
:551)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleE
xecutor.java:472)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:
451)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecy
cleExecutor.java:303)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
(DefaultLifecycleExecut
or.java:270)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:139)

        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:85)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:58)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:60)
        at java.lang.reflect.Method.invoke(Method.java:391)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation
failure
        at org.apache.maven.plugin.AbstractCompilerMojo.execute(
AbstractCompilerMojo.java:429)
        at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java
:110)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:432)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java
:530)
        ... 17 more
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 8 seconds
[INFO] Finished at: Fri Mar 10 18:25:17 PST 2006
[INFO] Final Memory: 6M/19M
[INFO]
----------------------------------------------------------------------------

It will be nice if someone can help me out with this


Thanks,
Sanjay

On 3/10/06, Simon Kitching <sk...@apache.org> wrote:
>
> On Fri, 2006-03-10 at 16:30 -0600, Wayne Fay wrote:
> > I have a solution... Everyone should just use JDK 1.5. ;-)
> >
> > PS Sanjay, you can find out what version a given class was compiled if
> > you look at the unsigned short integers starting at byte offset 4,
> > right after 0xCAFEBABE in every class file. See this Javaworld article
> > for more details, page 2:
> > http://www.javaworld.com/javaqa/2003-05/02-qa-0523-version.html
>
> An easier way to find the classfile version is to run
>
> javap -classpath {jarfile} -verbose {classname}
>
> eg
> javap -verbose java.lang.String
>
> For javap v1.4 or later the output includes:
> ...
> minor version: 0
> major version: 49
> ...
>
> These versions mean this particular String can only be run with java 1.5
> or later. I did see an official document somewhere that listed the
> actual versions (the vm spec?) but this doc has enough info:
> http://alumnus.caltech.edu/~leif/opensource/bcver/BcVerApp.html
>
>
> Cheers,
>
> Simon
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: maven 2 with jdk 1.3

Posted by Simon Kitching <sk...@apache.org>.
On Fri, 2006-03-10 at 16:30 -0600, Wayne Fay wrote:
> I have a solution... Everyone should just use JDK 1.5. ;-)
> 
> PS Sanjay, you can find out what version a given class was compiled if
> you look at the unsigned short integers starting at byte offset 4,
> right after 0xCAFEBABE in every class file. See this Javaworld article
> for more details, page 2:
> http://www.javaworld.com/javaqa/2003-05/02-qa-0523-version.html

An easier way to find the classfile version is to run 

  javap -classpath {jarfile} -verbose {classname}

eg
  javap -verbose java.lang.String

For javap v1.4 or later the output includes:
  ...
  minor version: 0
  major version: 49
  ...

These versions mean this particular String can only be run with java 1.5
or later. I did see an official document somewhere that listed the
actual versions (the vm spec?) but this doc has enough info:
http://alumnus.caltech.edu/~leif/opensource/bcver/BcVerApp.html


Cheers,

Simon


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven 2 with jdk 1.3

Posted by Wayne Fay <wa...@gmail.com>.
I have a solution... Everyone should just use JDK 1.5. ;-)

PS Sanjay, you can find out what version a given class was compiled if
you look at the unsigned short integers starting at byte offset 4,
right after 0xCAFEBABE in every class file. See this Javaworld article
for more details, page 2:
http://www.javaworld.com/javaqa/2003-05/02-qa-0523-version.html

Wayne


On 3/10/06, Simon Kitching <sk...@apache.org> wrote:
> Hi Sanjay,
>
> Regarding the error you are getting, I would agree with Wayne that it
> looks like you're using a struts jar compiled against java 1.4.
>
> Regarding the rest of your pom, though, it looks like you're trying to
> compile your code to run against java 1.3. I'm not sure it's going to do
> what you want though.
>
> As far as I know, Maven requires java 1.4 to run, so I presume you're
> using java1.4 or 1.5 to run maven. Without setting the "fork" attribute
> for the maven-compiler-plugin, I think the same JVM used to run maven is
> used to compile the code.
>
> I don't know what the <compilerVersion> tag does; if anyone knows please
> say so!
>
> The <target> tag is presumably equivalent to the -target javac option,
> which controls the .class file version, but does NOT affect which java
> core library the code is compiled against. Setting this attribute is
> therefore *not* enough in your case.
>
> I have been trying myself to compile code with a different version of
> java than used to run maven but have not been successful; see my posting
> of yesterday. In particular, I have been trying to use the "executable"
> property of the maven-compiler-plugin to point to a specific JVM
> (together with fork=true of course). From reading the sourcecode of the
> maven-compiler-plugin and the plexus compiler classes this looks like it
> should work but so far I've had no success.
>
> Cheers,
>
> Simon
>
> On Fri, 2006-03-10 at 14:02 -0600, Wayne Fay wrote:
> > I suspect that you are using javax.servlet library which was compiled
> > with JDK 1.4.
> >
> > Download the code and recompile with JDK 1.3 if you must use it along
> > with code that targets 1.3.
> >
> > Wayne
> >
> >
> > On 3/10/06, Sanjay Choudhary <ch...@gmail.com> wrote:
> > > Hi All,
> > >
> > > I have an application that run's on  JDK 1.3.
> > >
> > > In the POM's I have the following setting
> > >
> > >
> > > <plugin>
> > >
> > > <groupId>org.apache.maven.plugins</groupId>
> > >
> > > <artifactId>maven-compiler-plugin</artifactId>
> > >
> > > <configuration>
> > >
> > > <compilerVersion>1.3</compilerVersion>
> > >
> > > <target>1.3</target>
> > >
> > > <showDeprecation>true</showDeprecation>
> > >
> > > <showWarnings>true</showWarnings>
> > >
> > > </configuration>
> > >
> > > <inherited>true</inherited>
> > >
> > > </plugin>
> > >
> > > Is there anything else I need to do to make it work with JDK 1.3?  If not,
> > > why will I get an error,
> > >
> > > [3/10/06 11:24:10:538 PST] 65795dd9 WebGroup      E SRVE0026E: [Servlet
> > > Error]-[java.lang.StringBuffer: method append&#40;
> > > Ljava/lang/StringBuffer&#59;&#41;Ljava/lang/StringBuffer&#59; not found]:
> > > javax.servlet.jsp.JspException: java.lang.String
> > > Buffer: method append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not
> > > found
> > >        at org.apache.struts.taglib.template.InsertTag.doEndTag(
> > > InsertTag.java:164)
> > >        at org.apache.jsp._index._jspService(_index.java:344)
> > >        at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(
> > > HttpJspBase.java:89)
> > >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > >
> > > StringBuffer.append(StringBuffer) is JDK 1.4.
> > >
> > > Please advice,
> > >
> > > Sanjay
> > >
> > >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: maven 2 with jdk 1.3

Posted by Simon Kitching <sk...@apache.org>.
Hi Sanjay,

Regarding the error you are getting, I would agree with Wayne that it
looks like you're using a struts jar compiled against java 1.4.

Regarding the rest of your pom, though, it looks like you're trying to
compile your code to run against java 1.3. I'm not sure it's going to do
what you want though.

As far as I know, Maven requires java 1.4 to run, so I presume you're
using java1.4 or 1.5 to run maven. Without setting the "fork" attribute
for the maven-compiler-plugin, I think the same JVM used to run maven is
used to compile the code.

I don't know what the <compilerVersion> tag does; if anyone knows please
say so!

The <target> tag is presumably equivalent to the -target javac option,
which controls the .class file version, but does NOT affect which java
core library the code is compiled against. Setting this attribute is
therefore *not* enough in your case.

I have been trying myself to compile code with a different version of
java than used to run maven but have not been successful; see my posting
of yesterday. In particular, I have been trying to use the "executable"
property of the maven-compiler-plugin to point to a specific JVM
(together with fork=true of course). From reading the sourcecode of the
maven-compiler-plugin and the plexus compiler classes this looks like it
should work but so far I've had no success.

Cheers,

Simon

On Fri, 2006-03-10 at 14:02 -0600, Wayne Fay wrote: 
> I suspect that you are using javax.servlet library which was compiled
> with JDK 1.4.
> 
> Download the code and recompile with JDK 1.3 if you must use it along
> with code that targets 1.3.
> 
> Wayne
> 
> 
> On 3/10/06, Sanjay Choudhary <ch...@gmail.com> wrote:
> > Hi All,
> >
> > I have an application that run's on  JDK 1.3.
> >
> > In the POM's I have the following setting
> >
> >
> > <plugin>
> >
> > <groupId>org.apache.maven.plugins</groupId>
> >
> > <artifactId>maven-compiler-plugin</artifactId>
> >
> > <configuration>
> >
> > <compilerVersion>1.3</compilerVersion>
> >
> > <target>1.3</target>
> >
> > <showDeprecation>true</showDeprecation>
> >
> > <showWarnings>true</showWarnings>
> >
> > </configuration>
> >
> > <inherited>true</inherited>
> >
> > </plugin>
> >
> > Is there anything else I need to do to make it work with JDK 1.3?  If not,
> > why will I get an error,
> >
> > [3/10/06 11:24:10:538 PST] 65795dd9 WebGroup      E SRVE0026E: [Servlet
> > Error]-[java.lang.StringBuffer: method append&#40;
> > Ljava/lang/StringBuffer&#59;&#41;Ljava/lang/StringBuffer&#59; not found]:
> > javax.servlet.jsp.JspException: java.lang.String
> > Buffer: method append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not
> > found
> >        at org.apache.struts.taglib.template.InsertTag.doEndTag(
> > InsertTag.java:164)
> >        at org.apache.jsp._index._jspService(_index.java:344)
> >        at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(
> > HttpJspBase.java:89)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >
> > StringBuffer.append(StringBuffer) is JDK 1.4.
> >
> > Please advice,
> >
> > Sanjay
> >
> >


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven 2 with jdk 1.3

Posted by Wayne Fay <wa...@gmail.com>.
I suspect that you are using javax.servlet library which was compiled
with JDK 1.4.

Download the code and recompile with JDK 1.3 if you must use it along
with code that targets 1.3.

Wayne


On 3/10/06, Sanjay Choudhary <ch...@gmail.com> wrote:
> Hi All,
>
> I have an application that run's on  JDK 1.3.
>
> In the POM's I have the following setting
>
>
> <plugin>
>
> <groupId>org.apache.maven.plugins</groupId>
>
> <artifactId>maven-compiler-plugin</artifactId>
>
> <configuration>
>
> <compilerVersion>1.3</compilerVersion>
>
> <target>1.3</target>
>
> <showDeprecation>true</showDeprecation>
>
> <showWarnings>true</showWarnings>
>
> </configuration>
>
> <inherited>true</inherited>
>
> </plugin>
>
> Is there anything else I need to do to make it work with JDK 1.3?  If not,
> why will I get an error,
>
> [3/10/06 11:24:10:538 PST] 65795dd9 WebGroup      E SRVE0026E: [Servlet
> Error]-[java.lang.StringBuffer: method append&#40;
> Ljava/lang/StringBuffer&#59;&#41;Ljava/lang/StringBuffer&#59; not found]:
> javax.servlet.jsp.JspException: java.lang.String
> Buffer: method append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not
> found
>        at org.apache.struts.taglib.template.InsertTag.doEndTag(
> InsertTag.java:164)
>        at org.apache.jsp._index._jspService(_index.java:344)
>        at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(
> HttpJspBase.java:89)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>
> StringBuffer.append(StringBuffer) is JDK 1.4.
>
> Please advice,
>
> Sanjay
>
>