Red5 and Eclipse - eclipse

I want setup red5chatv2.1 but Eclipse(juno) Java compiler say error.
The import org.red5.server.api.ScopeUtils cannot be resolved !
I have red5 1.0.0, java 7.0
package chat;
import org.red5.server.adapter.ApplicationAdapter;
import org.red5.server.api.IConnection;
import org.red5.server.api.IClient;
import org.red5.server.api.scope.IScope;
import org.red5.server.api.Red5;
import org.red5.server.api.service.IServiceCapableConnection;
import org.red5.server.api.so.ISharedObject;
import org.red5.server.api.ScopeUtils;
import org.red5.server.api.so.ISharedObjectService;
import org.red5.server.api.*;
import org.red5.server.api.scheduling.*;
import org.red5.samples.components.ClientManager;
import org.red5.server.api.service.ServiceUtils;
import org.red5.server.api.service.*;
import org.red5.server.api.service.IPendingServiceCallback;

Red5 can be installed as stand alone server or as a war deployment.
The procedure is to create war deployment of red5 version 0.8(old version). (Lengthy, please bear with me).
Download and install jdk1.6, glassfish2.1 and netbeans 6.5 on linux.
Download "Red5War_0.8.0.war".
I am sharing in the hope that the following may help the community to create a deployable war red5 version 0.8 on glassfish2.1 by following the steps using in Netbeans 6.5:
Step 1: Un-Zip the Red5War_0.8.0.war
Step 2: Create a web project named "red5" in Netbeans
Step 3: Copy the content of "/WEB-INF/classes" of inflated war folder and paste it in "Source Packages" of Netbeans Project.
Step 4: Right Click "Libraries", add "JAR/Folder", navigate to "/WEB-INF/lib" of inflated war folder, select all the dependency jars and Click On "Open" of Netbeans Project.
Step 5: Delete WEB-INF of Netbeans Project (Note : Ignore Warning/Error).
Step 6: Delete META-INF of the inflated folder.
Step 7: Copy the remaining content ("/WEB-INF/classes" and "/WEB-INF/lib") of the inflated folder to "Web Pages" of Netbeans Project.
Step 8: Open the following ports in the firewall TCP/843,TCP/1935,TCP/5229,TCP/5080
Step 9: Run the project
Step 10: Deployable war file "red.war" is created in the Netbeans Project Folder(../NetBeansProjects/red5/dist/)
As I am facing errors, I request you to contribute in creating new version(1.0, 1.0.1, 1.02) war deployments using new version netbeans, jdk for new version glassfish server(3.x).
Arumugam A.V

Related

how to import javax.mail in eclipse?

I am learning how to use JavaMail. (i have se11)
I downloaded javax.mail.jar,
put it under C:\Java\jdk , and extract it.
I followed the instruction, set CLASSPATH = C:\Java\jdk\javax.mail.jar ;
and I add the javax.mail.jar to the eclispe Referenced Library.
However, when i try to import javax.mail.* , it says the import can not be resolved.
I open the extracted folder, and it contains only .class files.
I tried to open the javax.mail.Session file from eclipse file explorer, but it said:
"The JAR file C:\Java\jdk\bin\javax.mail.jar has no source attachment."
what should I do in order to import the javax.mail.* ?
I am very frustrated, please help!
No matter how you run your program, to just use the classes in a jar you need to have the jar file in your classpath. If you run from the command line you can do this:
java -cp C:\Java\jdk\javax.mail.jar my.fully.qualified.classname
If you're in Eclipse then:
Import the jar file into your Java project. Use the File-->Import... action.
Select your java project and select Build Path --> Configure Build Path...
Select Java Build Path on the left
Select the Libraries tab and the Add Jars... button on the right
Navigate to and select the jar you you imported above
Click OK
The classes in the jar file are now available for use in your code.

Selenium package "com.thoughtworks" cannot be resolved in Eclipse

I want to make a Selenium project with Eclipse. I have added the reference to the selenium-server-standalone-3.4.0.jar file but I cannot import the package com.thoughtworks so the following lines produce an error:
import com.thoughtworks.selenium.DefaultSelenium;
import com.thoughtworks.selenium.Selenium;
Selenium RC has become obsolete in the newer selenium versions.
Download Selenium server 2.43 jar file, include it in your project and your issue will be gone.

gwt - Error when importing a gwt project using Maven import in Eclipse

I am using Eclipse, Version: Indigo Service Release 1.
My GWT version is 2.4.0. I installed everything like GWT and Maven related plugins.
I am trying to import a existing gwt-maven project. When importing, I see this dialog:
Can anyone tell me why and how to solve it?
Google is your dear friend.
By entering "no marketplace entries found to handle gwt-mavn-plugin", I got:
Error when importing Maven-GWT project ("No marketplace entries found to handle gwt-maven-plugin")
gwt-maven-plugin with Eclipse Indigo
Eclipse: Import Maven project, missing maven-gae-plugin
EDIT :
Actually I would advise you to use maven from the command line instead of using the Maven plugin in Eclipse as I had exprienced many issues with it.
From the command line, run the following commands:
To compile and install : mvn clean install
to generate eclipse project: mvn eclipse:eclipse
Afterwards, from your eclipse, import your generated project as a normal project and voila!
Hope this helps!

Import cannot be resolved in Eclipse from dependency in Play 2.0

I successfully added a dependency in Play 2.0 and was able to compile the project. When I try to run a simple test to render a PDF I get this error:
The import com.itextpdf cannot be resolved
import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.pdf.PdfWriter;
How do I clear this error with Play managing this dependency?
I solved this problem by running "play eclipse" on my project in command line and then Project-->Clean in Eclipse. Similarly for Intellij "play idea" and then File > Invalidate Caches > Invalidate and restart.
If the dependency is properly added, the jar should now be on the build path. Could you check if it actually is on your buildpath? Note that the /lib directory of your project is automatically included. You could try making a symlink in /lib to the jar

Eclipse Dynamic Web Project Error - The imports org.apache.axis2.om Cannot Be Resolved

My Eclipse project underlines in red the imports below 'org.apache.axis2.om' with message...
'The imports org.apache.axis2.om Cannot Be Resolved'
import org.apache.axis2.om.OMAbstractFactory;
import org.apache.axis2.om.OMElement;
import org.apache.axis2.om.OMFactory;
import org.apache.axis2.om.OMNamespace;
What is the cause and how can I fix it in Eclipse..?
Regards,
You need to add axis2-kernal jar to your project. This can be done by right clicking your project then click build path -> configure build path -> libraries - add external jars, then you can add this jar from your system to your project.