Problem in project using Eclipse+Tomcat+Apache Beehive
Hi,
Software used
Operating System : Red Hat Linux
IDE : eclipse 3.1 M7
Server : Tomcat 5.5.10
Webservice Package : Apache Beehive Build 20050505
Plugin for integrating Apache Beehive with eclipse is POLLINATE
My Problem: when I created my first webservice project . In all the log4j.xml files in the project. It gave an error saying that log4j.dtd file not found inside /root/workspace/SampleProject1/webcontent/WEB-INF/src/log4j.dtd
Please provide me some suggestions to clean this error
Thank you
Mike
didi you set the right path to the jre?
there's a goog mailing llist for tomcat issues. go to the jakarta/tomcat website to subscribe. they might help you.
Similar Messages
-
Problem Exporting .Jar Using Eclipse
I have a small problem of exporting using Eclipse 3.2
First , i could , debug , run as application with no problem.
however after i compiled into jar , and i tried opening the jar file
theres no responses. what could possibly be the problem ?
my manifest file includes the main class of program and all external .jar files.
below is my main class
-automatic batch printing
-able to select target folder for batch printing
-able to select interval for printing
-able to stop printing
-includes log of activity of threads and printing services
-free for all to use =D
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Desktop;
import java.awt.Graphics;
import javax.swing.JFileChooser;
import javax.swing.JPanel;
import javax.swing.JFrame;
import java.awt.*;
import java.awt.event.*;
import java.awt.print.*;
import java.io.*;
import java.util.*;
import java.util.Timer;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.*;
import javax.swing.filechooser.*;
import javax.swing.filechooser.FileFilter;
import javax.print.*;
import java.lang.Object;
import java.awt.JobAttributes.*;
import javax.swing.text.*;
import javax.swing.text.html.HTMLDocument;
import javax.swing.text.rtf.*;
import java.awt.Dimension;
import javax.swing.JEditorPane;
import java.awt.Rectangle;
import javax.swing.JOptionPane;
import javax.swing.JScrollPane;
import javax.swing.JButton;
import javax.swing.JTextPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.JCheckBox;
import javax.swing.JLabel;
import javax.swing.SwingUtilities;
import java.awt.Font;
public class Test extends JFrame implements Printable{
private static final long serialVersionUID = 1L;
private JPanel jContentPane = null; // @jve:decl-index=0:visual-constraint="36,9"
private JButton Open = null;
Date date;
class MyFilter extends javax.swing.filechooser.FileFilter {
public boolean accept(File file) {
String filename = file.getName();
if(file.isDirectory()){
return true;
}else{
return filename.endsWith(".rtf");
public String getDescription() {
return "Rich Text Format ( .rtf ) ";
public Test() {
super();
initialize();
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
Test application = new Test();
application.show();
application.setLocationRelativeTo(null);
application.setVisible(true);
application.getJContentPane().setVisible(true);
private void initialize() {
this.setSize(408, 282);
this.setResizable(false);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setContentPane(getJContentPane());
this.setTitle("Auto Print Utility");
this.setVisible(true);
* This method initializes jContentPane
* @return javax.swing.JPanel
private JPanel getJContentPane() {
if (jContentPane == null) {
jLabel1 = new JLabel();
jLabel1.setBounds(new Rectangle(131, 102, 59, 16));
jLabel1.setFont(new Font("Apple Chancery", Font.PLAIN, 10));
jLabel1.setText("MilliSeconds");
jLabel = new JLabel();
jLabel.setBounds(new Rectangle(16, 103, 53, 16));
jLabel.setText("Interval :");
jContentPane = new JPanel();
jContentPane.setLayout(null);
jContentPane.add(getOpen(), null);
jContentPane.add(getStop(), null);
jContentPane.add(getJTextField(), null);
jContentPane.add(getJScrollPane(), null);
jContentPane.add(getJScrollPane1(), null);
jContentPane.add(getJTextField1(), null);
jContentPane.add(jLabel, null);
jContentPane.add(jLabel1, null);
jContentPane.add(getJButton(), null);
return jContentPane;
static void printPrinterJob() {
PrinterJob printerjob = PrinterJob.getPrinterJob();
// set the characteristics of
// the job to be printed - use setPageable and book if
// outputing a document. Use setPrintable for "simple" printing - all pages formatted the same
printerjob.setPrintable(new Test());
try {
PrintService[] ser =PrinterJob.lookupPrintServices();
ReadRegistry rr = new ReadRegistry();
int x =ser.length;
// String def = rr.getPrinter();
String def ="Microsoft Office Document Image Writer";
for(int y=0;y<x;y++){
if(ser[y].getName().equals(def)){
printerjob.setPrintService(ser[y]);
System.out.println(ser[y]+" SET");
}else
System.out.println(ser[y]);
} catch (PrinterException exception) {
System.err.println("Printing error: " + exception);
public static void disableDoubleBuffering(Component c) {
RepaintManager currentManager = RepaintManager.currentManager(c);
currentManager.setDoubleBufferingEnabled(false);
public static void enableDoubleBuffering(Component c) {
RepaintManager currentManager = RepaintManager.currentManager(c);
currentManager.setDoubleBufferingEnabled(true);
public boolean printfolder(){
Desktop de = Desktop.getDesktop();
java.io.File folder = new File(jTextField.getText());
File[] listOfFiles = folder.listFiles();
for (int i = 0; i < listOfFiles.length; i++) {
if (listOfFiles.isFile()) {
try {
de.print(listOfFiles[i].getAbsoluteFile());
File fi = new File(jTextField.getText()+"\\Deleted");
fi.mkdir();
Thread.currentThread().sleep(1000);
listOfFiles[i].renameTo(new File("Z:\\BTSS Log\\Fax\\Y2007 M10 D25\\Deleted",listOfFiles[i].getName().toString()));
} catch (Exception e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
System.out.println("File: " + listOfFiles[i].getName());
date = new Date();
PrintLog.append("Printed : "+listOfFiles[i].getName()+" "+date.toString()+"\n");
} else if (listOfFiles[i].isDirectory()) {
date=new Date();
System.out.println("Directory: " + listOfFiles[i].getName()+" "+date.toString());
PrintLog.append("No Files Printed "+date.toString()+"\n");
return true;
private JButton Stop = null;
Thread tt = new Thread(){
public void run(){
while(true){
int count = 0; // @jve:decl-index=0:
printfolder();
try {
Long lon = new Long(jTextField1.getText());
System.out.println(lon);
tt.sleep(lon);
} catch (InterruptedException e) {}
count++;
if (count >= 10000) break;
private JTextField jTextField = null;
private JScrollPane jScrollPane = null;
private JScrollPane jScrollPane1 = null;
private JTextField jTextField1 = null;
private JLabel jLabel = null;
private JLabel jLabel1 = null;
private JTextArea PrintLog = null;
private JTextArea ThreadLog = null;
private JButton jButton = null;
public void run(){
while(true){
int count = 0;
printfolder();
try {
// Thread.sleep (300000);//
Long lon = new Long(jTextField1.getText());
System.out.println(lon);
Thread.currentThread().sleep(lon);
} catch (InterruptedException e) {}
count++;
if (count >= 10000) break;
private JButton getOpen() {
if (Open == null) {
Open = new JButton();
Open.setBounds(new Rectangle(11, 38, 187, 29));
Open.setText("Start");
Open.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
try{
if(jTextField1.getText().equals("")){
JOptionPane.showMessageDialog(null,"MilliSeconds Required, Please Enter A Valid Number Into The TextBox", "MilliSeconds Required", JOptionPane.ERROR_MESSAGE);
}else if(jTextField.getText().equals("")){
JOptionPane.showMessageDialog(null,"Please Specify Directory To Be Print From By Clicking On The TextBox", "Directory Missing", JOptionPane.ERROR_MESSAGE);
}else{
Long.parseLong(jTextField1.getText());
try {
if(tt.isAlive()) {
tt.resume();
date=new Date();
ThreadLog.append("Activity Resumes "+date.toString()+"\n");
} else {
tt.start();
date=new Date();
ThreadLog.append("Activity Started "+date.toString()+"\n");
} catch (Exception f) {
JOptionPane.showMessageDialog(null, f.getMessage(), "Error Occured", JOptionPane.ERROR_MESSAGE);
}catch(Exception f){
JOptionPane.showMessageDialog(null, f.getMessage(), "Long Format Exception", JOptionPane.ERROR_MESSAGE);
return Open;
* This method initializes Stop
* @return javax.swing.JButton
private JButton getStop() {
if (Stop == null) {
Stop = new JButton();
Stop.setBounds(new Rectangle(197, 38, 195, 29));
Stop.setText("Stop");
Stop.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
try{
tt.suspend();
date = new Date();
ThreadLog.append("Activity Suspend "+date.toString()+" \n");
}catch(Exception g){
JOptionPane.showMessageDialog(null, g.getMessage(), "Error Occured", JOptionPane.ERROR_MESSAGE);
return Stop;
public int print(Graphics arg0, PageFormat arg1, int arg2) throws PrinterException {
// TODO Auto-generated method stub
return 0;
* This method initializes jTextField
* @return javax.swing.JTextField
*/JFileChooser jfc = new JFileChooser();
private JTextField getJTextField() {
if (jTextField == null) {
jTextField = new JTextField();
ReadRegistry rr = new ReadRegistry();
String dpath = rr.getDirecotry();
File file = new File(dpath);
jfc.setCurrentDirectory(file);
jTextField.setText(dpath);
jTextField.setBounds(new Rectangle(11, 14, 383, 20));
jTextField.setEditable(false);
jTextField.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent e) {
jfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
jfc.showOpenDialog(jContentPane);
File file = jfc.getSelectedFile();
String path = file.getAbsolutePath();
jTextField.setText(path);
return jTextField;
* This method initializes jScrollPane
* @return javax.swing.JScrollPane
private JScrollPane getJScrollPane() {
if (jScrollPane == null) {
jScrollPane = new JScrollPane();
jScrollPane.setBounds(new Rectangle(197, 70, 193, 55));
jScrollPane.setViewportView(getThreadLog());
return jScrollPane;
* This method initializes jScrollPane1
* @return javax.swing.JScrollPane
private JScrollPane getJScrollPane1() {
if (jScrollPane1 == null) {
jScrollPane1 = new JScrollPane();
jScrollPane1.setBounds(new Rectangle(14, 132, 375, 108));
jScrollPane1.setViewportView(getPrintLog());
return jScrollPane1;
* This method initializes jTextField1
* @return javax.swing.JTextField
private JTextField getJTextField1() {
if (jTextField1 == null) {
jTextField1 = new JTextField();
jTextField1.setBounds(new Rectangle(70, 101, 62, 20));
return jTextField1;
* This method initializes PrintLog
* @return javax.swing.JTextArea
private JTextArea getPrintLog() {
if (PrintLog == null) {
PrintLog = new JTextArea();
PrintLog.setEditable(false);
PrintLog.setFont(new Font("Arial", Font.PLAIN, 12));
return PrintLog;
* This method initializes ThreadLog
* @return javax.swing.JTextArea
private JTextArea getThreadLog() {
if (ThreadLog == null) {
ThreadLog = new JTextArea();
ThreadLog.setEditable(false);
ThreadLog.setFont(new Font("Taffy", Font.PLAIN, 10));
return ThreadLog;
* This method initializes jButton
* @return javax.swing.JButton
private JButton getJButton() {
if (jButton == null) {
jButton = new JButton();
jButton.setBounds(new Rectangle(12, 70, 185, 25));
jButton.setText("Reset");
jButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
Test nt = new Test();
nt.show();
hide();
return jButton;
} // @jve:decl-index=0:visual-constraint="-9,-14"
i can compile into jar successfully but the jar file wouldn't respond.first , it says unable to access jar file .
upon deeper inspection i found that background processes is created behind thus the jar file been activated but the UI doesnt show up? any more idea of where my codes gone wrong? which seems perfect for me
anyway thanks but i still .. it says unable to access jar file -
Content-type problems while using struts+tomcat+apache+mod_jk
Hi!
Could anyone tell me how to solve the following problem.
Struts-application works under apache + mod_jk + tomcat 3.3.1. Operating system is Linux.
It's impossible to me to make tomcat to send HTTP-answers in UTF-8.
I was trying the following:
1. Set <DecodeInterceptor defaultEncoding="UTF-8" /> in server.xml
(Has no effect. Tomcat responds with Content-Type: text/html; charset=iso-8859-1)
2. Insert <%@ page contentType="text/html; charset=utf-8"%> into each page header.
(Works fine but when struts-application gets GET/POST-data the two-bytes national characters
are comverted into "?"-symbols)
Is there any way to make tomcat 3.3.1 to send HTTP-answers in UTF-8?I don't know what the DecodeInterceptor does... but....
If you use number 2, you are only telling the browser what that page's output is. When you process the data, Tomcat for some reason always reads it as ISO8895-1, so you need to tell Tomcat to change it to UTF-8. You can do that by calling request.setCharacterEncoding("UTF-8"), either in the JSP page, or if you need it in a servlet, you can do that in a filter...
It's somewhat described here how to set it up...
http://www.mail-archive.com/[email protected]/msg01193.html -
Creating EJB 3.0 project using Eclipse - Urgent
Hi,
Im new to EJB 3.0 and i need a urgent help please. I have created a EJB Project that uses JPA to Fetch data from Oracle 10g DB. But the problem is how to i get this project connect to DB? where do i need to do the Datasource maping and what would be the params? an example would be of real help? (On Deployment i get jta-datasource not found error)
I have also created a Enterprise Application Project. Do i have to do the Datasource mapping here?
I also want to create a Axis Webservice for a class that i have in my EJB Project. Can i create it in Eclipse. If so how can I?
Please share any helpful link or tutorial or Example.
I have tried google search and tried many blogs but no luck.
[EJB 3.0 + Axis Web Services + Eclipse + Jboss ]
Regards
PrateekStart by getting the Java EE tutorial at least v5 (it's free) and reading the sections that you are unclear about.
Basically you need to create a persistence.xml file that names a JDBC resuource. This is usually just the JNDI name of a resource that is configured on a server.
You then configure a datasource on your server that contains the actual DB connection settings and name it the same as the name in the persistence.xml.
The Java EE tutorial has sections that explain all of this.
Also, if you are starting out, I would not advise using tools to autogenerate projects/artifacts.
Doing it manually helps you understand how things work better. -
Problem creating CalculationView using Eclipse on MacOSX
Hi guys,
I'm trying to follow the steps of tutorial Using HANA Modeler in SAP HANA Cloud Platform, but it's giving a error when creating the Join of SO_CV view when running on MacOS Leopard. When I link the tables SNWD_BPA and SNWD_SO the link is erased and when I try using the Join wizard I cannot click on finish or Add a column as output.
But when I do the same steps on Windows it's works without problem. I've done the procedure several times in both systems, and only get error on MacOS.
Anyone else having this issue ?
Regards,
Cleber SantzHi Vladimir,
I already have a updated Eclipse (Kepler) install:
UI5: 1.20.7
HANA Tools: 1.0.7400
HANA Cloud Tools: 1.27.0
NEO J2EE 6 SDK: 2.34.6.1
When the problem occurs, it cause a graphic issues as well on View Diagram. See image attached.
Regards,
Cleber Santz -
Problem exporting JAR using Eclipse with JNIlib
Hi all,
I have a java application that is using an external JAR. The external JAR is coupling with a JNIlib.
When I 'export' my application to a runnable JAR in Eclipse, the external JAR is extracted and included in my runnable JAR. However, when I execute the runnable JAR, some functions of the application is not working due to missing library. After I put JNIlib into my Java/Extension, the runnable JAR then works fine.
I want to distribute the JAR to other people, but I can't ask them all to put JNIlib in their Java/Extension.
Does anyone have an idea? I am a novice to Java, it took me awhile to figure out how to create a runnable JAR.
Thank you very much.
Eagle.first , it says unable to access jar file .
upon deeper inspection i found that background processes is created behind thus the jar file been activated but the UI doesnt show up? any more idea of where my codes gone wrong? which seems perfect for me
anyway thanks but i still .. it says unable to access jar file -
I'm trying to run a jsp project using eclipse europa and tomcat. Frequently when I try to run the project i get the error:
"Several ports (8005,8080,8009) required by Tomcat v6.0 Server at localhost are already in use. The server may be already running in another process, or a system process maybe using the port. To start this server you will need to stop the other process or change the port number(s)"
This comes up even when I have only one server setup in eclipse and it is stopped. I have no other application running at the same time.
The problem fixes itself for a while when I reboot the computer, but not when I just restart eclipse ...
Any help would be greatly appreciated, as I have been stuck with this problem for a while.
ThanksMert wrote:
just change the port addresses to any port address which doesn't conflict.What ports you are suggesting to change? Even If you change Tomcat port that is 8080 to 8081 or something else it is bound to give errors on 2 other ports (8005,8009).
I think in background some Tomcat server is still running that is why OP sees all three required ports busy.
What is the platform that is being used?
If this is a windows then see Task Manager > Processes and stop all processes for java.exe and javaw.exe (Your Eclipse will be also terminated so save everything before that). Restart Eclipse and server from within and let us know the result.
If platform is linux end all processes for java and javaw (Your Eclipse will be also terminated so save everything before that). Restart Eclipse and server from within and let us know the result.
Thanks and Regards,
Vikash Anand. -
Tomcat Startup problems using eclipse
Hello together!
I want to create a JSP page in eclipse.
I use eclipse-wtp-1.0 and tomcat 5.5.12.
I have set the JAVA_HOME, TOMCAT_HOME and CATALINA HOME.
I included this 2 directories in eclipse.
But now I get the following error:
23.02.2006 08:37:31 org.apache.catalina.startup.Catalina load
WARNUNG: Can't load server.xml
23.02.2006 08:37:31 org.apache.catalina.startup.Catalina load
WARNUNG: Can't load server.xml
23.02.2006 08:37:31 org.apache.catalina.startup.Catalina start
INFO: Server startup in 0 ms
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.lang.NullPointerException
at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
... 6 more
Could anybody pls help me.
Thanks a lot.The first posting was refering to a java project.
Now I tried to make a dynamic web project.
There i have the mistake:
First a pop up appears and says: Could not fid the main class. Programm will exit.
and then:
java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
Exception in thread "main"
Does anybody know how I create a project (JSP/JSF), so that I can start the page with for example tomcat.
If one of you has a toturial where there are exactly the versions written, as I did everything refering to an toturial.
Pls give advice, how to get it started.
Thanks in advance. -
Eclipse Tomcat Hibernate Struts - JDeveloper OC4J migration problem.
In my current project, everybody uses Eclipse and Tomcat as development environment. I decide to try JDeveloper in this project. Not that this configuration works with eclipse WPT.
When I try to open project, I get an error as below.
Target URL -- http://127.0.0.1:8988/PSSO/index.html
30.Haz.2008 21:50:03 oracle.classloader.util.ClassLoadLogger log
WARNING: Code-source D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\BuildScripts\DirectoryThirdPartyLibraries\jta.jar (from <classpath> in D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\PSSO\WebContent) has the same filename but is not identical to /E:/downloads/tools/jdevstudiobase1111/j2ee/home/lib/jta.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in E:\downloads\tools\jdevstudiobase1111\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.PSSO:0.0.0.
30.Haz.2008 21:50:03 oracle.classloader.util.ClassLoadLogger log
WARNING: Code-source E:\downloads\tools\jdevstudiobase1111\jakarta-struts\lib\struts.jar (from <classpath> in D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\PSSO\WebContent) has the same filename but is not identical to /D:/atilla/projects/javaProjects/meteksan/EclipseWorkspace_RTUK/BuildScripts/DirectoryThirdPartyLibraries/struts.jar (from <classpath> in D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\PSSO\WebContent). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.PSSO:0.0.0.
08/06/30 21:50:17 Hibernate: select t.name, sa.value from RTUK_PSSO.ytk_sistem_attribute sa, RTUK_PSSO.ytk_attribute t where sa.attribute_id = t.id
21:50:20,687 ERROR ActionServlet:364 - Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency.
javax.servlet.ServletException: org.hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken [from tr.com.meteksan.genel.gnlKurumOrganizasyon.GnlKurumOrganizasyon ko order by ko.organizasyonKodu]
at tr.com.meteksan.web.plugin.InitSozlukDegerleriPlugIn.init(InitSozlukDegerleriPlugIn.java:49)
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
what is interesting is that
first query with hibernate works, but second query does not works.
My JDeveloper as below
CVS Version Internal to Oracle JDeveloper 11g Technology Preview 4 (client-only)
Java(TM) Platform 1.5.0_15
Oracle IDE 11.1.1.0.22.49.49
Versioning Support 11.1.1.0.22.49.49
I wonder if it is related to struts and jta jars defined twice.There might be a problem with the OC4J not finding the hibernate library you are trying to use.
Try setting the library also in the tools->embedded OC4J preferences. -
Hi,
I am trying to use Eclipse but I encountered some problems. I drag and drop an application of mine, into a Java project in Eclipse, I try to run and I get :
Usage: javaw [-options] class [args...]
(to execute a class)
or javaw [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
.Whats that about?I think it would be better to build a new project in Eclipse with the same name as your old project, and with the same java class names as your old project (with no content) in a similiar package structure (this is especially easy if the project is small). Then copy/paste the contents of the java classes into the ones in Eclipse. Then add the jar files to the lib folder that are missing (then add them to the project via the menu buy right clicking on the project icon, going to properties, etc).
Drag/dropping a project into eclipse will probably not configure the missing jar files, etc that Eclpise needs. Note if your project is a tomcat project, then in eclpise, create a tomcat project and configure its settings such as where the tomcat server is located and what version of java jdk your using for the project.
However, if you have an already existing Eclipse project you only need to 'import' the project via the Eclpise menu. -
Eclipse web project using Glassfish 4.1 can not load some libraries in modules directory
We installed latest "Glassfish Tools for Luna" (updated on 2 October 2013) and created a new Eclipse dynamic web project using Glassfish 4.1. When try to annotate a class with "javax.enterprise.context.ApplicationScoped", it complains as "ApplicationScoped cannot be resolved to a type" although imported as "import javax.enterprise.context.ApplicationScoped".
Checking "glassfish-4.1/glassfish/modules/" directory and there is cdi-api.jar that contains ApplicationScoped class. But when checking from the project libraries in the eclipse, couldnt see such a jar.
My configuration:
Eclipse 4.4
Glassfish runtime java development kit : java 1.8.0_20
Project java development kit : java 1.8.0_20
Project compiler level : 1.8
Project facets : Dynamic web module 3.1, Java 1.8, Glassfish Web Extensions 4.0, Javascript 1.0
How to solve this issue?
Thanks.There are 274 jars in the Glassfish 4.0 modules directory, whereas there are 282 jars in the Glassfish 4.1 modules directory. So it is not only cdi-api.jar. Moreover there are some libraries, the names of which have been changed.
Why not simply importing all libraries in the modules directory to Eclipse, like Tomcat plugin does for tomcat/lib directory? So when manually deploying a library(jar) to modules directory Eclipse will discover it automatically.
Thanks. -
How to Debug a Java Project in Eclipse using Tomcat6.0
Hi
Can anybody help me with the following questions.
1.How to create a java project in eclipse(I am using jsp,servlets,jsf,spring,jasper,struts).
2.How to debug my application in Eclipse Europa by putting break points.
3.how should i add Tomcat6.0 to my project in order to debug my application so that i can put break points while running the applications and observe the values.
Thanks
BalaYou may find this tutorial useful regarding to JSF, Eclipse and Tomcat: http://balusc.blogspot.com/2008/01/jsf-tutorial-with-eclipse-and-tomcat.html
To put breakpoints, just doubleclick on the left gray rule of the code, you'll get blue bullets at the left rule, indicating a break point. Run Tomcat in debug modus (rightclick Tomcat � debug). Use the Eclipse debug perspective to step in the code (window � open perspective � debug). -
Problem Creating Project (Flash Builder 4) which uses LiveCycle DS
I have a web app which uses LiveCycle DS 2.6.1, however, when I try to create a new flex project I am getting this error:
Only LiveCycle Data Services 2.6 and higher are supported.
Here are the steps in Flash Builder 4
1. File -> New -> Flex Project
2. Set project name
3. Point folder to existing source code
4. Change "Application server type" to "J2EE"
5. Check the "Use remote object acces service"
6. Select "LiveCycle Data Services ES" radio button
7. Click next
8. Un-check "Use default location for local LiveCycle Data Services server
9. Set "Root Folder" to "C:\tomcat\webapps\myapp"
-- in myapp, I have WEB-INF\flex of course
10. Set root URL and context root
11. Click "Validate Configuration"
This gives me the error: "Only LiveCycle Data Services 2.6 and higher are supported."
Any ideas? How is Flash Builder determining the version of LiveCycle?Hi Jeremy,
I tried the steps you mentioned and cannot reproduce the problem. You mentioned you are pointing your project location to existing source code. Was there a previous FB project at that location? Was that project using an older version of LCDS before? If you create a new project and point it to a new emoty project location folder (or use default workspace location), do you still see the problem? Any more information you can give me to help reproduce the problem would help.
thanks!
-george -
Using Eclipse project definitions to build the Flex SDK
It would be great if someone from Adobe could post on the recommended usage of the Eclipse project definitions in the development/eclipse/ subdirectory of the 3.0.x trunk distribution. I would like to debug some compiler modifications that I am working on.
I saw Peter Farland demo this setup at 360Flex, but was unable to capture all the details of the Eclipse configuration that he discussed in his talk.
thanks!If you go to the framework project’s properties, there is a section called Flex Library Compiler, you want to use a specific flex sdk (add a new sdk which points to the trunk, and use that) — you are probably building /against/ the wrong sdk, right code, wrong compiler.
- Jono
From: Ben Clinkinbeard <[email protected]>
Reply-To: <[email protected]>
Date: Thu, 3 Apr 2008 12:56:01 -0700
To: <[email protected]>
Subject: Re: Using Eclipse project definitions to build the Flex SDK
A new message was posted by Ben Clinkinbeard in
Developers --
Using Eclipse project definitions to build the Flex SDK
Sorry, I'm not following. My SDK project is from the trunk.
Thanks,
Ben
On Thu, Apr 3, 2008 at 3:32 PM, Jono Spiro <[email protected]> wrote:
A new message was posted by Jono Spiro in
Developers --
Using Eclipse project definitions to build the Flex SDK
Try changing the sdk for the framework lib project to trunk (you'll need to add a new flex sdk, name it whatever you want) -- it's in the project properties. It's using the wrong compiler.
- Jono
From: Ben Clinkinbeard <[email protected]>
Reply-To: <[email protected]>
Date: Thu, 3 Apr 2008 05:13:43 -0700
To: <[email protected]>
Subject: Re: Using Eclipse project definitions to build the Flex SDK
A new message was posted by Ben Clinkinbeard in
Developers --
Using Eclipse project definitions to build the Flex SDK
I am running FB on top of Eclipse 3.3.2.
<http://3.3.2.> <
<http://3.3.2.>
http://3.3.2.> I checked out the whole SDK trunk and can build the main ant task with no errors. I used the instructions mentioned above to create a Flex framework library project and thats where the error comes in. (I had tried to manually build a framework project a few times and it was a nightmare.) I would probably prefer to work on the 3.0.x branch/tag as I hope to submit a patch or two but saw Joe mention that the project defs only existed in the trunk.
Searching Google for the oem error turns up lots of links about projects that had assets deleted and the build got confused but following the instructions on how to fix proved unsuccessful.
Thanks,
Ben
On Thu, Apr 3, 2008 at 1:45 AM, Jono Spiro <[email protected]> wrote:
A new message was posted by Jono Spiro in
Developers --
Using Eclipse project definitions to build the Flex SDK
I always forget what that error means when it comes up -- though it's been ages since I've seen it last, literally.
Joe: Since you mention Java 1.5, I'm guessing the errors are in the asdoc package? Those should be turned off (read: turned into a warning) -- Eclipse is a little too persnickety about that particular error. There's a preference for this in the Java section under warnings and errors. It's turned off in the trunk dev projects. Otherwise, you should be able to run the compiler directly with no problems (okay, one more caveat: there's a class loader issue with the OEM, fixed in trunk if you look for my Java 1.5 checkin).
Ben: What is your setup? What are you building (Ryan mentions trunk, Joe mentions 30x), which Eclipse, which dev projects, did you build the sdk from the commandline first, etc.?
Cheers,
Jono
View/reply at Using Eclipse project definitions to build the Flex SDK <
<http://www.adobeforums.com/webx?13@@.59b4a9d4/3>
http://www.adobeforums.com/webx?13@@.59b4a9d4/3>
Replies by email are OK.
Use the unsubscribe <
<http://www.adobeforums.com/webx?280@@.59b4a9d4%21folder=.3c060fa3>
http://www.adobeforums.com/webx?280@@.59b4a9d4%21folder=.3c060fa3> form to cancel your email subscription.
View/reply at Using Eclipse project definitions to build the Flex SDK <
<http://www.adobeforums.com/webx?13@@.59b4a9d4/5>
http://www.adobeforums.com/webx?13@@.59b4a9d4/5>
Replies by email are OK.
Use the unsubscribe <
<http://www.adobeforums.com/webx?280@@.59b4a9d4%21folder=.3c060fa3>
http://www.adobeforums.com/webx?280@@.59b4a9d4!folder=.3c060fa3
<http://www.adobeforums.com/webx?280@@.59b4a9d4%21folder=.3c060fa3> > form to cancel your email subscription.
View/reply at Using Eclipse project definitions to build the Flex SDK
<http://www.adobeforums.com/webx?13@@.59b4a9d4/6>
Replies by email are OK.
Use the unsubscribe
<http://www.adobeforums.com/webx?280@@.59b4a9d4%21folder=.3c060fa3> form to cancel your email subscription.
View/reply at Using Eclipse project definitions to build the Flex SDK
<http://www.adobeforums.com/webx?13@@.59b4a9d4/7>
Replies by email are OK.
Use the unsubscribe
<http://www.adobeforums.com/webx?280@@.59b4a9d4!folder=.3c060fa3> form to cancel your email subscription. -
Add project in Eclipse-workspace to a Tomcat-project's buildpath?
Hi,
I have two projects in an Eclipse workspace - one Tomcat project and a normal Java project. I need the Java project in the Tomcat project's buildpath. Is there a chance to do this without alway exporting the Java project as JAR-file into the Tomcat project's lib-directory?
Thx in advance!
Regards,
luckecI do this all the time and don't have to do that.
I export my Java Project as a JAR file.
I reference that JAR file in by Java Build Path.
I have it sent to deploy referenced libraries. Which I have now noticed is a feature of MyEcplise, a plug-in that I use. Sorry about that.
Maybe you are looking for
-
How can i remove devices that are no longer synced with my laptop?
Previously, I gave my daughter my old iPhone, as I had purchased a new one, but I am unable to delete the device off my computer. I would also like to remove the backups that I have on my computer to free up some space, but I can't manage to find it.
-
Customer Down Payment Process Russia
Hi, We are currently in the process of implementing our Russian subsidiary into SAP ECC 6.0. In this process we are struggeling to find the correct setup for a specific business process: For a lot of our customers we are requesting prepayment. We wan
-
with the latest update. Next to the star where you can bookmark a page used to be the bookmarks drop down. Now it opens up your bookmarks menu. How do you get it back to being a drop down of your bookmarks??
-
How can i mark a message for follow up
I have a message that says something will happen on a specific date. I would like to mark that message for follow up, hopefully telling TB the specific date that I need to follow up. I know that Outlook has flags. Does TB have something similar?
-
Report conversion tool--Can we modify the query
Hi all, I have some freehand SQL reports converted into WebI reports. I understand that report conversion tool, creates a new universe for each of the freehand SQL report. But if I try to edit the query, like add a filter condition, an error pops out