Deploy applet to local server fails
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 269
- Joined: Sat Jul 10, 2010 4:03 pm
Deploy applet to local server fails
I have built the SDK using Maven on Mint 17.1. Set the certificate and dev license data.
When I execute
I get the following error
my default.property file
When I execute
Code: Select all
mvn -pl oxygen-sample-applet/ -am deploy
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for myGroup:oxygen-sample-applet:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-antrun-plugin @ line 234, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] mySample
[INFO] bundle-frameworks
[INFO] bundle-options
[INFO] bundle-samplefiles
[INFO] oxygen-sample-applet
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building mySample 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3:install (default-install) @ mySample ---
[INFO] Installing /home/scott/oxySDK/mySample/pom.xml to /home/scott/.m2/repository/myGroup/mySample/1.0-SNAPSHOT/mySample-1.0-SNAPSHOT.pom
[INFO]
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ mySample ---
Downloading: http://maven.sync.ro/archiva/repository ... tadata.xml
[WARNING] Could not transfer metadata myGroup:mySample:1.0-SNAPSHOT/maven-metadata.xml from/to syncro-snapshots (http://maven.sync.ro/archiva/repository ... snapshots/): maven.sync.ro: unknown error
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] mySample .......................................... FAILURE [1.928s]
[INFO] bundle-frameworks ................................. SKIPPED
[INFO] bundle-options .................................... SKIPPED
[INFO] bundle-samplefiles ................................ SKIPPED
[INFO] oxygen-sample-applet .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.189s
[INFO] Finished at: Fri May 01 11:46:04 MDT 2015
[INFO] Final Memory: 9M/481M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project mySample: Failed to retrieve remote metadata myGroup:mySample:1.0-SNAPSHOT/maven-metadata.xml: Could not transfer metadata myGroup:mySample:1.0-SNAPSHOT/maven-metadata.xml from/to syncro-snapshots (http://maven.sync.ro/archiva/repository ... snapshots/): maven.sync.ro: unknown error: Unknown host maven.sync.ro: unknown error -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/disp ... nException
my default.property file
Code: Select all
#
#
# Code signing parameters.
#
#
# Set the path to the certificate file used to sign the jar libraries.
keystore=javakeystore_mbepapers.jks
# The type of the certificate file. Ex: PKCS12 or JKS
storeType=JKS
# Keystore password
password=*************
# Alias
alias=***************
# HTTP Proxy host and port. Used by the signjar maven plugin. Optional.
proxyHost=proxy.mynet.com
proxyPort=3128
#
#
# JNLP
#
#
# The main class to be set in the JNLP file.
mainclass=myGroup.AuthorComponentSampleApplet
# The code base to be set in the JNLP file.
codebase=http://localhost/oxygen
#
#
# Applet deployment.
#
# All these parameters are used in the Maven "deploy" phase.
# If you do not want to deploy the applet to a HTTP server, use only the "install" phase.
# The deployment local file system directory. In this way
# you can copy the applet files to a network share or a SVN/GIT project. [REQUIRED]
deploy.dir=/var/www/oxygen
# The deployment remote directory. [REQUIRED]
#deploy.ftp.host=ftp.mysite.com
#deploy.ftp.user=USER
#deploy.ftp.password=PASSWORD
#deploy.ftp.dir=/home/test/public_html/AuthorDemoApplet
#
#
# Sharepoint Applet deployment
#
# If you want to deploy the applet to a Sharepoint site, you should copy
# the target/jnlp/sharepoint/* files to your site pages after the Maven "deploy" phase.
#
# Note:
# Due to SharePoint limitations, the applet files should not be kept on the Sharepoint
# server. You should deploy it on other server, at the location defined by the "codebase" parameter.
# The .aspx file points to this codebase.
#The SharePoint root site, in case you want to use the applet from a sharepoint server. Should not end in slash.
sharepointRootSite=https://mysharepointsite.sharepoint.com
-
- Posts: 269
- Joined: Sat Jul 10, 2010 4:03 pm
Re: Deploy applet to local server fails
I forget to add that it appears that this address http://maven.sync.ro/archiva/repository does not exist.
I can't find where it is getting that URL from?
I can't find where it is getting that URL from?
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Deploy applet to local server fails
Hi Scott,
Thanks for the report, we'll look into this, the maven.sync.ro is an internal maven repository and it should not be used at all in our public maven deploy.
Could you try in the meantime to run maven install instead of deploy? That should work.
Regards,
Radu
Thanks for the report, we'll look into this, the maven.sync.ro is an internal maven repository and it should not be used at all in our public maven deploy.
Could you try in the meantime to run maven install instead of deploy? That should work.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 269
- Joined: Sat Jul 10, 2010 4:03 pm
Re: Deploy applet to local server fails
Radu,
mvn install works fine.
I linked the folder ./mySample/oxygen-sample-applet/target/jnlp to http://localhost/oxygen so I can load up the webpage author-component-dita-simple.html on my apache server.
It starts to load the applet but I get a java accessControlException for java.uti.PropertyPermission write. I thought signing the jars would allow for read/write access?
mvn install works fine.
I linked the folder ./mySample/oxygen-sample-applet/target/jnlp to http://localhost/oxygen so I can load up the webpage author-component-dita-simple.html on my apache server.
It starts to load the applet but I get a java accessControlException for java.uti.PropertyPermission write. I thought signing the jars would allow for read/write access?
Scott#
#
# Code signing parameters.
#
#
# Set the path to the certificate file used to sign the jar libraries.
keystore=javakeystore_mbepapers.jks
# The type of the certificate file. Ex: PKCS12 or JKS
storeType=JKS
# Keystore password
password=**************
# Alias
alias=******************
# HTTP Proxy host and port. Used by the signjar maven plugin. Optional.
proxyHost=proxy.mynet.com
proxyPort=3128
#
#
# JNLP
#
#
# The main class to be set in the JNLP file.
mainclass=myGroup.AuthorComponentSampleApplet
# The code base to be set in the JNLP file.
codebase=http://localhost/oxygen/
-
- Posts: 269
- Joined: Sat Jul 10, 2010 4:03 pm
Re: Deploy applet to local server fails
I updated to the the latest Java, 8.0.45 and the latest plugin.
I am getting this error.
What am I doing wrong?
thanks, Scott
I am getting this error.
I put this textCacheEntry[http://localhost/oxygen/lib/oxygen-16.1.3.jar]: updateAvailable=true,lastModified=Mon May 04 09:37:07 MDT 2015,length=16635819
[OXYGEN] Doc base is http://localhost/oxygen/author-componen ... imple.html
ro.sync.ecss.extensions.api.component.AuthorComponentException: ERROR: Only evaluation license keys or site license keys are accepted to be injected in the Author Component.
in the file src/main/resources/license.key------START-LICENSE-KEY------
Registration_Name=Scott Derrick
Company=
Category=Professional
Component=Author, Saxon-SA
Version=16
Number_of_Licenses=1
Date=04-27-2015
Trial=31
SGN=...
-------END-LICENSE-KEY-------
What am I doing wrong?
thanks, Scott
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Deploy applet to local server fails
Hi,
Please do not post license keys in their entirety on the forum. I've censored the SGN part from the license key you posted.
To answer your question, you cannot inject a user-based license (like the one you posted) in the Author Component. User based licenses can only be entered manually in the registration dialog (also available in the Author Component).
For further licensing information regarding the Author component, please contact us on our support email address, support@oxygenxml.com.
Regards,
Adrian
Please do not post license keys in their entirety on the forum. I've censored the SGN part from the license key you posted.
To answer your question, you cannot inject a user-based license (like the one you posted) in the Author Component. User based licenses can only be entered manually in the registration dialog (also available in the Author Component).
For further licensing information regarding the Author component, please contact us on our support email address, support@oxygenxml.com.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 269
- Joined: Sat Jul 10, 2010 4:03 pm
Re: Deploy applet to local server fails
Sorry, I thought about that a few minutes ago.
Got carried away trying to post all the information so I could get up and running instead of flailing around wasting time trying to make a demo of what this may do for them.
Still looking for an answer. I was given this license key in an email by your support when I requested one to try out the applet.
Scott
Got carried away trying to post all the information so I could get up and running instead of flailing around wasting time trying to make a demo of what this may do for them.
Still looking for an answer. I was given this license key in an email by your support when I requested one to try out the applet.
Scott
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Deploy applet to local server fails
Hi Scott,
My colleague should have generated an Author Component evaluation license key for you and instead he generated a trial license key, he'll probably reply to your email shortly.
The author component also works with a trial license key but not injected directly in the Java code, in the Java code you set a NULL key and then the component will ask you for a license and you paste the trial license key. More about the component licensing here:
http://www.oxygenxml.com/doc/ug-oxygen/ ... nsing.html
Regards,
Radu
My colleague should have generated an Author Component evaluation license key for you and instead he generated a trial license key, he'll probably reply to your email shortly.
The author component also works with a trial license key but not injected directly in the Java code, in the Java code you set a NULL key and then the component will ask you for a license and you paste the trial license key. More about the component licensing here:
http://www.oxygenxml.com/doc/ug-oxygen/ ... nsing.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 269
- Joined: Sat Jul 10, 2010 4:03 pm
Re: Deploy applet to local server fails
Radu,
thanks I got a reply. It was user error as you guys suggested. Didn't realize I couldn't inject the key...
I'm up and running. Looks fantastic!
Sorry for the key posting snafu...
Scott
thanks I got a reply. It was user error as you guys suggested. Didn't realize I couldn't inject the key...
I'm up and running. Looks fantastic!
Sorry for the key posting snafu...
Scott
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service