Eclipse jdt compiler/tomcat
Hi all,
this question is for those familiar with the eclipse jdt compiler.
Im my web application i'm trying to dynamically compile a java file that i'm saving in a dir under my webapps folder say "mydir"
for the comipaltion i'm using the eclipse jdt compiler but to get it work i need to specify the classpath argument for the Main.compile() method to work.
now what is the default classpath of tomcat server ?
or saying it in other way what should be the classpath i should use as arguments in Main.compile() method of jdt ?
thanking you.
well let me explain this more :
i'm using the following code for dynamic compilation :
ByteArrayOutputStream baosMessages = new ByteArrayOutputStream();
ByteArrayOutputStream baosWarnings = new ByteArrayOutputStream();
StringBuffer warnings = new StringBuffer();
String classpath ="";
// Start compilation using jdtcore
boolean compilationStatus = org.eclipse.jdt.internal.compiler.batch.Main
.compile("-1.5 -source 1.5 -warn:" + warningSetting + " "
+ classpath + file ,
new PrintWriter(baosMessages), new PrintWriter(
baosWarnings));
StringBuffer compilerMessages=new StringBuffer();
long time1 = System.currentTimeMillis();
public void compile() throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(
new ByteArrayInputStream(baosMessages.toByteArray())));
while (true) {
String str = br.readLine();
if (str == null) {
break;
// this._logger.info("/javac/ " + str);
compilerMessages.append(str+"\n");
BufferedReader brWarnings = new BufferedReader(
new InputStreamReader(new ByteArrayInputStream(baosWarnings
.toByteArray())));
while (true) {
String str = brWarnings.readLine();
if (str == null) {
break;
//this._logger.warning("/javac/ " + str);
compilerMessages.append(str+"\n");
warnings.append(str+"\n");
System.out.println(compilerMessages.toString()+"\n\n"+warnings.toString());
System.out.println((time1 - time0) + " milliseconds, "
+ (compilationStatus ? "success" : "failure"));
}Now when i run the servlet containing above code the result of compilation tells me :
No such directory : null
i'm suspecting i'm missing the class path . is that true ?
can u help ?
Similar Messages
-
hi this is my ant build.xml file
my eclipse ver : 3.3.0
when i try to run this build file i am getting the error repeatedly
please some one solve my problem i am unable find solution on eclipse
forum site please help me
thank you
<?xml version = "1.0" encoding = "UTF-8" ?>
<project name = "AntPractice" default = "Main Build" basedir=".">
<property name="bin" location="bin"/>
<property name="src" location="src"/>
<property name="jardir" location="${bin}/lib"/>
<property name="jarfile" location="${jardir}/AntPractice.jar"/>
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
<target name="Main Build" depends="Initialize, compile, jar">
<echo message = "Ant At Work!" />
</target>
<target name="Initialize">
<delete dir = "${bin}" />
<delete dir = "${jardir}" />
<mkdir dir="${bin}"/>
<mkdir dir="${jardir}"/>
</target>
<target name="compile" depends="Initialize">
<javac srcdir="${src}" destdir="${bin}">
</javac>
</target>
<target name="jar" depends="Initialize, compile" >
<jar destfile="${jarfile}" basedir="${bin}" />
</target>
</project>
my run output is:
Buildfile: G:\eclipse installation dir\shiva eclipse workspace\AntPractice\build.xml
Initialize:
[delete] Deleting directory G:\eclipse installation dir\shiva eclipse workspace\AntPractice\bin
[mkdir] Created dir: G:\eclipse installation dir\shiva eclipse workspace\AntPractice\bin
[mkdir] Created dir: G:\eclipse installation dir\shiva eclipse workspace\AntPractice\bin\lib
compile:
[javac] Compiling 1 source file to G:\eclipse installation dir\shiva eclipse workspace\AntPractice\bin
BUILD FAILED
G:\eclipse installation dir\shiva eclipse workspace\AntPractice\build.xml:25: Class not found: org.eclipse.jdt.core.JDTCompilerAdapter
Total time: 922 milliseconds
please don't tell see in eclipse or other site
i am unable to find solution there
if needed i ll mail my small first AntProject ZIP file its just 2KB
thanx in advance
shiva_forums
@ yahoo
.co
.ukhi Mr.Anderson
Thank you very much for reply
it's working if i remove that line from build.xml Ant build file
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>but in eclipse documentation, books & forums also specified to write that line
what are the consequences for writing or removing that line.
any how once again Thank you very much for ur Answer
with regards
Shiva -
Hi.
Does anyone know about OC4J and JDT-compiler compatibility ?
If I don't mistake, OC4J works officially with JDK compiled classes.
What's about JDT compiled classes compatibility ?
ThxHello,
Correct me if I am wrong but JDT is the JSP compiler of Tomcat, that "transform the JSP in to a Servlet". Based on this statement, I do not think it will bepossible to use these classes in OC4J since Oracle has its own JSP/Servlet engine.
Regards
Tugdual Grall -
Java.io.IOException: JDT compilation error!
Dear All,
I am trying to deploy my ejb 3.0 jar application into Weblogic 10.3 server. I getting the following exception.
An error occurred during activation of changes, please see the log for details.
Exception preparing module: EJBModule(JDOL_DOLServerAdmin) Unable to deploy EJB: JDOL_DOLServerAdmin.jar from JDOL_DOLServerAdmin.jar: There are 1 nested errors: java.io.IOException: JDT compilation error! at
weblogic.ejb.container.ejbc.CompilerForJDT.compile(CompilerForJDT.java:66) at weblogic.ejb.container.ejbc.EJBCompiler.doCompile(EJBCompiler.java:357) at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:552) at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:519) at weblogic.ejb.container.deployer.EJBDeployer.runEJBC(EJBDeployer.java:393) at weblogic.ejb.container.deployer.EJBDeployer.compileJar(EJBDeployer.java:715) at weblogic.ejb.container.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:618) at weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:1154) at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:425) at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93) at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42) at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191) at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:16) at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155) at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723) at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190) at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
JDT compilation error!
My working environment :
Eclipse with Weblogic server 10.3 / XP
Please help me to solve these issue.
regards
Muruganandam.nMaybe your EJB have static methods. Remove the 'static' modifier and retry.
-
Hi
I got a above the error When start the debugging in my NWDS.
Source locator does not exist: org.eclipse.jdt.debug.ui.javaSourcelocator
Solutions is Reinstalling the NWDS , that option is not a good solution(choose any another options)
Please any advices... How to fix ?
Thanks
SriniHello,
I've solved it by deleting the .metadata/.registry file (https://bugs.eclipse.org/bugs/show_bug.cgi?id=40947)
Regards,
Ilya -
Org.eclipse.jdt.launching.localJavaApplication Error
I was developing nicely on Web Sphere Studio Developer Version=5.1.0
(with eclipse Release 2.1.1) but I just started getting the error "No
Tab group defined for launch application type/n
org.eclipse.jdt.launching.localJavaApplication" when trying to run or
debug. I was trying to parse&validate an XML file and getting a log of
the Parsing errors.This might have done something. However, it was
working before..Any ideas before deleting and reloading Eclipse?
Cigdem Savaseri-BrackmannHi Stephan,
thank you for your fast answer, I have started with --debug and noticed the following message:
Resolving dependencies of MavenProject: de.openknowledge.migrationtool:de.openknowledge.migrationtool:1.0.0-SNAPSHOT @ /Users/OleyMa/vcs/sourcemigration/de.openknowledge.migrationtool/pom.xml
[DEBUG] No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from de.openknowledge.migrationtool 1.0.0.qualifier to bundle org.eclipse.jdt.launching.macosx 0.0.0.; Unable to satisfy dependency from org.eclipse.jdt.core 3.11.0.v_OTDT_r240_201506091717 to org.eclipse.objectteams.otdt.core.patch.feature.group [2.0.0,3.0.0).; No solution found because the problem is unsatisfiable.]
[INFO] {osgi.os=linux, osgi.ws=gtk, org.eclipse.update.install.features=true, osgi.arch=x86_64}
[ERROR] Cannot resolve project dependencies:
Is the dependency to org.eclipse.objectteams.otdt.core.path.feature.group
the problem? This is a feature which I do not know at all.
Can you please give me a hint?
Thanks in advance
Markus -
The selected wizard could not be started Reason:org/eclipse/jdt/core/IJava
Hi
i am a newbie to Eclipse plugin , i have used org.eclipse.jdt.core package classes(IJavaElement,ICompliationUnit)
for my developement . In Standalone ( as a Eclipse application ) My code is working its generating required java files
I export my plugin project and created a plugin folder. And copied the folder into eclipse/plugins folder
Now if i open the Wizard. wizard opens with a alert saying
" The selected wizard could not be started Reason:org/eclipse/jdt/core/IJavaElement "
what will be problem
i am using eclipse3.1 and JDK 5.0
plugin.xml i have used the follwing requires tag
<requires>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.core.runtime"/>
<import plugin="org.eclipse.core.resources"/>
<import plugin="org.eclipse.ui.ide"/>
<import plugin = "org.eclipse.jdt.ui"/>
<import plugin = "org.eclipse.jdt.core"/>
<import plugin = "org.eclipse.jdt.launching"/>
<import plugin = "org.eclipse.jdt.debug"/>
</requires>
Regards
Ganesan SPlease disregard. Reinstalling seems to have solved this
issue. -
dear all pro,
i am compiling tomcat 4.1.24 (using JDK 1.4.2), now almost the final
stage but some errors found...
the errors all are produced by "jasper2", it said it cannot find the
javax.servlet....
In fact jasper2 also a source distribution, i try to compile it first
but same errors occurred as above...
do u have any idea about it? thanks your attention... ^_^
beachboyErrors messages like this...thanks..^^
[javac] Compiling 79 source files to /usr/local/jakarta-tomcat-4.1.24-src/jasper/build/shared/classes
[javac] /usr/local/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/BeanRepository.java:72: package javax.servlet does not exist
[javac] import javax.servlet.ServletException;
[javac] ^
[javac] /usr/local/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JasperException.java:70: package javax.servlet does not exist
[javac] public class JasperException extends javax.servlet.ServletException {
[javac] ^
[javac] /usr/local/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspCompilationContext.java:68: package javax.servlet does not exist
[javac] import javax.servlet.ServletContext;
[javac] ^
[javac] /usr/local/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspCompilationContext.java:69: package javax.servlet.jsp.tagext does not exist
[javac] import javax.servlet.jsp.tagext.TagInfo; -
Eclipse problem with Tomcat when running jsp
when I start tomcat from CMD, it starts normally and display http://localhost:8080/ properly
but when I start tomcat from Eclipse, it starts the server normally,
but it can't display http://localhost:8080/ properly,
I guess that the problem with the java classpath isn't defined correctly in Eclipse
but but I've tried it before, and it doesn't work
here the error msg from Eclipse console:
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on http-8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.31
[INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
[INFO] PropertyMessageResources - -Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on http-8080
[INFO] ChannelSocket - -JK2: ajp13 listening on /0.0.0.0:8009
[INFO] JkMain - -Jk running ID=0 time=0/120 config=C:\jakarta-tomcat-4.1.31\conf\jk2.properties
Error compiling file: C:\jakarta-tomcat-4.1.31\work\Standalone\localhost\_\/index_jsp.java [javac] Compiling 1 source file
[javac] Modern compiler not found - looking for classic compiler
Info: Compile: javaFileName=C:\jakarta-tomcat-4.1.31\work\Standalone\localhost\_\/index_jsp.java
classpath=C:/jakarta-tomcat-4.1.31/shared/classes/;C:/jakarta-tomcat-4.1.31/common/classes/;C:/jakarta-tomcat-4.1.31/common/endorsed/xercesImpl.jar;C:/jakarta-tomcat-4.1.31/common/endorsed/xmlParserAPIs.jar;C:/jakarta-tomcat-4.1.31/common/lib/activation.jar;C:/jakarta-tomcat-4.1.31/common/lib/ant-launcher.jar;C:/jakarta-tomcat-4.1.31/common/lib/ant.jar;C:/jakarta-tomcat-4.1.31/common/lib/commons-collections.jar;C:/jakarta-tomcat-4.1.31/common/lib/commons-dbcp-1.1.jar;C:/jakarta-tomcat-4.1.31/common/lib/commons-logging-api.jar;C:/jakarta-tomcat-4.1.31/common/lib/commons-pool-1.1.jar;C:/jakarta-tomcat-4.1.31/common/lib/jasper-compiler.jar;C:/jakarta-tomcat-4.1.31/common/lib/jasper-runtime.jar;C:/jakarta-tomcat-4.1.31/common/lib/jdbc2_0-stdext.jar;C:/jakarta-tomcat-4.1.31/common/lib/jndi.jar;C:/jakarta-tomcat-4.1.31/common/lib/jta.jar;C:/jakarta-tomcat-4.1.31/common/lib/mail.jar;C:/jakarta-tomcat-4.1.31/common/lib/naming-common.jar;C:/jakarta-tomcat-4.1.31/common/lib/naming-factory.jar;C:/jakarta-tomcat-4.1.31/common/lib/naming-resources.jar;C:/jakarta-tomcat-4.1.31/common/lib/servlet.jar
cp=C:\jakarta-tomcat-4.1.31\shared\classes
cp=C:\jakarta-tomcat-4.1.31\common\classes
cp=C:\jakarta-tomcat-4.1.31\common\endorsed\xercesImpl.jar
cp=C:\jakarta-tomcat-4.1.31\common\endorsed\xmlParserAPIs.jar
cp=C:\jakarta-tomcat-4.1.31\common\lib\activation.jar
cp=C:\jakarta-tomcat-4.1.31\common\lib\ant-launcher.jar
cp=C:\jakarta-tomcat-4.1.31\common\lib\ant.jar
cp=C:\jakarta-tomcat-4.1.31\common\lib\commons-collections.jar
cp=C:\jakarta-tomcat-4.1.31\common\lib\commons-dbcp-1.1.jar
cp=C:\jakarta-tomcat-4.1.31\common\lib\commons-logging-api.jar
cp=C:\jakarta-tomcat-4.1.31\common\lib\commons-pool-1.1.jar
cp=C:\jakarta-tomcat-4.1.31\common\lib\jasper-compiler.jar
cp=C:\jakarta-tomcat-4.1.31\common\lib\jasper-runtime.jar
cp=C:\jakarta-tomcat-4.1.31\common\lib\jdbc2_0-stdext.jar
cp=C:\jakarta-tomcat-4.1.31\common\lib\jndi.jar
cp=C:\jakarta-tomcat-4.1.31\common\lib\jta.jar
cp=C:\jakarta-tomcat-4.1.31\common\lib\mail.jar
cp=C:\jakarta-tomcat-4.1.31\common\lib\naming-common.jar
cp=C:\jakarta-tomcat-4.1.31\common\lib\naming-factory.jar
cp=C:\jakarta-tomcat-4.1.31\common\lib\naming-resources.jar
cp=C:\jakarta-tomcat-4.1.31\common\lib\servlet.jar
work dir=C:\jakarta-tomcat-4.1.31\work\Standalone\localhost\_
srcDir=C:\jakarta-tomcat-4.1.31\work\Standalone\localhost\_
include=index_jsp.java
Exception compiling Cannot use classic compiler, as it is not available. A common solution is to set the environment variable JAVA_HOME to your jdk directory.
Exception:
Cannot use classic compiler, as it is not available. A common solution is to set the environment variable JAVA_HOME to your jdk directory.
at org.apache.tools.ant.taskdefs.compilers.Javac12.execute(Javac12.java:72)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:942)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:282)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:328)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:479)
Cannot use classic compiler, as it is not available. A common solution is to set the environment variable JAVA_HOME to your jdk directory.
at org.apache.tools.ant.taskdefs.compilers.Javac12.execute(Javac12.java:72)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:942)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:282)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:328)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:479)
Here are my system settings :
Eclipse 2.1.3
plugin : tomcatPluginV21, lomboz.213
Jakarta-tomcat-4.1.31
JAVA_HOME : C:\jdk1.3.1_15
CATALINA_HOME : C:\jakarta-tomcat-4.1.31
Here are my Eclipse settings :
http://server2.uploadit.org/files/marvelousgame-01.JPG
http://server3.uploadit.org/files/marvelousgame-02.JPG
http://server2.uploadit.org/files/marvelousgame-03.JPG
http://server3.uploadit.org/files/marvelousgame-04.JPG
http://server2.uploadit.org/files/marvelousgame-05.JPG
http://server3.uploadit.org/files/marvelousgame-06.JPG
thx!!!I would suggest updating your software to the latest versions - java 1.4.2 or higher, tomcat 5 or higher, Eclipse 3. That should fix any incompatibilities you are experiencing.
As to your problem, it seems the tomcat you are trying to run from Eclipse wants a newer Java version (1.4.2 most likely). -
Eclipse WTP + JWSDP + Tomcat
Hi,
I am trying to setup eclipse WTP with Java WSDP (1.6) and Tomcat for JWSDP
(http://java.sun.com/webservices/containers/tomcat_for_JWSDP_1_5.html)
Any idea whether it is possible to have such development environment or
would I have to use Netbeans?
Wouldn't I require a server runtime for (J)WSDP instead of Tomcat's deault
Axis runtime? Is there such a runtime available?
Thanks!I guess you could say that using Tomcat+WSDP in WTP would "work", but
not with the same level of integration that you get using the WTP
supplied Axis. I'm not familiar with JSDP, but I don't think WTP would
get in the way. However, I can't say if it will provide as much
"developmental help" as you are looking for.
Larry
Neeraj Mahajan wrote:
> Hi Larry,
>
> By "development environment" I mean an intelligent IDE i.e. something
> like eclipse+WTP that would help me develop/build/deploy/debug Web
> Services. As you mentioned Tomcat doesnt include Axis runtime, and that
> is the reasin why, I think, it can be used with Java WSDP too. But AFAIK
> WTP includes Axis runtime to be used with Tomcat. So the question is,
> can I use WTP to develop WebServices for Tomcat+WSDP. If yes, then what
> plugins do I need to use for this.
>
> Cheers,
> Neeraj
> PS: The reason for using WSDP is beyond my control :(
>
> Larry Isaacs wrote:
>
>> I'm not sure exactly what you are asking for in the way of a
>> "development environment". Tomcat doesn't include a default Axis
>> runtime. I assume the Java WSDP would somehow provide that. WTP has
>> its own support for developing web services that doesn't involve the
>> Java WSDP. Have you investigated this support and decided to use Java
>> WSDP instead?
>
>> Cheers,
>> Larry
>
>> Neeraj Mahajan wrote:
>>> Hi,
>>>
>>> I am trying to setup eclipse WTP with Java WSDP (1.6) and Tomcat for
>>> JWSDP
>>> ( http://java.sun.com/webservices/containers/tomcat_for_JWSDP_ 1_5.html)
>>> Any idea whether it is possible to have such development environment
>>> or would I have to use Netbeans?
>>> Wouldn't I require a server runtime for (J)WSDP instead of Tomcat's
>>> deault Axis runtime? Is there such a runtime available?
>>>
>>> Thanks,
>>> Neeraj
>>>
>>>
> -
Stripes 1.5 with eclipse 3.5 +tomcat 6
hi guys,
i am having a problem getting the "Quick Start Guide" application from stripes to work
http://www.stripesframework.org/display/stripes/Quick+Start+Guide
i replaced the web.xml file with theirs...and also put StripesResources.properties in WEB-INF/classes as they said
i imported all the libs
but still when i start index.jsp (run as---> run on server) in the integrated tomcat (added in eclipse under servers)
i get
HTTP Status 404 -
type Status report
message
description The requested resource () is not available.
{code}so where am i going wrong? is there a way to debug server or app to see what is missing exactly?
i appreciate any help on this :)
here is a screenshot of my project structure.
http://i29.tinypic.com/2jb6qec.pngDeploy the project to server, start the server and use a real webbrowser (Firefox and so on) and see if it works.
-
Eclipse-Cvs project Tomcat error
Hi everyone. I use eclipse exadel studio and i have a struts project that works fine. But when we try to make a cvs project with working project, the server tomcat can not launch. And the error console writes;
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: java.lang.IllegalArgumentException
at java.util.zip.ZipInputStream.getUTF8String(ZipInputStream.java:298)
at java.util.zip.ZipInputStream.readLOC(ZipInputStream.java:237)
at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:73)
at java.util.jar.JarInputStream.<init>(JarInputStream.java:58)
at java.util.jar.JarInputStream.<init>(JarInputStream.java:43)
at org.apache.catalina.util.ExtensionValidator.getManifest(ExtensionValidator.java:368)
at org.apache.catalina.util.ExtensionValidator.validateApplication(ExtensionValidator.java:187)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
... 6 moreIt's kind of a moot point, since you really shouldn't use a reserve word as the name of anything much less a project.
-
Jboss ide jboss eclipse jsp compile problem
Hi i downlaoded eclipse with jboss ide plugin for jsp support.
now configuration is jboos server + eclipse + jboss ide but i am not able to cmpile jsp pages.even though jboss server is running on eclipse no problem in that.
thanxs in advanceDo I have to use JBoss with Tomcat or am I missing
something at configuration?You're missing something. I'll bet the problem's in your JSP file, not JBoss/Jetty - unless you've dorked with the default settings and done something to make it not work. And you don't need the j2ee12.jar in your CLASSPATH - it's already there, otherwise JBoss/Jetty wouldn't run. -
Tutorial for Eclipse/Flex Compiler Development?
Hello,
I cannot find any reliable information on setting up Eclipse with all the right plugins to modify the Flex Compiler. http://www.darronschall.com/weblog/2005/08/setting-up-eclipse-for-flex.cfm is too old, and the others are just unclear.
If anyone could give me a hand that would be great.
- Eclipse version Flex SDK Developers are using.
- Required plugins (I'm on a Mac 10.5)
- How to run a sample Flex SDK Compiler project, or debug it or something, or at least just load it.
I have everything set up (eclipse installed, the flex source installed and ready according to the developer documentation). But this last step is missing. Thanks!
LanceI wouldn't switch if you want to do .NET / SQL Server
development. Most people on Macs who do SQL Server development
either use a remote server or run it in a Windows Virtual Machine.
Important programs are available for both OSes, but without
knowing which ones you use it's hard to say whether you just need
to install the "mac version" or whether you'd need to install a
brand new one. -
Different behavior when running in Eclipse and on Tomcat
I am having a problem because the program that I wrote, tested, and work fine on Eclipse doesn't have the same behavior when I convert it to a Web Service and called by a client.
I have not this strange behavior. See this code:
NamedNodeMap attrs = node.getAttributes();
System.out.println(attrs.getNamedItem("performance"));When I run it on exist I got something like this:
org.apache.crimson.tree.AttributeNode1@11bed71which should be correct since attrs.getNamedItem() return a Node.
But! When I run it as a web service on Axis hosted on Tomcat I got
performance="3758.0"???!!!
Also, when I do something like
System.out.println(node)In Eclipse I got the whole XML file like this:
<root><sequence name="main" performance="3591.5" cost="63.5" reliability="4144965.2" availability="0.9863115" integrity="1.0" security="128.0">
<switch name="switch-1" performance="3591.5" cost="63.5" reliability="4144965.2" availability="0.9863115" integrity="1.0" security="128.0">
<case condition="bpws:getVariableData('i') = 0" performance="3425.0" cost="77.0" reliability="1.0" availability="1.0" integrity="1.0" security="128.0">
<invoke name="invoke-2" partnerLink="HotelBooking" portType="nsxml2:HotelBooking" operation="searchHotel" inputVariable="searchHotelParam" outputVariable="searchHotelResult" serviceKey="95EDCDE0-46F6-11DA-BEB0-90CACF0DCD6A" />
</case>
<otherwise performance="3758.0" cost="50.0" reliability="8289929.5" availability="0.972623" integrity="1.0" security="128.0">
<while name="while-1" condition="bpws:getVariableData('i') > 0" performance="3758.0" cost="50.0" reliability="8289929.5" availability="0.972623" integrity="1.0" security="128.0">
<sequence performance="3758.0" cost="50.0" reliability="8289929.5" availability="0.972623" integrity="1.0" security="128.0">
<invoke name="invoke-1" partnerLink="FlightBooking" portType="nsxml0:FlightBooking" operation="searchFlight" inputVariable="searchFlightParam" outputVariable="searchFlightResult" serviceKey="AD5A1880-46EC-11DA-B399-97115D85E15E" />
</sequence>
</while>
</otherwise>
</switch>
</sequence></root>but on Axis I got:
[root: null]I'm confused. I think it might be because of the different version of the library between eclipse environment and axis environment. But the problem is, I can't figure out what JAR should I change. Can you give me a clue??DOM doesn't specify what the toString() method of Node etc. should return. So each implementation of DOM chooses something that seems reasonable to the implementers. If this isn't suitable for you then don't use the toString() method. (That's what System.out.println calls when you pass it an Object, in case you didn't know.)
Maybe you are looking for
-
hi, in a report i want to display defualt value instead of null or blank. Actually in my report one column contains null values, on this column i put a link, if the value is null then on a report it display blank space without box. it doesn't look go
-
My iMac's hard drive just failed and the computer is not even 2 years old yet. I don't have apple care. Does anyone know if apple can help with this issue? Or will I just have to pay to replace the hard drive?
-
Hello. I recently pieced together a late 2008 MacBook Pro 15". Everything works fine except the battery constantly goes between "not charging" and "calculating" or, rarely "charging". It does charge after a long while and will report that it is cha
-
How do I get my itunes off my iphone and onto a computer to transfer to a new phone?
How do I get my itunes off my iphone and onto a computer so that I may transfer them to a new phone?
-
I would like to unlock my iphone 4s that i recently got from you
i would like to unlock my iphone 4s that i recently got from you?