Deploy applet to local server fails

Post here questions and problems related to oXygen frameworks/document types.
sderrick
Posts: 264
Joined: Sat Jul 10, 2010 4:03 pm

Deploy applet to local server fails

Post by sderrick »

I have built the SDK using Maven on Mint 17.1. Set the certificate and dev license data.

When I execute

Code: Select all

mvn  -pl oxygen-sample-applet/ -am deploy
I get the following error
[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
sderrick
Posts: 264
Joined: Sat Jul 10, 2010 4:03 pm

Re: Deploy applet to local server fails

Post by sderrick »

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?
Radu
Posts: 9048
Joined: Fri Jul 09, 2004 5:18 pm

Re: Deploy applet to local server fails

Post by Radu »

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
sderrick
Posts: 264
Joined: Sat Jul 10, 2010 4:03 pm

Re: Deploy applet to local server fails

Post by sderrick »

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?
#
#
# 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/
Scott
sderrick
Posts: 264
Joined: Sat Jul 10, 2010 4:03 pm

Re: Deploy applet to local server fails

Post by sderrick »

I updated to the the latest Java, 8.0.45 and the latest plugin.

I am getting this error.
CacheEntry[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.
I put this text
------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-------
in the file src/main/resources/license.key

What am I doing wrong?

thanks, Scott
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: Deploy applet to local server fails

Post by adrian »

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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
sderrick
Posts: 264
Joined: Sat Jul 10, 2010 4:03 pm

Re: Deploy applet to local server fails

Post by sderrick »

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
Radu
Posts: 9048
Joined: Fri Jul 09, 2004 5:18 pm

Re: Deploy applet to local server fails

Post by Radu »

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
sderrick
Posts: 264
Joined: Sat Jul 10, 2010 4:03 pm

Re: Deploy applet to local server fails

Post by sderrick »

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
Post Reply