cancel
Showing results for 
Search instead for 
Did you mean: 

Startup: UnsatisfiedLinkError with Win32NietBIOS.dll

manfred99
Champ in-the-making
Champ in-the-making
Hi @all!

Versions: Win2000, Tomcat5, Alfresco1.4

When Tomcat deploys alfresco, the following error occurs. (Win32NietBIOS.dll is available in windows\system32 which is included in the path environment variable).
Can anybody please help? Thank you!

————————— snip —————————————–
java.lang.UnsatisfiedLinkError: Native Library C:\Programme\Java\jdk1.5.0_06\jre
\bin\Win32NetBIOS.dll already loaded in another classloader
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1716)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668)
        at java.lang.Runtime.loadLibrary0(Runtime.java:822)
        at java.lang.System.loadLibrary(System.java:992)
        at org.alfresco.filesys.netbios.win32.Win32NetBIOS.<clinit>(Win32NetBIOS
.java:711)
        at org.alfresco.filesys.server.config.ServerConfiguration.getLocalServer
Name(ServerConfiguration.java:2566)
        at org.alfresco.filesys.server.config.ServerConfiguration.processCIFSSer
verConfig(ServerConfiguration.java:658)
        at org.alfresco.filesys.server.config.ServerConfiguration.init(ServerCon
figuration.java:509)
        at org.alfresco.filesys.server.config.ServerConfiguration.onBootstrap(Se
rverConfiguration.java:3351)
        at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLi
fecycleBean.java:54)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.m
ulticastEvent(SimpleApplicationEventMulticaster.java:45)
        at org.springframework.context.support.AbstractApplicationContext.publis
hEvent(AbstractApplicationContext.java:225)
        at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:323)
        at org.springframework.web.context.support.AbstractRefreshableWebApplica
tionContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
        at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:246)
        at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:184)
        at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:49)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3729)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
187)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:759)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
9)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:904)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:867)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:310)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:4
50)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:709
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
18:29:56,965 ERROR [alfresco.smb.protocol] Error accessing Win32 NetBIOS, check
DLL is on the path
18:29:56,980 ERROR [alfresco.ftp.protocol] FTP Socket error
java.net.BindException: Address already in use: JVM_Bind
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
        at java.net.ServerSocket.bind(ServerSocket.java:319)
        at java.net.ServerSocket.<init>(ServerSocket.java:185)
        at java.net.ServerSocket.<init>(ServerSocket.java:141)
        at org.alfresco.filesys.ftp.FTPNetworkServer.run(FTPNetworkServer.java:3
72)
        at java.lang.Thread.run(Thread.java:595)
18:29:56,980 INFO  [service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_
06-b05; maximum heap size 508,063MB
————————— snip —————————————–
2 REPLIES 2

marcusm
Champ in-the-making
Champ in-the-making
The error is "java.lang.UnsatisfiedLinkError: Native Library C:\Programme\Java\jdk1.5.0_06\jre\bin\Win32NetBIOS.dll already loaded in another classloader"

Sounds like you've got two copyies of Win32NetBIOS.dll being loaded.
One in windows\system32\(Win32NetBIOS.dll )
The other in C:\Programme\Java\jdk1.5.0_06\jre\bin\(Win32NetBIOS.dl)

My suggestion would be to remove the one in the C:\Programme\Java\jdk1.5.0_06\jre\bin\Win32NetBIOS.dll and see what happens

manfred99
Champ in-the-making
Champ in-the-making
Thank you for your reply!

Sorry, I recognized that my post was not complete and therefore misleading.

I first tried with win32netbios.dll in c:\windows\system32 - only! I got the same error for that.
Then I found some forum entry which stated to put the dll into jre\bin and I did. So this has been found first.
I deleted that and and made sure that no other copy is in the path-libs. The I repeated test1 with the dll in system32 only.

BTW - "nbtstat -n" shows
    NEPTUN_A       <20>  UNIQUE      Registriert
    NEPTUN_A       <00>  UNIQUE      Registriert
But attempting to bind the network drive "\\Neptun_a\alfresco" in explorer results in  "network path not found". When searching for the server in the binding dialog, Neptun_a is shown, but when I click the '+' in front, no folders are displayed.

Any ideas? Thank you!


Output of startup now is:
java.lang.UnsatisfiedLinkError: Native Library C:\WINNT\system32\Win32NetBIOS.dl
l already loaded in another classloader
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1716)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
        at java.lang.Runtime.loadLibrary0(Runtime.java:822)
        at java.lang.System.loadLibrary(System.java:992)
        at org.alfresco.filesys.netbios.win32.Win32NetBIOS.<clinit>(Win32NetBIOS
.java:711)
        at org.alfresco.filesys.server.config.ServerConfiguration.getLocalServer
Name(ServerConfiguration.java:2566)
        at org.alfresco.filesys.server.config.ServerConfiguration.processCIFSSer
verConfig(ServerConfiguration.java:658)
        at org.alfresco.filesys.server.config.ServerConfiguration.init(ServerCon
figuration.java:509)
        at org.alfresco.filesys.server.config.ServerConfiguration.onBootstrap(Se
rverConfiguration.java:3351)
        at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLi
fecycleBean.java:54)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.m
ulticastEvent(SimpleApplicationEventMulticaster.java:45)
        at org.springframework.context.support.AbstractApplicationContext.publis
hEvent(AbstractApplicationContext.java:225)
        at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:323)
        at org.springframework.web.context.support.AbstractRefreshableWebApplica
tionContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
        at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:246)
        at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:184)
        at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:49)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3729)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
187)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:759)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
9)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:904)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:867)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:310)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:4
50)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:709
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
09:31:00,078 ERROR [alfresco.smb.protocol] Error accessing Win32 NetBIOS, check
DLL is on the path
09:31:00,094 INFO  [service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_
06-b05; maximum heap size 508,063MB
09:31:00,094 INFO  [service.descriptor.DescriptorService] Alfresco started (Comm
unity Network): Current version 1.4.0 (build-105) schema 21 - Installed version
1.3.0 schema 14