Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Error Running App Imported on Publish Instance

Avatar

Level 2

Hi:

I'm running AEM 6.1 JEE version on jboss in Author mode and I have a site/application I am trying to get running on a Standalone Publish instance. I have not installed AEM 6.1 FP 1 yet

After publishing the site pages they were blank on Publish so I figured I might have to package up the application and export/import it using Package Manager.

I created a package consisting of the following nodes:

/apps/dgs
/etc/designs/dgs
/etc/blueprints/dgs

After importing this package on Publish I was able to get the html pages working but when I tried to open a page which has an Adaptive Forms Portal component sited on it I get the following error:

org.apache.sling.scripting.jsp.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 36 in the generated java file Only a type can be imported. com.adobe.fd.fp.service.FPIntegrationService resolves to a package An error occurred at line: 115 in the jsp file: /libs/fd/fp/components/querybuilder/body.jsp FPIntegrationService cannot be resolved to a type 112: break; 113: } 114: } 115: FPIntegrationService fpIntegrationService = sling.getService(FPIntegrationService.class); 116: List <String> fpIntegrationServiceScriptPaths = fpIntegrationService.getScriptPaths(FormsPortalConstants.STR_ANALYTICS_INTEGRATION); 117: for (String integrationScript : fpIntegrationServiceScriptPaths) { 118: if (integrationScript.length() != 0) { An error occurred at line: 115 in the jsp file: /libs/fd/fp/components/querybuilder/body.jsp FPIntegrationService cannot be resolved to a type 112: break; 113: } 114: } 115: FPIntegrationService fpIntegrationService = sling.getService(FPIntegrationService.class); 116: List <String> fpIntegrationServiceScriptPaths = fpIntegrationService.getScriptPaths(FormsPortalConstants.STR_ANALYTICS_INTEGRATION); 117: for (String integrationScript : fpIntegrationServiceScriptPaths) { 118: if (integrationScript.length() != 0) { An error occurred at line: 116 in the jsp file: /libs/fd/fp/components/querybuilder/body.jsp FormsPortalConstants.STR_ANALYTICS_INTEGRATION cannot be resolved to a type 113: } 114: } 115: FPIntegrationService fpIntegrationService = sling.getService(FPIntegrationService.class); 116: List <String> fpIntegrationServiceScriptPaths = fpIntegrationService.getScriptPaths(FormsPortalConstants.STR_ANALYTICS_INTEGRATION); 117: for (String integrationScript : fpIntegrationServiceScriptPaths) { 118: if (integrationScript.length() != 0) { 119: %><cq:include script="<%= integrationScript%>"/><%

RequestURI=/lc/content/dgs/en/formsportal.html

Servlet= /libs/fd/fp/components/querybuilderClient/querybuilderClient.jsp

ApacheSling/2.4 (jetty/9.2.9.v20150224, Java HotSpot(TM) 64-Bit Server VM 1.7.0_45, Windows Server 2008 R2 6.1 amd64)

I've tried to make sure the Publish instance has all the same packages as the Author instance but maybe I've missed something. Can anybody shed some light on what/where to check to get this working?

Thanks

Dale

1 Accepted Solution

Avatar

Correct answer by
Level 10

"how do I setup an Author (on JEE)/Publish (on Standalone) environment"

This is all covered in the AEM installation docs located here: Installing AEM with an Application Server.

View solution in original post

5 Replies

Avatar

Level 10

You seem to be missing a service on Pub: 

com.adobe.fd.fp.service.FPIntegrationService 

Make sure all of the same services are running on Pub that your app depends on. 

Avatar

Level 2

Hi Scott:

I did a search for "FPIntegrationService" in CRXDE Lite and discovered that Author and Publish have different versions of this jar:

Author - /libs/fd/fp/install/adobe-formsportal-services-4.1.28.jar

Publish - /libs/fd/fp/install/adobe-formsportal-services-4.2.4.jar

Should I try to update Author to have the 4.2.4 version of the jar or is there some other package I should install on Author? If the former is it safe to export the jar from Publish and import it to Author via Package Manager or could this risk breaking something else? Or, should I try to downgrade the jar version on Publish to 4.1.28?

Not sure if this is related but I did ensure that the AEM Forms Hotfix (AEM-FORMS-6.1-WIN-Hotfix-6717-2.2.4) is installed on both instances.

Thanks

Dale

Avatar

Level 2

Hi Everyone:

Still hoping for some discussion and feedback on this issue.

Stated another way, I guess the simple question is how do I setup an Author (on JEE)/Publish (on Standalone) environment?

AEM JEE comes with AEM Forms installed and Standalone does not so what specific packages do I need to install on Publish (or possibly Standalone) so that both instances match up?

Is this even a valid topology? According to this article https://helpx.adobe.com/aem-forms/6/aem-forms-architecture-deployment.html it would seem to be, although it doesn't give any specifics about how to actually configure the two.

In section 6.10 Configure Author and Publish instance of the  "Installing and Deploying AEM forms on JEE Using JBoss Turnkey" documentation it also speaks to this although it appears to be talking about running both Author and Publish as JEE versions. This is honestly just adding more confusion as I'm not sure what the "best practice" (and simplest way) is here. This is just a demo environment I'm setting up.

Really hoping someone can help. I posted another question about this a few weeks back but the question somehow got deleted from the server so I've been struggling with this for awhile now.

Thanks

Dale

Avatar

Correct answer by
Level 10

"how do I setup an Author (on JEE)/Publish (on Standalone) environment"

This is all covered in the AEM installation docs located here: Installing AEM with an Application Server.

Avatar

Level 2

That link appears to be talking about installing and configuring AEM to work on a pre-existing application server.

So you can't use a Turnkey JEE version?

You can't configure JEE and Standalone versions in Author/Publish configurations?

I need to administer my own application server and install 2 AEM instances on it to run any sort of JEE based Author/Publish configuration?

Thanks

Dale