Skip to Content
Installation on Mac Yosemite - Message Board Discussions, Suggestions and news
Sign In
Navigation
Welcome
Downloads
Help and Support
Examples
Follow @xmlpf
Breadcrumbs
xmlportletfactory.org
Help and Support
Forums
1.- Installation
Installation on Mac Yosemite
Navigation
Welcome
Downloads
Help and Support
Forums
Wiki
Contact
Video Tutorials
Examples
Message Boards
Message Boards Home
Recent Posts
Statistics
Answer
(
Unmark
)
Mark as an Answer
« Back to 1.- Installation
Installation on Mac Yosemite
Threads [ Previous |
Next
]
Installation on Mac Yosemite
Bruno Jimenez Chavez
6/27/15 4:38 AM
RE: Installation on Mac Yosemite
Juan G.
7/7/15 6:52 PM
Bruno Jimenez Chavez
Rank:
Youngling
Posts:
1
Join Date:
6/27/15
Recent Posts
Installation on Mac Yosemite
Answer
6/27/15 4:38 AM
Hello everybody,
I will tell you mi experience. After put uncompressed folder XMLPortletFactory on SDK folder I try with XMLPortletFactory JAR directly:
liferay-sdk
$ cd XMLPortletFactory
XMLPortletFactory
$ java -jar XMLPortletFactory.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2615)
at java.lang.Class.getMethod0(Class.java:2856)
at java.lang.Class.getMethod(Class.java:1668)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException: org.apache.xmlbeans.XmlException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 6 more
After that try by console:
XMLPortletFactory
$ ./create.sh hello-world \"Hello World\"
-bash: ./create.sh: Permission denied
FIRST TIP: Add permissions
XMLPortletFactory
$ chmod 777 create.sh
XMLPortletFactory
$ ./create.sh hello-world \"Hello World\"
-bash: ./create.sh: /bin/sh^M: bad interpreter: No such file or directory
Looking what errors mean, see create.sh code then I found this:
ant -Dportlet.name=$1 -Dportlet.display.name=\"$2\" -Dportlet.filename=$1 create
XMLPortletFactory
$ ant -version
-bash: ant: command not found
I discover that ANT is missing by console...
SECOND TIP: ANT dependecy by console on Mac installation
. You can use ANT traditional installation or use Homebrew (like me).
XMLPortletFactory
$ brew update
XMLPortletFactory
$ brew install ant
XMLPortletFactory
$ ant -version
Apache Ant(TM) version 1.9.5 compiled on May 31 2015
XMLPortletFactory
$ ./create.sh hello-world \"Hello World\"
-bash: ./create.sh: /bin/sh^M: bad interpreter: No such file or directory
Then try again with ANT comand directly:
THIRD TIP: User ANT command directly.
XMLPortletFactory
$ ant -Dportlet.name=hello-world -Dportlet.display.name=\"Hello World\" -Dportlet.filename=hello-world create
Buildfile: /Users/myuser/workspaces/liferay-sdk/XMLPortletFactory/build.xml
create:
send-warning:
create-libs-folder:
Expanding: /Users/myuser/workspaces/liferay-sdk/XMLPortletFactory/XMLPortlet_resources.zip into /Users/myuser/workspaces/liferay-sdk/XMLPortletFactory
create-resources-folder:
Expanding: /Users/myuser/workspaces/liferay-sdk/XMLPortletFactory/XMLPortlet_resources.zip into /Users/myuser/workspaces/liferay-sdk/XMLPortletFactory
create-taglibs-folder:
Copying 6 files to /Users/myuser/workspaces/liferay-sdk/XMLPortletFactory/Resources/PortletStructureAndFiles/docroot/WEB-INF/tld
create-portlet:
Expanding: /Users/myuser/workspaces/liferay-sdk/XMLPortletFactory/XMLPortlet_resources.zip into /Users/myuser/workspaces/liferay-sdk/XMLPortletFactory/hello-world-xmlportletfactory
Copying 1 file to /Users/myuser/workspaces/liferay-sdk/XMLPortletFactory/hello-world-xmlportletfactory
Moving 1 file to /Users/myuser/workspaces/liferay-sdk/XMLPortletFactory/hello-world-xmlportletfactory
BUILD SUCCESSFUL
Total time: 8 seconds
... a little of work, but I get it.
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Juan G.
Rank:
Padawan
Posts:
57
Join Date:
4/29/12
Recent Posts
RE: Installation on Mac Yosemite
Answer
7/7/15 6:52 PM as a reply to Bruno Jimenez Chavez.
Hi Bruno,
I think this step isn't valid:
XMLPortletFactory
$ ./create.sh hello-world \"Hello World\"
You should use the interpeter you want for that file, try with this:
XMLPortletFactory
$ sh create.sh hello-world \"Hello World\"
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top