10 Best SQLClients for Developers

10 Best SQLClients for Developers

10 Best SQLClients for Developers

1. Postgresql Maestro


Download URL: http://www.sqlmaestro.com/products/postgresql/maestro/

2. pgModeller


Download URL: http://pgmodeler.com.br/

3. SQLManager



Download URL: http://sqlmanager.net/

4. phpPgAdmin


Download URL: http://phppgadmin.sourceforge.net

5. TeamPostgreSQL


Download URL : http://www.teampostgresql.com/

6. Adminer


Download URL: http://www.adminer.org/

7. dbVis


Download URL: http://www.dbvis.com/

8. phpMyAdmin


Download URL: http://www.phpmyadmin.net

9. Navicat


Download URL: http://www.navicat.com/

10.SQLExplorer


Download URL: http://eclipsesql.sourceforge.net/‎


Manually Start PostgreSQL Windows

Start PostgreSQL in Windows


Download and install/extract the postgre server

Create a data folder under pgsql as
C:\softwares\installed\pgsql\data

Open command prompt and Navigate to the extracted/installed folder,

For Example
C:\softwares\installed\pgsql\bin

and type the following command



pg_ctl -D C:\softwares\installed\pgsql\data -l logfile start





finally,
type initdb.exe C:\softwares\installed\pgsql\data for initializing the database


Javascript for loop Example

Javascript for loop Example

Javascript for loop Example



for(var i=0; i<=10; i++){
    alert("Counter is at "+i);
}

What to note??
From java only a small but confusing difference :

In Javascript it is :

for(var i=0;

Where as in java it is something like for(int i=0; ......... Being a java developer you will be tempted to use int i instead of a var declaration..

Example..

for(var i=0; i<=arr.length; i++){
var property = arr[i].split("=");
var propertyName = property[0];
var propertyVal = property[1];
        //... continue custom logic
 }
Alfresco - view state cannot be reconstructed

Alfresco - view state cannot be reconstructed

Alfresco - view state cannot be reconstructed 


This is a very familiar exception for Alfresco users,

Cause:

There are a lot of reasons for this exception and is noticed in Alfresco Explorer. The causes for this vary from
1. User session expiry, 
2. applying amp file, 
3. UI customizations
4. Wrong configs etc.

As per Alfresco, this is a message/exception "specially for developers". And for those who wants the details needs to refer the system logs on where it went wrong.. However few of the issues causing these has been fixed in 4.1x version of Alfresco.

Ways to find the node ids of a content in Alfresco

Ways to find the node ids of a content in Alfresco

It is a common need when working with Alfresco to find a contents node id for multiple reasons. If you are naïve or medium level techie person follow below notes to find a contents node id.
Ways,
From Alfresco Explorer
From Alfresco Share
By Javascript code,
By Alfresco SDK

From Alfresco Explorer
Hover the content
Hovering the content item in Alfresco displays its target url embedded with a servlet with its node id. Check lower left corner of your browser.. (I use google Chrome!?). Copy the target url and paste it in a notepad to make it how you want..



The same can be found in download link of the content and few of the other actions associated with it
Node Browser
Click on the Administration Console button in your Alfresco Explorer on which you can find Node Browser option.

Selecting the corresponding stores, you will be listed with contents(or Alfresco nodes) along with their node details.


Alfresco Share
Hover works with Share too but only has got a slightly different url mix up. Copy the target url and paste it in a notepad to make it how you want..



The same can be found in download link of the content and few of the other actions associated with it
Navigate to the desired content to get its detail.



Javascript API

Scriptnode holds a property “id” for storing the node id of an alfresco node.
 var name1 = userhome.properties.id
 var name2 = userhome.properties["id"];
 var name3 = userhome.properties["cm:id"];
 var name4 = userhome.properties["{http://www.alfresco.org/model/content/1.0}id"];

Any many API calls returns such nodes which can be iterated and accessed like above.
Query
var newquery = "PATH:\""+ result3 + "//*\" AND @cm\\:name:\"" +model.node.name +"\"";
model.result = newquery;
var nodes = search.luceneSearch(newquery);


Alfresco SDK
The class NodeRef holds the detail of nodes. Many SDK calls returns NodeRef or its array as response. Iterate over it and fetch the node.id


for (NodeRef node : nodes)
{..}
Alfresco webscript FTL returning XML throws  the entity nbsp was referenced but not declared exception

Alfresco webscript FTL returning XML throws the entity nbsp was referenced but not declared exception

Alfresco webscript FTL returning XML throws  the entity nbsp was referenced but not declared exception


FTL Structure:
<?xml version="1.0" encoding="UTF-8"?>
<properties>
   <node>
   <name>${node.name}</name>
   <id>${node.id}</id>
   <path>${node.displayPath}/${node.name}</path>

   <#if node.isContainer>
       <#assign isFolder="true">
       <#assign size="">
       <#assign encoding="">
       <#assign mimetype="">
  <#assign content="">
   <#else>
       <#assign isFolder="false">
       <#assign size=node.size/1024 + " KB">
       <#assign encoding=node.properties.content.encoding!>
       <#assign mimetype=node.properties.content.mimetype!>
  <#assign content=node.content>
   </#if>

   <icon16>${node.icon16}</icon16>
   <icon32>${node.icon32}</icon32>
   <isFolder>${isFolder}</isFolder>
   <title>${node.properties.title!}</title>
   <description>${node.properties.description!}</description>
   <author>${node.properties.author!}</author>
   <size>${size}</size>
   <creator>${node.properties.creator}</creator>
   <created>${node.properties.created?datetime}</created>
   <modifier>${node.properties.modifier}</modifier>
   <modified>${node.properties.modified?datetime}</modified>
   <editinline>${node.properties.editInline!}</editinline>   <encoding>${encoding}</encoding>
   <mimetype>${mimetype}</mimetype>
   <content>${content}</content> 
   <#if node.properties["sk:extranetId"]?exists>
     <extranetId>${node.properties["sk:extranetId"]?string}</extranetId>   
   <#else>
    <extranetId>Extranet Id not found</extranetId>   
   </#if>

   <#if node.properties["sk:templateId"]?exists>
     <templateId>${node.properties["sk:templateId"]?string}</templateId>   
   <#else>
    <templateId>Template Id not found</templateId>   
   </#if>


   <#if node.properties["sk:docstatus"]?exists>
     <docstatus>${node.properties["sk:docstatus"]?string}</docstatus>   
   <#else>
    <docstatus>Template Id not found</docstatus>   
   </#if>

   <#if node.properties["sk:pageId"]?exists>
     <containerId>${node.properties["sk:pageId"]?string}</containerId>   
   <#else>
    <containerId>${node.properties["sk:extranetId"]?string}</containerId>   
   </#if>
   </node>   

</properties>



Why???(Solution)

Just wrap it with the right DTD something like below,

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties[
<!ELEMENT node (name, id, path, icon16, icon32, isFolder, title, description, author, size, creator, created, modifier, modified, editinline, encoding, mimetype, content, extranetId, templateId, docstatus, containerId)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT id (#PCDATA)>
<!ELEMENT path (#PCDATA)>
<!ELEMENT icon16 (#PCDATA)>
<!ELEMENT icon32 (#PCDATA)>
<!ELEMENT isFolder (#PCDATA)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT description (#PCDATA)>
<!ELEMENT author (#PCDATA)>
<!ELEMENT size (#PCDATA)>
<!ELEMENT creator (#PCDATA)>
<!ELEMENT created (#PCDATA)>
<!ELEMENT modifier (#PCDATA)>
<!ELEMENT modified (#PCDATA)>
<!ELEMENT editinline (#PCDATA)>
<!ELEMENT mimetype (#PCDATA)>
<!ELEMENT content (#PCDATA)>
<!ELEMENT extranetId (#PCDATA)>
<!ELEMENT templateId (#PCDATA)>
<!ELEMENT docstatus (#PCDATA)>
<!ELEMENT containerId (#PCDATA)> 
<!ENTITY nbsp "&#160;">
]> 
<properties>
   <node>
   <name>${node.name}</name>
   <id>${node.id}</id>
   <path>${node.displayPath}/${node.name}</path>

   <#if node.isContainer>
       <#assign isFolder="true">
       <#assign size="">
       <#assign encoding="">
       <#assign mimetype="">
  <#assign content="">
   <#else>
       <#assign isFolder="false">
       <#assign size=node.size/1024 + " KB">
       <#assign encoding=node.properties.content.encoding!>
       <#assign mimetype=node.properties.content.mimetype!>
  <#assign content=node.content>
   </#if>

   <icon16>${node.icon16}</icon16>
   <icon32>${node.icon32}</icon32>
   <isFolder>${isFolder}</isFolder>
   <title>${node.properties.title!}</title>
   <description>${node.properties.description!}</description>
   <author>${node.properties.author!}</author>
   <size>${size}</size>
   <creator>${node.properties.creator}</creator>
   <created>${node.properties.created?datetime}</created>
   <modifier>${node.properties.modifier}</modifier>
   <modified>${node.properties.modified?datetime}</modified>
   <editinline>${node.properties.editInline!}</editinline>   <encoding>${encoding}</encoding>
   <mimetype>${mimetype}</mimetype>
   <content>${content}</content> 
   <#if node.properties["sk:extranetId"]?exists>
     <extranetId>${node.properties["sk:extranetId"]?string}</extranetId>   
   <#else>
    <extranetId>Extranet Id not found</extranetId>   
   </#if>

   <#if node.properties["sk:templateId"]?exists>
     <templateId>${node.properties["sk:templateId"]?string}</templateId>   
   <#else>
    <templateId>Template Id not found</templateId>   
   </#if>


   <#if node.properties["sk:docstatus"]?exists>
     <docstatus>${node.properties["sk:docstatus"]?string}</docstatus>   
   <#else>
    <docstatus>Template Id not found</docstatus>   
   </#if>

   <#if node.properties["sk:pageId"]?exists>
     <containerId>${node.properties["sk:pageId"]?string}</containerId>   
   <#else>
    <containerId>${node.properties["sk:extranetId"]?string}</containerId>   
   </#if>
   </node>   

</properties>

Cheers!!

Alfresco Webscript to load a properties file content to Alfresco

Alfresco Webscript to load a properties file content to Alfresco

Alfresco Webscript to load a properties file content to Alfresco


Requirement:
Write a webscript which will load my .properties file "content" to alfresco.

Approach:
We can do this in many quick ways like:
1. Use the Java SDK of Alfresco to read the file entries and push it to repository.
2. Develop a webscript which will consume the property file or each of its element as input and author it in Alfresco.
3. Or ofcourse just "add content" the file using any of the available UIs of alfresco..

I want this component to be reused later so I am going for the second approach to construct a webscript.

Java or Javascript based?
In this scenario it is good to go for a java based webscript and read the properties after getting the file at server side and iterate, push the contents to Alfresco
But I want the program to be developed with Javascript based that I can use bundle it without Alfresco SDK dependency.

Let us start with a client java program to read a java property file.

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Enumeration;
import java.util.Properties;

public class PropertyReader {
public static void main(String[] args) {
try {
System.out.println(System.getProperty("user.dir"));
File file = new File(System.getProperty("user.dir")+"\\src\\com\\tcs\\ecmui\\test\\sample.properties");
FileInputStream fileInput = new FileInputStream(file);
Properties properties = new Properties();
properties.load(fileInput);
fileInput.close();

Enumeration enuKeys = properties.keys();
while (enuKeys.hasMoreElements()) {
String key = (String) enuKeys.nextElement();
String value = properties.getProperty(key);
System.out.println(key + ": " + value);
}
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
}

Ok now we have a program read the property file.

Let us make the webscript ready to consume this as the input and write it to repository..

Who is acquia?

Who is acquia?

Who is acquia? 


How many of you know Drupal is just one opensource product from acquia!??

Acquia is company who provides Drupal as a open source php framework.

Apart from Drupal they also have products such as,

Acquia Cloud
Acquia Cloud Site Factory
Acquia Commerce Cloud
Acquia Cloud Free
Professional Services
Drupal Support etc..


Their FREE(Open) Business include:

Acquia Cloud FREE -A Drupal development sandbox with an epic suite of powerful tools
Instant Insight-Scan and score your Drupal site on Performance, Security and Code quality
Dev Desktop -Get your own xAMP stack for local Drupal development
DISTROS - Fast track your Drupal development with a host of great distros

url: http://www.acquia.com

10 OCR Softwares Open Source & Commercial with download URLs

10 OCR Softwares Open Source & Commercial with download URLs

List of OCR Softwares Open Source & Commercial

Open Source OCR Software:


Tesseract
Category: Open source
Claims to be the most accurate open source OCR engine available and was one of the top 3 engines in the 1995 UNLV Accuracy test..
Supports a wide variety of image formats to be read and convert to texts in over 60 languages.
Combined with the Leptonica Image Processing Library.  since 2006 it has been improved extensively by Google.
Platforms: Linux, Windows, MAC OSX.


JMagick
Category: Open source
Open Source Java Interface of ImageMagick.
Implemented in the form of Java Native Interface(JNI) into the ImageMagick API which is built as a thin layer into the ImageMagick API
Lot faster than image processing libraries written completely in Java
Licence: LPGL
Platforms : as a java library.


Cognitive OpenOCR (Cuneiform)
CuneiForm is a software tool for optical character recognition. It was originally developed at Cognitive Technologies and, after a few years with no development, released as freeware on December 12, 2007.
Algorithms used in CuneiForm come from the rules for writing letters, from their topology, and do not require pattern recognition learning. CuneiForm recognizes any print font (scanned from booksnewspapersmagazineslaser printer output, dot-matrix printer output, typewriter text, etc.)
Licence: BSD Licence


OCRopus
OCRopus™ is an OCR system written in Python, NumPy, and SciPy focusing on the use of large scale machine learning for addressing problems in document analysis.
The latest release features a new text line recognizer based on recurrent neural networks (and does not require language modeling), models for both Latin script and Fraktur, and some new tools for ground truth labeling
Platform: Linux


VietOCR
A Java/.NET GUI frontend for Tesseract OCR engine. Supports optical character recognition for Vietnamese and other languages supported by Tesseract.
Supports PDF, TIFF, JPEG, GIF, PNG, BMP image formats, Multi-page TIFF images, Screenshots, Selection box, File drag-and-drop, Paste image from clipboard, Postprocessing for Vietnamese to boost accuracy rate
Localized user interface, Integrated scanning support, Watch folder monitor for support of batch processing, Custom text replacement in postprocessing, Spellcheck with Hunspell,
Support for downloading and installing language data packs and appropriate spell dictionaries
Licence: Apache Licence, 2.0
Platform: All, as a java library.


GOCR
Developed under the GNU Public License
Converts scanned images of text back to text files
Can be used with different front-ends, which makes it very easy to port to different OSes and architectures. It can open many different image formats, and its quality have been improving in a daily basis.
Licence : GNU Public Licence
Platform : All


YAGF
 Is a graphical interface for cuneiform and tesseract text recognition tools
Can scan images via XSane, import pages from PDF documents, perform images preprocessing and recognize texts using cuneiform from a single command centre
YAGF also makes it easy to scan and recognize several images sequentially.
Platform : Linux
Licence : GNU GPL v3

WatchOCR
Free OCR server for PDFs
Uses cuneiform, and exactimage to create text searchable PDFs from image only PDFs and Tiffs. 
Also includes a barcode feature that allows files to be renamed and placed in a directory structure based on information included in a barcode.
Using the web interface, WatchOCR can be remotely configured to monitor a watched folder for newly scanned PDFs for OCR conversion.
Platform : Linux
Licence : GNU GPL


SimpleOCR
Freeware
Royalty free OCR SDK for developers.
Licence : Free

Commercial OCR Softwares

TypeReader
Category: Commercial
High Speed: According to third party tests, the speed of ExperVision®’s OpenRTK® is four (4) to eight (8) times faster than competition.
Converts scanned documents into electronic files at speed of 8,000 pages per hour with maximum reliability
 Desktop 7.0 offers added flexibility to handle color and grayscale images, with duplex scanning support to process documents in English, French, German, Italian, Portuguese, Spanish, Dutch, Danish, Swedish, Norwegian, Finnish, Polish, Hungarian and Polynesian.
Unparalleled recognition technology to support 2618 fonts.
Users can choose to output various formats
Licence: Commercial

Edocfile
Category: Commercial
Uses Optical Character Recognition on the entire document and then parses the data contents, allowing the user to easily capture data from multi-page documents and documents of various lengths such as sales receipts.
The parsing engine can extract information based on its location to other items in the file and it also supports Regular Expressions and EasyPatterns.
capability to monitor an unlimited number of file folders that contain different document types to be processed, making it ideal for use with a copier that has a scan to file option.
Licence: Commercial
Platform : Windows

ABBYY FineReader
Converts Scans and PDFs to editable text.
Extract text from document photos
Create Searchable PDFs for archiving
Converts mulitilingual document images to texts
Retain the original structure of multipage documents.
Supports wide range of formats.
No retyping and reformatting
Digitizing Historic Texts with Fraktur OCR.
Export to Google Docs, Evernote and Dropbo
Platform: Windows, Mac


Nuance Omnipage
Turn high volumes of paper and digital documents into files you can edit, search and share in the format of your choice
Integrated PDF toolkit including searchable PDF and patented PDF-MRC
The most accurate conversion in 123 languages
Superior formatting control
Complete recognition of text, tables, graphics and images
Platform: Windows, Mac, Linux, Mobile etc
ReadIRIS
Powerful OCR software designed to convert all your paper documents, images or PDF into editable and searchable digital text (Word, Excel, PDF…) in just a click
Converts documents to PDF, Export your documents to the cloud
has acceptable performance, the software produces less accurate results and is less user-friendly than OmniPage Standard or Presto! OCR


Aspire
Embeded with a high performance OCR (optical character recognition) engine, Asprise OCR SDK library for Java, VB.NET, CSharp.NET, VC++, VB6.0, C, C++, Delphi on Windows, Mac, Linux and Solaris, enables you to equip your applications with OCR ability easily.
Highest Level of Accuracy - Asprise OCR can easily recognize difficult documents of poor image quality;
Excellent Format Retention - Text layouts on the input documents are preserved;
High Speed - Asprise OCR uses optimized OCR engine to perform excellent recognition in very short time;
Ease of Use - We strive to make the developer's life easier. Complex parameter configurations are removed from Asprise OCR SDK. You only have to supply the image document. Asprise OCR can intelligently determine the best setting internally.
Barcode Recognition - Beside characters (letters and numbers), Asprise OCR can recognize almost every kind of bar code. You can choose to recognize barcode or characters or both.
Flexible Licensing Scheme - You can purchase binary APIs and/or source code - the Lowest OCR library ownership cost!

Presto! OCR
Excellent OCR software package that produces more accurate optical character recognition results than Readiris Pro. However, it offers fewer output application options and understands fewer languages than OmniPage Standard.
Recognize Any Document, Article, or Letter with Ease
Send Recognized Text Directly to MS Word, Excel etc. Unparalleled Recognition Accuracy, 40 languages support, Re-Creates Digital Content from Paper Documents, Batch Processing, Color OCR, Training Engine, OCR on Dark Background, Built-in text editor, Automatically Detects Page Orientation
Platform: Windows

XML DTD issue - Space required after the element..

XML DTD issue - Space required after the element..

XML DTD issue - Space required after the element..



Source:
Below xml was causing the headache!

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties[<!ELEMENT node (#PCDATA)>
<!ELEMENT name(#PCDATA)>
<!ELEMENT id (#PCDATA)>
<!ELEMENT path (#PCDATA)>
<!ELEMENT icon16 (#PCDATA)>
<!ELEMENT icon32 (#PCDATA)>
<!ELEMENT isFolder (#PCDATA)>


Cause??

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties[<!ELEMENT node (#PCDATA)>
<!ELEMENT name(#PCDATA)>


Watch out!! :)

Alfresco Deployment on Weblogic -Postgres.

Alfresco Deployment on Weblogic -Postgres.

Postgres Installation

1.Download the postgresql-8.3.exe Installer



 2. Double click on the Postgresql-8.3 installer


    
 Give the installation path as D:\postgres and click next




Uncheck the check box that you dont need to “install as service”



click next and gothrough the installation process.......





Deselect the launch prompt check box and click on finish the installation process!


Setup the Database in Postgres for Alfresco


Navigate to your Postgres installation folder copy the path upto bin ie. D:\postgres\bin and open command prompt and change directory to D:\postgres\bin and run the initdb -D d:\postgres\data command....







then run pg_ctl start -D d:\postgres\data  command

If the below error occurs then you have to check and stop the alfresco tomcat services  from your machine.. Seems some other app is consuming the port!??








After ensuring the port is valid to go, you can run that command again in command prompt:--   pg_ctl start -D d:\postgres\data  and start the postgres server.



After this you have to run createuser -P -s -e alfresco  to create user in alfresco. Give password as alfresco and confirm the password.



Now you type pgAdmin3.exe in console and hit Enter.
You will see the below screen.





Next step:------



Alfresco Deployment in Weblogic



Download the weblogic archive and extract it to your C:\bea


Download and extract the alfresco-enterprise-ear-4.0.2.zip file. 

Extract alfresco-enterprise-4.0.2.9.ear file from the archive and extract it again to “alfresco-enterprise-4.0.2.9\”.



If you open, inside alfresco-enterprise-ear-4.0.2.9 folder there will be two files - share.war  and alfresco.war and a Meta-inf folder
Rename them as share.war.tmp and  alfresco.war.tmp. 
Now right click on  share.war.tmp and try to Extract to  “share.war\” and also on  alfresco.war.tmp and to extract to  “alfresco.war\”. 
Create a folder 'alfrescobea' in D drive and inside which create two folders ear and repository 
Copy the folders alfresco.war, share.war, and META-INF into ear folder.


Now go to C:\bea\wlserver_10.3\common\bin  and run config.cmd 

which will open that below screen





change the domain name as alf_domain.







Give the password as weblogic1.












Now go to C:\bea\user_projects\domains\alf_domain inside that create a folder called alfresco,and inside that create a folder called extension and put the license file into that.


Next you go to the D:\alfrescobea\ear\alfresco.war\WEB-INF\classes  and copy the alfresco-global.properties.sample file and paste it in the C:\bea\user_projects\domains\alf_domain.Then rename that file as  alfresco-global.properties. Open it in notepad ++ and add this line


 
db.pool.statements.enable=false into alfresco-global.properties file,and uncomment these lines

db.username=alfresco
db.password=alfresco
db.driver=org.postgresql.Driver
db.url=jdbc:postgresql://localhost:5432/alfresco
alfresco.rmi.services.host=0.0.0.0

Then go to C:\Alfresco\tomcat\lib copy that postgresql-9.0-802.jdbc4.jar file into C:\bea\user_projects\domains\alf_domain\lib.

Now open the C:\bea\user_projects\domains\alf_domain\config and open config.xml file and add


 
<enforce-valid-basic-auth-credentials>false</enforce-valid-basic-auth-credentials> before


 
the end of the </security-configuration> section.

Go to  C:\bea\user_projects\domains\alf_domain\bin and open setDomainEnv.cmd file in notepad++  and modify            
                                                  


 
MEM_MAX_PERM_SIZE="-XX:MaxPermSize=256m"
             MEM_MAX_PERM_SIZE_64BIT="-XX:MaxPermSize=512m"
             MEM_MAX_PERM_SIZE_32BIT="-XX:MaxPermSize=256m"
                                       set WLS_MEM_ARGS_64BIT=-Xms256m -Xmx2048m
                                       set WLS_MEM_ARGS_32BIT=-Xms256m -Xmx1024m


 
                                        (in if part and also else part you have to do the modification)

                                                set JAVA_OPTIONS=%JAVA_OPTIONS% %enableHotswapFlag% -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole... -Dweblogic.disableMBeanAuthorization=true”  in if part

set JAVA_OPTIONS=%JAVA_OPTIONS% %enableHotswapFlag% -da -Dweblogic.disableMBeanAuthorization=true” (in else part)

set PRE_CLASSPATH=%EXT_PRE_CLASSPATH%;%PRE_CLASSPATH%;C:/bea/user_projects/domains/alf_domain   (in if part)

set PRE_CLASSPATH=%EXT_PRE_CLASSPATH%;C:/bea/user_projects/domains/alf_domain (in else part)

go to  location C:\bea\wlserver_10.3\common\nodemanager.If you find that inside nodemanager folder there is no nodemanager.properties file then you have to create it.for creating that just go to that particularlocation in commamd prompt that is:--  C:\bea\wlserver_10.3\server\bin    and run that startNodeManager.cmd.which will create the nodemanager.properties file.After that we have to modify two things insde nodemanager.properties file.they are...

1.SecureListener=false
2.StartScriptEnabled=true

Starting the server



1.   Start the domain admin server.
To do that you have to go to cmd and then go to path C:\bea\user_projects\domains\alf_domain and run startWebLogic.cmd.

Open a web browser and log in to the admin server (for example, at http://localhost:7001/console) with the credentials that you specified while installing Weblogic.



username: weblogic
password: weblogic1 


You will see the below screen and on the left corner you will find environment. 

Expand it and click on Machines. Then create a machine with the details of the machine running the domain. This will allow the node manager to control servers on that machine.






Name : localhost 
Machine OS : Other







Create a server called AlfrescoServer within the new machine.




Make sure that you have change the port number while configuring the server or creating the server.
Here we give the port as 8080 for localhost.

To complete creation of server just click finish.
a.   Ensure that the node manager is running (for example, C:\bea\wlserver_10.3\server\bin\startNodeManager.cmd).
You will be able to use the admin server Change Center panel to start and stop the Alfresco server.

1.   In the left pane of the Administration Console, click Deployments.



Then click on install. 

Now navigate to D:\alfrescobea\ear path you will see.


Finish the installation of weblogic server.