Problem on publishing an extension

Problem on publishing an extension

  
Hi,

When I publish my extension J2EE on my Server a warning appears but in the end it says that my extension was succesfully published.

"Extension 'Application Server Type' property (J2EE) does not match OutSystems HubServer application server  (.NET)"

And Im facing a problem when trying to publish my eSpace that is using an extension created by me in J2EE.

Internal Error
 
Compilation Error.
referencesProxy\Extension_EasyThumb_proxy.cs(26,29): error CS0234: The type or namespace name 'NssEasyThumb' does not exist in the namespace 'OutSystems' (are you missing an assembly reference?)
 
 
State: Creating local copy

-------------------------------------------------------------------------------------------------------------------------------------------

Internal Error
 
Compilation Error.
error CS0006: Metadata file '.\bin\SocioEconomicoReferencesProxy.dll' could not be found
 
 
State: Second stage compilation

-------------------------------------------------------------------------------------------------------------------------------------------

Internal Error
 
Could not find file 'C:\Program Files\OutSystems\Platform Server\share\SocioEconomico\full\bin\SocioEconomicoReferencesProxy.dll'.
Details : System.IO.FileNotFoundException: Could not find file 'C:\Program Files\OutSystems\Platform Server\share\SocioEconomico\full\bin\SocioEconomicoReferencesProxy.dll'.
File name: 'C:\Program Files\OutSystems\Platform Server\share\SocioEconomico\full\bin\SocioEconomicoReferencesProxy.dll'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at System.IO.File.ReadAllBytes(String path)
   at OutSystems.HubEdition.ServerCommon.Pool.PoolFileManager.#dyb(FileInfo file, Byte[]& contents)
   at OutSystems.HubEdition.ServerCommon.Pool.PoolFileManager.CreatePoolFile(DirectoryInfo baseDirectory, FileInfo file, Byte[]& contents)
   at OutSystems.HubEdition.ServerCommon.Pool.PoolFileManager.#uyb.PlaceInPool(Action`1 onNewPoolFile)
   at #sVd.#f3.#vYd(String eSpaceName, String espaceTemporaryPath, String outputLibraryToPutInPool)
   at #sVd.#f3.#UXd(Byte[] oml, Boolean debugMode, String eSpaceName, Int32 eSpaceVersionId, String userName, Boolean partial, Boolean forceDontReuseTables, Boolean eSpaceAlreadyLocked, String uniqueId)
 
Exception Details:
[1] Internal Error: Could not find file 'C:\Program Files\OutSystems\Platform Server\share\SocioEconomico\full\bin\SocioEconomicoReferencesProxy.dll'.
Details : System.IO.FileNotFoundException: Could not find file 'C:\Program Files\OutSystems\Platform Server\share\SocioEconomico\full\bin\SocioEconomicoReferencesProxy.dll'.
File name: 'C:\Program Files\OutSystems\Platform Server\share\SocioEconomico\full\bin\SocioEconomicoReferencesProxy.dll'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at System.IO.File.ReadAllBytes(String path)
   at OutSystems.HubEdition.ServerCommon.Pool.PoolFileManager.#dyb(FileInfo file, Byte[]& contents)
   at OutSystems.HubEdition.ServerCommon.Pool.PoolFileManager.CreatePoolFile(DirectoryInfo baseDirectory, FileInfo file, Byte[]& contents)
   at OutSystems.HubEdition.ServerCommon.Pool.PoolFileManager.#uyb.PlaceInPool(Action`1 onNewPoolFile)
   at #sVd.#f3.#vYd(String eSpaceName, String espaceTemporaryPath, String outputLibraryToPutInPool)
   at #sVd.#f3.#UXd(Byte[] oml, Boolean debugMode, String eSpaceName, Int32 eSpaceVersionId, String userName, Boolean partial, Boolean forceDontReuseTables, Boolean eSpaceAlreadyLocked, String uniqueId)
at #sVd.#f3.#tXd(Exception ex)
   at #sVd.#f3.#UXd(Byte[] oml, Boolean debugMode, String eSpaceName, Int32 eSpaceVersionId, String userName, Boolean partial, Boolean forceDontReuseTables, Boolean eSpaceAlreadyLocked, String uniqueId)
   at #sVd.#f3.#oXd(Object operation)
   at #sVd.#PVd.#oN.#b5d(Object s)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
[2] System.IO.FileNotFoundException: Could not find file 'C:\Program Files\OutSystems\Platform Server\share\SocioEconomico\full\bin\SocioEconomicoReferencesProxy.dll'.
File name: 'C:\Program Files\OutSystems\Platform Server\share\SocioEconomico\full\bin\SocioEconomicoReferencesProxy.dll'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at System.IO.File.ReadAllBytes(String path)
   at OutSystems.HubEdition.ServerCommon.Pool.PoolFileManager.#dyb(FileInfo file, Byte[]& contents)
   at OutSystems.HubEdition.ServerCommon.Pool.PoolFileManager.CreatePoolFile(DirectoryInfo baseDirectory, FileInfo file, Byte[]& contents)
   at OutSystems.HubEdition.ServerCommon.Pool.PoolFileManager.#uyb.PlaceInPool(Action`1 onNewPoolFile)
   at #sVd.#f3.#vYd(String eSpaceName, String espaceTemporaryPath, String outputLibraryToPutInPool)
   at #sVd.#f3.#UXd(Byte[] oml, Boolean debugMode, String eSpaceName, Int32 eSpaceVersionId, String userName, Boolean partial, Boolean forceDontReuseTables, Boolean eSpaceAlreadyLocked, String uniqueId)

Hi Rogerio,

If you want to use a extension in a .Net server you need to do have .Net code on it.
Writting a "J2EE only" extension and publishing it to a .Net server does not work.

Regards,
João Rosado
The guy that installed the server knows .NET but in our company we use J2EE. Can we change the server type?

The different stacks have totally different system requirements and have implications on licensing of both the platform, operating system, application server and database.

The .NET stack works on Windows with IIS and a MSSQL or Oracle database.
The J2EE stack works on Linux with Jboss or Weblogic and an Oracle database.

Changing (and choosing) it should not be a "sput of the moment" decision.
Also, if you using a Community edition, the recommended Stack is .NET.

Regards,
João Rosado